]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: qcom: pm8998: Add adc node
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 10 Sep 2018 16:03:00 +0000 (09:03 -0700)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 18:44:39 +0000 (13:44 -0500)
This adds the adc node to pm8998 based on the examples in the
bindings. It also fixes the order of the included headers.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/pm8998.dtsi

index 92bed1e7d4bbfa5c8caf1e1e6acd938943a1ae38..41593ebbea2c30735f0aa4bb32e58085aeaa850e 100644 (file)
@@ -1,8 +1,9 @@
 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 /* Copyright 2018 Google LLC. */
 
-#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/iio/qcom,spmi-vadc.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
 
 &spmi_bus {
        pm8998_lsid0: pmic@0 {
@@ -11,6 +12,15 @@ pm8998_lsid0: pmic@0 {
                #address-cells = <1>;
                #size-cells = <0>;
 
+               pm8998_adc: adc@3100 {
+                       compatible = "qcom,spmi-adc-rev2";
+                       reg = <0x3100>;
+                       interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       #io-channel-cells = <1>;
+               };
+
                pm8998_gpio: gpios@c000 {
                        compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;