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 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 12 #include "msm8998.dtsi" 12 #include "msm8998.dtsi" 13 #include "pm8005.dtsi" 13 #include "pm8005.dtsi" 14 #include "pm8998.dtsi" 14 #include "pm8998.dtsi" 15 #include "pmi8998.dtsi" 15 #include "pmi8998.dtsi" 16 16 17 / { 17 / { 18 model = "F(x)tec Pro1 (QX1000)"; 18 model = "F(x)tec Pro1 (QX1000)"; 19 compatible = "fxtec,pro1", "qcom,msm89 19 compatible = "fxtec,pro1", "qcom,msm8998"; 20 chassis-type = "handset"; 20 chassis-type = "handset"; 21 qcom,board-id = <0x02000b 0x10>; 21 qcom,board-id = <0x02000b 0x10>; 22 22 23 aliases { 23 aliases { 24 serial0 = &blsp2_uart1; 24 serial0 = &blsp2_uart1; 25 serial1 = &blsp1_uart3; 25 serial1 = &blsp1_uart3; 26 }; 26 }; 27 27 28 /* 28 /* 29 * Until we hook up type-c detection, 29 * Until we hook up type-c detection, we 30 * have to stick with this. But it wor 30 * have to stick with this. But it works. 31 */ 31 */ 32 extcon_usb: extcon-usb { 32 extcon_usb: extcon-usb { 33 compatible = "linux,extcon-usb 33 compatible = "linux,extcon-usb-gpio"; 34 id-gpios = <&tlmm 38 GPIO_ACTI !! 34 id-gpio = <&tlmm 38 GPIO_ACTIVE_HIGH>; 35 }; 35 }; 36 36 37 gpio-hall-sensors { 37 gpio-hall-sensors { 38 compatible = "gpio-keys"; 38 compatible = "gpio-keys"; 39 label = "Hall sensors"; 39 label = "Hall sensors"; 40 pinctrl-names = "default"; 40 pinctrl-names = "default"; 41 pinctrl-0 = <&hall_sensor1_def 41 pinctrl-0 = <&hall_sensor1_default>; 42 42 43 event-hall-sensor1 { 43 event-hall-sensor1 { 44 label = "Keyboard Hall 44 label = "Keyboard Hall Sensor"; 45 gpios = <&tlmm 124 GPI 45 gpios = <&tlmm 124 GPIO_ACTIVE_HIGH>; 46 debounce-interval = <1 46 debounce-interval = <15>; 47 wakeup-source; !! 47 gpio-key,wakeup; 48 linux,input-type = <EV 48 linux,input-type = <EV_SW>; 49 linux,code = <SW_KEYPA 49 linux,code = <SW_KEYPAD_SLIDE>; 50 }; 50 }; 51 }; 51 }; 52 52 53 gpio-kb-extra-keys { 53 gpio-kb-extra-keys { 54 compatible = "gpio-keys"; 54 compatible = "gpio-keys"; 55 label = "Keyboard extra keys"; 55 label = "Keyboard extra keys"; 56 pinctrl-names = "default"; 56 pinctrl-names = "default"; 57 pinctrl-0 = <&gpio_kb_pins_ext 57 pinctrl-0 = <&gpio_kb_pins_extra>; 58 58 59 key-home { 59 key-home { 60 label = "Home"; 60 label = "Home"; 61 gpios = <&tlmm 21 GPIO 61 gpios = <&tlmm 21 GPIO_ACTIVE_LOW>; 62 linux,code = <KEY_HOME 62 linux,code = <KEY_HOMEPAGE>; 63 debounce-interval = <1 63 debounce-interval = <15>; 64 linux,can-disable; 64 linux,can-disable; 65 }; 65 }; 66 66 67 key-super-l { 67 key-super-l { 68 label = "Super Left"; 68 label = "Super Left"; 69 gpios = <&tlmm 32 GPIO 69 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; 70 linux,code = <KEY_FN>; 70 linux,code = <KEY_FN>; 71 debounce-interval = <1 71 debounce-interval = <15>; 72 linux,can-disable; 72 linux,can-disable; 73 }; 73 }; 74 74 75 key-super-r { 75 key-super-r { 76 label = "Super Right"; 76 label = "Super Right"; 77 gpios = <&tlmm 33 GPIO 77 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; 78 linux,code = <KEY_FN>; 78 linux,code = <KEY_FN>; 79 debounce-interval = <1 79 debounce-interval = <15>; 80 linux,can-disable; 80 linux,can-disable; 81 }; 81 }; 82 82 83 key-shift { 83 key-shift { 84 label = "Shift"; 84 label = "Shift"; 85 gpios = <&tlmm 114 GPI 85 gpios = <&tlmm 114 GPIO_ACTIVE_LOW>; 86 linux,code = <KEY_RIGH 86 linux,code = <KEY_RIGHTSHIFT>; 87 debounce-interval = <1 87 debounce-interval = <15>; 88 linux,can-disable; 88 linux,can-disable; 89 }; 89 }; 90 90 91 key-ctrl { 91 key-ctrl { 92 label = "Ctrl"; 92 label = "Ctrl"; 93 gpios = <&tlmm 128 GPI 93 gpios = <&tlmm 128 GPIO_ACTIVE_LOW>; 94 linux,code = <KEY_LEFT 94 linux,code = <KEY_LEFTCTRL>; 95 debounce-interval = <1 95 debounce-interval = <15>; 96 linux,can-disable; 96 linux,can-disable; 97 }; 97 }; 98 98 99 key-alt { 99 key-alt { 100 label = "Alt"; 100 label = "Alt"; 101 gpios = <&tlmm 129 GPI 101 gpios = <&tlmm 129 GPIO_ACTIVE_LOW>; 102 linux,code = <KEY_LEFT 102 linux,code = <KEY_LEFTALT>; 103 debounce-interval = <1 103 debounce-interval = <15>; 104 linux,can-disable; 104 linux,can-disable; 105 }; 105 }; 106 }; 106 }; 107 107 108 gpio-keys { 108 gpio-keys { 109 compatible = "gpio-keys"; 109 compatible = "gpio-keys"; 110 label = "Side buttons"; 110 label = "Side buttons"; 111 pinctrl-names = "default"; 111 pinctrl-names = "default"; 112 pinctrl-0 = <&vol_up_pin_a>, < 112 pinctrl-0 = <&vol_up_pin_a>, <&cam_focus_pin_a>, 113 <&cam_snapshot_pin 113 <&cam_snapshot_pin_a>; 114 button-vol-up { 114 button-vol-up { 115 label = "Volume Up"; 115 label = "Volume Up"; 116 gpios = <&pm8998_gpios !! 116 gpios = <&pm8998_gpio 6 GPIO_ACTIVE_LOW>; 117 linux,input-type = <EV 117 linux,input-type = <EV_KEY>; 118 linux,code = <KEY_VOLU 118 linux,code = <KEY_VOLUMEUP>; 119 wakeup-source; !! 119 gpio-key,wakeup; 120 debounce-interval = <1 120 debounce-interval = <15>; 121 }; 121 }; 122 122 123 button-camera-snapshot { 123 button-camera-snapshot { 124 label = "Camera Snapsh 124 label = "Camera Snapshot"; 125 gpios = <&pm8998_gpios !! 125 gpios = <&pm8998_gpio 7 GPIO_ACTIVE_LOW>; 126 linux,input-type = <EV 126 linux,input-type = <EV_KEY>; 127 linux,code = <KEY_CAME 127 linux,code = <KEY_CAMERA>; 128 debounce-interval = <1 128 debounce-interval = <15>; 129 }; 129 }; 130 130 131 button-camera-focus { 131 button-camera-focus { 132 label = "Camera Focus" 132 label = "Camera Focus"; 133 gpios = <&pm8998_gpios !! 133 gpios = <&pm8998_gpio 8 GPIO_ACTIVE_LOW>; 134 linux,input-type = <EV 134 linux,input-type = <EV_KEY>; 135 linux,code = <KEY_CAME 135 linux,code = <KEY_CAMERA_FOCUS>; 136 debounce-interval = <1 136 debounce-interval = <15>; 137 }; 137 }; 138 }; 138 }; 139 139 140 keyboard-leds { 140 keyboard-leds { 141 compatible = "gpio-leds"; 141 compatible = "gpio-leds"; 142 142 143 led-0 { 143 led-0 { 144 color = <LED_COLOR_ID_ 144 color = <LED_COLOR_ID_WHITE>; 145 default-state = "off"; 145 default-state = "off"; 146 function = LED_FUNCTIO 146 function = LED_FUNCTION_KBD_BACKLIGHT; 147 gpios = <&tlmm 16 GPIO 147 gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; 148 label = "white:kbd_bac 148 label = "white:kbd_backlight"; 149 retain-state-suspended 149 retain-state-suspended; 150 }; 150 }; 151 151 152 led-1 { 152 led-1 { 153 color = <LED_COLOR_ID_ 153 color = <LED_COLOR_ID_YELLOW>; 154 default-state = "off"; 154 default-state = "off"; 155 function = LED_FUNCTIO 155 function = LED_FUNCTION_CAPSLOCK; 156 gpios = <&tlmm 26 GPIO 156 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>; 157 label = "yellow:capslo 157 label = "yellow:capslock"; 158 linux,default-trigger 158 linux,default-trigger = "kbd-capslock"; 159 }; 159 }; 160 }; 160 }; 161 161 162 reserved-memory { 162 reserved-memory { 163 cont_splash_mem: memory@9d4000 163 cont_splash_mem: memory@9d400000 { 164 reg = <0x0 0x9d400000 164 reg = <0x0 0x9d400000 0x0 0x2000000>; 165 no-map; 165 no-map; 166 }; 166 }; 167 167 168 zap_shader_region: memory@f640 168 zap_shader_region: memory@f6400000 { 169 compatible = "shared-d 169 compatible = "shared-dma-pool"; 170 reg = <0x0 0xf6400000 170 reg = <0x0 0xf6400000 0x0 0x2000>; 171 no-map; 171 no-map; 172 }; 172 }; 173 173 174 ramoops@ffc00000 { 174 ramoops@ffc00000 { 175 compatible = "ramoops" 175 compatible = "ramoops"; 176 reg = <0x0 0xffc00000 176 reg = <0x0 0xffc00000 0x0 0x100000>; 177 console-size = <0x6000 177 console-size = <0x60000>; 178 ecc-size = <16>; 178 ecc-size = <16>; 179 ftrace-size = <0x10000 179 ftrace-size = <0x10000>; 180 pmsg-size = <0x20000>; 180 pmsg-size = <0x20000>; 181 record-size = <0x10000 181 record-size = <0x10000>; 182 }; 182 }; 183 }; 183 }; 184 184 185 ts_vio_vreg: ts-vio-vreg { 185 ts_vio_vreg: ts-vio-vreg { 186 compatible = "regulator-fixed" 186 compatible = "regulator-fixed"; 187 regulator-name = "ts_vio_reg"; 187 regulator-name = "ts_vio_reg"; 188 startup-delay-us = <2>; 188 startup-delay-us = <2>; 189 enable-active-high; 189 enable-active-high; 190 gpio = <&tlmm 81 GPIO_ACTIVE_H 190 gpio = <&tlmm 81 GPIO_ACTIVE_HIGH>; 191 pinctrl-names = "default"; 191 pinctrl-names = "default"; 192 pinctrl-0 = <&ts_vio_default>; 192 pinctrl-0 = <&ts_vio_default>; 193 regulator-always-on; 193 regulator-always-on; 194 }; 194 }; 195 195 196 vph_pwr: vph-pwr-regulator { 196 vph_pwr: vph-pwr-regulator { 197 compatible = "regulator-fixed" 197 compatible = "regulator-fixed"; 198 regulator-name = "vph_pwr"; 198 regulator-name = "vph_pwr"; 199 regulator-always-on; 199 regulator-always-on; 200 regulator-boot-on; 200 regulator-boot-on; 201 }; 201 }; 202 }; 202 }; 203 203 204 &blsp1_uart3 { 204 &blsp1_uart3 { 205 status = "okay"; 205 status = "okay"; 206 206 207 bluetooth { 207 bluetooth { 208 compatible = "qcom,wcn3990-bt" 208 compatible = "qcom,wcn3990-bt"; 209 209 210 vddio-supply = <&vreg_s4a_1p8> 210 vddio-supply = <&vreg_s4a_1p8>; 211 vddxo-supply = <&vreg_l7a_1p8> 211 vddxo-supply = <&vreg_l7a_1p8>; 212 vddrf-supply = <&vreg_l17a_1p3 212 vddrf-supply = <&vreg_l17a_1p3>; 213 vddch0-supply = <&vreg_l25a_3p 213 vddch0-supply = <&vreg_l25a_3p3>; 214 max-speed = <3200000>; 214 max-speed = <3200000>; 215 }; 215 }; 216 }; 216 }; 217 217 218 &blsp1_uart3_on { 218 &blsp1_uart3_on { 219 rx-pins { !! 219 rx { 220 /delete-property/ bias-disable 220 /delete-property/ bias-disable; 221 /* 221 /* 222 * Configure a pull-up on 45 ( 222 * Configure a pull-up on 45 (RX). This is needed to 223 * avoid garbage data when the 223 * avoid garbage data when the TX pin of the Bluetooth 224 * module is in tri-state (mod 224 * module is in tri-state (module powered off or not 225 * driving the signal yet). 225 * driving the signal yet). 226 */ 226 */ 227 bias-pull-up; 227 bias-pull-up; 228 }; 228 }; 229 229 230 cts-pins { !! 230 cts { 231 /delete-property/ bias-disable 231 /delete-property/ bias-disable; 232 /* 232 /* 233 * Configure a pull-down on 47 233 * Configure a pull-down on 47 (CTS) to match the pull 234 * of the Bluetooth module. 234 * of the Bluetooth module. 235 */ 235 */ 236 bias-pull-down; 236 bias-pull-down; 237 }; 237 }; 238 }; 238 }; 239 239 240 &blsp2_uart1 { 240 &blsp2_uart1 { 241 status = "okay"; 241 status = "okay"; 242 }; 242 }; 243 243 244 &blsp2_i2c1 { 244 &blsp2_i2c1 { 245 status = "okay"; 245 status = "okay"; 246 246 247 touchscreen@14 { 247 touchscreen@14 { 248 compatible = "goodix,gt9286"; 248 compatible = "goodix,gt9286"; 249 reg = <0x14>; 249 reg = <0x14>; 250 interrupt-parent = <&tlmm>; 250 interrupt-parent = <&tlmm>; 251 interrupts = <125 IRQ_TYPE_LEV 251 interrupts = <125 IRQ_TYPE_LEVEL_LOW>; 252 reset-gpios = <&tlmm 89 GPIO_A !! 252 reset-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; 253 AVDD28-supply = <&vreg_l28_3p0 253 AVDD28-supply = <&vreg_l28_3p0>; 254 VDDIO-supply = <&ts_vio_vreg>; 254 VDDIO-supply = <&ts_vio_vreg>; 255 pinctrl-names = "active"; 255 pinctrl-names = "active"; 256 pinctrl-0 = <&ts_rst_n>, <&ts_ 256 pinctrl-0 = <&ts_rst_n>, <&ts_int_n>; 257 }; 257 }; 258 }; 258 }; 259 259 260 &etf { 260 &etf { 261 status = "okay"; 261 status = "okay"; 262 }; 262 }; 263 263 264 &etm1 { 264 &etm1 { 265 status = "okay"; 265 status = "okay"; 266 }; 266 }; 267 267 268 &etm2 { 268 &etm2 { 269 status = "okay"; 269 status = "okay"; 270 }; 270 }; 271 271 272 &etm3 { 272 &etm3 { 273 status = "okay"; 273 status = "okay"; 274 }; 274 }; 275 275 276 &etm4 { 276 &etm4 { 277 status = "okay"; 277 status = "okay"; 278 }; 278 }; 279 279 280 &etm5 { 280 &etm5 { 281 status = "okay"; 281 status = "okay"; 282 }; 282 }; 283 283 284 &etm6 { 284 &etm6 { 285 status = "okay"; 285 status = "okay"; 286 }; 286 }; 287 287 288 &etm7 { 288 &etm7 { 289 status = "okay"; 289 status = "okay"; 290 }; 290 }; 291 291 292 &etm8 { 292 &etm8 { 293 status = "okay"; 293 status = "okay"; 294 }; 294 }; 295 295 296 &etr { 296 &etr { 297 status = "okay"; 297 status = "okay"; 298 }; 298 }; 299 299 300 &funnel1 { 300 &funnel1 { 301 status = "okay"; 301 status = "okay"; 302 }; 302 }; 303 303 304 &funnel2 { 304 &funnel2 { 305 status = "okay"; 305 status = "okay"; 306 }; 306 }; 307 307 308 &funnel3 { 308 &funnel3 { 309 status = "okay"; 309 status = "okay"; 310 }; 310 }; 311 311 312 &funnel4 { 312 &funnel4 { 313 /* FIXME: Figure out why clock late_in !! 313 // FIXME: Figure out why clock late_initcall crashes the board with >> 314 // this enabled. >> 315 // status = "okay"; 314 }; 316 }; 315 317 316 &funnel5 { 318 &funnel5 { 317 /* FIXME: Figure out why clock late_in !! 319 // FIXME: Figure out why clock late_initcall crashes the board with >> 320 // this enabled. >> 321 // status = "okay"; 318 }; 322 }; 319 323 320 &pcie0 { 324 &pcie0 { 321 status = "okay"; 325 status = "okay"; 322 }; 326 }; 323 327 324 &pcie_phy { 328 &pcie_phy { 325 status = "okay"; 329 status = "okay"; 326 }; 330 }; 327 331 328 &pm8005_regulators { 332 &pm8005_regulators { 329 vdd_s1-supply = <&vph_pwr>; 333 vdd_s1-supply = <&vph_pwr>; 330 334 331 pm8005_s1: s1 { /* VDD_GFX supply */ 335 pm8005_s1: s1 { /* VDD_GFX supply */ 332 regulator-min-microvolt = <524 336 regulator-min-microvolt = <524000>; 333 regulator-max-microvolt = <110 337 regulator-max-microvolt = <1100000>; 334 regulator-enable-ramp-delay = 338 regulator-enable-ramp-delay = <500>; 335 339 336 /* Hack until we rig up the gp 340 /* Hack until we rig up the gpu consumer */ 337 regulator-always-on; 341 regulator-always-on; 338 }; 342 }; 339 }; 343 }; 340 344 341 &pm8998_gpios { !! 345 &pm8998_gpio { 342 vol_up_pin_a: vol-up-active-state { 346 vol_up_pin_a: vol-up-active-state { 343 pins = "gpio6"; 347 pins = "gpio6"; 344 function = "normal"; 348 function = "normal"; 345 bias-pull-up; 349 bias-pull-up; 346 input-enable; 350 input-enable; 347 qcom,drive-strength = <PMIC_GP 351 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 348 }; 352 }; 349 353 350 cam_focus_pin_a: cam-focus-btn-active- 354 cam_focus_pin_a: cam-focus-btn-active-state { 351 pins = "gpio7"; 355 pins = "gpio7"; 352 function = "normal"; 356 function = "normal"; 353 bias-pull-up; 357 bias-pull-up; 354 input-enable; 358 input-enable; 355 qcom,drive-strength = <PMIC_GP 359 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 356 }; 360 }; 357 361 358 cam_snapshot_pin_a: cam-snapshot-btn-a 362 cam_snapshot_pin_a: cam-snapshot-btn-active-state { 359 pins = "gpio8"; 363 pins = "gpio8"; 360 function = "normal"; 364 function = "normal"; 361 bias-pull-up; 365 bias-pull-up; 362 input-enable; 366 input-enable; 363 qcom,drive-strength = <PMIC_GP 367 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 364 }; 368 }; 365 }; 369 }; 366 370 367 &pm8998_resin { !! 371 &pm8998_pon { 368 linux,code = <KEY_VOLUMEDOWN>; !! 372 resin { 369 status = "okay"; !! 373 compatible = "qcom,pm8941-resin"; >> 374 interrupts = <GIC_SPI 0x8 1 IRQ_TYPE_EDGE_BOTH>; >> 375 bias-pull-up; >> 376 debounce = <15625>; >> 377 linux,code = <KEY_VOLUMEDOWN>; >> 378 }; 370 }; 379 }; 371 380 372 &qusb2phy { 381 &qusb2phy { 373 status = "okay"; 382 status = "okay"; 374 383 375 vdda-pll-supply = <&vreg_l12a_1p8>; 384 vdda-pll-supply = <&vreg_l12a_1p8>; 376 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 385 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 377 }; 386 }; 378 387 379 &replicator1 { 388 &replicator1 { 380 status = "okay"; 389 status = "okay"; 381 }; 390 }; 382 391 383 &rpm_requests { 392 &rpm_requests { 384 regulators-0 { !! 393 pm8998-regulators { 385 compatible = "qcom,rpm-pm8998- 394 compatible = "qcom,rpm-pm8998-regulators"; 386 395 387 vdd_s1-supply = <&vph_pwr>; 396 vdd_s1-supply = <&vph_pwr>; 388 vdd_s2-supply = <&vph_pwr>; 397 vdd_s2-supply = <&vph_pwr>; 389 vdd_s3-supply = <&vph_pwr>; 398 vdd_s3-supply = <&vph_pwr>; 390 vdd_s4-supply = <&vph_pwr>; 399 vdd_s4-supply = <&vph_pwr>; 391 vdd_s5-supply = <&vph_pwr>; 400 vdd_s5-supply = <&vph_pwr>; 392 vdd_s6-supply = <&vph_pwr>; 401 vdd_s6-supply = <&vph_pwr>; 393 vdd_s7-supply = <&vph_pwr>; 402 vdd_s7-supply = <&vph_pwr>; 394 vdd_s8-supply = <&vph_pwr>; 403 vdd_s8-supply = <&vph_pwr>; 395 vdd_s9-supply = <&vph_pwr>; 404 vdd_s9-supply = <&vph_pwr>; 396 vdd_s10-supply = <&vph_pwr>; 405 vdd_s10-supply = <&vph_pwr>; 397 vdd_s11-supply = <&vph_pwr>; 406 vdd_s11-supply = <&vph_pwr>; 398 vdd_s12-supply = <&vph_pwr>; 407 vdd_s12-supply = <&vph_pwr>; 399 vdd_s13-supply = <&vph_pwr>; 408 vdd_s13-supply = <&vph_pwr>; 400 vdd_l1_l27-supply = <&vreg_s7a 409 vdd_l1_l27-supply = <&vreg_s7a_1p025>; 401 vdd_l2_l8_l17-supply = <&vreg_ 410 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>; 402 vdd_l3_l11-supply = <&vreg_s7a 411 vdd_l3_l11-supply = <&vreg_s7a_1p025>; 403 vdd_l4_l5-supply = <&vreg_s7a_ 412 vdd_l4_l5-supply = <&vreg_s7a_1p025>; 404 vdd_l6-supply = <&vreg_s5a_2p0 413 vdd_l6-supply = <&vreg_s5a_2p04>; 405 vdd_l7_l12_l14_l15-supply = <& 414 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>; 406 vdd_l9-supply = <&vreg_bob>; 415 vdd_l9-supply = <&vreg_bob>; 407 vdd_l10_l23_l25-supply = <&vre 416 vdd_l10_l23_l25-supply = <&vreg_bob>; 408 vdd_l13_l19_l21-supply = <&vre 417 vdd_l13_l19_l21-supply = <&vreg_bob>; 409 vdd_l16_l28-supply = <&vreg_bo 418 vdd_l16_l28-supply = <&vreg_bob>; 410 vdd_l18_l22-supply = <&vreg_bo 419 vdd_l18_l22-supply = <&vreg_bob>; 411 vdd_l20_l24-supply = <&vreg_bo 420 vdd_l20_l24-supply = <&vreg_bob>; 412 vdd_l26-supply = <&vreg_s3a_1p 421 vdd_l26-supply = <&vreg_s3a_1p35>; 413 vdd_lvs1_lvs2-supply = <&vreg_ 422 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>; 414 423 415 vreg_s3a_1p35: s3 { 424 vreg_s3a_1p35: s3 { 416 regulator-min-microvol 425 regulator-min-microvolt = <1352000>; 417 regulator-max-microvol 426 regulator-max-microvolt = <1352000>; 418 }; 427 }; 419 428 420 vreg_s4a_1p8: s4 { 429 vreg_s4a_1p8: s4 { 421 regulator-min-microvol 430 regulator-min-microvolt = <1800000>; 422 regulator-max-microvol 431 regulator-max-microvolt = <1800000>; 423 regulator-allow-set-lo 432 regulator-allow-set-load; 424 }; 433 }; 425 434 426 vreg_s5a_2p04: s5 { 435 vreg_s5a_2p04: s5 { 427 regulator-min-microvol 436 regulator-min-microvolt = <1904000>; 428 regulator-max-microvol 437 regulator-max-microvolt = <2040000>; 429 }; 438 }; 430 439 431 vreg_s7a_1p025: s7 { 440 vreg_s7a_1p025: s7 { 432 regulator-min-microvol 441 regulator-min-microvolt = <900000>; 433 regulator-max-microvol 442 regulator-max-microvolt = <1028000>; 434 }; 443 }; 435 444 436 vreg_l1a_0p875: l1 { 445 vreg_l1a_0p875: l1 { 437 regulator-min-microvol 446 regulator-min-microvolt = <880000>; 438 regulator-max-microvol 447 regulator-max-microvolt = <880000>; 439 }; 448 }; 440 449 441 vreg_l2a_1p2: l2 { 450 vreg_l2a_1p2: l2 { 442 regulator-min-microvol 451 regulator-min-microvolt = <1200000>; 443 regulator-max-microvol 452 regulator-max-microvolt = <1200000>; 444 }; 453 }; 445 454 446 vreg_l3a_1p0: l3 { 455 vreg_l3a_1p0: l3 { 447 regulator-min-microvol 456 regulator-min-microvolt = <1000000>; 448 regulator-max-microvol 457 regulator-max-microvolt = <1000000>; 449 }; 458 }; 450 459 451 vreg_l5a_0p8: l5 { 460 vreg_l5a_0p8: l5 { 452 regulator-min-microvol 461 regulator-min-microvolt = <800000>; 453 regulator-max-microvol 462 regulator-max-microvolt = <800000>; 454 }; 463 }; 455 464 456 vreg_l6a_1p8: l6 { 465 vreg_l6a_1p8: l6 { 457 regulator-min-microvol 466 regulator-min-microvolt = <1808000>; 458 regulator-max-microvol 467 regulator-max-microvolt = <1808000>; 459 }; 468 }; 460 469 461 vreg_l7a_1p8: l7 { 470 vreg_l7a_1p8: l7 { 462 regulator-min-microvol 471 regulator-min-microvolt = <1800000>; 463 regulator-max-microvol 472 regulator-max-microvolt = <1800000>; 464 }; 473 }; 465 474 466 vreg_l8a_1p2: l8 { 475 vreg_l8a_1p2: l8 { 467 regulator-min-microvol 476 regulator-min-microvolt = <1200000>; 468 regulator-max-microvol 477 regulator-max-microvolt = <1200000>; 469 }; 478 }; 470 479 471 vreg_l9a_1p8: l9 { 480 vreg_l9a_1p8: l9 { 472 regulator-min-microvol 481 regulator-min-microvolt = <1808000>; 473 regulator-max-microvol 482 regulator-max-microvolt = <2960000>; 474 }; 483 }; 475 484 476 vreg_l10a_1p8: l10 { 485 vreg_l10a_1p8: l10 { 477 regulator-min-microvol 486 regulator-min-microvolt = <1808000>; 478 regulator-max-microvol 487 regulator-max-microvolt = <2960000>; 479 }; 488 }; 480 489 481 vreg_l11a_1p0: l11 { 490 vreg_l11a_1p0: l11 { 482 regulator-min-microvol 491 regulator-min-microvolt = <1000000>; 483 regulator-max-microvol 492 regulator-max-microvolt = <1000000>; 484 }; 493 }; 485 494 486 vreg_l12a_1p8: l12 { 495 vreg_l12a_1p8: l12 { 487 regulator-min-microvol 496 regulator-min-microvolt = <1800000>; 488 regulator-max-microvol 497 regulator-max-microvolt = <1800000>; 489 }; 498 }; 490 499 491 vreg_l13a_2p95: l13 { 500 vreg_l13a_2p95: l13 { 492 regulator-min-microvol 501 regulator-min-microvolt = <1808000>; 493 regulator-max-microvol 502 regulator-max-microvolt = <2960000>; 494 }; 503 }; 495 504 496 vreg_l14a_1p88: l14 { 505 vreg_l14a_1p88: l14 { 497 regulator-min-microvol 506 regulator-min-microvolt = <1880000>; 498 regulator-max-microvol 507 regulator-max-microvolt = <1880000>; 499 }; 508 }; 500 509 501 vreg_l15a_1p8: l15 { 510 vreg_l15a_1p8: l15 { 502 regulator-min-microvol 511 regulator-min-microvolt = <1800000>; 503 regulator-max-microvol 512 regulator-max-microvolt = <1800000>; 504 }; 513 }; 505 514 506 vreg_l16a_2p7: l16 { 515 vreg_l16a_2p7: l16 { 507 regulator-min-microvol 516 regulator-min-microvolt = <2704000>; 508 regulator-max-microvol 517 regulator-max-microvolt = <2704000>; 509 }; 518 }; 510 519 511 vreg_l17a_1p3: l17 { 520 vreg_l17a_1p3: l17 { 512 regulator-min-microvol 521 regulator-min-microvolt = <1304000>; 513 regulator-max-microvol 522 regulator-max-microvolt = <1304000>; 514 }; 523 }; 515 524 516 vreg_l18a_2p7: l18 { 525 vreg_l18a_2p7: l18 { 517 regulator-min-microvol 526 regulator-min-microvolt = <2704000>; 518 regulator-max-microvol 527 regulator-max-microvolt = <2704000>; 519 }; 528 }; 520 529 521 vreg_l19a_3p0: l19 { 530 vreg_l19a_3p0: l19 { 522 regulator-min-microvol 531 regulator-min-microvolt = <3008000>; 523 regulator-max-microvol 532 regulator-max-microvolt = <3008000>; 524 }; 533 }; 525 534 526 vreg_l20a_2p95: l20 { 535 vreg_l20a_2p95: l20 { 527 regulator-min-microvol 536 regulator-min-microvolt = <2960000>; 528 regulator-max-microvol 537 regulator-max-microvolt = <2960000>; 529 regulator-allow-set-lo 538 regulator-allow-set-load; 530 }; 539 }; 531 540 532 vreg_l21a_2p95: l21 { 541 vreg_l21a_2p95: l21 { 533 regulator-min-microvol 542 regulator-min-microvolt = <2960000>; 534 regulator-max-microvol 543 regulator-max-microvolt = <2960000>; 535 regulator-system-load 544 regulator-system-load = <800000>; 536 regulator-allow-set-lo 545 regulator-allow-set-load; 537 }; 546 }; 538 547 539 vreg_l22a_2p85: l22 { 548 vreg_l22a_2p85: l22 { 540 regulator-min-microvol 549 regulator-min-microvolt = <2864000>; 541 regulator-max-microvol 550 regulator-max-microvolt = <2864000>; 542 }; 551 }; 543 552 544 vreg_l23a_3p3: l23 { 553 vreg_l23a_3p3: l23 { 545 regulator-min-microvol 554 regulator-min-microvolt = <3312000>; 546 regulator-max-microvol 555 regulator-max-microvolt = <3312000>; 547 }; 556 }; 548 557 549 vreg_l24a_3p075: l24 { 558 vreg_l24a_3p075: l24 { 550 regulator-min-microvol 559 regulator-min-microvolt = <3088000>; 551 regulator-max-microvol 560 regulator-max-microvolt = <3088000>; 552 }; 561 }; 553 562 554 vreg_l25a_3p3: l25 { 563 vreg_l25a_3p3: l25 { 555 regulator-min-microvol 564 regulator-min-microvolt = <3104000>; 556 regulator-max-microvol 565 regulator-max-microvolt = <3312000>; 557 }; 566 }; 558 567 559 vreg_l26a_1p2: l26 { 568 vreg_l26a_1p2: l26 { 560 regulator-min-microvol 569 regulator-min-microvolt = <1200000>; 561 regulator-max-microvol 570 regulator-max-microvolt = <1200000>; 562 regulator-allow-set-lo 571 regulator-allow-set-load; 563 }; 572 }; 564 573 565 vreg_l28_3p0: l28 { 574 vreg_l28_3p0: l28 { 566 regulator-min-microvol 575 regulator-min-microvolt = <3008000>; 567 regulator-max-microvol 576 regulator-max-microvolt = <3008000>; 568 }; 577 }; 569 578 570 vreg_lvs1a_1p8: lvs1 { 579 vreg_lvs1a_1p8: lvs1 { 571 regulator-min-microvol 580 regulator-min-microvolt = <1800000>; 572 regulator-max-microvol 581 regulator-max-microvolt = <1800000>; 573 }; 582 }; 574 583 575 vreg_lvs2a_1p8: lvs2 { 584 vreg_lvs2a_1p8: lvs2 { 576 regulator-min-microvol 585 regulator-min-microvolt = <1800000>; 577 regulator-max-microvol 586 regulator-max-microvolt = <1800000>; 578 }; 587 }; 579 588 580 }; 589 }; 581 590 582 regulators-1 { !! 591 pmi8998-regulators { 583 compatible = "qcom,rpm-pmi8998 592 compatible = "qcom,rpm-pmi8998-regulators"; 584 593 585 vdd_bob-supply = <&vph_pwr>; 594 vdd_bob-supply = <&vph_pwr>; 586 595 587 vreg_bob: bob { 596 vreg_bob: bob { 588 regulator-min-microvol 597 regulator-min-microvolt = <3312000>; 589 regulator-max-microvol 598 regulator-max-microvolt = <3600000>; 590 }; 599 }; 591 }; 600 }; 592 }; 601 }; 593 602 594 &remoteproc_adsp { 603 &remoteproc_adsp { 595 status = "okay"; 604 status = "okay"; 596 }; 605 }; 597 606 598 &remoteproc_mss { 607 &remoteproc_mss { 599 status = "okay"; 608 status = "okay"; 600 }; 609 }; 601 610 602 &remoteproc_slpi { 611 &remoteproc_slpi { 603 status = "okay"; 612 status = "okay"; 604 }; 613 }; 605 614 606 &tlmm { 615 &tlmm { 607 gpio-reserved-ranges = <0 4>; 616 gpio-reserved-ranges = <0 4>; 608 617 609 mdp_vsync_n: mdp-vsync-n-state { !! 618 mdp_vsync_n: mdp-vsync-n { 610 pins = "gpio10"; 619 pins = "gpio10"; 611 function = "mdp_vsync_a"; 620 function = "mdp_vsync_a"; 612 bias-pull-down; 621 bias-pull-down; 613 drive-strength = <2>; 622 drive-strength = <2>; 614 }; 623 }; 615 624 616 gpio_kb_pins_extra: gpio-kb-pins-extra !! 625 gpio_kb_pins_extra: gpio-kb-pins-extra { 617 pins = "gpio21", "gpio32", "gp 626 pins = "gpio21", "gpio32", "gpio33", "gpio114", 618 "gpio128", "gpio129"; 627 "gpio128", "gpio129"; 619 function = "gpio"; 628 function = "gpio"; 620 drive-strength = <2>; 629 drive-strength = <2>; 621 bias-pull-up; 630 bias-pull-up; 622 }; 631 }; 623 632 624 ts_vio_default: ts-vio-def-state { !! 633 ts_vio_default: ts-vio-def { 625 pins = "gpio81"; 634 pins = "gpio81"; 626 function = "gpio"; 635 function = "gpio"; 627 bias-disable; 636 bias-disable; 628 drive-strength = <2>; 637 drive-strength = <2>; 629 }; 638 }; 630 639 631 ts_rst_n: ts-rst-n-state { !! 640 ts_rst_n: ts-rst-n { 632 pins = "gpio89"; 641 pins = "gpio89"; 633 function = "gpio"; 642 function = "gpio"; 634 bias-pull-up; 643 bias-pull-up; 635 drive-strength = <8>; 644 drive-strength = <8>; 636 }; 645 }; 637 646 638 hall_sensor1_default: hall-sensor1-def !! 647 hall_sensor1_default: hall-sensor1-def { 639 pins = "gpio124"; 648 pins = "gpio124"; 640 function = "gpio"; 649 function = "gpio"; 641 bias-disable; 650 bias-disable; 642 drive-strength = <2>; 651 drive-strength = <2>; >> 652 input-enable; 643 }; 653 }; 644 654 645 ts_int_n: ts-int-n-state { !! 655 ts_int_n: ts-int-n { 646 pins = "gpio125"; 656 pins = "gpio125"; 647 function = "gpio"; 657 function = "gpio"; 648 bias-disable; 658 bias-disable; 649 drive-strength = <8>; 659 drive-strength = <8>; 650 }; 660 }; 651 }; 661 }; 652 662 653 &sdhc2 { 663 &sdhc2 { 654 status = "okay"; 664 status = "okay"; 655 cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>; 665 cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>; 656 666 657 vmmc-supply = <&vreg_l21a_2p95>; 667 vmmc-supply = <&vreg_l21a_2p95>; 658 vqmmc-supply = <&vreg_l13a_2p95>; 668 vqmmc-supply = <&vreg_l13a_2p95>; 659 669 660 pinctrl-names = "default", "sleep"; 670 pinctrl-names = "default", "sleep"; 661 pinctrl-0 = <&sdc2_on &sdc2_cd>; 671 pinctrl-0 = <&sdc2_on &sdc2_cd>; 662 pinctrl-1 = <&sdc2_off &sdc2_cd>; 672 pinctrl-1 = <&sdc2_off &sdc2_cd>; 663 }; 673 }; 664 674 665 &stm { 675 &stm { 666 status = "okay"; 676 status = "okay"; 667 }; 677 }; 668 678 669 &ufshc { 679 &ufshc { 670 status = "okay"; 680 status = "okay"; 671 vcc-supply = <&vreg_l20a_2p95>; 681 vcc-supply = <&vreg_l20a_2p95>; 672 vccq-supply = <&vreg_l26a_1p2>; 682 vccq-supply = <&vreg_l26a_1p2>; 673 vccq2-supply = <&vreg_s4a_1p8>; 683 vccq2-supply = <&vreg_s4a_1p8>; 674 vdd-hba-supply = <&vreg_l26a_1p2>; << 675 vcc-max-microamp = <750000>; 684 vcc-max-microamp = <750000>; 676 vccq-max-microamp = <560000>; 685 vccq-max-microamp = <560000>; 677 vccq2-max-microamp = <750000>; 686 vccq2-max-microamp = <750000>; 678 }; 687 }; 679 688 680 &ufsphy { 689 &ufsphy { 681 status = "okay"; 690 status = "okay"; 682 vdda-phy-supply = <&vreg_l1a_0p875>; 691 vdda-phy-supply = <&vreg_l1a_0p875>; 683 vdda-pll-supply = <&vreg_l2a_1p2>; 692 vdda-pll-supply = <&vreg_l2a_1p2>; >> 693 vddp-ref-clk-supply = <&vreg_l26a_1p2>; 684 }; 694 }; 685 695 686 &usb3 { 696 &usb3 { 687 status = "okay"; 697 status = "okay"; 688 }; 698 }; 689 699 690 &usb3_dwc3 { 700 &usb3_dwc3 { 691 dr_mode = "peripheral"; 701 dr_mode = "peripheral"; 692 extcon = <&extcon_usb>; 702 extcon = <&extcon_usb>; 693 }; 703 }; 694 704 695 &usb3phy { 705 &usb3phy { 696 status = "okay"; 706 status = "okay"; 697 707 698 vdda-phy-supply = <&vreg_l1a_0p875>; 708 vdda-phy-supply = <&vreg_l1a_0p875>; 699 vdda-pll-supply = <&vreg_l2a_1p2>; 709 vdda-pll-supply = <&vreg_l2a_1p2>; 700 }; 710 }; 701 711 702 /* GT9286 analog supply */ 712 /* GT9286 analog supply */ 703 &vreg_l28_3p0 { 713 &vreg_l28_3p0 { 704 regulator-min-microvolt = <2800000>; 714 regulator-min-microvolt = <2800000>; 705 regulator-max-microvolt = <2800000>; 715 regulator-max-microvolt = <2800000>; 706 }; 716 }; 707 717 708 &wifi { 718 &wifi { 709 status = "okay"; 719 status = "okay"; 710 720 711 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8> 721 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 712 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 722 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 713 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 723 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 714 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 724 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 715 }; 725 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.