1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (C) 2023 Luca Weiss <luca@z3ntu.xy 4 */ 5 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/interrupt-controller/irq 8 #include <dt-bindings/spmi/spmi.h> 9 10 / { 11 thermal-zones { 12 pmi632-thermal { 13 polling-delay-passive 14 15 thermal-sensors = <&pm 16 17 trips { 18 trip0 { 19 temper 20 hyster 21 type = 22 }; 23 24 trip1 { 25 temper 26 hyster 27 type = 28 }; 29 30 trip2 { 31 temper 32 hyster 33 type = 34 }; 35 }; 36 }; 37 }; 38 }; 39 40 &spmi_bus { 41 pmic@2 { 42 compatible = "qcom,pmi632", "q 43 reg = <0x2 SPMI_USID>; 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 pmi632_vbus: usb-vbus-regulato 48 compatible = "qcom,pmi 49 reg = <0x1100>; 50 status = "disabled"; 51 }; 52 53 pmi632_typec: typec@1500 { 54 compatible = "qcom,pmi 55 reg = <0x1500>; 56 interrupts = <0x2 0x15 57 <0x2 0x15 58 <0x2 0x15 59 <0x2 0x15 60 <0x2 0x15 61 <0x2 0x15 62 <0x2 0x15 63 <0x2 0x15 64 interrupt-names = "or- 65 "vpd 66 "cc- 67 "vco 68 "vbu 69 "att 70 "leg 71 "try 72 vdd-vbus-supply = <&pm 73 74 status = "disabled"; 75 }; 76 77 pmi632_temp: temp-alarm@2400 { 78 compatible = "qcom,spm 79 reg = <0x2400>; 80 interrupts = <0x2 0x24 81 #thermal-sensor-cells 82 }; 83 84 pmi632_adc: adc@3100 { 85 compatible = "qcom,spm 86 reg = <0x3100>; 87 #address-cells = <1>; 88 #size-cells = <0>; 89 #io-channel-cells = <1 90 interrupts = <0x2 0x31 91 92 channel@0 { 93 reg = <ADC5_RE 94 qcom,pre-scali 95 label = "ref_g 96 }; 97 98 channel@1 { 99 reg = <ADC5_1P 100 qcom,pre-scali 101 label = "vref_ 102 }; 103 104 channel@6 { 105 reg = <ADC5_DI 106 qcom,pre-scali 107 label = "die_t 108 }; 109 110 channel@7 { 111 reg = <ADC5_US 112 qcom,pre-scali 113 label = "usb_i 114 }; 115 116 channel@8 { 117 reg = <ADC5_US 118 qcom,pre-scali 119 label = "usb_i 120 }; 121 122 channel@9 { 123 reg = <ADC5_CH 124 qcom,pre-scali 125 label = "chg_t 126 }; 127 128 channel@4b { 129 reg = <ADC5_BA 130 qcom,hw-settle 131 qcom,pre-scali 132 qcom,ratiometr 133 label = "bat_i 134 }; 135 136 channel@83 { 137 reg = <ADC5_VP 138 qcom,pre-scali 139 label = "vph_p 140 }; 141 142 channel@84 { 143 reg = <ADC5_VB 144 qcom,pre-scali 145 label = "vbat_ 146 }; 147 }; 148 149 pmi632_adc_tm: adc-tm@3500 { 150 compatible = "qcom,spm 151 reg = <0x3500>; 152 interrupts = <0x2 0x35 153 #thermal-sensor-cells 154 #address-cells = <1>; 155 #size-cells = <0>; 156 status = "disabled"; 157 }; 158 159 pmi632_pbs_client3: pbs@7400 { 160 compatible = "qcom,pmi 161 reg = <0x7400>; 162 }; 163 164 pmi632_sdam_7: nvram@b600 { 165 compatible = "qcom,spm 166 reg = <0xb600>; 167 #address-cells = <1>; 168 #size-cells = <1>; 169 ranges = <0 0xb600 0x1 170 }; 171 172 pmi632_gpios: gpio@c000 { 173 compatible = "qcom,pmi 174 reg = <0xc000>; 175 gpio-controller; 176 gpio-ranges = <&pmi632 177 #gpio-cells = <2>; 178 interrupt-controller; 179 #interrupt-cells = <2> 180 }; 181 }; 182 183 pmic@3 { 184 compatible = "qcom,pmi632", "q 185 reg = <0x3 SPMI_USID>; 186 #address-cells = <1>; 187 #size-cells = <0>; 188 189 pmi632_lpg: pwm { 190 compatible = "qcom,pmi 191 192 nvmem = <&pmi632_sdam_ 193 nvmem-names = "lpg_cha 194 qcom,pbs = <&pmi632_pb 195 196 #address-cells = <1>; 197 #size-cells = <0>; 198 #pwm-cells = <2>; 199 200 status = "disabled"; 201 }; 202 203 pmi632_vib: vibrator@5700 { 204 compatible = "qcom,pmi 205 reg = <0x5700>; 206 status = "disabled"; 207 }; 208 }; 209 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.