arm64: dts: sprd: Add SC27XX ADC device
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 23 Jul 2018 06:10:19 +0000 (14:10 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 26 Jul 2018 06:51:29 +0000 (23:51 -0700)
Add the Spreadtrum SC27XX PMICs ADC device node which contains 32 channels.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm64/boot/dts/sprd/sc2731.dtsi

index fc68076b8746d6ac80e5a2c3caffe643fd3af9ac..82bd642d770b9fcc9976ddbf63375679ca512f62 100644 (file)
                        hwlocks = <&hwlock 12>;
                };
 
+               pmic_adc: adc@480 {
+                       compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc";
+                       reg = <0x480>;
+                       interrupt-parent = <&sc2731_pmic>;
+                       interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+                       #io-channel-cells = <1>;
+                       hwlocks = <&hwlock 4>;
+               };
+
                vibrator@ec8 {
                        compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator";
                        reg = <0xec8>;