1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro.dtsi" 2 #include "qcom-msm8974pro.dtsi" 3 #include "pm8841.dtsi" 3 #include "pm8841.dtsi" 4 #include "pm8941.dtsi" 4 #include "pm8941.dtsi" 5 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 7 7 8 / { 8 / { 9 model = "OnePlus One"; 9 model = "OnePlus One"; 10 compatible = "oneplus,bacon", "qcom,ms 10 compatible = "oneplus,bacon", "qcom,msm8974pro", "qcom,msm8974"; 11 chassis-type = "handset"; 11 chassis-type = "handset"; 12 qcom,msm-id = <194 0x10000>; 12 qcom,msm-id = <194 0x10000>; 13 qcom,board-id = <8 0>; 13 qcom,board-id = <8 0>; 14 14 15 aliases { 15 aliases { 16 serial0 = &blsp1_uart2; 16 serial0 = &blsp1_uart2; 17 }; 17 }; 18 18 19 chosen { 19 chosen { 20 stdout-path = "serial0:115200n 20 stdout-path = "serial0:115200n8"; 21 }; 21 }; 22 22 23 gpio-keys { 23 gpio-keys { 24 compatible = "gpio-keys"; 24 compatible = "gpio-keys"; 25 25 26 pinctrl-0 = <&gpio_keys_defaul 26 pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_default>; 27 pinctrl-names = "default"; 27 pinctrl-names = "default"; 28 28 29 key-volume-down { 29 key-volume-down { 30 label = "Volume Down"; 30 label = "Volume Down"; 31 gpios = <&pm8941_gpios 31 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; 32 linux,code = <KEY_VOLU 32 linux,code = <KEY_VOLUMEDOWN>; 33 wakeup-source; 33 wakeup-source; 34 debounce-interval = <1 34 debounce-interval = <15>; 35 }; 35 }; 36 36 37 key-volume-up { 37 key-volume-up { 38 label = "Volume Up"; 38 label = "Volume Up"; 39 gpios = <&pm8941_gpios 39 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; 40 linux,code = <KEY_VOLU 40 linux,code = <KEY_VOLUMEUP>; 41 wakeup-source; 41 wakeup-source; 42 debounce-interval = <1 42 debounce-interval = <15>; 43 }; 43 }; 44 44 45 event-hall-sensor { 45 event-hall-sensor { 46 label = "Hall Effect S 46 label = "Hall Effect Sensor"; 47 gpios = <&tlmm 68 GPIO 47 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>; 48 linux,input-type = <EV 48 linux,input-type = <EV_SW>; 49 linux,code = <SW_LID>; 49 linux,code = <SW_LID>; 50 linux,can-disable; 50 linux,can-disable; 51 debounce-interval = <1 51 debounce-interval = <150>; 52 }; 52 }; 53 }; 53 }; 54 54 55 vreg_boost: vreg-boost { 55 vreg_boost: vreg-boost { 56 compatible = "regulator-fixed" 56 compatible = "regulator-fixed"; 57 57 58 regulator-name = "vreg-boost"; 58 regulator-name = "vreg-boost"; 59 regulator-min-microvolt = <315 59 regulator-min-microvolt = <3150000>; 60 regulator-max-microvolt = <315 60 regulator-max-microvolt = <3150000>; 61 61 62 regulator-always-on; 62 regulator-always-on; 63 regulator-boot-on; 63 regulator-boot-on; 64 64 65 gpio = <&pm8941_gpios 21 GPIO_ 65 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; 66 enable-active-high; 66 enable-active-high; 67 67 68 pinctrl-names = "default"; 68 pinctrl-names = "default"; 69 pinctrl-0 = <&boost_bypass_n_p 69 pinctrl-0 = <&boost_bypass_n_pin>; 70 }; 70 }; 71 71 72 vreg_vph_pwr: vreg-vph-pwr { 72 vreg_vph_pwr: vreg-vph-pwr { 73 compatible = "regulator-fixed" 73 compatible = "regulator-fixed"; 74 regulator-name = "vph-pwr"; 74 regulator-name = "vph-pwr"; 75 75 76 regulator-min-microvolt = <360 76 regulator-min-microvolt = <3600000>; 77 regulator-max-microvolt = <360 77 regulator-max-microvolt = <3600000>; 78 78 79 regulator-always-on; 79 regulator-always-on; 80 }; 80 }; 81 }; 81 }; 82 82 83 &blsp1_i2c1 { 83 &blsp1_i2c1 { 84 status = "okay"; 84 status = "okay"; 85 85 86 fuel-gauge@55 { 86 fuel-gauge@55 { 87 compatible = "ti,bq27541"; 87 compatible = "ti,bq27541"; 88 reg = <0x55>; 88 reg = <0x55>; 89 power-supplies = <&bq24196_cha 89 power-supplies = <&bq24196_charger>; 90 }; 90 }; 91 }; 91 }; 92 92 93 &blsp1_i2c2 { 93 &blsp1_i2c2 { 94 status = "okay"; 94 status = "okay"; 95 95 96 rmi4-i2c-dev@20 { 96 rmi4-i2c-dev@20 { 97 compatible = "syna,rmi4-i2c"; 97 compatible = "syna,rmi4-i2c"; 98 reg = <0x20>; 98 reg = <0x20>; 99 99 100 syna,startup-delay-ms = <100>; 100 syna,startup-delay-ms = <100>; 101 101 102 interrupts-extended = <&tlmm 6 102 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>; 103 vdd-supply = <&pm8941_l22>; 103 vdd-supply = <&pm8941_l22>; 104 vio-supply = <&pm8941_lvs3>; 104 vio-supply = <&pm8941_lvs3>; 105 105 106 pinctrl-names = "default"; 106 pinctrl-names = "default"; 107 pinctrl-0 = <&touch_default_st 107 pinctrl-0 = <&touch_default_state>; 108 108 109 #address-cells = <1>; 109 #address-cells = <1>; 110 #size-cells = <0>; 110 #size-cells = <0>; 111 111 112 rmi4-f01@1 { 112 rmi4-f01@1 { 113 reg = <0x1>; 113 reg = <0x1>; 114 syna,nosleep-mode = <1 114 syna,nosleep-mode = <1>; 115 }; 115 }; 116 116 117 rmi4-f12@12 { 117 rmi4-f12@12 { 118 reg = <0x12>; 118 reg = <0x12>; 119 syna,sensor-type = <1> 119 syna,sensor-type = <1>; 120 /* 120 /* 121 * Touchscreen size is 121 * Touchscreen size is 2040x1080, y-values between 122 * 1920-2040 are used 122 * 1920-2040 are used for touchkey (menu, home & back). 123 * For now clip it off 123 * For now clip it off so we don't get touch events 124 * outside of the disp 124 * outside of the display area. 125 */ 125 */ 126 syna,clip-y-high = <19 126 syna,clip-y-high = <1920>; 127 }; 127 }; 128 }; 128 }; 129 129 130 led-controller@36 { 130 led-controller@36 { 131 compatible = "ti,lm3630a"; 131 compatible = "ti,lm3630a"; 132 reg = <0x36>; 132 reg = <0x36>; 133 133 134 #address-cells = <1>; 134 #address-cells = <1>; 135 #size-cells = <0>; 135 #size-cells = <0>; 136 136 137 led@0 { 137 led@0 { 138 reg = <0>; 138 reg = <0>; 139 led-sources = <0 1>; 139 led-sources = <0 1>; 140 label = "lcd-backlight 140 label = "lcd-backlight"; 141 default-brightness = < 141 default-brightness = <80>; 142 }; 142 }; 143 }; 143 }; 144 144 145 led-controller@68 { 145 led-controller@68 { 146 compatible = "si-en,sn3193"; 146 compatible = "si-en,sn3193"; 147 reg = <0x68>; 147 reg = <0x68>; 148 148 149 shutdown-gpios = <&tlmm 45 GPI 149 shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; 150 150 151 #address-cells = <1>; 151 #address-cells = <1>; 152 #size-cells = <0>; 152 #size-cells = <0>; 153 153 154 led@1 { 154 led@1 { 155 reg = <1>; 155 reg = <1>; 156 label = "red:status"; 156 label = "red:status"; 157 led-max-microamp = <17 157 led-max-microamp = <17500>; 158 }; 158 }; 159 159 160 led@2 { 160 led@2 { 161 reg = <2>; 161 reg = <2>; 162 label = "green:status" 162 label = "green:status"; 163 led-max-microamp = <17 163 led-max-microamp = <17500>; 164 }; 164 }; 165 165 166 led@3 { 166 led@3 { 167 reg = <3>; 167 reg = <3>; 168 label = "blue:status"; 168 label = "blue:status"; 169 led-max-microamp = <17 169 led-max-microamp = <17500>; 170 }; 170 }; 171 }; 171 }; 172 }; 172 }; 173 173 174 &blsp1_i2c6 { 174 &blsp1_i2c6 { 175 status = "okay"; 175 status = "okay"; 176 176 177 bq24196_charger: charger@6b { 177 bq24196_charger: charger@6b { 178 compatible = "ti,bq24196"; 178 compatible = "ti,bq24196"; 179 reg = <0x6b>; 179 reg = <0x6b>; 180 interrupts-extended = <&tlmm 3 180 interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; 181 omit-battery-class; 181 omit-battery-class; 182 }; 182 }; 183 }; 183 }; 184 184 185 &blsp1_uart2 { 185 &blsp1_uart2 { 186 status = "okay"; 186 status = "okay"; 187 }; 187 }; 188 188 189 &gcc { 189 &gcc { 190 compatible = "qcom,gcc-msm8974pro-ac"; 190 compatible = "qcom,gcc-msm8974pro-ac"; 191 }; 191 }; 192 192 193 &pm8941_coincell { 193 &pm8941_coincell { 194 qcom,rset-ohms = <800>; 194 qcom,rset-ohms = <800>; 195 qcom,vset-millivolts = <3200>; 195 qcom,vset-millivolts = <3200>; 196 196 197 status = "okay"; 197 status = "okay"; 198 }; 198 }; 199 199 200 &pm8941_gpios { 200 &pm8941_gpios { 201 gpio_keys_default: gpio-keys-active-st 201 gpio_keys_default: gpio-keys-active-state { 202 pins = "gpio2", "gpio5"; 202 pins = "gpio2", "gpio5"; 203 function = "normal"; 203 function = "normal"; 204 input-enable; 204 input-enable; 205 bias-disable; 205 bias-disable; 206 power-source = <PM8941_GPIO_S3 206 power-source = <PM8941_GPIO_S3>; 207 }; 207 }; 208 }; 208 }; 209 209 210 &pm8941_vib { 210 &pm8941_vib { 211 status = "okay"; 211 status = "okay"; 212 }; 212 }; 213 213 214 &pronto { 214 &pronto { 215 vddmx-supply = <&pm8841_s1>; 215 vddmx-supply = <&pm8841_s1>; 216 vddcx-supply = <&pm8841_s2>; 216 vddcx-supply = <&pm8841_s2>; 217 vddpx-supply = <&pm8941_s3>; 217 vddpx-supply = <&pm8941_s3>; 218 218 219 pinctrl-names = "default"; 219 pinctrl-names = "default"; 220 pinctrl-0 = <&wcnss_pin_a>; 220 pinctrl-0 = <&wcnss_pin_a>; 221 221 222 status = "okay"; 222 status = "okay"; 223 223 224 iris { 224 iris { 225 vddxo-supply = <&pm8941_l6>; 225 vddxo-supply = <&pm8941_l6>; 226 vddrfa-supply = <&pm8941_l11>; 226 vddrfa-supply = <&pm8941_l11>; 227 vddpa-supply = <&pm8941_l19>; 227 vddpa-supply = <&pm8941_l19>; 228 vdddig-supply = <&pm8941_s3>; 228 vdddig-supply = <&pm8941_s3>; 229 }; 229 }; 230 230 231 smd-edge { 231 smd-edge { 232 qcom,remote-pid = <4>; 232 qcom,remote-pid = <4>; 233 label = "pronto"; 233 label = "pronto"; 234 234 235 wcnss { 235 wcnss { 236 status = "okay"; 236 status = "okay"; 237 }; 237 }; 238 }; 238 }; 239 }; 239 }; 240 240 241 &remoteproc_adsp { 241 &remoteproc_adsp { 242 cx-supply = <&pm8841_s2>; 242 cx-supply = <&pm8841_s2>; 243 243 244 status = "okay"; 244 status = "okay"; 245 }; 245 }; 246 246 247 &rpm_requests { 247 &rpm_requests { 248 regulators-0 { 248 regulators-0 { 249 compatible = "qcom,rpm-pm8841- 249 compatible = "qcom,rpm-pm8841-regulators"; 250 250 251 pm8841_s1: s1 { 251 pm8841_s1: s1 { 252 regulator-min-microvol 252 regulator-min-microvolt = <675000>; 253 regulator-max-microvol 253 regulator-max-microvolt = <1050000>; 254 }; 254 }; 255 255 256 pm8841_s2: s2 { 256 pm8841_s2: s2 { 257 regulator-min-microvol 257 regulator-min-microvolt = <875000>; 258 regulator-max-microvol 258 regulator-max-microvolt = <1050000>; 259 regulator-always-on; 259 regulator-always-on; 260 }; 260 }; 261 261 262 pm8841_s3: s3 { 262 pm8841_s3: s3 { 263 regulator-min-microvol 263 regulator-min-microvolt = <1050000>; 264 regulator-max-microvol 264 regulator-max-microvolt = <1050000>; 265 }; 265 }; 266 }; 266 }; 267 267 268 regulators-1 { 268 regulators-1 { 269 compatible = "qcom,rpm-pm8941- 269 compatible = "qcom,rpm-pm8941-regulators"; 270 270 271 vdd_l1_l3-supply = <&pm8941_s1 271 vdd_l1_l3-supply = <&pm8941_s1>; 272 vdd_l2_lvs1_2_3-supply = <&pm8 272 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; 273 vdd_l4_l11-supply = <&pm8941_s 273 vdd_l4_l11-supply = <&pm8941_s1>; 274 vdd_l5_l7-supply = <&pm8941_s2 274 vdd_l5_l7-supply = <&pm8941_s2>; 275 vdd_l6_l12_l14_l15-supply = <& 275 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; 276 vdd_l8_l16_l18_l19-supply = <& 276 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>; 277 vdd_l9_l10_l17_l22-supply = <& 277 vdd_l9_l10_l17_l22-supply = <&vreg_boost>; 278 vdd_l13_l20_l23_l24-supply = < 278 vdd_l13_l20_l23_l24-supply = <&vreg_boost>; 279 vdd_l21-supply = <&vreg_boost> 279 vdd_l21-supply = <&vreg_boost>; 280 280 281 pm8941_s1: s1 { 281 pm8941_s1: s1 { 282 regulator-min-microvol 282 regulator-min-microvolt = <1300000>; 283 regulator-max-microvol 283 regulator-max-microvolt = <1300000>; 284 284 285 regulator-always-on; 285 regulator-always-on; 286 regulator-boot-on; 286 regulator-boot-on; 287 }; 287 }; 288 288 289 pm8941_s2: s2 { 289 pm8941_s2: s2 { 290 regulator-min-microvol 290 regulator-min-microvolt = <2150000>; 291 regulator-max-microvol 291 regulator-max-microvolt = <2150000>; 292 292 293 regulator-boot-on; 293 regulator-boot-on; 294 }; 294 }; 295 295 296 pm8941_s3: s3 { 296 pm8941_s3: s3 { 297 regulator-min-microvol 297 regulator-min-microvolt = <1800000>; 298 regulator-max-microvol 298 regulator-max-microvolt = <1800000>; 299 regulator-system-load 299 regulator-system-load = <154000>; 300 300 301 regulator-always-on; 301 regulator-always-on; 302 regulator-boot-on; 302 regulator-boot-on; 303 regulator-allow-set-lo 303 regulator-allow-set-load; 304 }; 304 }; 305 305 306 pm8941_l1: l1 { 306 pm8941_l1: l1 { 307 regulator-min-microvol 307 regulator-min-microvolt = <1225000>; 308 regulator-max-microvol 308 regulator-max-microvolt = <1225000>; 309 309 310 regulator-always-on; 310 regulator-always-on; 311 regulator-boot-on; 311 regulator-boot-on; 312 }; 312 }; 313 313 314 pm8941_l2: l2 { 314 pm8941_l2: l2 { 315 regulator-min-microvol 315 regulator-min-microvolt = <1200000>; 316 regulator-max-microvol 316 regulator-max-microvolt = <1200000>; 317 }; 317 }; 318 318 319 pm8941_l3: l3 { 319 pm8941_l3: l3 { 320 regulator-min-microvol 320 regulator-min-microvolt = <1225000>; 321 regulator-max-microvol 321 regulator-max-microvolt = <1225000>; 322 }; 322 }; 323 323 324 pm8941_l4: l4 { 324 pm8941_l4: l4 { 325 regulator-min-microvol 325 regulator-min-microvolt = <1225000>; 326 regulator-max-microvol 326 regulator-max-microvolt = <1225000>; 327 }; 327 }; 328 328 329 pm8941_l5: l5 { 329 pm8941_l5: l5 { 330 regulator-min-microvol 330 regulator-min-microvolt = <1800000>; 331 regulator-max-microvol 331 regulator-max-microvolt = <1800000>; 332 }; 332 }; 333 333 334 pm8941_l6: l6 { 334 pm8941_l6: l6 { 335 regulator-min-microvol 335 regulator-min-microvolt = <1800000>; 336 regulator-max-microvol 336 regulator-max-microvolt = <1800000>; 337 337 338 regulator-boot-on; 338 regulator-boot-on; 339 }; 339 }; 340 340 341 pm8941_l7: l7 { 341 pm8941_l7: l7 { 342 regulator-min-microvol 342 regulator-min-microvolt = <1800000>; 343 regulator-max-microvol 343 regulator-max-microvolt = <1800000>; 344 344 345 regulator-boot-on; 345 regulator-boot-on; 346 }; 346 }; 347 347 348 pm8941_l8: l8 { 348 pm8941_l8: l8 { 349 regulator-min-microvol 349 regulator-min-microvolt = <1800000>; 350 regulator-max-microvol 350 regulator-max-microvolt = <1800000>; 351 }; 351 }; 352 352 353 pm8941_l9: l9 { 353 pm8941_l9: l9 { 354 regulator-min-microvol 354 regulator-min-microvolt = <1800000>; 355 regulator-max-microvol 355 regulator-max-microvolt = <2950000>; 356 }; 356 }; 357 357 358 pm8941_l10: l10 { 358 pm8941_l10: l10 { 359 regulator-min-microvol 359 regulator-min-microvolt = <1800000>; 360 regulator-max-microvol 360 regulator-max-microvolt = <2950000>; 361 }; 361 }; 362 362 363 pm8941_l11: l11 { 363 pm8941_l11: l11 { 364 regulator-min-microvol 364 regulator-min-microvolt = <1225000>; 365 regulator-max-microvol 365 regulator-max-microvolt = <1350000>; 366 }; 366 }; 367 367 368 pm8941_l12: l12 { 368 pm8941_l12: l12 { 369 regulator-min-microvol 369 regulator-min-microvolt = <1800000>; 370 regulator-max-microvol 370 regulator-max-microvolt = <1800000>; 371 371 372 regulator-always-on; 372 regulator-always-on; 373 regulator-boot-on; 373 regulator-boot-on; 374 regulator-allow-set-lo 374 regulator-allow-set-load; 375 }; 375 }; 376 376 377 pm8941_l13: l13 { 377 pm8941_l13: l13 { 378 regulator-min-microvol 378 regulator-min-microvolt = <1800000>; 379 regulator-max-microvol 379 regulator-max-microvolt = <2950000>; 380 380 381 regulator-boot-on; 381 regulator-boot-on; 382 }; 382 }; 383 383 384 pm8941_l14: l14 { 384 pm8941_l14: l14 { 385 regulator-min-microvol 385 regulator-min-microvolt = <1800000>; 386 regulator-max-microvol 386 regulator-max-microvolt = <1800000>; 387 }; 387 }; 388 388 389 pm8941_l15: l15 { 389 pm8941_l15: l15 { 390 regulator-min-microvol 390 regulator-min-microvolt = <2050000>; 391 regulator-max-microvol 391 regulator-max-microvolt = <2050000>; 392 }; 392 }; 393 393 394 pm8941_l16: l16 { 394 pm8941_l16: l16 { 395 regulator-min-microvol 395 regulator-min-microvolt = <2700000>; 396 regulator-max-microvol 396 regulator-max-microvolt = <2700000>; 397 }; 397 }; 398 398 399 pm8941_l17: l17 { 399 pm8941_l17: l17 { 400 regulator-min-microvol 400 regulator-min-microvolt = <2850000>; 401 regulator-max-microvol 401 regulator-max-microvolt = <2850000>; 402 }; 402 }; 403 403 404 pm8941_l18: l18 { 404 pm8941_l18: l18 { 405 regulator-min-microvol 405 regulator-min-microvolt = <2850000>; 406 regulator-max-microvol 406 regulator-max-microvolt = <2850000>; 407 }; 407 }; 408 408 409 pm8941_l19: l19 { 409 pm8941_l19: l19 { 410 regulator-min-microvol 410 regulator-min-microvolt = <2900000>; 411 regulator-max-microvol 411 regulator-max-microvolt = <3350000>; 412 }; 412 }; 413 413 414 pm8941_l20: l20 { 414 pm8941_l20: l20 { 415 regulator-min-microvol 415 regulator-min-microvolt = <2950000>; 416 regulator-max-microvol 416 regulator-max-microvolt = <2950000>; 417 417 418 regulator-system-load 418 regulator-system-load = <200000>; 419 regulator-allow-set-lo 419 regulator-allow-set-load; 420 regulator-boot-on; 420 regulator-boot-on; 421 }; 421 }; 422 422 423 pm8941_l21: l21 { 423 pm8941_l21: l21 { 424 regulator-min-microvol 424 regulator-min-microvolt = <2950000>; 425 regulator-max-microvol 425 regulator-max-microvolt = <2950000>; 426 426 427 regulator-boot-on; 427 regulator-boot-on; 428 }; 428 }; 429 429 430 pm8941_l22: l22 { 430 pm8941_l22: l22 { 431 regulator-min-microvol 431 regulator-min-microvolt = <3000000>; 432 regulator-max-microvol 432 regulator-max-microvolt = <3000000>; 433 regulator-allow-set-lo 433 regulator-allow-set-load; 434 }; 434 }; 435 435 436 pm8941_l23: l23 { 436 pm8941_l23: l23 { 437 regulator-min-microvol 437 regulator-min-microvolt = <3000000>; 438 regulator-max-microvol 438 regulator-max-microvolt = <3000000>; 439 }; 439 }; 440 440 441 pm8941_l24: l24 { 441 pm8941_l24: l24 { 442 regulator-min-microvol 442 regulator-min-microvolt = <3075000>; 443 regulator-max-microvol 443 regulator-max-microvolt = <3075000>; 444 444 445 regulator-boot-on; 445 regulator-boot-on; 446 }; 446 }; 447 447 448 pm8941_lvs3: lvs3 {}; 448 pm8941_lvs3: lvs3 {}; 449 }; 449 }; 450 }; 450 }; 451 451 452 &sdhc_1 { 452 &sdhc_1 { 453 vmmc-supply = <&pm8941_l20>; 453 vmmc-supply = <&pm8941_l20>; 454 vqmmc-supply = <&pm8941_s3>; 454 vqmmc-supply = <&pm8941_s3>; 455 455 456 pinctrl-names = "default", "sleep"; 456 pinctrl-names = "default", "sleep"; 457 pinctrl-0 = <&sdc1_on>; 457 pinctrl-0 = <&sdc1_on>; 458 pinctrl-1 = <&sdc1_off>; 458 pinctrl-1 = <&sdc1_off>; 459 459 460 status = "okay"; 460 status = "okay"; 461 }; 461 }; 462 462 463 &smbb { 463 &smbb { 464 status = "okay"; 464 status = "okay"; 465 }; 465 }; 466 466 467 &tlmm { 467 &tlmm { 468 gpio_hall_sensor_default: gpio-hall-se 468 gpio_hall_sensor_default: gpio-hall-sensor-default-state { 469 pins = "gpio68"; 469 pins = "gpio68"; 470 function = "gpio"; 470 function = "gpio"; 471 drive-strength = <8>; 471 drive-strength = <8>; 472 bias-pull-up; 472 bias-pull-up; 473 }; 473 }; 474 474 475 sdc1_on: sdc1-on-state { 475 sdc1_on: sdc1-on-state { 476 clk-pins { 476 clk-pins { 477 pins = "sdc1_clk"; 477 pins = "sdc1_clk"; 478 drive-strength = <4>; 478 drive-strength = <4>; 479 bias-disable; 479 bias-disable; 480 }; 480 }; 481 481 482 cmd-data-pins { 482 cmd-data-pins { 483 pins = "sdc1_cmd", "sd 483 pins = "sdc1_cmd", "sdc1_data"; 484 drive-strength = <4>; 484 drive-strength = <4>; 485 bias-pull-up; 485 bias-pull-up; 486 }; 486 }; 487 }; 487 }; 488 488 489 touch_default_state: touch-default-sta 489 touch_default_state: touch-default-state { 490 int-pins { 490 int-pins { 491 pins = "gpio61"; 491 pins = "gpio61"; 492 function = "gpio"; 492 function = "gpio"; 493 drive-strength = <2>; 493 drive-strength = <2>; 494 bias-disable; 494 bias-disable; 495 }; 495 }; 496 496 497 reset-pins { 497 reset-pins { 498 pins = "gpio60"; 498 pins = "gpio60"; 499 function = "gpio"; 499 function = "gpio"; 500 drive-strength = <2>; 500 drive-strength = <2>; 501 bias-pull-up; 501 bias-pull-up; 502 }; 502 }; 503 }; 503 }; 504 504 505 wcnss_pin_a: wcnss-pin-active-state { 505 wcnss_pin_a: wcnss-pin-active-state { 506 wlan-pins { 506 wlan-pins { 507 pins = "gpio36", "gpio 507 pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; 508 function = "wlan"; 508 function = "wlan"; 509 drive-strength = <6>; 509 drive-strength = <6>; 510 bias-pull-down; 510 bias-pull-down; 511 }; 511 }; 512 512 513 bt-pins { 513 bt-pins { 514 pins = "gpio35", "gpio 514 pins = "gpio35", "gpio43", "gpio44"; 515 function = "bt"; 515 function = "bt"; 516 drive-strength = <2>; 516 drive-strength = <2>; 517 bias-pull-down; 517 bias-pull-down; 518 }; 518 }; 519 }; 519 }; 520 }; 520 }; 521 521 522 &usb { 522 &usb { 523 phys = <&usb_hs1_phy>; 523 phys = <&usb_hs1_phy>; 524 phy-select = <&tcsr 0xb000 0>; 524 phy-select = <&tcsr 0xb000 0>; 525 extcon = <&smbb>, <&usb_id>; 525 extcon = <&smbb>, <&usb_id>; 526 vbus-supply = <&chg_otg>; 526 vbus-supply = <&chg_otg>; 527 527 528 hnp-disable; 528 hnp-disable; 529 srp-disable; 529 srp-disable; 530 adp-disable; 530 adp-disable; 531 531 532 status = "okay"; 532 status = "okay"; 533 }; 533 }; 534 534 535 &usb_hs1_phy { 535 &usb_hs1_phy { 536 status = "okay"; 536 status = "okay"; 537 537 538 v1p8-supply = <&pm8941_l6>; 538 v1p8-supply = <&pm8941_l6>; 539 v3p3-supply = <&pm8941_l24>; 539 v3p3-supply = <&pm8941_l24>; 540 540 541 extcon = <&smbb>; 541 extcon = <&smbb>; 542 qcom,init-seq = /bits/ 8 <0x1 0x64>; 542 qcom,init-seq = /bits/ 8 <0x1 0x64>; 543 }; 543 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.