]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: spear6xx: add DT description of the ADC on SPEAr600
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 17 Apr 2017 12:46:44 +0000 (14:46 +0200)
committerOlof Johansson <olof@lixom.net>
Wed, 19 Apr 2017 14:08:22 +0000 (07:08 -0700)
The SPEAr600 has a built-in ADC, which already has a Device Tree binding
described in
Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt. This
commit adds the description in the SPEAr600 Device Tree of this ADC
device.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/spear600.dtsi

index 8459286def2623197dff09e6725e72b8d246d458..6b32d20acc9f4bef1285a51f3045c5ffca6e22b0 100644 (file)
                                interrupt-parent = <&vic0>;
                                interrupts = <16>;
                        };
+
+                       adc: adc@d820b000 {
+                               compatible = "st,spear600-adc";
+                               reg = <0xd820b000 0x1000>;
+                               interrupt-parent = <&vic1>;
+                               interrupts = <6>;
+                               status = "disabled";
+                       };
                };
        };
 };