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

dt-bindings: clock: amlogic, gxbb-aoclkc: Update bindings

On the first revision of the bindings, only the gates + resets were known
in the AO Clock HW, but more registers used to configures AO clock are known
to be spread among the AO register space.
This patch adds a parent node for the entire system control zone for the AO
domain then moves the clock controller as a subnode of the system control
node.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

+16 -6
+16 -6
Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
··· 5 5 6 6 Required Properties: 7 7 8 - - compatible: should be "amlogic,gxbb-aoclkc" 9 - - reg: physical base address of the clock controller and length of memory 10 - mapped region. 8 + - compatible: value should be different for each SoC family as : 9 + - GXBB (S905) : "amlogic,meson-gxbb-aoclkc" 10 + - GXL (S905X, S905D) : "amlogic,meson-gxl-aoclkc" 11 + - GXM (S912) : "amlogic,meson-gxm-aoclkc" 12 + followed by the common "amlogic,meson-gx-aoclkc" 11 13 12 14 - #clock-cells: should be 1. 13 15 ··· 25 23 preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be 26 24 used in device tree sources. 27 25 26 + Parent node should have the following properties : 27 + - compatible: "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd" 28 + - reg: base address and size of the AO system control register space. 29 + 28 30 Example: AO Clock controller node: 29 31 30 - clkc_AO: clock-controller@040 { 31 - compatible = "amlogic,gxbb-aoclkc"; 32 - reg = <0x0 0x040 0x0 0x4>; 32 + ao_sysctrl: sys-ctrl@0 { 33 + compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"; 34 + reg = <0x0 0x0 0x0 0x100>; 35 + 36 + clkc_AO: clock-controller { 37 + compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc"; 33 38 #clock-cells = <1>; 34 39 #reset-cells = <1>; 35 40 }; 41 + }; 36 42 37 43 Example: UART controller node that consumes the clock and reset generated 38 44 by the clock controller: