Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi: Add apb0 gates for H3

This patch adds support for APB0 in H3. It seems to be compatible with
earlier SOCs. apb0 gates controls R_ block peripherals (R_PIO, R_IR,
etc).

Since this gates behave just like any Allwinner clock gate, add a generic
compatible that can be reused if we don't have any clock to protect.

Signed-off-by: Krzysztof Adamski <k@japko.eu>
[Maxime: Removed the H3 compatible from the simple-gates driver, reworked
the commit log a bit]
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

authored by

Krzysztof Adamski and committed by
Maxime Ripard
6e17b418 d331328d

+4
+2
Documentation/devicetree/bindings/clock/sunxi.txt
··· 18 18 "allwinner,sun4i-a10-cpu-clk" - for the CPU multiplexer clock 19 19 "allwinner,sun4i-a10-axi-clk" - for the AXI clock 20 20 "allwinner,sun8i-a23-axi-clk" - for the AXI clock on A23 21 + "allwinner,sun4i-a10-gates-clk" - for generic gates on all compatible SoCs 21 22 "allwinner,sun4i-a10-axi-gates-clk" - for the AXI gates 22 23 "allwinner,sun4i-a10-ahb-clk" - for the AHB clock 23 24 "allwinner,sun5i-a13-ahb-clk" - for the AHB clock on A13 ··· 47 46 "allwinner,sun6i-a31-apb0-gates-clk" - for the APB0 gates on A31 48 47 "allwinner,sun7i-a20-apb0-gates-clk" - for the APB0 gates on A20 49 48 "allwinner,sun8i-a23-apb0-gates-clk" - for the APB0 gates on A23 49 + "allwinner,sun8i-h3-apb0-gates-clk" - for the APB0 gates on H3 50 50 "allwinner,sun9i-a80-apb0-gates-clk" - for the APB0 gates on A80 51 51 "allwinner,sun4i-a10-apb1-clk" - for the APB1 clock 52 52 "allwinner,sun9i-a80-apb1-clk" - for the APB1 bus clock on A80
+2
drivers/clk/sunxi/clk-simple-gates.c
··· 98 98 sunxi_simple_gates_setup(node, NULL, 0); 99 99 } 100 100 101 + CLK_OF_DECLARE(sun4i_a10_gates, "allwinner,sun4i-a10-gates-clk", 102 + sunxi_simple_gates_init); 101 103 CLK_OF_DECLARE(sun4i_a10_apb0, "allwinner,sun4i-a10-apb0-gates-clk", 102 104 sunxi_simple_gates_init); 103 105 CLK_OF_DECLARE(sun4i_a10_apb1, "allwinner,sun4i-a10-apb1-gates-clk",