Path: blob/main/sys/contrib/device-tree/Bindings/clock/amlogic,gxbb-aoclkc.txt
48377 views
* Amlogic GXBB AO Clock and Reset Unit12The Amlogic GXBB AO clock controller generates and supplies clock to various3controllers within the Always-On part of the SoC.45Required Properties:67- compatible: value should be different for each SoC family as :8- GXBB (S905) : "amlogic,meson-gxbb-aoclkc"9- GXL (S905X, S905D) : "amlogic,meson-gxl-aoclkc"10- GXM (S912) : "amlogic,meson-gxm-aoclkc"11- AXG (A113D, A113X) : "amlogic,meson-axg-aoclkc"12- G12A (S905X2, S905D2, S905Y2) : "amlogic,meson-g12a-aoclkc"13followed by the common "amlogic,meson-gx-aoclkc"14- clocks: list of clock phandle, one for each entry clock-names.15- clock-names: should contain the following:16* "xtal" : the platform xtal17* "mpeg-clk" : the main clock controller mother clock (aka clk81)18* "ext-32k-0" : external 32kHz reference #0 if any (optional)19* "ext-32k-1" : external 32kHz reference #1 if any (optional - gx only)20* "ext-32k-2" : external 32kHz reference #2 if any (optional - gx only)2122- #clock-cells: should be 1.2324Each clock is assigned an identifier and client nodes can use this identifier25to specify the clock which they consume. All available clocks are defined as26preprocessor macros in the dt-bindings/clock/gxbb-aoclkc.h header and can be27used in device tree sources.2829- #reset-cells: should be 1.3031Each reset is assigned an identifier and client nodes can use this identifier32to specify the reset which they consume. All available resets are defined as33preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be34used in device tree sources.3536Parent node should have the following properties :37- compatible: "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"38- reg: base address and size of the AO system control register space.3940Example: AO Clock controller node:4142ao_sysctrl: sys-ctrl@0 {43compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd";44reg = <0x0 0x0 0x0 0x100>;4546clkc_AO: clock-controller {47compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";48#clock-cells = <1>;49#reset-cells = <1>;50clocks = <&xtal>, <&clkc CLKID_CLK81>;51clock-names = "xtal", "mpeg-clk";52};5354Example: UART controller node that consumes the clock and reset generated55by the clock controller:5657uart_AO: serial@4c0 {58compatible = "amlogic,meson-uart";59reg = <0x4c0 0x14>;60interrupts = <0 90 1>;61clocks = <&clkc_AO CLKID_AO_UART1>;62resets = <&clkc_AO RESET_AO_UART1>;63};646566