ARM: dts: sun9i: a80-optimus: Add device node for AC100
authorChen-Yu Tsai <wens@csie.org>
Fri, 19 Aug 2016 07:42:24 +0000 (15:42 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 22 Aug 2016 18:39:25 +0000 (20:39 +0200)
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun9i-a80-optimus.dts

index 7fd22e888602c7e7bc7897a96e25e90d7ace1d80..e35c06c162a737d37b7333b82ce0f0ce23ec79b0 100644 (file)
                        };
                };
        };
+
+       ac100: codec@e89 {
+               compatible = "x-powers,ac100";
+               reg = <0xe89>;
+
+               ac100_codec: codec {
+                       compatible = "x-powers,ac100-codec";
+                       interrupt-parent = <&r_pio>;
+                       interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
+                       #clock-cells = <0>;
+                       clock-output-names = "4M_adda";
+               };
+
+               ac100_rtc: rtc {
+                       compatible = "x-powers,ac100-rtc";
+                       interrupt-parent = <&nmi_intc>;
+                       interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+                       clocks = <&ac100_codec>;
+                       #clock-cells = <1>;
+                       clock-output-names = "cko1_rtc",
+                                            "cko2_rtc",
+                                            "cko3_rtc";
+               };
+       };
 };
 
 #include "axp809.dtsi"