1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2020, Konrad Dybcio 4 */ 5 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/input/linux-event-codes. 8 #include <dt-bindings/interrupt-controller/irq 9 #include <dt-bindings/spmi/spmi.h> 10 #include <dt-bindings/thermal/thermal.h> 11 12 / { 13 thermal-zones { 14 pm660-thermal { 15 polling-delay-passive 16 17 thermal-sensors = <&pm 18 19 trips { 20 pm660_alert0: 21 temper 22 hyster 23 type = 24 }; 25 pm660_crit: pm 26 temper 27 hyster 28 type = 29 }; 30 }; 31 }; 32 }; 33 }; 34 35 &spmi_bus { 36 37 pmic@0 { 38 compatible = "qcom,pm660", "qc 39 reg = <0x0 SPMI_USID>; 40 #address-cells = <1>; 41 #size-cells = <0>; 42 43 rtc@6000 { 44 compatible = "qcom,pm8 45 reg = <0x6000>, <0x610 46 reg-names = "rtc", "al 47 interrupts = <0x0 0x61 48 }; 49 50 pon: pon@800 { 51 compatible = "qcom,pm8 52 reg = <0x800>; 53 mode-bootloader = <0x2 54 mode-recovery = <0x1>; 55 56 pon_pwrkey: pwrkey { 57 compatible = " 58 interrupts = < 59 debounce = <15 60 bias-pull-up; 61 linux,code = < 62 63 status = "disa 64 }; 65 66 pon_resin: resin { 67 compatible = " 68 interrupts = < 69 debounce = <15 70 bias-pull-up; 71 72 status = "disa 73 }; 74 }; 75 76 pm660_charger: charger@1000 { 77 compatible = "qcom,pm6 78 reg = <0x1000>; 79 80 interrupts = <0x0 0x13 81 <0x0 0x12 82 <0x0 0x16 83 <0x0 0x13 84 interrupt-names = "usb 85 86 io-channels = <&pm660_ 87 <&pm660_ 88 io-channel-names = "us 89 90 status = "disabled"; 91 }; 92 93 pm660_temp: temp-alarm@2400 { 94 compatible = "qcom,spm 95 reg = <0x2400>; 96 interrupts = <0x0 0x24 97 io-channels = <&pm660_ 98 io-channel-names = "th 99 #thermal-sensor-cells 100 }; 101 102 pm660_adc: adc@3100 { 103 compatible = "qcom,spm 104 reg = <0x3100>; 105 interrupts = <0x0 0x31 106 #address-cells = <1>; 107 #size-cells = <0>; 108 #io-channel-cells = <1 109 110 channel@0 { 111 reg = <ADC5_RE 112 qcom,decimatio 113 qcom,pre-scali 114 label = "ref_g 115 }; 116 117 channel@1 { 118 reg = <ADC5_1P 119 qcom,decimatio 120 qcom,pre-scali 121 label = "vref_ 122 }; 123 124 channel@6 { 125 reg = <ADC5_DI 126 qcom,decimatio 127 qcom,pre-scali 128 label = "die_t 129 }; 130 131 channel@4c { 132 reg = <ADC5_XO 133 qcom,pre-scali 134 qcom,decimatio 135 qcom,hw-settle 136 qcom,ratiometr 137 label = "xo_th 138 }; 139 140 channel@4d { 141 reg = <ADC5_AM 142 qcom,pre-scali 143 qcom,decimatio 144 qcom,hw-settle 145 qcom,ratiometr 146 label = "msm_t 147 }; 148 149 channel@4e { 150 reg = <ADC5_AM 151 qcom,pre-scali 152 qcom,decimatio 153 qcom,hw-settle 154 qcom,ratiometr 155 label = "emmc_ 156 }; 157 158 channel@4f { 159 reg = <ADC5_AM 160 qcom,pre-scali 161 qcom,decimatio 162 qcom,hw-settle 163 qcom,ratiometr 164 label = "pa_th 165 }; 166 167 channel@50 { 168 reg = <ADC5_AM 169 qcom,pre-scali 170 qcom,decimatio 171 qcom,hw-settle 172 qcom,ratiometr 173 label = "pa_th 174 }; 175 176 channel@51 { 177 reg = <ADC5_AM 178 qcom,pre-scali 179 qcom,decimatio 180 qcom,hw-settle 181 qcom,ratiometr 182 label = "quiet 183 }; 184 185 channel@83 { 186 reg = <ADC5_VP 187 qcom,decimatio 188 qcom,pre-scali 189 label = "vph_p 190 }; 191 192 channel@85 { 193 reg = <ADC5_VC 194 qcom,decimatio 195 qcom,pre-scali 196 label = "vcoin 197 }; 198 }; 199 200 pm660_rradc: adc@4500 { 201 compatible = "qcom,pm6 202 reg = <0x4500>; 203 #io-channel-cells = <1 204 205 status = "disabled"; 206 }; 207 208 pm660_gpios: gpio@c000 { 209 compatible = "qcom,pm6 210 reg = <0xc000>; 211 gpio-controller; 212 gpio-ranges = <&pm660_ 213 #gpio-cells = <2>; 214 interrupt-controller; 215 #interrupt-cells = <2> 216 }; 217 }; 218 219 pmic@1 { 220 compatible = "qcom,pm660", "qc 221 reg = <0x1 SPMI_USID>; 222 #address-cells = <1>; 223 #size-cells = <0>; 224 225 pm660_spmi_regulators: regulat 226 compatible = "qcom,pm6 227 }; 228 }; 229 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.