1* Amlogic Meson8, Meson8b and Meson8m2 Clock and Reset Unit 2 3The Amlogic Meson8 / Meson8b / Meson8m2 clock controller generates and 4supplies clock to various controllers within the SoC. 5 6Required Properties: 7 8- compatible: must be one of: 9 - "amlogic,meson8-clkc" for Meson8 (S802) SoCs 10 - "amlogic,meson8b-clkc" for Meson8 (S805) SoCs 11 - "amlogic,meson8m2-clkc" for Meson8m2 (S812) SoCs 12- reg: it must be composed by two tuples: 13 0) physical base address of the xtal register and length of memory 14 mapped region. 15 1) physical base address of the clock controller and length of memory 16 mapped region. 17 18- #clock-cells: should be 1. 19 20Each clock is assigned an identifier and client nodes can use this identifier 21to specify the clock which they consume. All available clocks are defined as 22preprocessor macros in the dt-bindings/clock/meson8b-clkc.h header and can be 23used in device tree sources. 24 25Example: Clock controller node: 26 27 clkc: clock-controller@c1104000 { 28 #clock-cells = <1>; 29 compatible = "amlogic,meson8b-clkc"; 30 reg = <0xc1108000 0x4>, <0xc1104000 0x460>; 31 }; 32 33 34Example: UART controller node that consumes the clock generated by the clock 35 controller: 36 37 uart_AO: serial@c81004c0 { 38 compatible = "amlogic,meson-uart"; 39 reg = <0xc81004c0 0x14>; 40 interrupts = <0 90 1>; 41 clocks = <&clkc CLKID_CLK81>; 42 status = "disabled"; 43 }; 44