arm64: dts: mt2712: Add auxadc device node.
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Thu, 21 Sep 2017 01:26:52 +0000 (09:26 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 19 Mar 2018 01:49:59 +0000 (02:49 +0100)
Add auxadc device node for MT2712.

Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt2712-evb.dts
arch/arm64/boot/dts/mediatek/mt2712e.dtsi

index 10f9c76cd1054146381c6a531342c68f9780f979..4ce9d6ca0bf7852943b7130e294dab833b08cb57 100644 (file)
 
 };
 
+&auxadc {
+       status = "okay";
+};
+
 &cpu0 {
        proc-supply = <&cpus_fixed_vproc0>;
 };
index fdf66f4fe7c3166eb527a9f504f55e28ab5afce2..9d88f41aefa0a658b34c4bee983f75f811801be9 100644 (file)
                         (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_HIGH)>;
        };
 
+       auxadc: adc@11001000 {
+               compatible = "mediatek,mt2712-auxadc";
+               reg = <0 0x11001000 0 0x1000>;
+               clocks = <&pericfg CLK_PERI_AUXADC>;
+               clock-names = "main";
+               #io-channel-cells = <1>;
+               status = "disabled";
+       };
+
        uart0: serial@11002000 {
                compatible = "mediatek,mt2712-uart",
                             "mediatek,mt6577-uart";