1X-Powers AC100 Codec/RTC IC Device Tree bindings 2 3AC100 is a audio codec and RTC subsystem combo IC. The 2 parts are 4separated, including power supplies and interrupt lines, but share 5a common register address space and host interface. 6 7Required properties: 8- compatible: "x-powers,ac100" 9- reg: The I2C slave address or RSB hardware address for the chip 10- sub-nodes: 11 - codec 12 - compatible: "x-powers,ac100-codec" 13 - interrupts: SoC NMI / GPIO interrupt connected to the 14 IRQ_AUDIO pin 15 - #clock-cells: Shall be 0 16 - clock-output-names: "4M_adda" 17 18 - see clock/clock-bindings.txt for common clock bindings 19 20 - rtc 21 - compatible: "x-powers,ac100-rtc" 22 - clocks: A phandle to the codec's "4M_adda" clock 23 - #clock-cells: Shall be 1 24 - clock-output-names: "cko1_rtc", "cko2_rtc", "cko3_rtc" 25 26 - see clock/clock-bindings.txt for common clock bindings 27 28Example: 29 30ac100: codec@e89 { 31 compatible = "x-powers,ac100"; 32 reg = <0xe89>; 33 34 ac100_codec: codec { 35 compatible = "x-powers,ac100-codec"; 36 interrupt-parent = <&r_pio>; 37 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ 38 #clock-cells = <0>; 39 clock-output-names = "4M_adda"; 40 }; 41 42 ac100_rtc: rtc { 43 compatible = "x-powers,ac100-rtc"; 44 interrupt-parent = <&nmi_intc>; 45 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 46 clocks = <&ac100_codec>; 47 #clock-cells = <1>; 48 clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; 49 }; 50}; 51