1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (C) 2022 Luca Weiss <luca.weiss@fa 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 pm7250b-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@PM7250B_SID { 42 compatible = "qcom,pm7250b", " 43 reg = <PM7250B_SID SPMI_USID>; 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 pm7250b_vbus: usb-vbus-regulat 48 compatible = "qcom,pm7 49 reg = <0x1100>; 50 status = "disabled"; 51 }; 52 53 pm7250b_typec: typec@1500 { 54 compatible = "qcom,pm7 55 reg = <0x1500>, 56 <0x1700>; 57 interrupts = <PM7250B_ 58 <PM7250B_ 59 <PM7250B_ 60 <PM7250B_ 61 <PM7250B_ 62 <PM7250B_ 63 <PM7250B_ 64 <PM7250B_ 65 <PM7250B_ 66 <PM7250B_ 67 <PM7250B_ 68 <PM7250B_ 69 <PM7250B_ 70 <PM7250B_ 71 <PM7250B_ 72 <PM7250B_ 73 interrupt-names = "or- 74 "vpd 75 "cc- 76 "vco 77 "vbu 78 "att 79 "leg 80 "try 81 "sig 82 "sig 83 "msg 84 "msg 85 "msg 86 "msg 87 "msg 88 "fr- 89 vdd-vbus-supply = <&pm 90 status = "disabled"; 91 }; 92 93 pm7250b_temp: temp-alarm@2400 94 compatible = "qcom,spm 95 reg = <0x2400>; 96 interrupts = <PM7250B_ 97 io-channels = <&pm7250 98 io-channel-names = "th 99 #thermal-sensor-cells 100 }; 101 102 pm7250b_adc: adc@3100 { 103 compatible = "qcom,spm 104 reg = <0x3100>; 105 #address-cells = <1>; 106 #size-cells = <0>; 107 #io-channel-cells = <1 108 interrupts = <PM7250B_ 109 110 channel@0 { 111 reg = <ADC5_RE 112 qcom,pre-scali 113 label = "ref_g 114 }; 115 116 channel@1 { 117 reg = <ADC5_1P 118 qcom,pre-scali 119 label = "vref_ 120 }; 121 122 channel@2 { 123 reg = <ADC5_DI 124 qcom,pre-scali 125 label = "die_t 126 }; 127 128 channel@7 { 129 reg = <ADC5_US 130 qcom,pre-scali 131 label = "usb_i 132 }; 133 134 channel@8 { 135 reg = <ADC5_US 136 qcom,pre-scali 137 label = "usb_i 138 }; 139 140 channel@9 { 141 reg = <ADC5_CH 142 qcom,pre-scali 143 label = "chg_t 144 }; 145 146 channel@e { 147 reg = <ADC5_AM 148 qcom,hw-settle 149 qcom,pre-scali 150 label = "smb13 151 }; 152 153 channel@1e { 154 reg = <ADC5_MI 155 qcom,pre-scali 156 label = "chg_m 157 }; 158 159 channel@4b { 160 reg = <ADC5_BA 161 qcom,hw-settle 162 qcom,pre-scali 163 qcom,ratiometr 164 label = "bat_i 165 }; 166 167 channel@83 { 168 reg = <ADC5_VP 169 qcom,pre-scali 170 label = "vph_p 171 }; 172 173 channel@84 { 174 reg = <ADC5_VB 175 qcom,pre-scali 176 label = "vbat_ 177 }; 178 179 channel@99 { 180 reg = <ADC5_SB 181 qcom,pre-scali 182 label = "chg_s 183 }; 184 }; 185 186 pm7250b_adc_tm: adc-tm@3500 { 187 compatible = "qcom,spm 188 reg = <0x3500>; 189 interrupts = <PM7250B_ 190 #thermal-sensor-cells 191 #address-cells = <1>; 192 #size-cells = <0>; 193 status = "disabled"; 194 }; 195 196 pm7250b_gpios: gpio@c000 { 197 compatible = "qcom,pm7 198 reg = <0xc000>; 199 gpio-controller; 200 gpio-ranges = <&pm7250 201 #gpio-cells = <2>; 202 interrupt-controller; 203 #interrupt-cells = <2> 204 }; 205 }; 206 207 pmic@PM7250B_SID1 { 208 compatible = "qcom,pm7250b", " 209 reg = <PM7250B_SID1 SPMI_USID> 210 #address-cells = <1>; 211 #size-cells = <0>; 212 }; 213 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.