1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, AngeloGioacchino Del Re 3 * Copyright (c) 2021, AngeloGioacchino Del Regno 4 * <angelogioacchino.delreg 4 * <angelogioacchino.delregno@somainline.org> 5 * Copyright (c) 2021, Konrad Dybcio <konrad.dy 5 * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org> 6 */ 6 */ 7 7 8 #include <dt-bindings/input/input.h> << 9 #include <dt-bindings/leds/common.h> << 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h << 11 #include "msm8998.dtsi" 8 #include "msm8998.dtsi" 12 #include "pm8005.dtsi" 9 #include "pm8005.dtsi" 13 #include "pm8998.dtsi" 10 #include "pm8998.dtsi" 14 #include "pmi8998.dtsi" 11 #include "pmi8998.dtsi" >> 12 #include <dt-bindings/input/input.h> >> 13 #include <dt-bindings/leds/common.h> >> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> >> 15 #include <dt-bindings/sound/qcom,q6afe.h> >> 16 #include <dt-bindings/sound/qcom,q6asm.h> 15 17 16 / { 18 / { 17 /* required for bootloader to select c 19 /* required for bootloader to select correct board */ 18 qcom,msm-id = <0x124 0x20000>, <0x124 20 qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */ 19 qcom,board-id = <8 0>; 21 qcom,board-id = <8 0>; 20 22 21 clocks { 23 clocks { >> 24 compatible = "simple-bus"; >> 25 22 div1_mclk: divclk1 { 26 div1_mclk: divclk1 { 23 compatible = "gpio-gat 27 compatible = "gpio-gate-clock"; 24 pinctrl-0 = <&div_clk1 !! 28 pinctrl-0 = <&audio_mclk_pin>; 25 pinctrl-names = "defau 29 pinctrl-names = "default"; 26 clocks = <&rpmcc RPM_S 30 clocks = <&rpmcc RPM_SMD_DIV_CLK1>; 27 #clock-cells = <0>; 31 #clock-cells = <0>; 28 enable-gpios = <&pm899 !! 32 enable-gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>; 29 }; 33 }; 30 }; 34 }; 31 35 32 board_vbat: vbat-regulator { 36 board_vbat: vbat-regulator { 33 compatible = "regulator-fixed" 37 compatible = "regulator-fixed"; 34 regulator-name = "VBAT"; 38 regulator-name = "VBAT"; 35 39 36 regulator-min-microvolt = <400 40 regulator-min-microvolt = <4000000>; 37 regulator-max-microvolt = <400 41 regulator-max-microvolt = <4000000>; 38 regulator-always-on; 42 regulator-always-on; 39 regulator-boot-on; 43 regulator-boot-on; 40 }; 44 }; 41 45 42 cam0_vdig_vreg: cam0-vdig { 46 cam0_vdig_vreg: cam0-vdig { 43 compatible = "regulator-fixed" 47 compatible = "regulator-fixed"; 44 regulator-name = "cam0_vdig"; 48 regulator-name = "cam0_vdig"; 45 startup-delay-us = <0>; 49 startup-delay-us = <0>; 46 enable-active-high; 50 enable-active-high; 47 gpio = <&tlmm 21 GPIO_ACTIVE_H 51 gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>; 48 pinctrl-names = "default"; 52 pinctrl-names = "default"; 49 pinctrl-0 = <&main_cam_pwr_en> !! 53 pinctrl-0 = <&cam0_vdig_default>; 50 }; 54 }; 51 55 52 cam1_vdig_vreg: cam1-vdig { 56 cam1_vdig_vreg: cam1-vdig { 53 compatible = "regulator-fixed" 57 compatible = "regulator-fixed"; 54 regulator-name = "cam1_vdig"; 58 regulator-name = "cam1_vdig"; 55 startup-delay-us = <0>; 59 startup-delay-us = <0>; 56 enable-active-high; 60 enable-active-high; 57 gpio = <&tlmm 25 GPIO_ACTIVE_H 61 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; 58 pinctrl-names = "default"; 62 pinctrl-names = "default"; 59 pinctrl-0 = <&chat_cam_pwr_en> !! 63 pinctrl-0 = <&cam1_vdig_default>; 60 vin-supply = <&vreg_s3a_1p35>; 64 vin-supply = <&vreg_s3a_1p35>; 61 }; 65 }; 62 66 63 cam_vio_vreg: cam-vio-vreg { 67 cam_vio_vreg: cam-vio-vreg { 64 compatible = "regulator-fixed" 68 compatible = "regulator-fixed"; 65 regulator-name = "cam_vio_vreg 69 regulator-name = "cam_vio_vreg"; 66 startup-delay-us = <0>; 70 startup-delay-us = <0>; 67 enable-active-high; 71 enable-active-high; 68 gpio = <&pmi8998_gpios 1 GPIO_ !! 72 gpio = <&pmi8998_gpio 1 GPIO_ACTIVE_HIGH>; 69 pinctrl-names = "default"; 73 pinctrl-names = "default"; 70 pinctrl-0 = <&main_cam_pwr_io_ !! 74 pinctrl-0 = <&cam_vio_default>; 71 vin-supply = <&vreg_lvs1a_1p8> 75 vin-supply = <&vreg_lvs1a_1p8>; 72 }; 76 }; 73 77 74 touch_vddio_vreg: touch-vddio-vreg { 78 touch_vddio_vreg: touch-vddio-vreg { 75 compatible = "regulator-fixed" 79 compatible = "regulator-fixed"; 76 regulator-name = "touch_vddio_ 80 regulator-name = "touch_vddio_vreg"; 77 startup-delay-us = <10000>; 81 startup-delay-us = <10000>; 78 gpio = <&tlmm 133 GPIO_ACTIVE_ 82 gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>; 79 pinctrl-names = "default"; 83 pinctrl-names = "default"; 80 pinctrl-0 = <&ts_vddio_en>; 84 pinctrl-0 = <&ts_vddio_en>; 81 }; 85 }; 82 86 83 vph_pwr: vph-pwr-regulator { 87 vph_pwr: vph-pwr-regulator { 84 compatible = "regulator-fixed" 88 compatible = "regulator-fixed"; 85 regulator-name = "vph_pwr"; 89 regulator-name = "vph_pwr"; 86 regulator-always-on; 90 regulator-always-on; 87 regulator-boot-on; 91 regulator-boot-on; 88 }; 92 }; 89 93 90 extcon_usb: extcon-usb { << 91 compatible = "linux,extcon-usb << 92 id-gpios = <&tlmm 38 GPIO_ACTI << 93 vbus-gpios = <&tlmm 128 GPIO_A << 94 pinctrl-names = "default"; << 95 pinctrl-0 = <&cc_dir_default & << 96 }; << 97 << 98 gpio-keys { 94 gpio-keys { 99 compatible = "gpio-keys"; 95 compatible = "gpio-keys"; 100 label = "Side buttons"; 96 label = "Side buttons"; 101 pinctrl-0 = <&focus_n &snapsho << 102 pinctrl-names = "default"; 97 pinctrl-names = "default"; 103 button-camera-focus { !! 98 pinctrl-0 = <&vol_down_pin_a>, <&cam_focus_pin_a>, 104 label = "Camera Focus" !! 99 <&cam_snapshot_pin_a>; 105 gpios = <&pm8998_gpios !! 100 vol-down { 106 linux,code = <KEY_CAME !! 101 label = "Volume Down"; >> 102 gpios = <&pm8998_gpio 5 GPIO_ACTIVE_LOW>; >> 103 linux,input-type = <EV_KEY>; >> 104 linux,code = <KEY_VOLUMEDOWN>; >> 105 gpio-key,wakeup; 107 debounce-interval = <1 106 debounce-interval = <15>; 108 }; 107 }; 109 108 110 button-camera-snapshot { !! 109 camera-snapshot { 111 label = "Camera Snapsh 110 label = "Camera Snapshot"; 112 gpios = <&pm8998_gpios !! 111 gpios = <&pm8998_gpio 7 GPIO_ACTIVE_LOW>; >> 112 linux,input-type = <EV_KEY>; 113 linux,code = <KEY_CAME 113 linux,code = <KEY_CAMERA>; 114 debounce-interval = <1 114 debounce-interval = <15>; 115 }; 115 }; 116 116 117 button-vol-down { !! 117 camera-focus { 118 label = "Volume Down"; !! 118 label = "Camera Focus"; 119 gpios = <&pm8998_gpios !! 119 gpios = <&pm8998_gpio 8 GPIO_ACTIVE_LOW>; 120 linux,code = <KEY_VOLU !! 120 linux,input-type = <EV_KEY>; 121 wakeup-source; !! 121 linux,code = <KEY_CAMERA_FOCUS>; 122 debounce-interval = <1 << 123 }; << 124 << 125 button-vol-up { << 126 label = "Volume Up"; << 127 gpios = <&pm8998_gpios << 128 linux,code = <KEY_VOLU << 129 wakeup-source; << 130 debounce-interval = <1 122 debounce-interval = <15>; 131 }; 123 }; 132 }; 124 }; 133 125 134 gpio-hall-sensor { 126 gpio-hall-sensor { 135 compatible = "gpio-keys"; 127 compatible = "gpio-keys"; 136 label = "Hall sensors"; 128 label = "Hall sensors"; 137 pinctrl-names = "default"; 129 pinctrl-names = "default"; 138 pinctrl-0 = <&acc_cover_open>; !! 130 pinctrl-0 = <&hall_sensor0_default>; 139 131 140 event-hall-sensor0 { !! 132 hall-sensor0 { 141 label = "Cover Hall Se 133 label = "Cover Hall Sensor"; 142 gpios = <&tlmm 124 GPI 134 gpios = <&tlmm 124 GPIO_ACTIVE_LOW>; 143 linux,input-type = <EV 135 linux,input-type = <EV_SW>; 144 linux,code = <SW_LID>; 136 linux,code = <SW_LID>; 145 wakeup-source; !! 137 gpio-key,wakeup; 146 debounce-interval = <3 138 debounce-interval = <30>; 147 }; 139 }; 148 }; 140 }; 149 141 150 reserved-memory { 142 reserved-memory { 151 #address-cells = <2>; 143 #address-cells = <2>; 152 #size-cells = <2>; 144 #size-cells = <2>; 153 ranges; 145 ranges; 154 146 155 hyp_mem: memory@85800000 { 147 hyp_mem: memory@85800000 { 156 reg = <0x0 0x85800000 148 reg = <0x0 0x85800000 0x0 0x3700000>; 157 no-map; 149 no-map; 158 }; 150 }; 159 151 160 cont_splash_mem: memory@9d4000 152 cont_splash_mem: memory@9d400000 { 161 reg = <0x0 0x9d400000 153 reg = <0x0 0x9d400000 0x0 0x2400000>; 162 no-map; 154 no-map; 163 }; 155 }; 164 156 165 zap_shader_region: memory@f640 157 zap_shader_region: memory@f6400000 { 166 compatible = "shared-d 158 compatible = "shared-dma-pool"; 167 reg = <0x0 0xf6400000 159 reg = <0x0 0xf6400000 0x0 0x2000>; 168 no-map; 160 no-map; 169 }; 161 }; 170 162 171 adsp_region: memory@fe000000 { 163 adsp_region: memory@fe000000 { 172 reg = <0x0 0xfe000000 164 reg = <0x0 0xfe000000 0x0 0x800000>; 173 no-map; 165 no-map; 174 }; 166 }; 175 167 176 qseecom_region: memory@fe80000 168 qseecom_region: memory@fe800000 { 177 reg = <0x0 0xfe800000 169 reg = <0x0 0xfe800000 0x0 0x1400000>; 178 no-map; 170 no-map; 179 }; 171 }; 180 172 181 ramoops@ffc00000 { 173 ramoops@ffc00000 { 182 compatible = "ramoops" 174 compatible = "ramoops"; 183 reg = <0x0 0xffc00000 175 reg = <0x0 0xffc00000 0x0 0x100000>; 184 record-size = <0x10000 176 record-size = <0x10000>; 185 console-size = <0x6000 177 console-size = <0x60000>; 186 ftrace-size = <0x10000 178 ftrace-size = <0x10000>; 187 pmsg-size = <0x20000>; 179 pmsg-size = <0x20000>; 188 ecc-size = <16>; 180 ecc-size = <16>; 189 }; 181 }; 190 }; 182 }; 191 183 192 vibrator { 184 vibrator { 193 compatible = "gpio-vibrator"; 185 compatible = "gpio-vibrator"; 194 enable-gpios = <&pmi8998_gpios !! 186 enable-gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>; 195 pinctrl-names = "default"; 187 pinctrl-names = "default"; 196 pinctrl-0 = <&vib_ldo_en>; !! 188 pinctrl-0 = <&vib_default>; 197 }; 189 }; 198 }; 190 }; 199 191 200 &blsp1_i2c5 { 192 &blsp1_i2c5 { 201 status = "okay"; 193 status = "okay"; 202 clock-frequency = <355000>; 194 clock-frequency = <355000>; 203 195 204 touchscreen@2c { 196 touchscreen@2c { 205 compatible = "syna,rmi4-i2c"; 197 compatible = "syna,rmi4-i2c"; 206 reg = <0x2c>; 198 reg = <0x2c>; 207 #address-cells = <1>; 199 #address-cells = <1>; 208 #size-cells = <0>; 200 #size-cells = <0>; 209 interrupts-extended = <&tlmm 1 201 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>; 210 202 211 pinctrl-names = "default"; 203 pinctrl-names = "default"; 212 pinctrl-0 = <&ts_int_n>; 204 pinctrl-0 = <&ts_int_n>; 213 205 214 vdd-supply = <&vreg_l28_3p0>; 206 vdd-supply = <&vreg_l28_3p0>; 215 vio-supply = <&touch_vddio_vre 207 vio-supply = <&touch_vddio_vreg>; 216 208 217 syna,reset-delay-ms = <220>; 209 syna,reset-delay-ms = <220>; 218 syna,startup-delay-ms = <1000> 210 syna,startup-delay-ms = <1000>; 219 211 220 rmi4-f01@1 { 212 rmi4-f01@1 { 221 reg = <0x01>; 213 reg = <0x01>; 222 syna,nosleep-mode = <1 214 syna,nosleep-mode = <1>; 223 }; 215 }; 224 216 225 rmi4-f11@11 { 217 rmi4-f11@11 { 226 reg = <0x11>; 218 reg = <0x11>; 227 syna,sensor-type = <1> 219 syna,sensor-type = <1>; 228 }; 220 }; 229 }; 221 }; 230 }; 222 }; 231 223 232 &blsp1_i2c5_sleep { 224 &blsp1_i2c5_sleep { 233 bias-disable; 225 bias-disable; 234 }; 226 }; 235 227 236 &blsp1_uart3 { 228 &blsp1_uart3 { 237 status = "okay"; 229 status = "okay"; 238 230 239 bluetooth { 231 bluetooth { 240 compatible = "qcom,wcn3990-bt" 232 compatible = "qcom,wcn3990-bt"; 241 233 242 vddio-supply = <&vreg_s4a_1p8> 234 vddio-supply = <&vreg_s4a_1p8>; 243 vddxo-supply = <&vreg_l7a_1p8> 235 vddxo-supply = <&vreg_l7a_1p8>; 244 vddrf-supply = <&vreg_l17a_1p3 236 vddrf-supply = <&vreg_l17a_1p3>; 245 vddch0-supply = <&vreg_l25a_3p 237 vddch0-supply = <&vreg_l25a_3p3>; 246 max-speed = <3200000>; 238 max-speed = <3200000>; 247 239 248 clocks = <&rpmcc RPM_SMD_RF_CL 240 clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>; 249 }; 241 }; 250 }; 242 }; 251 243 252 &blsp2_uart1 { 244 &blsp2_uart1 { 253 status = "okay"; 245 status = "okay"; 254 }; 246 }; 255 247 256 &blsp2_i2c2 { << 257 status = "okay"; << 258 << 259 proximity@29 { << 260 compatible = "st,vl53l0x"; << 261 reg = <0x29>; << 262 << 263 interrupt-parent = <&tlmm>; << 264 interrupts = <22 IRQ_TYPE_EDGE << 265 << 266 reset-gpios = <&tlmm 27 GPIO_A << 267 vdd-supply = <&cam_vio_vreg>; << 268 << 269 pinctrl-names = "default"; << 270 pinctrl-0 = <&tof_int_n &tof_r << 271 }; << 272 }; << 273 << 274 &ibb { 248 &ibb { 275 regulator-min-microamp = <800000>; 249 regulator-min-microamp = <800000>; 276 regulator-max-microamp = <800000>; 250 regulator-max-microamp = <800000>; 277 regulator-enable-ramp-delay = <200>; 251 regulator-enable-ramp-delay = <200>; 278 regulator-over-current-protection; 252 regulator-over-current-protection; 279 regulator-pull-down; 253 regulator-pull-down; 280 regulator-ramp-delay = <1>; 254 regulator-ramp-delay = <1>; 281 regulator-settling-time-up-us = <600>; 255 regulator-settling-time-up-us = <600>; 282 regulator-settling-time-down-us = <100 256 regulator-settling-time-down-us = <1000>; 283 regulator-soft-start; 257 regulator-soft-start; 284 qcom,discharge-resistor-kohms = <300>; 258 qcom,discharge-resistor-kohms = <300>; 285 }; 259 }; 286 260 287 &lab { 261 &lab { 288 regulator-min-microamp = <200000>; 262 regulator-min-microamp = <200000>; 289 regulator-max-microamp = <200000>; 263 regulator-max-microamp = <200000>; 290 regulator-enable-ramp-delay = <500>; 264 regulator-enable-ramp-delay = <500>; 291 regulator-over-current-protection; 265 regulator-over-current-protection; 292 regulator-pull-down; 266 regulator-pull-down; 293 regulator-ramp-delay = <1>; 267 regulator-ramp-delay = <1>; 294 regulator-settling-time-up-us = <50000 268 regulator-settling-time-up-us = <50000>; 295 regulator-settling-time-down-us = <300 269 regulator-settling-time-down-us = <3000>; 296 regulator-soft-start; 270 regulator-soft-start; 297 }; 271 }; 298 272 299 &pm8005_gpios { !! 273 &mmcc { 300 gpio-line-names = "NC", /* GPIO_1 */ !! 274 status = "ok"; 301 "NC", << 302 "SLB", << 303 "OPTION_1_PM8005"; << 304 }; 275 }; 305 276 306 &pm8005_regulators { !! 277 &mmss_smmu { 307 /* VDD_GFX supply */ !! 278 status = "ok"; 308 pm8005_s1: s1 { << 309 regulator-min-microvolt = <524 << 310 regulator-max-microvolt = <108 << 311 regulator-enable-ramp-delay = << 312 /* Hack until we rig up the gp << 313 regulator-always-on; << 314 }; << 315 }; 279 }; 316 280 317 &pm8998_gpios { !! 281 &pm8005_lsid1 { 318 gpio-line-names = "UIM_BATT_ALARM", /* !! 282 pm8005-regulators { 319 "NC", !! 283 compatible = "qcom,pm8005-regulators"; 320 "WLAN_SW_CTRL (DISAL << 321 "SSC_PWR_EN", << 322 "VOL_DOWN_N", << 323 "VOL_UP_N", << 324 "SNAPSHOT_N", << 325 "FOCUS_N", << 326 "FLASH_THERM", << 327 "", /* GPIO_10 */ << 328 "", << 329 "", << 330 "DIV_CLK1", << 331 "NC", << 332 "NC (DISALLOWED)", << 333 "DIV_CLK3", << 334 "NC", << 335 "NC", << 336 "NC", << 337 "NC (DISALLOWED)", / << 338 "NFC_CLK_REQ", << 339 "NC (DISALLOWED)", << 340 "WCSS_PWR_REQ", << 341 "OPTION_1 (DISALLOWE << 342 "OPTION_2 (DISALLOWE << 343 "PM_SLB (DISALLOWED) << 344 284 345 vol_down_n: vol-down-n-state { !! 285 vdd_s1-supply = <&vph_pwr>; 346 pins = "gpio5"; !! 286 347 function = PMIC_GPIO_FUNC_NORM !! 287 /* VDD_GFX supply */ 348 bias-pull-up; !! 288 pm8005_s1: s1 { 349 input-enable; !! 289 regulator-min-microvolt = <524000>; 350 qcom,drive-strength = <PMIC_GP !! 290 regulator-max-microvolt = <1088000>; >> 291 regulator-enable-ramp-delay = <500>; >> 292 regulator-always-on; >> 293 }; 351 }; 294 }; >> 295 }; 352 296 353 vol_up_n: vol-up-n-state { !! 297 &pm8998_gpio { 354 pins = "gpio6"; !! 298 vol_down_pin_a: vol-down-active { >> 299 pins = "gpio5"; 355 function = PMIC_GPIO_FUNC_NORM 300 function = PMIC_GPIO_FUNC_NORMAL; 356 bias-pull-up; 301 bias-pull-up; 357 input-enable; 302 input-enable; 358 qcom,drive-strength = <PMIC_GP 303 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 359 }; 304 }; 360 305 361 focus_n: focus-n-state { !! 306 cam_focus_pin_a: cam-focus-btn-active { 362 pins = "gpio7"; 307 pins = "gpio7"; 363 function = PMIC_GPIO_FUNC_NORM 308 function = PMIC_GPIO_FUNC_NORMAL; 364 bias-pull-up; 309 bias-pull-up; 365 input-enable; 310 input-enable; 366 qcom,drive-strength = <PMIC_GP 311 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 367 }; 312 }; 368 313 369 snapshot_n: snapshot-n-state { !! 314 cam_snapshot_pin_a: cam-snapshot-btn-active { 370 pins = "gpio8"; 315 pins = "gpio8"; 371 function = PMIC_GPIO_FUNC_NORM 316 function = PMIC_GPIO_FUNC_NORMAL; 372 bias-pull-up; 317 bias-pull-up; 373 input-enable; 318 input-enable; 374 qcom,drive-strength = <PMIC_GP 319 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 375 }; 320 }; 376 321 377 div_clk1: div-clk1-state { !! 322 audio_mclk_pin: audio-mclk-pin-active { 378 pins = "gpio13"; 323 pins = "gpio13"; 379 function = "func2"; 324 function = "func2"; 380 power-source = <0>; 325 power-source = <0>; 381 }; 326 }; 382 }; 327 }; 383 328 384 &pmi8998_gpios { !! 329 &pmi8998_gpio { 385 gpio-line-names = "MAIN_CAM_PWR_IO_EN" !! 330 cam_vio_default: cam-vio-active { 386 "NC", << 387 "NC", << 388 "TYPEC_UUSB_SEL", << 389 "VIB_LDO_EN", << 390 "NC", << 391 "DISPLAY_TYPE_SEL", << 392 "NC", << 393 "NC", << 394 "NC", /* GPIO_10 */ << 395 "NC", << 396 "DIV_CLK3", << 397 "SPMI_I2C_SEL", << 398 "NC"; << 399 << 400 main_cam_pwr_io_en: main-cam-pwr-io-en << 401 pins = "gpio1"; 331 pins = "gpio1"; 402 function = PMIC_GPIO_FUNC_NORM 332 function = PMIC_GPIO_FUNC_NORMAL; 403 bias-disable; 333 bias-disable; 404 drive-push-pull; 334 drive-push-pull; 405 output-low; 335 output-low; 406 qcom,drive-strength = <PMIC_GP 336 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>; 407 power-source = <1>; 337 power-source = <1>; 408 }; 338 }; 409 339 410 vib_ldo_en: vib-ldo-en-state { !! 340 vib_default: vib-en { 411 pins = "gpio5"; 341 pins = "gpio5"; 412 function = PMIC_GPIO_FUNC_NORM 342 function = PMIC_GPIO_FUNC_NORMAL; 413 bias-disable; 343 bias-disable; 414 drive-push-pull; 344 drive-push-pull; 415 output-low; 345 output-low; 416 qcom,drive-strength = <PMIC_GP 346 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 417 power-source = <0>; 347 power-source = <0>; 418 }; 348 }; 419 }; 349 }; 420 350 421 &pmi8998_lpg { !! 351 &pm8998_pon { 422 qcom,power-source = <1>; !! 352 resin { 423 !! 353 compatible = "qcom,pm8941-resin"; 424 status = "okay"; !! 354 interrupts = <GIC_SPI 0x8 1 IRQ_TYPE_EDGE_BOTH>; 425 !! 355 debounce = <15625>; 426 multi-led { !! 356 bias-pull-up; 427 color = <LED_COLOR_ID_RGB>; !! 357 linux,code = <KEY_VOLUMEUP>; 428 function = LED_FUNCTION_STATUS << 429 << 430 #address-cells = <1>; << 431 #size-cells = <0>; << 432 << 433 led@3 { << 434 reg = <3>; << 435 color = <LED_COLOR_ID_ << 436 }; << 437 << 438 led@4 { << 439 reg = <4>; << 440 color = <LED_COLOR_ID_ << 441 }; << 442 << 443 led@5 { << 444 reg = <5>; << 445 color = <LED_COLOR_ID_ << 446 }; << 447 }; 358 }; 448 }; 359 }; 449 360 450 &qusb2phy { 361 &qusb2phy { 451 status = "okay"; 362 status = "okay"; 452 363 453 vdda-pll-supply = <&vreg_l12a_1p8>; 364 vdda-pll-supply = <&vreg_l12a_1p8>; 454 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 365 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 455 }; 366 }; 456 367 457 &rpm_requests { 368 &rpm_requests { 458 regulators-0 { !! 369 pm8998-regulators { 459 compatible = "qcom,rpm-pm8998- 370 compatible = "qcom,rpm-pm8998-regulators"; 460 371 461 vdd_s1-supply = <&vph_pwr>; 372 vdd_s1-supply = <&vph_pwr>; 462 vdd_s2-supply = <&vph_pwr>; 373 vdd_s2-supply = <&vph_pwr>; 463 vdd_s3-supply = <&vph_pwr>; 374 vdd_s3-supply = <&vph_pwr>; 464 vdd_s4-supply = <&vph_pwr>; 375 vdd_s4-supply = <&vph_pwr>; 465 vdd_s5-supply = <&vph_pwr>; 376 vdd_s5-supply = <&vph_pwr>; 466 vdd_s6-supply = <&vph_pwr>; 377 vdd_s6-supply = <&vph_pwr>; 467 vdd_s7-supply = <&vph_pwr>; 378 vdd_s7-supply = <&vph_pwr>; 468 vdd_s8-supply = <&vph_pwr>; 379 vdd_s8-supply = <&vph_pwr>; 469 vdd_s9-supply = <&vph_pwr>; 380 vdd_s9-supply = <&vph_pwr>; 470 vdd_s10-supply = <&vph_pwr>; 381 vdd_s10-supply = <&vph_pwr>; 471 vdd_s11-supply = <&vph_pwr>; 382 vdd_s11-supply = <&vph_pwr>; 472 vdd_s12-supply = <&vph_pwr>; 383 vdd_s12-supply = <&vph_pwr>; 473 vdd_s13-supply = <&vph_pwr>; 384 vdd_s13-supply = <&vph_pwr>; 474 vdd_l1_l27-supply = <&vreg_s7a 385 vdd_l1_l27-supply = <&vreg_s7a_1p025>; 475 vdd_l2_l8_l17-supply = <&vreg_ 386 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>; 476 vdd_l3_l11-supply = <&vreg_s7a 387 vdd_l3_l11-supply = <&vreg_s7a_1p025>; 477 vdd_l4_l5-supply = <&vreg_s7a_ 388 vdd_l4_l5-supply = <&vreg_s7a_1p025>; 478 vdd_l6-supply = <&vreg_s5a_2p0 389 vdd_l6-supply = <&vreg_s5a_2p04>; 479 vdd_l7_l12_l14_l15-supply = <& 390 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>; 480 vdd_l9-supply = <&vreg_bob>; 391 vdd_l9-supply = <&vreg_bob>; 481 vdd_l10_l23_l25-supply = <&vre 392 vdd_l10_l23_l25-supply = <&vreg_bob>; 482 vdd_l13_l19_l21-supply = <&vre 393 vdd_l13_l19_l21-supply = <&vreg_bob>; 483 vdd_l16_l28-supply = <&vreg_bo 394 vdd_l16_l28-supply = <&vreg_bob>; 484 vdd_l18_l22-supply = <&vreg_bo 395 vdd_l18_l22-supply = <&vreg_bob>; 485 vdd_l20_l24-supply = <&vreg_bo 396 vdd_l20_l24-supply = <&vreg_bob>; 486 vdd_l26-supply = <&vreg_s3a_1p 397 vdd_l26-supply = <&vreg_s3a_1p35>; 487 vdd_lvs1_lvs2-supply = <&vreg_ 398 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>; 488 399 489 vreg_s3a_1p35: s3 { 400 vreg_s3a_1p35: s3 { 490 regulator-min-microvol 401 regulator-min-microvolt = <1352000>; 491 regulator-max-microvol 402 regulator-max-microvolt = <1352000>; 492 }; 403 }; 493 << 494 vreg_s4a_1p8: s4 { 404 vreg_s4a_1p8: s4 { 495 regulator-min-microvol 405 regulator-min-microvolt = <1800000>; 496 regulator-max-microvol 406 regulator-max-microvolt = <1800000>; 497 regulator-system-load 407 regulator-system-load = <100000>; 498 regulator-allow-set-lo 408 regulator-allow-set-load; 499 }; 409 }; 500 << 501 vreg_s5a_2p04: s5 { 410 vreg_s5a_2p04: s5 { 502 regulator-min-microvol 411 regulator-min-microvolt = <1904000>; 503 regulator-max-microvol 412 regulator-max-microvolt = <2032000>; 504 }; 413 }; 505 << 506 vreg_s7a_1p025: s7 { 414 vreg_s7a_1p025: s7 { 507 regulator-min-microvol 415 regulator-min-microvolt = <900000>; 508 regulator-max-microvol 416 regulator-max-microvolt = <1028000>; 509 }; 417 }; 510 << 511 vreg_l1a_0p875: l1 { 418 vreg_l1a_0p875: l1 { 512 regulator-min-microvol 419 regulator-min-microvolt = <880000>; 513 regulator-max-microvol 420 regulator-max-microvolt = <880000>; 514 regulator-system-load 421 regulator-system-load = <73400>; 515 regulator-allow-set-lo 422 regulator-allow-set-load; 516 }; 423 }; 517 << 518 vreg_l2a_1p2: l2 { 424 vreg_l2a_1p2: l2 { 519 regulator-min-microvol 425 regulator-min-microvolt = <1200000>; 520 regulator-max-microvol 426 regulator-max-microvolt = <1200000>; 521 regulator-system-load 427 regulator-system-load = <12560>; 522 regulator-allow-set-lo 428 regulator-allow-set-load; 523 }; 429 }; 524 << 525 vreg_l3a_1p0: l3 { 430 vreg_l3a_1p0: l3 { 526 regulator-min-microvol 431 regulator-min-microvolt = <1000000>; 527 regulator-max-microvol 432 regulator-max-microvolt = <1000000>; 528 }; 433 }; 529 << 530 vreg_l5a_0p8: l5 { 434 vreg_l5a_0p8: l5 { 531 regulator-min-microvol 435 regulator-min-microvolt = <800000>; 532 regulator-max-microvol 436 regulator-max-microvolt = <800000>; 533 }; 437 }; 534 << 535 vreg_l6a_1p8: l6 { 438 vreg_l6a_1p8: l6 { 536 regulator-min-microvol 439 regulator-min-microvolt = <1800000>; 537 regulator-max-microvol 440 regulator-max-microvolt = <1800000>; 538 }; 441 }; 539 << 540 vreg_l7a_1p8: l7 { 442 vreg_l7a_1p8: l7 { 541 regulator-min-microvol 443 regulator-min-microvolt = <1800000>; 542 regulator-max-microvol 444 regulator-max-microvolt = <1800000>; 543 }; 445 }; 544 << 545 vreg_l8a_1p2: l8 { 446 vreg_l8a_1p2: l8 { 546 regulator-min-microvol 447 regulator-min-microvolt = <1200000>; 547 regulator-max-microvol 448 regulator-max-microvolt = <1200000>; 548 }; 449 }; 549 << 550 vreg_l9a_1p8: l9 { 450 vreg_l9a_1p8: l9 { 551 regulator-min-microvol 451 regulator-min-microvolt = <1808000>; 552 regulator-max-microvol 452 regulator-max-microvolt = <2960000>; 553 }; 453 }; 554 << 555 vreg_l10a_1p8: l10 { 454 vreg_l10a_1p8: l10 { 556 regulator-min-microvol 455 regulator-min-microvolt = <1808000>; 557 regulator-max-microvol 456 regulator-max-microvolt = <2960000>; 558 }; 457 }; 559 << 560 vreg_l11a_1p0: l11 { 458 vreg_l11a_1p0: l11 { 561 regulator-min-microvol 459 regulator-min-microvolt = <1000000>; 562 regulator-max-microvol 460 regulator-max-microvolt = <1000000>; 563 }; 461 }; 564 << 565 vreg_l12a_1p8: l12 { 462 vreg_l12a_1p8: l12 { 566 regulator-min-microvol 463 regulator-min-microvolt = <1800000>; 567 regulator-max-microvol 464 regulator-max-microvolt = <1800000>; 568 }; 465 }; 569 << 570 vreg_l13a_2p95: l13 { 466 vreg_l13a_2p95: l13 { 571 regulator-min-microvol 467 regulator-min-microvolt = <1808000>; 572 regulator-max-microvol 468 regulator-max-microvolt = <2960000>; 573 regulator-allow-set-lo 469 regulator-allow-set-load; 574 }; 470 }; 575 << 576 vreg_l14a_1p85: l14 { 471 vreg_l14a_1p85: l14 { 577 regulator-min-microvol 472 regulator-min-microvolt = <1848000>; 578 regulator-max-microvol 473 regulator-max-microvolt = <1856000>; 579 regulator-system-load 474 regulator-system-load = <32000>; 580 regulator-allow-set-lo 475 regulator-allow-set-load; 581 }; 476 }; 582 << 583 vreg_l15a_1p8: l15 { 477 vreg_l15a_1p8: l15 { 584 regulator-min-microvol 478 regulator-min-microvolt = <1800000>; 585 regulator-max-microvol 479 regulator-max-microvolt = <1800000>; 586 }; 480 }; 587 << 588 vreg_l16a_2p7: l16 { 481 vreg_l16a_2p7: l16 { 589 regulator-min-microvol 482 regulator-min-microvolt = <2704000>; 590 regulator-max-microvol 483 regulator-max-microvolt = <2704000>; 591 }; 484 }; 592 << 593 vreg_l17a_1p3: l17 { 485 vreg_l17a_1p3: l17 { 594 regulator-min-microvol 486 regulator-min-microvolt = <1304000>; 595 regulator-max-microvol 487 regulator-max-microvolt = <1304000>; 596 }; 488 }; 597 !! 489 vreg_l18a_2p85: l18 {}; 598 vreg_l18a_2p85: l18 { }; << 599 << 600 vreg_l19a_2p7: l19 { 490 vreg_l19a_2p7: l19 { 601 regulator-min-microvol 491 regulator-min-microvolt = <2696000>; 602 regulator-max-microvol 492 regulator-max-microvolt = <2704000>; 603 }; 493 }; 604 << 605 vreg_l20a_2p95: l20 { 494 vreg_l20a_2p95: l20 { 606 regulator-min-microvol 495 regulator-min-microvolt = <2960000>; 607 regulator-max-microvol 496 regulator-max-microvolt = <2960000>; 608 regulator-system-load 497 regulator-system-load = <10000>; 609 regulator-allow-set-lo 498 regulator-allow-set-load; 610 }; 499 }; 611 << 612 vreg_l21a_2p95: l21 { 500 vreg_l21a_2p95: l21 { 613 regulator-min-microvol 501 regulator-min-microvolt = <2960000>; 614 regulator-max-microvol 502 regulator-max-microvolt = <2960000>; 615 regulator-system-load 503 regulator-system-load = <800000>; 616 regulator-allow-set-lo 504 regulator-allow-set-load; 617 }; 505 }; 618 << 619 vreg_l22a_2p85: l22 { }; 506 vreg_l22a_2p85: l22 { }; 620 << 621 vreg_l23a_3p3: l23 { 507 vreg_l23a_3p3: l23 { 622 regulator-min-microvol 508 regulator-min-microvolt = <3312000>; 623 regulator-max-microvol 509 regulator-max-microvolt = <3312000>; 624 }; 510 }; 625 << 626 vreg_l24a_3p075: l24 { 511 vreg_l24a_3p075: l24 { 627 regulator-min-microvol 512 regulator-min-microvolt = <3088000>; 628 regulator-max-microvol 513 regulator-max-microvolt = <3088000>; 629 }; 514 }; 630 << 631 vreg_l25a_3p3: l25 { 515 vreg_l25a_3p3: l25 { 632 regulator-min-microvol 516 regulator-min-microvolt = <3104000>; 633 regulator-max-microvol 517 regulator-max-microvolt = <3312000>; 634 }; 518 }; 635 << 636 vreg_l26a_1p2: l26 { 519 vreg_l26a_1p2: l26 { 637 regulator-min-microvol 520 regulator-min-microvolt = <1200000>; 638 regulator-max-microvol 521 regulator-max-microvolt = <1200000>; 639 regulator-allow-set-lo 522 regulator-allow-set-load; 640 }; 523 }; 641 << 642 vreg_l28_3p0: l28 { 524 vreg_l28_3p0: l28 { 643 regulator-min-microvol 525 regulator-min-microvolt = <3000000>; 644 regulator-max-microvol 526 regulator-max-microvolt = <3000000>; 645 }; 527 }; 646 << 647 vreg_lvs1a_1p8: lvs1 { }; 528 vreg_lvs1a_1p8: lvs1 { }; 648 << 649 vreg_lvs2a_1p8: lvs2 { }; 529 vreg_lvs2a_1p8: lvs2 { }; 650 }; 530 }; 651 531 652 regulators-1 { !! 532 pmi8998-regulators { 653 compatible = "qcom,rpm-pmi8998 533 compatible = "qcom,rpm-pmi8998-regulators"; 654 534 655 vdd_bob-supply = <&vph_pwr>; 535 vdd_bob-supply = <&vph_pwr>; 656 536 657 vreg_bob: bob { 537 vreg_bob: bob { 658 regulator-min-microvol 538 regulator-min-microvolt = <3312000>; 659 regulator-max-microvol 539 regulator-max-microvolt = <3600000>; 660 }; 540 }; 661 }; 541 }; 662 }; 542 }; 663 543 664 &sdhc2 { 544 &sdhc2 { 665 status = "okay"; 545 status = "okay"; 666 cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH> 546 cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; 667 547 668 vmmc-supply = <&vreg_l21a_2p95>; 548 vmmc-supply = <&vreg_l21a_2p95>; 669 vqmmc-supply = <&vreg_l13a_2p95>; 549 vqmmc-supply = <&vreg_l13a_2p95>; 670 550 671 pinctrl-names = "default", "sleep"; 551 pinctrl-names = "default", "sleep"; 672 pinctrl-0 = <&sdc2_on &sdc2_cd>; !! 552 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 673 pinctrl-1 = <&sdc2_off &sdc2_cd>; !! 553 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 674 }; 554 }; 675 555 676 &tlmm { 556 &tlmm { 677 gpio-reserved-ranges = <0 4>, <81 4>; 557 gpio-reserved-ranges = <0 4>, <81 4>; 678 gpio-line-names = "", /* GPIO_0 */ << 679 "", << 680 "", << 681 "", << 682 "DEBUG_UART_TX", << 683 "DEBUG_UART_RX", << 684 "CAMSENSOR_I2C_SDA", << 685 "CAMSENSOR_I2C_SCL", << 686 "NC", << 687 "NC", << 688 "MDP_VSYNC_P", /* GP << 689 "RGBC_IR_INT", << 690 "NFC_VEN", << 691 "CAM_MCLK0", << 692 "CAM_MCLK1", << 693 "NC", << 694 "NC", << 695 "CCI_I2C_SDA0", << 696 "CCI_I2C_SCL0", << 697 "CCI_I2C_SDA1", << 698 "CCI_I2C_SCL1", /* G << 699 "MAIN_CAM_PWR_EN", << 700 "TOF_INT_N", << 701 "NC", << 702 "NC", << 703 "CHAT_CAM_PWR_EN", << 704 "NC", << 705 "TOF_RESET_N", << 706 "CAM2_RSTN", << 707 "NC", << 708 "CAM1_RSTN", /* GPIO << 709 "NC", << 710 "NC", << 711 "NC", << 712 "NC", << 713 "NC", << 714 "NC", << 715 "NC", << 716 "CC_DIR", << 717 "UIM2_DETECT_EN", << 718 "FP_RESET_N", /* GPI << 719 "NC", << 720 "NC", << 721 "NC", << 722 "NC", << 723 "BT_HCI_UART_TXD", << 724 "BT_HCI_UART_RXD", << 725 "BT_HCI_UART_CTS_N", << 726 "BT_HCI_UART_RFR_N", << 727 "NC", << 728 "NC", /* GPIO_50 */ << 729 "NC", << 730 "NC", << 731 "CODEC_INT2_N", << 732 "CODEC_INT1_N", << 733 "APPS_I2C_SDA", << 734 "APPS_I2C_SCL", << 735 "FORCED_USB_BOOT", << 736 "NC", << 737 "NC", << 738 "NC", /* GPIO_60 */ << 739 "NC", << 740 "NC", << 741 "TRAY2_DET_DS", << 742 "CODEC_RST_N", << 743 "WSA_L_EN", << 744 "WSA_R_EN", << 745 "NC", << 746 "NC", << 747 "NC", << 748 "LPASS_SLIMBUS_CLK", << 749 "LPASS_SLIMBUS_DATA0 << 750 "LPASS_SLIMBUS_DATA1 << 751 "BT_FM_SLIMBUS_DATA" << 752 "BT_FM_SLIMBUS_CLK", << 753 "NC", << 754 "RF_LCD_ID_EN", << 755 "NC", << 756 "NC", << 757 "NC", << 758 "NC", /* GPIO_80 */ << 759 "SW_SERVICE", << 760 "TX_GTR_THRES_IN", << 761 "HW_ID0", << 762 "HW_ID1", << 763 "NC", << 764 "NC", << 765 "TS_I2C_SDA", << 766 "TS_I2C_SCL", << 767 "TS_RESET_N", << 768 "NC", /* GPIO_90 */ << 769 "NC", << 770 "NFC_IRQ", << 771 "NFC_DWLD_EN", << 772 "DISP_RESET_N", << 773 "TRAY2_DET", << 774 "CAM_SOF", << 775 "RFFE6_CLK", << 776 "RFFE6_DATA", << 777 "DEBUG_GPIO0", << 778 "DEBUG_GPIO1", /* GP << 779 "GRFC4", << 780 "NC", << 781 "NC", << 782 "RSVD", << 783 "UIM2_DATA", << 784 "UIM2_CLK", << 785 "UIM2_RESET", << 786 "UIM2_PRESENT", << 787 "UIM1_DATA", << 788 "UIM1_CLK", /* GPIO_ << 789 "UIM1_RST", << 790 "UIM1_PRESENT", << 791 "UIM_BATT_ALARM", << 792 "RSVD", << 793 "NC", << 794 "NC", << 795 "ACCEL_INT", << 796 "GYRO_INT", << 797 "COMPASS_INT", << 798 "ALS_PROX_INT_N", /* << 799 "FP_INT_N", << 800 "NC", << 801 "BAROMETER_INT", << 802 "ACC_COVER_OPEN", << 803 "TS_INT_N", << 804 "NC", << 805 "NC", << 806 "USB_DETECT_EN", << 807 "NC", << 808 "QLINK_REQUEST", /* << 809 "QLINK_ENABLE", << 810 "NC", << 811 "NC", << 812 "WMSS_RESET_N", << 813 "PA_INDICATOR_OR", << 814 "NC", << 815 "RFFE3_DATA", << 816 "RFFE3_CLK", << 817 "RFFE4_DATA", << 818 "RFFE4_CLK", /* GPIO << 819 "RFFE5_DATA", << 820 "RFFE5_CLK", << 821 "GNSS_EN", << 822 "MSS_LTE_COXM_TXD", << 823 "MSS_LTE_COXM_RXD", << 824 "RFFE2_DATA", << 825 "RFFE2_CLK", << 826 "RFFE1_DATA", << 827 "RFFE1_CLK"; << 828 558 829 mdp_vsync_p: mdp-vsync-p-state { !! 559 mdp_vsync_n: mdp-vsync-n { 830 pins = "gpio10"; 560 pins = "gpio10"; 831 function = "mdp_vsync_a"; 561 function = "mdp_vsync_a"; 832 drive-strength = <2>; 562 drive-strength = <2>; 833 bias-pull-down; 563 bias-pull-down; 834 }; 564 }; 835 565 836 nfc_ven: nfc-ven-state { !! 566 nfc_ven: nfc-ven { 837 pins = "gpio12"; 567 pins = "gpio12"; 838 function = "gpio"; 568 function = "gpio"; 839 bias-disable; 569 bias-disable; 840 drive-strength = <2>; 570 drive-strength = <2>; 841 output-low; 571 output-low; 842 }; 572 }; 843 573 844 cam_mclk0_active: cam-mclk0-active-sta !! 574 msm_mclk0_default: msm-mclk0-active { 845 pins = "gpio13"; 575 pins = "gpio13"; 846 function = "cam_mclk"; 576 function = "cam_mclk"; 847 drive-strength = <2>; 577 drive-strength = <2>; 848 bias-disable; 578 bias-disable; 849 }; 579 }; 850 580 851 cam_mclk1_active: cam-mclk1-active-sta !! 581 msm_mclk1_default: msm-mclk1-active { 852 pins = "gpio14"; 582 pins = "gpio14"; 853 function = "cam_mclk"; 583 function = "cam_mclk"; 854 drive-strength = <2>; 584 drive-strength = <2>; 855 bias-disable; 585 bias-disable; 856 }; 586 }; 857 587 858 cci0_default: cci0-default-state { !! 588 cci0_default: cci0-default { 859 pins = "gpio18", "gpio19"; 589 pins = "gpio18", "gpio19"; 860 function = "cci_i2c"; 590 function = "cci_i2c"; 861 bias-disable; 591 bias-disable; 862 drive-strength = <2>; 592 drive-strength = <2>; 863 }; 593 }; 864 594 865 cci1_default: cci1-default-state { !! 595 cci1_default: cci1-default { 866 pins = "gpio19", "gpio20"; 596 pins = "gpio19", "gpio20"; 867 function = "cci_i2c"; 597 function = "cci_i2c"; 868 bias-disable; 598 bias-disable; 869 drive-strength = <2>; 599 drive-strength = <2>; 870 }; 600 }; 871 601 872 main_cam_pwr_en: main-cam-pwr-en-defau !! 602 cam0_vdig_default: cam0-vdig-default { 873 pins = "gpio21"; 603 pins = "gpio21"; 874 function = "gpio"; 604 function = "gpio"; 875 bias-disable; 605 bias-disable; 876 drive-strength = <2>; 606 drive-strength = <2>; 877 }; 607 }; 878 608 879 tof_int_n: tof-int-n-state { !! 609 cam1_vdig_default: cam1-vdig-default { 880 pins = "gpio22"; << 881 function = "gpio"; << 882 bias-pull-up; << 883 drive-strength = <2>; << 884 }; << 885 << 886 chat_cam_pwr_en: chat-cam-pwr-en-defau << 887 pins = "gpio25"; 610 pins = "gpio25"; 888 function = "gpio"; 611 function = "gpio"; 889 bias-disable; 612 bias-disable; 890 drive-strength = <2>; 613 drive-strength = <2>; 891 }; 614 }; 892 615 893 tof_reset: tof-reset-state { !! 616 hall_sensor0_default: acc-cover-open { 894 pins = "gpio27"; << 895 function = "gpio"; << 896 bias-disable; << 897 drive-strength = <2>; << 898 }; << 899 << 900 cc_dir_default: cc-dir-active-state { << 901 pins = "gpio38"; << 902 function = "gpio"; << 903 bias-disable; << 904 drive-strength = <16>; << 905 }; << 906 << 907 acc_cover_open: acc-cover-open-state { << 908 pins = "gpio124"; 617 pins = "gpio124"; 909 function = "gpio"; 618 function = "gpio"; 910 bias-disable; 619 bias-disable; 911 drive-strength = <2>; 620 drive-strength = <2>; >> 621 input-enable; 912 }; 622 }; 913 623 914 ts_int_n: ts-int-n-state { !! 624 ts_int_n: ts-int-n { 915 pins = "gpio125"; 625 pins = "gpio125"; 916 function = "gpio"; 626 function = "gpio"; 917 drive-strength = <8>; 627 drive-strength = <8>; 918 bias-pull-up; 628 bias-pull-up; 919 }; 629 }; 920 630 921 usb_detect_en: usb-detect-en-active-st !! 631 ts_vddio_en: ts-vddio-en-default { 922 pins = "gpio128"; << 923 function = "gpio"; << 924 bias-disable; << 925 drive-strength = <2>; << 926 output-low; << 927 }; << 928 << 929 ts_vddio_en: ts-vddio-en-default-state << 930 pins = "gpio133"; 632 pins = "gpio133"; 931 function = "gpio"; 633 function = "gpio"; 932 bias-disable; 634 bias-disable; 933 drive-strength = <2>; 635 drive-strength = <2>; 934 output-low; 636 output-low; 935 }; 637 }; 936 }; 638 }; 937 639 938 /* 640 /* 939 * WARNING: 641 * WARNING: 940 * Disable UFS until card quirks are in to avo 642 * Disable UFS until card quirks are in to avoid unrecoverable hard-brick 941 * that would happen as soon as the UFS card g 643 * that would happen as soon as the UFS card gets probed as, without the 942 * required quirks, the bootloader will be era 644 * required quirks, the bootloader will be erased right after card probe. 943 */ 645 */ 944 &ufshc { 646 &ufshc { 945 status = "disabled"; 647 status = "disabled"; 946 }; 648 }; 947 649 948 &ufsphy { 650 &ufsphy { 949 status = "disabled"; 651 status = "disabled"; 950 }; 652 }; 951 653 952 &usb3 { 654 &usb3 { 953 status = "okay"; 655 status = "okay"; 954 }; 656 }; 955 657 956 &usb3_dwc3 { 658 &usb3_dwc3 { 957 /* Force to peripheral until we have T 659 /* Force to peripheral until we have Type-C hooked up */ 958 dr_mode = "peripheral"; 660 dr_mode = "peripheral"; 959 extcon = <&extcon_usb>; << 960 }; 661 }; 961 662 962 &usb3phy { 663 &usb3phy { 963 status = "okay"; 664 status = "okay"; 964 665 965 vdda-phy-supply = <&vreg_l1a_0p875>; 666 vdda-phy-supply = <&vreg_l1a_0p875>; 966 vdda-pll-supply = <&vreg_l2a_1p2>; 667 vdda-pll-supply = <&vreg_l2a_1p2>; 967 }; 668 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.