Skip to content

Commit 43fb443

Browse files
Matthias KaehlckeAndy Gross
authored andcommitted
arm64: dts: qcom: pm8998: Add adc node
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 <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Andy Gross <[email protected]>
1 parent 7028cae commit 43fb443

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

arch/arm64/boot/dts/qcom/pm8998.dtsi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22
/* Copyright 2018 Google LLC. */
33

4-
#include <dt-bindings/spmi/spmi.h>
4+
#include <dt-bindings/iio/qcom,spmi-vadc.h>
55
#include <dt-bindings/interrupt-controller/irq.h>
6+
#include <dt-bindings/spmi/spmi.h>
67

78
&spmi_bus {
89
pm8998_lsid0: pmic@0 {
@@ -11,6 +12,15 @@
1112
#address-cells = <1>;
1213
#size-cells = <0>;
1314

15+
pm8998_adc: adc@3100 {
16+
compatible = "qcom,spmi-adc-rev2";
17+
reg = <0x3100>;
18+
interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
19+
#address-cells = <1>;
20+
#size-cells = <0>;
21+
#io-channel-cells = <1>;
22+
};
23+
1424
pm8998_gpio: gpios@c000 {
1525
compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
1626
reg = <0xc000>;

0 commit comments

Comments
 (0)