1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2019, AngeloGioacchino Del Regno <kholk11@gmail.com>
4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
5 #include <dt-bindings/interrupt-controller/irq.h>
6 #include <dt-bindings/spmi/spmi.h>
10 compatible = "qcom,pmi8950", "qcom,spmi-pmic";
11 reg = <0x2 SPMI_USID>;
15 pmi8950_vadc: adc@3100 {
16 compatible = "qcom,spmi-vadc";
18 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
21 #io-channel-cells = <1>;
25 qcom,pre-scaling = <1 4>;
31 qcom,pre-scaling = <1 4>;
36 reg = <VADC_VCHG_SNS>;
37 qcom,pre-scaling = <1 1>;
42 reg = <VADC_REF_625MV>;
43 qcom,pre-scaling = <1 1>;
48 reg = <VADC_REF_1250MV>;
49 qcom,pre-scaling = <1 1>;
55 qcom,pre-scaling = <1 1>;
60 pmi8950_mpps: mpps@a000 {
61 compatible = "qcom,pmi8950-mpp", "qcom,spmi-mpp";
64 gpio-ranges = <&pmi8950_mpps 0 0 4>;
67 #interrupt-cells = <2>;
70 pmi8950_gpios: gpio@c000 {
71 compatible = "qcom,pmi8950-gpio", "qcom,spmi-gpio";
74 gpio-ranges = <&pmi8950_gpios 0 0 2>;
77 #interrupt-cells = <2>;
82 compatible = "qcom,pmi8950", "qcom,spmi-pmic";
83 reg = <0x3 SPMI_USID>;
87 pmi8950_wled: leds@d800 {
88 compatible = "qcom,pmi8950-wled";
89 reg = <0xd800>, <0xd900>;
90 interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
91 <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
92 interrupt-names = "ovp", "short";