1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/spmi/spmi.h>
10 compatible = "qcom,pm8916", "qcom,spmi-pmic";
11 reg = <0x0 SPMI_USID>;
16 compatible = "qcom,pm8941-rtc";
18 reg-names = "rtc", "alarm";
19 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
23 compatible = "qcom,pm8916-pon";
25 mode-bootloader = <0x2>;
26 mode-recovery = <0x1>;
29 compatible = "qcom,pm8941-pwrkey";
30 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
33 linux,code = <KEY_POWER>;
37 compatible = "qcom,pm8916-wdt";
38 interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>;
43 pm8916_gpios: gpios@c000 {
44 compatible = "qcom,pm8916-gpio";
48 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
49 <0 0xc1 0 IRQ_TYPE_NONE>,
50 <0 0xc2 0 IRQ_TYPE_NONE>,
51 <0 0xc3 0 IRQ_TYPE_NONE>;
54 pm8916_mpps: mpps@a000 {
55 compatible = "qcom,pm8916-mpp";
59 interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
60 <0 0xa1 0 IRQ_TYPE_NONE>,
61 <0 0xa2 0 IRQ_TYPE_NONE>,
62 <0 0xa3 0 IRQ_TYPE_NONE>;
65 pm8916_temp: temp-alarm@2400 {
66 compatible = "qcom,spmi-temp-alarm";
68 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
69 io-channels = <&pm8916_vadc VADC_DIE_TEMP>;
70 io-channel-names = "thermal";
71 #thermal-sensor-cells = <0>;
74 pm8916_vadc: vadc@3100 {
75 compatible = "qcom,spmi-vadc";
77 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
80 #io-channel-cells = <1>;
84 qcom,pre-scaling = <1 10>;
88 qcom,pre-scaling = <1 3>;
91 reg = <VADC_DIE_TEMP>;
94 reg = <VADC_REF_625MV>;
97 reg = <VADC_REF_1250MV>;
100 reg = <VADC_GND_REF>;
103 reg = <VADC_VDD_VADC>;
109 compatible = "qcom,pm8916", "qcom,spmi-pmic";
110 reg = <0x1 SPMI_USID>;
111 #address-cells = <1>;
114 wcd_codec: codec@f000 {
115 compatible = "qcom,pm8916-wcd-analog-codec";
116 reg = <0xf000 0x200>;
117 reg-names = "pmic-codec-core";
118 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
119 clock-names = "mclk";
120 interrupt-parent = <&spmi_bus>;
121 interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
122 <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
123 <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
124 <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
125 <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
126 <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
127 <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
128 <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
129 <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
130 <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
131 <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
132 <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
133 <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
134 <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
135 interrupt-names = "cdc_spk_cnp_int",
140 "mbhc_but_press_det",
149 vdd-cdc-io-supply = <&pm8916_l5>;
150 vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>;
151 vdd-micbias-supply = <&pm8916_l13>;
152 #sound-dai-cells = <1>;