1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Google Herobrine baseboard device tree sour !! 3 * Google Herobrine board device tree source 4 * 4 * 5 * The set of things in this file is a bit loo !! 5 * Copyright 2021 Google LLC. 6 * defined as the set of things that the child << 7 * common. Since all of the child boards start << 8 * design this is hopefully a large set of thi << 9 * appear things may "bubble down" out of this << 10 * part of the reference design but might not << 11 * follow the lead of the SoC dtsi files and l << 12 * << 13 * Copyright 2022 Google LLC. << 14 */ 6 */ 15 7 >> 8 /dts-v1/; >> 9 >> 10 #include <dt-bindings/gpio/gpio.h> >> 11 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> >> 12 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 16 #include <dt-bindings/input/gpio-keys.h> 13 #include <dt-bindings/input/gpio-keys.h> 17 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/leds/common.h> !! 15 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> >> 16 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> >> 17 >> 18 #include "sc7280.dtsi" 19 19 20 #include "sc7280-qcard.dtsi" !! 20 /* PMICs depend on spmi_bus label and so must come after SoC */ 21 #include "sc7280-chrome-common.dtsi" !! 21 #include "pm7325.dtsi" >> 22 #include "pm8350c.dtsi" >> 23 #include "pmk8350.dtsi" >> 24 >> 25 /* >> 26 * Reserved memory changes >> 27 * >> 28 * Delete all unused memory nodes and define the peripheral memory regions >> 29 * required by the board dts. >> 30 * >> 31 */ >> 32 >> 33 /delete-node/ &hyp_mem; >> 34 /delete-node/ &xbl_mem; >> 35 /delete-node/ &sec_apps_mem; >> 36 >> 37 /* Increase the size from 2MB to 8MB */ >> 38 &rmtfs_mem { >> 39 reg = <0x0 0x83600000 0x0 0x800000>; >> 40 }; 22 41 23 / { 42 / { >> 43 reserved-memory { >> 44 adsp_mem: memory@86700000 { >> 45 reg = <0x0 0x86700000 0x0 0x2800000>; >> 46 no-map; >> 47 }; >> 48 >> 49 camera_mem: memory@8ad00000 { >> 50 reg = <0x0 0x8ad00000 0x0 0x500000>; >> 51 no-map; >> 52 }; >> 53 >> 54 venus_mem: memory@8b200000 { >> 55 reg = <0x0 0x8b200000 0x0 0x500000>; >> 56 no-map; >> 57 }; >> 58 >> 59 mpss_mem: memory@8b800000 { >> 60 reg = <0x0 0x8b800000 0x0 0xf600000>; >> 61 no-map; >> 62 }; >> 63 >> 64 wpss_mem: memory@9ae00000 { >> 65 reg = <0x0 0x9ae00000 0x0 0x1900000>; >> 66 no-map; >> 67 }; >> 68 >> 69 mba_mem: memory@9c700000 { >> 70 reg = <0x0 0x9c700000 0x0 0x200000>; >> 71 no-map; >> 72 }; >> 73 }; >> 74 >> 75 aliases { >> 76 serial0 = &uart5; >> 77 serial1 = &uart7; >> 78 }; >> 79 24 chosen { 80 chosen { 25 stdout-path = "serial0:115200n 81 stdout-path = "serial0:115200n8"; 26 }; 82 }; 27 83 28 /* !! 84 /* FIXED REGULATORS - parents above children */ 29 * FIXED REGULATORS << 30 * << 31 * Sort order: << 32 * 1. parents above children. << 33 * 2. higher voltage above lower volta << 34 * 3. alphabetically by node name. << 35 */ << 36 85 37 /* This is the top level supply and va 86 /* This is the top level supply and variable voltage */ 38 ppvar_sys: ppvar-sys-regulator { 87 ppvar_sys: ppvar-sys-regulator { 39 compatible = "regulator-fixed" 88 compatible = "regulator-fixed"; 40 regulator-name = "ppvar_sys"; 89 regulator-name = "ppvar_sys"; 41 regulator-always-on; 90 regulator-always-on; 42 regulator-boot-on; 91 regulator-boot-on; 43 }; 92 }; 44 93 45 /* This divides ppvar_sys by 2, so vol 94 /* This divides ppvar_sys by 2, so voltage is variable */ 46 src_vph_pwr: src-vph-pwr-regulator { 95 src_vph_pwr: src-vph-pwr-regulator { 47 compatible = "regulator-fixed" 96 compatible = "regulator-fixed"; 48 regulator-name = "src_vph_pwr" 97 regulator-name = "src_vph_pwr"; 49 98 50 /* EC turns on with switchcap_ 99 /* EC turns on with switchcap_on; always on for AP */ 51 regulator-always-on; 100 regulator-always-on; 52 regulator-boot-on; 101 regulator-boot-on; 53 102 54 vin-supply = <&ppvar_sys>; 103 vin-supply = <&ppvar_sys>; 55 }; 104 }; 56 105 57 pp5000_s5: pp5000-s5-regulator { !! 106 pp5000_s3: pp5000-s3-regulator { 58 compatible = "regulator-fixed" 107 compatible = "regulator-fixed"; 59 regulator-name = "pp5000_s5"; !! 108 regulator-name = "pp5000_s3"; 60 109 61 /* EC turns on with en_pp5000_ !! 110 /* EC turns on with en_pp5000_s3; always on for AP */ 62 regulator-always-on; 111 regulator-always-on; 63 regulator-boot-on; 112 regulator-boot-on; 64 regulator-min-microvolt = <500 113 regulator-min-microvolt = <5000000>; 65 regulator-max-microvolt = <500 114 regulator-max-microvolt = <5000000>; 66 115 67 vin-supply = <&ppvar_sys>; 116 vin-supply = <&ppvar_sys>; 68 }; 117 }; 69 118 70 pp3300_z1: pp3300-z1-regulator { 119 pp3300_z1: pp3300-z1-regulator { 71 compatible = "regulator-fixed" 120 compatible = "regulator-fixed"; 72 regulator-name = "pp3300_z1"; 121 regulator-name = "pp3300_z1"; 73 122 74 /* EC turns on with en_pp3300_ 123 /* EC turns on with en_pp3300_z1; always on for AP */ 75 regulator-always-on; 124 regulator-always-on; 76 regulator-boot-on; 125 regulator-boot-on; 77 regulator-min-microvolt = <330 126 regulator-min-microvolt = <3300000>; 78 regulator-max-microvolt = <330 127 regulator-max-microvolt = <3300000>; 79 128 80 vin-supply = <&ppvar_sys>; 129 vin-supply = <&ppvar_sys>; 81 }; 130 }; 82 131 >> 132 pp3300_audio: 83 pp3300_codec: pp3300-codec-regulator { 133 pp3300_codec: pp3300-codec-regulator { 84 compatible = "regulator-fixed" 134 compatible = "regulator-fixed"; 85 regulator-name = "pp3300_codec 135 regulator-name = "pp3300_codec"; 86 136 87 regulator-min-microvolt = <330 137 regulator-min-microvolt = <3300000>; 88 regulator-max-microvolt = <330 138 regulator-max-microvolt = <3300000>; 89 139 90 gpio = <&tlmm 105 GPIO_ACTIVE_ !! 140 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 91 enable-active-high; 141 enable-active-high; 92 pinctrl-names = "default"; 142 pinctrl-names = "default"; 93 pinctrl-0 = <&en_pp3300_codec> 143 pinctrl-0 = <&en_pp3300_codec>; 94 144 95 vin-supply = <&pp3300_z1>; 145 vin-supply = <&pp3300_z1>; 96 status = "disabled"; << 97 }; 146 }; 98 147 99 pp3300_left_in_mlb: pp3300-left-in-mlb !! 148 pp3300_cam: >> 149 pp3300_edp: >> 150 pp3300_ts: pp3300-edp-regulator { 100 compatible = "regulator-fixed" 151 compatible = "regulator-fixed"; 101 regulator-name = "pp3300_left_ !! 152 regulator-name = "pp3300_edp"; 102 153 103 regulator-min-microvolt = <330 154 regulator-min-microvolt = <3300000>; 104 regulator-max-microvolt = <330 155 regulator-max-microvolt = <3300000>; 105 156 106 gpio = <&tlmm 80 GPIO_ACTIVE_H 157 gpio = <&tlmm 80 GPIO_ACTIVE_HIGH>; 107 enable-active-high; 158 enable-active-high; 108 pinctrl-names = "default"; 159 pinctrl-names = "default"; 109 pinctrl-0 = <&en_pp3300_dx_edp 160 pinctrl-0 = <&en_pp3300_dx_edp>; 110 161 111 regulator-enable-ramp-delay = << 112 << 113 /* << 114 * eDP panel specs nearly alwa << 115 * shouldn't turn them off an << 116 * Add this as a board constra << 117 * between the panel and touch << 118 */ << 119 off-on-delay-us = <500000>; << 120 << 121 /* << 122 * Stat the regulator on. This << 123 * the slow process of powerin << 124 * probe the regulator. It als << 125 * off-on-delay immediately on << 126 */ << 127 regulator-boot-on; << 128 << 129 vin-supply = <&pp3300_z1>; 162 vin-supply = <&pp3300_z1>; 130 }; 163 }; 131 164 132 pp3300_mcu_fp: !! 165 pp3300_fp: 133 pp3300_fp_ls: 166 pp3300_fp_ls: 134 pp3300_fp_mcu: pp3300-fp-regulator { !! 167 pp3300_mcu: pp3300-fp-regulator { 135 compatible = "regulator-fixed" 168 compatible = "regulator-fixed"; 136 regulator-name = "pp3300_fp"; 169 regulator-name = "pp3300_fp"; 137 170 138 regulator-min-microvolt = <330 171 regulator-min-microvolt = <3300000>; 139 regulator-max-microvolt = <330 172 regulator-max-microvolt = <3300000>; 140 173 141 regulator-boot-on; 174 regulator-boot-on; 142 regulator-always-on; 175 regulator-always-on; 143 176 144 /* 177 /* 145 * WARNING: it is intentional !! 178 * WARNING: it is intentional that GPIO 42 isn't listed here. 146 * The userspace script for up 179 * The userspace script for updating the fingerprint firmware 147 * needs to control the FP reg 180 * needs to control the FP regulators during a FW update, 148 * hence the signal can't be o 181 * hence the signal can't be owned by the kernel regulator. 149 */ 182 */ 150 183 151 pinctrl-names = "default"; 184 pinctrl-names = "default"; 152 pinctrl-0 = <&en_fp_rails>; 185 pinctrl-0 = <&en_fp_rails>; 153 186 154 vin-supply = <&pp3300_z1>; 187 vin-supply = <&pp3300_z1>; 155 status = "disabled"; << 156 }; 188 }; 157 189 158 pp3300_hub: pp3300-hub-regulator { 190 pp3300_hub: pp3300-hub-regulator { 159 compatible = "regulator-fixed" 191 compatible = "regulator-fixed"; 160 regulator-name = "pp3300_hub"; 192 regulator-name = "pp3300_hub"; 161 193 162 regulator-min-microvolt = <330 194 regulator-min-microvolt = <3300000>; 163 regulator-max-microvolt = <330 195 regulator-max-microvolt = <3300000>; 164 196 165 /* The BIOS leaves this regula << 166 regulator-boot-on; 197 regulator-boot-on; >> 198 regulator-always-on; 167 199 168 gpio = <&tlmm 157 GPIO_ACTIVE_ !! 200 gpio = <&tlmm 24 GPIO_ACTIVE_HIGH>; 169 enable-active-high; 201 enable-active-high; 170 pinctrl-names = "default"; 202 pinctrl-names = "default"; 171 pinctrl-0 = <&hub_en>; !! 203 pinctrl-0 = <&en_pp3300_hub>; 172 204 173 vin-supply = <&pp3300_z1>; 205 vin-supply = <&pp3300_z1>; 174 }; 206 }; 175 207 176 pp3300_tp: pp3300-tp-regulator { 208 pp3300_tp: pp3300-tp-regulator { 177 compatible = "regulator-fixed" 209 compatible = "regulator-fixed"; 178 regulator-name = "pp3300_tp"; 210 regulator-name = "pp3300_tp"; 179 211 180 regulator-min-microvolt = <330 212 regulator-min-microvolt = <3300000>; 181 regulator-max-microvolt = <330 213 regulator-max-microvolt = <3300000>; 182 214 183 /* AP turns on with PP1800_L18 215 /* AP turns on with PP1800_L18B_S0; always on for AP */ 184 regulator-always-on; 216 regulator-always-on; 185 regulator-boot-on; 217 regulator-boot-on; 186 218 187 vin-supply = <&pp3300_z1>; 219 vin-supply = <&pp3300_z1>; 188 }; 220 }; 189 221 190 pp3300_ssd: pp3300-ssd-regulator { !! 222 pp2850_uf_cam: pp2850-uf-cam { 191 compatible = "regulator-fixed" 223 compatible = "regulator-fixed"; 192 regulator-name = "pp3300_ssd"; !! 224 regulator-name = "pp2850_uf_cam"; 193 225 194 regulator-min-microvolt = <330 !! 226 regulator-min-microvolt = <2850000>; 195 regulator-max-microvolt = <330 !! 227 regulator-max-microvolt = <2850000>; 196 228 197 gpio = <&tlmm 51 GPIO_ACTIVE_H !! 229 gpio = <&tlmm 6 GPIO_ACTIVE_HIGH>; 198 enable-active-high; 230 enable-active-high; 199 pinctrl-names = "default"; 231 pinctrl-names = "default"; 200 pinctrl-0 = <&ssd_en>; !! 232 pinctrl-0 = <&uf_cam_en>; 201 << 202 /* << 203 * The bootloaer may have left << 204 * off while the PCIe clocks a << 205 * so it's better to default t << 206 */ << 207 regulator-boot-on; << 208 233 209 vin-supply = <&pp3300_z1>; !! 234 vin-supply = <&pp3300_cam>; 210 }; 235 }; 211 236 212 pp2850_vcm_wf_cam: pp2850-vcm-wf-cam-r !! 237 pp2850_vcm_wf_cam: pp2850-vcm-wf-cam { 213 compatible = "regulator-fixed" 238 compatible = "regulator-fixed"; 214 regulator-name = "pp2850_vcm_w 239 regulator-name = "pp2850_vcm_wf_cam"; 215 240 216 regulator-min-microvolt = <285 241 regulator-min-microvolt = <2850000>; 217 regulator-max-microvolt = <285 242 regulator-max-microvolt = <2850000>; 218 243 219 gpio = <&tlmm 119 GPIO_ACTIVE_ !! 244 gpio = <&tlmm 7 GPIO_ACTIVE_HIGH>; 220 enable-active-high; 245 enable-active-high; 221 pinctrl-names = "default"; 246 pinctrl-names = "default"; 222 pinctrl-0 = <&wf_cam_en>; 247 pinctrl-0 = <&wf_cam_en>; 223 248 224 vin-supply = <&pp3300_z1>; !! 249 vin-supply = <&pp3300_cam>; 225 status = "disabled"; << 226 }; 250 }; 227 251 228 pp2850_wf_cam: pp2850-wf-cam-regulator !! 252 pp2850_wf_cam: pp2850-wf-cam { 229 compatible = "regulator-fixed" 253 compatible = "regulator-fixed"; 230 regulator-name = "pp2850_wf_ca 254 regulator-name = "pp2850_wf_cam"; 231 255 232 regulator-min-microvolt = <285 256 regulator-min-microvolt = <2850000>; 233 regulator-max-microvolt = <285 257 regulator-max-microvolt = <2850000>; 234 258 235 gpio = <&tlmm 119 GPIO_ACTIVE_ !! 259 gpio = <&tlmm 7 GPIO_ACTIVE_HIGH>; 236 enable-active-high; 260 enable-active-high; 237 /* 261 /* 238 * The pinconf can only be ref 262 * The pinconf can only be referenced once so we put it on the 239 * first regulator and comment 263 * first regulator and comment it out here. 240 * 264 * 241 * pinctrl-names = "default"; 265 * pinctrl-names = "default"; 242 * pinctrl-0 = <&wf_cam_en>; 266 * pinctrl-0 = <&wf_cam_en>; 243 */ 267 */ 244 268 245 vin-supply = <&pp3300_z1>; !! 269 vin-supply = <&pp3300_cam>; 246 status = "disabled"; << 247 }; 270 }; 248 271 249 pp1800_fp: pp1800-fp-regulator { 272 pp1800_fp: pp1800-fp-regulator { 250 compatible = "regulator-fixed" 273 compatible = "regulator-fixed"; 251 regulator-name = "pp1800_fp"; 274 regulator-name = "pp1800_fp"; 252 275 253 regulator-min-microvolt = <180 276 regulator-min-microvolt = <1800000>; 254 regulator-max-microvolt = <180 277 regulator-max-microvolt = <1800000>; 255 278 256 regulator-boot-on; 279 regulator-boot-on; 257 regulator-always-on; 280 regulator-always-on; 258 281 259 /* 282 /* 260 * WARNING: it is intentional !! 283 * WARNING: it is intentional that GPIO 42 isn't listed here. 261 * The userspace script for up 284 * The userspace script for updating the fingerprint firmware 262 * needs to control the FP reg 285 * needs to control the FP regulators during a FW update, 263 * hence the signal can't be o 286 * hence the signal can't be owned by the kernel regulator. 264 */ 287 */ 265 288 266 pinctrl-names = "default"; 289 pinctrl-names = "default"; 267 pinctrl-0 = <&en_fp_rails>; 290 pinctrl-0 = <&en_fp_rails>; 268 291 269 vin-supply = <&pp1800_l18b_s0> 292 vin-supply = <&pp1800_l18b_s0>; 270 status = "disabled"; 293 status = "disabled"; 271 }; 294 }; 272 295 273 pp1800_wf_cam: pp1800-wf-cam-regulator !! 296 pp1800_uf_cam: pp1800-uf-cam { >> 297 compatible = "regulator-fixed"; >> 298 regulator-name = "pp1800_uf_cam"; >> 299 >> 300 regulator-min-microvolt = <1800000>; >> 301 regulator-max-microvolt = <1800000>; >> 302 >> 303 gpio = <&tlmm 6 GPIO_ACTIVE_HIGH>; >> 304 enable-active-high; >> 305 /* >> 306 * The pinconf can only be referenced once so we put it on the >> 307 * first regulator and comment it out here. >> 308 * >> 309 * pinctrl-names = "default"; >> 310 * pinctrl-0 = <&uf_cam_en>; >> 311 */ >> 312 >> 313 vin-supply = <&pp1800_l19b>; >> 314 }; >> 315 >> 316 pp1800_wf_cam: pp1800-wf-cam { 274 compatible = "regulator-fixed" 317 compatible = "regulator-fixed"; 275 regulator-name = "pp1800_wf_ca 318 regulator-name = "pp1800_wf_cam"; 276 319 277 regulator-min-microvolt = <180 320 regulator-min-microvolt = <1800000>; 278 regulator-max-microvolt = <180 321 regulator-max-microvolt = <1800000>; 279 322 280 gpio = <&tlmm 119 GPIO_ACTIVE_ !! 323 gpio = <&tlmm 7 GPIO_ACTIVE_HIGH>; 281 enable-active-high; 324 enable-active-high; 282 /* 325 /* 283 * The pinconf can only be ref 326 * The pinconf can only be referenced once so we put it on the 284 * first regulator and comment 327 * first regulator and comment it out here. 285 * 328 * 286 * pinctrl-names = "default"; 329 * pinctrl-names = "default"; 287 * pinctrl-0 = <&wf_cam_en>; 330 * pinctrl-0 = <&wf_cam_en>; 288 */ 331 */ 289 332 290 vin-supply = <&vreg_l19b_s0>; !! 333 vin-supply = <&pp1800_l19b>; 291 status = "disabled"; << 292 }; 334 }; 293 335 294 pp1200_wf_cam: pp1200-wf-cam-regulator !! 336 pp1200_wf_cam: pp1200-wf-cam { 295 compatible = "regulator-fixed" 337 compatible = "regulator-fixed"; 296 regulator-name = "pp1200_wf_ca 338 regulator-name = "pp1200_wf_cam"; 297 339 298 regulator-min-microvolt = <120 340 regulator-min-microvolt = <1200000>; 299 regulator-max-microvolt = <120 341 regulator-max-microvolt = <1200000>; 300 342 301 gpio = <&tlmm 119 GPIO_ACTIVE_ !! 343 gpio = <&tlmm 7 GPIO_ACTIVE_HIGH>; 302 enable-active-high; 344 enable-active-high; 303 /* 345 /* 304 * The pinconf can only be ref 346 * The pinconf can only be referenced once so we put it on the 305 * first regulator and comment 347 * first regulator and comment it out here. 306 * 348 * 307 * pinctrl-names = "default"; 349 * pinctrl-names = "default"; 308 * pinctrl-0 = <&wf_cam_en>; 350 * pinctrl-0 = <&wf_cam_en>; 309 */ 351 */ 310 352 311 vin-supply = <&pp3300_z1>; !! 353 vin-supply = <&pp1200_l6b>; 312 status = "disabled"; << 313 }; 354 }; 314 355 315 /* BOARD-SPECIFIC TOP LEVEL NODES */ 356 /* BOARD-SPECIFIC TOP LEVEL NODES */ 316 357 317 max98360a: audio-codec-0 { !! 358 gpio_keys: gpio-keys { 318 compatible = "maxim,max98360a" !! 359 compatible = "gpio-keys"; >> 360 status = "disabled"; 319 pinctrl-names = "default"; 361 pinctrl-names = "default"; 320 pinctrl-0 = <&_en>; !! 362 pinctrl-0 = <&pen_pdct_l>; 321 sdmode-gpios = <&tlmm 63 GPIO_ !! 363 322 #sound-dai-cells = <0>; !! 364 pen_insert: pen-insert { >> 365 label = "Pen Insert"; >> 366 >> 367 /* Insert = low, eject = high */ >> 368 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>; >> 369 linux,code = <SW_PEN_INSERTED>; >> 370 linux,input-type = <EV_SW>; >> 371 wakeup-event-action = <EV_ACT_DEASSERTED>; >> 372 wakeup-source; >> 373 }; 323 }; 374 }; 324 375 325 pwmleds: pwmleds { !! 376 pwmleds { 326 compatible = "pwm-leds"; 377 compatible = "pwm-leds"; 327 status = "disabled"; 378 status = "disabled"; 328 keyboard_backlight: led-0 { !! 379 keyboard_backlight: keyboard-backlight { >> 380 status = "disabled"; 329 label = "cros_ec::kbd_ 381 label = "cros_ec::kbd_backlight"; 330 function = LED_FUNCTIO << 331 pwms = <&cros_ec_pwm 0 382 pwms = <&cros_ec_pwm 0>; 332 max-brightness = <1023 383 max-brightness = <1023>; 333 }; 384 }; 334 }; 385 }; 335 }; 386 }; 336 387 337 /* !! 388 &apps_rsc { 338 * ADJUSTMENTS TO QCARD REGULATORS !! 389 pm7325-regulators { 339 * !! 390 compatible = "qcom,pm7325-rpmh-regulators"; 340 * Mostly this is just board-local names for r !! 391 qcom,pmic-id = "b"; 341 * Qcard, but this also has some minor regulat !! 392 342 * !! 393 vdd19_pmu_pcie_i: 343 * Names are only listed here if regulators go !! 394 vdd19_pmu_rfa_i: 344 * testpoint. !! 395 vreg_s1b_wlan: 345 */ !! 396 vreg_s1b: smps1 { >> 397 regulator-min-microvolt = <1856000>; >> 398 regulator-max-microvolt = <2040000>; >> 399 }; 346 400 347 /* From Qcard to our board; ordered by PMIC-ID !! 401 vdd_pmu_aon_i: >> 402 vreg_s7b_wlan: >> 403 vreg_s7b: smps7 { >> 404 regulator-min-microvolt = <535000>; >> 405 regulator-max-microvolt = <1120000>; >> 406 }; 348 407 349 pp1256_s8b: &vreg_s8b_1p256 {}; !! 408 vdd13_pmu_pcie_i: >> 409 vdd13_pmu_rfa_i: >> 410 vreg_s8b_wlan: >> 411 vreg_s8b: smps8 { >> 412 regulator-min-microvolt = <1256000>; >> 413 regulator-max-microvolt = <1500000>; >> 414 }; 350 415 351 pp1800_l18b_s0: &vreg_l18b_1p8 {}; !! 416 vdda_usb_ss_dp_core: 352 pp1800_l18b: &vreg_l18b_1p8 {}; !! 417 vreg_l1b: ldo1 { >> 418 regulator-min-microvolt = <825000>; >> 419 regulator-max-microvolt = <925000>; >> 420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 421 }; 353 422 354 vreg_l19b_s0: &vreg_l19b_1p8 {}; !! 423 vdda_usb_hs0_3p1: >> 424 vreg_l2b: ldo2 { >> 425 regulator-min-microvolt = <2700000>; >> 426 regulator-max-microvolt = <3544000>; >> 427 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 428 }; 355 429 356 pp1800_alc5682: &vreg_l2c_1p8 {}; !! 430 pp1200_l6b: 357 pp1800_l2c: &vreg_l2c_1p8 {}; !! 431 vdd_ufs_1p2: >> 432 vdd_vref: >> 433 vdda_csi01_1p2: >> 434 vdda_csi23_1p2: >> 435 vdda_csi4_1p2: >> 436 vdda_dsi0_1p2: >> 437 vdda_pcie0_1p2: >> 438 vdda_pcie1_1p2: >> 439 vdda_usb_ss_dp_1p2: >> 440 vdda_qlink0_1p2_ck: >> 441 vdda_qlink1_1p2_ck: >> 442 vreg_l6b_1p2: >> 443 vreg_l6b: ldo6 { >> 444 regulator-min-microvolt = <1120000>; >> 445 regulator-max-microvolt = <1408000>; >> 446 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 447 }; 358 448 359 vreg_l4c: &vreg_l4c_1p8_3p0 {}; !! 449 pp2950_l7b: >> 450 vreg_l7b: ldo7 { >> 451 regulator-min-microvolt = <2960000>; >> 452 regulator-max-microvolt = <2960000>; >> 453 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 454 }; 360 455 361 ppvar_l6c: &vreg_l6c_2p96 {}; !! 456 codec_vcc: >> 457 pp1800_l18b_s0: >> 458 pp1800_ts: >> 459 vdd1: >> 460 vddpx_0: >> 461 vddpx_3: >> 462 vddpx_7: >> 463 vreg_l18b: ldo18 { >> 464 regulator-min-microvolt = <1800000>; >> 465 regulator-max-microvolt = <2000000>; >> 466 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 467 }; 362 468 363 pp3000_l7c: &vreg_l7c_3p0 {}; !! 469 pp1800_l19b: >> 470 vddpx_ts: >> 471 vddpx_wl4otp: >> 472 vreg_l19b: ldo19 { >> 473 regulator-min-microvolt = <1800000>; >> 474 regulator-max-microvolt = <1800000>; >> 475 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 476 }; >> 477 }; 364 478 365 pp1800_prox: &vreg_l8c_1p8 {}; !! 479 pm8350c-regulators { 366 pp1800_l8c: &vreg_l8c_1p8 {}; !! 480 compatible = "qcom,pm8350c-rpmh-regulators"; >> 481 qcom,pmic-id = "c"; >> 482 >> 483 vreg_s1c: smps1 { >> 484 regulator-min-microvolt = <2190000>; >> 485 regulator-max-microvolt = <2210000>; >> 486 }; 367 487 368 pp2950_l9c: &vreg_l9c_2p96 {}; !! 488 vddpx_1: >> 489 vreg_s9c: smps9 { >> 490 regulator-min-microvolt = <1010000>; >> 491 regulator-max-microvolt = <1170000>; >> 492 }; 369 493 370 pp1800_lcm: &vreg_l12c_1p8 {}; !! 494 pp1800_l1c: 371 pp1800_mipi: &vreg_l12c_1p8 {}; !! 495 pp1800_pen: 372 pp1800_l12c: &vreg_l12c_1p8 {}; !! 496 vdd_a_gfx_cs_1p1: >> 497 vdd_a_cxo_1p8: >> 498 vdd_qfprom: >> 499 vdda_apc_cs_1p8: >> 500 vdda_qrefs_1p8: >> 501 vdda_turing_q6_cs_1p8: >> 502 vdda_usb_hs0_1p8: >> 503 vreg_l1c: ldo1 { >> 504 regulator-min-microvolt = <1800000>; >> 505 regulator-max-microvolt = <1980000>; >> 506 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 507 }; 373 508 374 pp3300_lcm: &vreg_l13c_3p0 {}; !! 509 dmic_vdd: 375 pp3300_mipi: &vreg_l13c_3p0 {}; !! 510 pp1800_alc5682: 376 pp3300_l13c: &vreg_l13c_3p0 {}; !! 511 pp1800_l2c: >> 512 pp1800_vreg_alc5682: >> 513 vreg_l2c: ldo2 { >> 514 regulator-min-microvolt = <1620000>; >> 515 regulator-max-microvolt = <1980000>; >> 516 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 517 }; 377 518 378 /* From our board to Qcard; ordered same as no !! 519 pp3300_sar: >> 520 pp3300_sensor: >> 521 vreg_l3c: ldo3 { >> 522 regulator-min-microvolt = <2800000>; >> 523 regulator-max-microvolt = <3540000>; >> 524 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 525 }; 379 526 380 vreg_edp_bl: &ppvar_sys {}; !! 527 ppvar_uim1: >> 528 vddpx_5: >> 529 vreg_l4c: ldo4 { >> 530 regulator-min-microvolt = <1620000>; >> 531 regulator-max-microvolt = <3300000>; >> 532 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 533 }; 381 534 382 ts_avdd: &pp3300_left_in_mlb {}; !! 535 pp2950_l5c: 383 vreg_edp_3p3: &pp3300_left_in_mlb {}; !! 536 uim_vcc: >> 537 vddpx_6: >> 538 vreg_l5c: ldo5 { >> 539 regulator-min-microvolt = <1620000>; >> 540 regulator-max-microvolt = <3300000>; >> 541 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 542 }; 384 543 385 /* Regulator overrides from Qcard */ !! 544 ppvar_l6c: >> 545 vddpx_2: >> 546 vreg_l6c: ldo6 { >> 547 regulator-min-microvolt = <1800000>; >> 548 regulator-max-microvolt = <2950000>; >> 549 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 550 }; 386 551 387 /* !! 552 vreg_l7c: ldo7 { 388 * Herobrine boards only use l2c to power an e !! 553 regulator-min-microvolt = <3000000>; 389 * alc5682) and we want that to be at 1.8V, no !! 554 regulator-max-microvolt = <3544000>; 390 */ !! 555 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 391 &vreg_l2c_1p8 { !! 556 }; 392 regulator-min-microvolt = <1800000>; << 393 }; << 394 557 395 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE !! 558 pp1800_prox: >> 559 pp1800_sar: >> 560 vreg_l8c: ldo8 { >> 561 regulator-min-microvolt = <1620000>; >> 562 regulator-max-microvolt = <2000000>; >> 563 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 564 }; 396 565 397 &edp_panel { !! 566 pp2950_l9c: 398 /* Our board provides power to the qca !! 567 vreg_l9c: ldo9 { 399 power-supply = <&vreg_edp_3p3>; !! 568 regulator-min-microvolt = <2960000>; 400 }; !! 569 regulator-max-microvolt = <2960000>; >> 570 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 571 }; 401 572 402 ap_sar_sensor_i2c: &i2c1 { !! 573 vdd_a_gnss_0p9: 403 clock-frequency = <400000>; !! 574 vdd_ufs_core: 404 status = "disabled"; !! 575 vdd_usb_hs0_core: >> 576 vdd_vref_0p9: >> 577 vdda_csi01_0p9: >> 578 vdda_csi23_0p9: >> 579 vdda_csi4_0p9: >> 580 vdda_dsi0_pll_0p9: >> 581 vdda_dsi0_0p9: >> 582 vdda_pcie0_core: >> 583 vdda_pcie1_core: >> 584 vdda_qlink0_0p9: >> 585 vdda_qlink1_0p9: >> 586 vdda_qlink0_0p9_ck: >> 587 vdda_qlink1_0p9_ck: >> 588 vdda_qrefs_0p875: >> 589 vreg_l10c_0p8: >> 590 vreg_l10c: ldo10 { >> 591 regulator-min-microvolt = <720000>; >> 592 regulator-max-microvolt = <1050000>; >> 593 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 594 }; 405 595 406 ap_sar_sensor0: proximity@28 { !! 596 pp2800_l11c: 407 compatible = "semtech,sx9324"; !! 597 vreg_l11c: ldo11 { 408 reg = <0x28>; !! 598 regulator-min-microvolt = <2800000>; 409 #io-channel-cells = <1>; !! 599 regulator-max-microvolt = <3544000>; 410 pinctrl-names = "default"; !! 600 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 411 pinctrl-0 = <&sar0_irq_odl>; !! 601 }; 412 602 413 interrupt-parent = <&tlmm>; !! 603 pp1800_l12c: 414 interrupts = <141 IRQ_TYPE_LEV !! 604 vreg_l12c: ldo12 { >> 605 regulator-min-microvolt = <1650000>; >> 606 regulator-max-microvolt = <2000000>; >> 607 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 608 }; 415 609 416 vdd-supply = <&pp1800_prox>; !! 610 pp3300_l13c: >> 611 vreg_l13c: ldo13 { >> 612 regulator-min-microvolt = <2700000>; >> 613 regulator-max-microvolt = <3544000>; >> 614 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> 615 }; 417 616 418 label = "proximity-wifi_cellul !! 617 vreg_bob: bob { 419 status = "disabled"; !! 618 regulator-min-microvolt = <3008000>; >> 619 regulator-max-microvolt = <3960000>; >> 620 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; >> 621 }; 420 }; 622 }; >> 623 }; 421 624 422 ap_sar_sensor1: proximity@2c { !! 625 ap_tp_i2c: &i2c1 { 423 compatible = "semtech,sx9324"; !! 626 status = "okay"; 424 reg = <0x2c>; !! 627 clock-frequency = <400000>; 425 #io-channel-cells = <1>; !! 628 >> 629 trackpad: trackpad@15 { >> 630 compatible = "elan,ekth3000"; >> 631 reg = <0x15>; 426 pinctrl-names = "default"; 632 pinctrl-names = "default"; 427 pinctrl-0 = <&sar1_irq_odl>; !! 633 pinctrl-0 = <&tp_int_odl>; 428 634 429 interrupt-parent = <&tlmm>; 635 interrupt-parent = <&tlmm>; 430 interrupts = <140 IRQ_TYPE_LEV !! 636 interrupts = <102 IRQ_TYPE_EDGE_FALLING>; 431 637 432 vdd-supply = <&pp1800_prox>; !! 638 vcc-supply = <&pp3300_z1>; 433 639 434 label = "proximity-wifi_cellul !! 640 wakeup-source; 435 status = "disabled"; << 436 }; 641 }; 437 }; 642 }; 438 643 439 ap_i2c_tpm: &i2c14 { !! 644 ap_h1_i2c: &i2c12 { 440 status = "okay"; 645 status = "okay"; 441 clock-frequency = <400000>; 646 clock-frequency = <400000>; 442 647 443 tpm@50 { 648 tpm@50 { 444 compatible = "google,cr50"; 649 compatible = "google,cr50"; 445 reg = <0x50>; 650 reg = <0x50>; 446 651 447 pinctrl-names = "default"; 652 pinctrl-names = "default"; 448 pinctrl-0 = <&gsc_ap_int_odl>; !! 653 pinctrl-0 = <&h1_ap_int_odl>; 449 654 450 interrupt-parent = <&tlmm>; 655 interrupt-parent = <&tlmm>; 451 interrupts = <104 IRQ_TYPE_EDG !! 656 interrupts = <54 IRQ_TYPE_EDGE_RISING>; 452 }; 657 }; 453 }; 658 }; 454 659 455 &mdss { !! 660 ap_ts_pen: &i2c13 { 456 status = "okay"; 661 status = "okay"; >> 662 clock-frequency = <400000>; >> 663 >> 664 ap_ts: touchscreen@10 { >> 665 compatible = "hid-over-i2c"; >> 666 reg = <0x10>; >> 667 pinctrl-names = "default"; >> 668 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; >> 669 >> 670 interrupt-parent = <&tlmm>; >> 671 interrupts = <81 IRQ_TYPE_LEVEL_LOW>; >> 672 >> 673 post-power-on-delay-ms = <20>; >> 674 hid-descr-addr = <0x0001>; >> 675 >> 676 vdd-supply = <&pp3300_ts>; >> 677 }; 457 }; 678 }; 458 679 459 &mdss_dp { !! 680 &pm7325_gpios { 460 status = "okay"; !! 681 status = "disabled"; /* No GPIOs are connected */ 461 pinctrl-names = "default"; << 462 pinctrl-0 = <&dp_hot_plug_det>; << 463 }; 682 }; 464 683 465 &mdss_dp_out { !! 684 &pmk8350_gpios { 466 data-lanes = <0 1>; !! 685 status = "disabled"; /* No GPIOs are connected */ 467 link-frequencies = /bits/ 64 <16200000 << 468 }; 686 }; 469 687 470 /* NVMe drive, enabled on a per-board basis */ !! 688 &pmk8350_pon { 471 &pcie1 { !! 689 status = "disabled"; 472 pinctrl-names = "default"; !! 690 }; 473 pinctrl-0 = <&pcie1_clkreq_n>, <&ssd_r << 474 691 475 perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW !! 692 &pmk8350_rtc { 476 vddpe-3v3-supply = <&pp3300_ssd>; !! 693 status = "disabled"; 477 }; 694 }; 478 695 479 &pm8350c_pwm { !! 696 &pmk8350_vadc { 480 status = "okay"; !! 697 pmk8350_die_temp { >> 698 reg = <PMK8350_ADC7_DIE_TEMP>; >> 699 label = "pmk8350_die_temp"; >> 700 qcom,pre-scaling = <1 1>; >> 701 }; >> 702 >> 703 pmr735a_die_temp { >> 704 reg = <PMR735A_ADC7_DIE_TEMP>; >> 705 label = "pmr735a_die_temp"; >> 706 qcom,pre-scaling = <1 1>; >> 707 }; >> 708 }; >> 709 >> 710 &qfprom { >> 711 vcc-supply = <&vdd_qfprom>; 481 }; 712 }; 482 713 483 &pm8350c_pwm_backlight { !! 714 &qspi { 484 status = "okay"; 715 status = "okay"; >> 716 pinctrl-names = "default"; >> 717 pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, <&qspi_data01>; 485 718 486 /* Our board provides power to the qca !! 719 flash@0 { 487 power-supply = <&vreg_edp_bl>; !! 720 compatible = "jedec,spi-nor"; 488 }; !! 721 reg = <0>; 489 722 490 &pmk8350_rtc { !! 723 spi-max-frequency = <37500000>; 491 status = "disabled"; !! 724 spi-tx-bus-width = <2>; >> 725 spi-rx-bus-width = <2>; >> 726 }; 492 }; 727 }; 493 728 494 &qupv3_id_0 { 729 &qupv3_id_0 { 495 status = "okay"; 730 status = "okay"; 496 }; 731 }; 497 732 498 &qupv3_id_1 { 733 &qupv3_id_1 { 499 status = "okay"; 734 status = "okay"; 500 }; 735 }; 501 736 502 /* SD Card, enabled on a per-board basis */ !! 737 &sdhc_1 { >> 738 status = "okay"; >> 739 >> 740 pinctrl-names = "default", "sleep"; >> 741 pinctrl-0 = <&sdc1_on>; >> 742 pinctrl-1 = <&sdc1_off>; >> 743 vmmc-supply = <&pp2950_l7b>; >> 744 vqmmc-supply = <&pp1800_l19b>; >> 745 }; >> 746 503 &sdhc_2 { 747 &sdhc_2 { 504 pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, !! 748 status = "okay"; 505 pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_ << 506 749 >> 750 pinctrl-names = "default", "sleep"; >> 751 pinctrl-0 = <&sdc2_on>; >> 752 pinctrl-1 = <&sdc2_off>; 507 vmmc-supply = <&pp2950_l9c>; 753 vmmc-supply = <&pp2950_l9c>; 508 vqmmc-supply = <&ppvar_l6c>; 754 vqmmc-supply = <&ppvar_l6c>; 509 755 510 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; 756 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; 511 }; 757 }; 512 758 513 &spi_flash { !! 759 ap_ec_spi: &spi8 { 514 spi-max-frequency = <50000000>; << 515 }; << 516 << 517 /* Fingerprint, enabled on a per-board basis * << 518 ap_spi_fp: &spi9 { << 519 pinctrl-0 = <&qup_spi9_data_clk>, <&qu << 520 << 521 cs-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>; << 522 << 523 cros_ec_fp: ec@0 { << 524 compatible = "google,cros-ec-f << 525 reg = <0>; << 526 interrupt-parent = <&tlmm>; << 527 interrupts = <61 IRQ_TYPE_LEVE << 528 pinctrl-names = "default"; << 529 pinctrl-0 = <&fp_to_ap_irq_l>, << 530 boot0-gpios = <&tlmm 68 GPIO_A << 531 reset-gpios = <&tlmm 78 GPIO_A << 532 spi-max-frequency = <3000000>; << 533 vdd-supply = <&pp3300_fp_mcu>; << 534 }; << 535 }; << 536 << 537 ap_ec_spi: &spi10 { << 538 status = "okay"; 760 status = "okay"; 539 pinctrl-0 = <&qup_spi10_data_clk>, <&q << 540 761 541 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; !! 762 pinctrl-0 = <&qup_spi8_data_clk>, <&qup_spi8_cs_gpio_init_high>, <&qup_spi8_cs_gpio>; >> 763 cs-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; 542 764 543 cros_ec: ec@0 { 765 cros_ec: ec@0 { 544 compatible = "google,cros-ec-s 766 compatible = "google,cros-ec-spi"; 545 reg = <0>; 767 reg = <0>; 546 interrupt-parent = <&tlmm>; 768 interrupt-parent = <&tlmm>; 547 interrupts = <18 IRQ_TYPE_LEVE !! 769 interrupts = <142 IRQ_TYPE_LEVEL_LOW>; 548 pinctrl-names = "default"; 770 pinctrl-names = "default"; 549 pinctrl-0 = <&ap_ec_int_l>; 771 pinctrl-0 = <&ap_ec_int_l>; 550 spi-max-frequency = <3000000>; 772 spi-max-frequency = <3000000>; 551 wakeup-source; << 552 773 553 cros_ec_pwm: pwm { !! 774 cros_ec_pwm: ec-pwm { 554 compatible = "google,c 775 compatible = "google,cros-ec-pwm"; 555 #pwm-cells = <1>; 776 #pwm-cells = <1>; 556 }; 777 }; 557 778 558 i2c_tunnel: i2c-tunnel { 779 i2c_tunnel: i2c-tunnel { 559 compatible = "google,c 780 compatible = "google,cros-ec-i2c-tunnel"; 560 google,remote-bus = <0 781 google,remote-bus = <0>; 561 #address-cells = <1>; 782 #address-cells = <1>; 562 #size-cells = <0>; 783 #size-cells = <0>; 563 }; 784 }; 564 785 565 typec { 786 typec { 566 compatible = "google,c 787 compatible = "google,cros-ec-typec"; 567 #address-cells = <1>; 788 #address-cells = <1>; 568 #size-cells = <0>; 789 #size-cells = <0>; 569 790 570 usb_c0: connector@0 { 791 usb_c0: connector@0 { 571 compatible = " 792 compatible = "usb-c-connector"; 572 reg = <0>; 793 reg = <0>; 573 label = "left" 794 label = "left"; 574 power-role = " 795 power-role = "dual"; 575 data-role = "h 796 data-role = "host"; 576 try-power-role 797 try-power-role = "source"; 577 }; 798 }; 578 799 579 usb_c1: connector@1 { 800 usb_c1: connector@1 { 580 compatible = " 801 compatible = "usb-c-connector"; 581 reg = <1>; 802 reg = <1>; 582 label = "right 803 label = "right"; 583 power-role = " 804 power-role = "dual"; 584 data-role = "h 805 data-role = "host"; 585 try-power-role 806 try-power-role = "source"; 586 }; 807 }; 587 }; 808 }; 588 }; 809 }; 589 }; 810 }; 590 811 591 #include <arm/cros-ec-keyboard.dtsi> 812 #include <arm/cros-ec-keyboard.dtsi> 592 #include <arm/cros-ec-sbs.dtsi> 813 #include <arm/cros-ec-sbs.dtsi> 593 814 594 &keyboard_controller { 815 &keyboard_controller { 595 function-row-physmap = < 816 function-row-physmap = < 596 MATRIX_KEY(0x00, 0x02, 0) 817 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 597 MATRIX_KEY(0x03, 0x02, 0) 818 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 598 MATRIX_KEY(0x02, 0x02, 0) 819 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 599 MATRIX_KEY(0x01, 0x02, 0) 820 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 600 MATRIX_KEY(0x03, 0x04, 0) 821 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 601 MATRIX_KEY(0x02, 0x04, 0) 822 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 602 MATRIX_KEY(0x01, 0x04, 0) 823 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 603 MATRIX_KEY(0x02, 0x09, 0) 824 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 604 MATRIX_KEY(0x01, 0x09, 0) 825 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 605 MATRIX_KEY(0x00, 0x04, 0) 826 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 606 >; 827 >; 607 linux,keymap = < 828 linux,keymap = < 608 MATRIX_KEY(0x00, 0x02, KEY_BAC 829 MATRIX_KEY(0x00, 0x02, KEY_BACK) 609 MATRIX_KEY(0x03, 0x02, KEY_REF 830 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 610 MATRIX_KEY(0x02, 0x02, KEY_ZOO 831 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 611 MATRIX_KEY(0x01, 0x02, KEY_SCA 832 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 612 MATRIX_KEY(0x03, 0x04, KEY_SYS 833 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 613 MATRIX_KEY(0x02, 0x04, KEY_BRI 834 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 614 MATRIX_KEY(0x01, 0x04, KEY_BRI 835 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 615 MATRIX_KEY(0x02, 0x09, KEY_MUT 836 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 616 MATRIX_KEY(0x01, 0x09, KEY_VOL 837 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 617 MATRIX_KEY(0x00, 0x04, KEY_VOL 838 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 618 839 619 CROS_STD_MAIN_KEYMAP 840 CROS_STD_MAIN_KEYMAP 620 >; 841 >; 621 }; 842 }; 622 843 >> 844 &uart5 { >> 845 compatible = "qcom,geni-debug-uart"; >> 846 status = "okay"; >> 847 }; >> 848 >> 849 &uart7 { >> 850 status = "okay"; >> 851 }; >> 852 623 &usb_1 { 853 &usb_1 { 624 status = "okay"; 854 status = "okay"; 625 }; 855 }; 626 856 627 &usb_1_dwc3 { 857 &usb_1_dwc3 { 628 dr_mode = "host"; 858 dr_mode = "host"; 629 << 630 #address-cells = <1>; << 631 #size-cells = <0>; << 632 << 633 /* 2.x hub on port 1 */ << 634 usb_hub_2_x: hub@1 { << 635 compatible = "usbbda,5411"; << 636 reg = <1>; << 637 vdd-supply = <&pp3300_hub>; << 638 peer-hub = <&usb_hub_3_x>; << 639 }; << 640 << 641 /* 3.x hub on port 2 */ << 642 usb_hub_3_x: hub@2 { << 643 compatible = "usbbda,411"; << 644 reg = <2>; << 645 vdd-supply = <&pp3300_hub>; << 646 peer-hub = <&usb_hub_2_x>; << 647 }; << 648 }; 859 }; 649 860 650 &usb_1_hsphy { 861 &usb_1_hsphy { 651 status = "okay"; 862 status = "okay"; 652 863 653 qcom,hs-rise-fall-time-bp = <0>; !! 864 vdda-pll-supply = <&vdd_usb_hs0_core>; 654 qcom,squelch-detector-bp = <(-2090)>; !! 865 vdda33-supply = <&vdda_usb_hs0_3p1>; 655 qcom,hs-disconnect-bp = <1743>; !! 866 vdda18-supply = <&vdda_usb_hs0_1p8>; 656 qcom,hs-amplitude-bp = <1780>; << 657 qcom,hs-crossover-voltage-microvolt = << 658 qcom,hs-output-impedance-micro-ohms = << 659 }; 867 }; 660 868 661 &usb_1_qmpphy { 869 &usb_1_qmpphy { 662 status = "okay"; 870 status = "okay"; 663 }; << 664 871 665 /* PINCTRL - ADDITIONS TO NODES IN PARENT DEVI !! 872 vdda-phy-supply = <&vdda_usb_ss_dp_1p2>; 666 !! 873 vdda-pll-supply = <&vdda_usb_ss_dp_core>; 667 &dp_hot_plug_det { << 668 bias-disable; << 669 }; 874 }; 670 875 671 &mi2s1_data0 { !! 876 &usb_2 { 672 drive-strength = <6>; !! 877 status = "okay"; 673 bias-disable; << 674 }; 878 }; 675 879 676 &mi2s1_sclk { !! 880 &usb_2_dwc3 { 677 drive-strength = <6>; !! 881 dr_mode = "host"; 678 bias-disable; << 679 }; 882 }; 680 883 681 &mi2s1_ws { !! 884 &usb_2_hsphy { 682 drive-strength = <6>; !! 885 status = "okay"; 683 bias-disable; << 684 }; << 685 886 686 &pcie1_clkreq_n { !! 887 vdda-pll-supply = <&vdd_usb_hs0_core>; 687 bias-pull-up; !! 888 vdda33-supply = <&vdda_usb_hs0_3p1>; 688 drive-strength = <2>; !! 889 vdda18-supply = <&vdda_usb_hs0_1p8>; 689 }; 890 }; 690 891 >> 892 /* PINCTRL - additions to nodes defined in sc7280.dtsi */ >> 893 691 &qspi_cs0 { 894 &qspi_cs0 { 692 bias-disable; /* External pu !! 895 bias-disable; 693 drive-strength = <8>; << 694 }; 896 }; 695 897 696 &qspi_clk { 898 &qspi_clk { 697 bias-pull-down; /* No external !! 899 bias-disable; 698 drive-strength = <8>; << 699 }; << 700 << 701 &qspi_data0 { << 702 bias-pull-down; /* No external << 703 drive-strength = <8>; << 704 }; 900 }; 705 901 706 &qspi_data1 { !! 902 &qspi_data01 { 707 bias-disable; /* External pu !! 903 /* High-Z when no transfers; nice to park the lines */ 708 drive-strength = <8>; !! 904 bias-pull-up; 709 }; 905 }; 710 906 711 /* For ap_tp_i2c */ !! 907 &qup_uart5_rx { 712 &qup_i2c0_data_clk { << 713 /* Has external pull */ << 714 bias-disable; << 715 drive-strength = <2>; 908 drive-strength = <2>; >> 909 bias-pull-up; 716 }; 910 }; 717 911 718 /* For ap_i2c_tpm */ !! 912 &qup_uart5_tx { 719 &qup_i2c14_data_clk { << 720 /* Has external pull */ << 721 bias-disable; << 722 drive-strength = <2>; 913 drive-strength = <2>; 723 }; << 724 << 725 /* For ap_spi_fp */ << 726 &qup_spi9_data_clk { << 727 bias-disable; 914 bias-disable; 728 drive-strength = <2>; << 729 }; 915 }; 730 916 731 /* For ap_spi_fp */ !! 917 &qup_uart7_cts { 732 &qup_spi9_cs_gpio { !! 918 /* 733 bias-disable; !! 919 * Configure a pull-down on CTS to match the pull of 734 drive-strength = <2>; !! 920 * the Bluetooth module. >> 921 */ >> 922 bias-pull-down; 735 }; 923 }; 736 924 737 /* For ap_ec_spi */ !! 925 &qup_uart7_rts { 738 &qup_spi10_data_clk { !! 926 /* We'll drive RTS, so no pull */ 739 bias-disable; << 740 drive-strength = <2>; 927 drive-strength = <2>; >> 928 bias-disable; 741 }; 929 }; 742 930 743 /* For ap_ec_spi */ !! 931 &qup_uart7_tx { 744 &qup_spi10_cs_gpio { !! 932 /* We'll drive TX, so no pull */ 745 bias-disable; << 746 drive-strength = <2>; 933 drive-strength = <2>; >> 934 bias-disable; 747 }; 935 }; 748 936 749 /* For uart_dbg */ !! 937 &qup_uart7_rx { 750 &qup_uart5_rx { !! 938 /* >> 939 * Configure a pull-up on RX. This is needed to avoid >> 940 * garbage data when the TX pin of the Bluetooth module is >> 941 * in tri-state (module powered off or not driving the >> 942 * signal yet). >> 943 */ 751 bias-pull-up; 944 bias-pull-up; 752 }; 945 }; 753 946 754 /* For uart_dbg */ !! 947 &sdc1_on { 755 &qup_uart5_tx { !! 948 clk { 756 bias-disable; !! 949 bias-disable; 757 drive-strength = <2>; !! 950 drive-strength = <16>; 758 }; !! 951 }; 759 952 760 &sdc2_clk { !! 953 cmd { 761 bias-disable; !! 954 bias-pull-up; 762 drive-strength = <16>; !! 955 drive-strength = <10>; 763 }; !! 956 }; 764 957 765 &sdc2_cmd { !! 958 data { 766 bias-pull-up; !! 959 bias-pull-up; 767 drive-strength = <10>; !! 960 drive-strength = <10>; >> 961 }; >> 962 >> 963 rclk { >> 964 bias-pull-down; >> 965 }; 768 }; 966 }; 769 967 770 &sdc2_data { !! 968 &sdc2_on { 771 bias-pull-up; !! 969 clk { 772 drive-strength = <10>; !! 970 bias-disable; >> 971 drive-strength = <16>; >> 972 }; >> 973 >> 974 cmd { >> 975 bias-pull-up; >> 976 drive-strength = <10>; >> 977 }; >> 978 >> 979 data { >> 980 bias-pull-up; >> 981 drive-strength = <10>; >> 982 }; >> 983 >> 984 sd-cd { >> 985 pins = "gpio91"; >> 986 bias-pull-up; >> 987 }; 773 }; 988 }; 774 989 775 /* PINCTRL - board-specific pinctrl */ 990 /* PINCTRL - board-specific pinctrl */ 776 991 777 &pm7325_gpios { !! 992 &pm8350c_gpios { 778 /* !! 993 gpio-line-names = "AP_SUSPEND", 779 * On a quick glance it might look lik !! 994 "", 780 * that only passes through to a debug !! 995 "", 781 * volume up key. !! 996 "AP_BL_EN", 782 */ !! 997 "", 783 status = "disabled"; /* No GPIOs are c !! 998 "SD_CD_ODL", 784 }; !! 999 "", >> 1000 "", >> 1001 "AP_BL_PWM"; >> 1002 >> 1003 ap_bl_en: ap-bl-en { >> 1004 pins = "gpio4"; >> 1005 function = "normal"; >> 1006 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; >> 1007 bias-disable; 785 1008 786 &pmk8350_gpios { !! 1009 /* Force backlight to be disabled to match state at boot. */ 787 status = "disabled"; /* No GPIOs are c !! 1010 output-low; >> 1011 }; 788 }; 1012 }; 789 1013 790 &tlmm { 1014 &tlmm { 791 /* pinctrl settings for pins that have !! 1015 gpio-line-names = "HP_I2C_SDA", /* 0 */ >> 1016 "HP_I2C_SCL", >> 1017 "SSD_RST_L", >> 1018 "PE_WAKE_ODL", >> 1019 "AP_TP_I2C_SDA", >> 1020 "AP_TP_I2C_SCL", >> 1021 "UF_CAM_EN", >> 1022 "WF_CAM_EN", >> 1023 "AP_SAR_SENSOR_SDA", >> 1024 "AP_SAR_SENSOR_SCL", >> 1025 >> 1026 "", /* 10 */ >> 1027 "", >> 1028 "AP_SPI_MOSI", >> 1029 "AP_SPI_MISO", >> 1030 "AP_SPI_CLK", >> 1031 "AP_SPI_CS0_L", >> 1032 "", >> 1033 "", >> 1034 "EDP_HPD", >> 1035 "", >> 1036 >> 1037 "UF_CAM_RST_L", /* 20 */ >> 1038 "WF_CAM_RST_L", >> 1039 "UART_AP_TX_DBG_RX", >> 1040 "UART_DBG_TX_AP_RX", >> 1041 "EN_PP3300_HUB", >> 1042 "", >> 1043 "HOST2WLAN_SOL", >> 1044 "WLAN2HOST_SOL", >> 1045 "BT_UART_CTS", >> 1046 "BT_UART_RTS", >> 1047 >> 1048 "BT_UART_TXD", /* 30 */ >> 1049 "BT_UART_RXD", >> 1050 "AP_EC_SPI_MISO", >> 1051 "AP_EC_SPI_MOSI", >> 1052 "AP_EC_SPI_CLK", >> 1053 "AP_EC_SPI_CS_L", >> 1054 "", >> 1055 "", >> 1056 "", >> 1057 "PEN_PDCT_L", >> 1058 >> 1059 "IO_BRD_ID0", /* 40 */ >> 1060 "IO_BRD_ID1", >> 1061 "EN_FP_RAILS", >> 1062 "PEN_IRQ_L", >> 1063 "AP_SPI_FP_MISO", >> 1064 "AP_SPI_FP_MOSI", >> 1065 "AP_SPI_FP_CLK", >> 1066 "AP_SPI_FP_CS_L", >> 1067 "AP_H1_SPI_MISO", >> 1068 "AP_H1_SPI_MOSI", >> 1069 >> 1070 "AP_H1_SPI_CLK", /* 50 */ >> 1071 "AP_H1_SPI_CS_L", >> 1072 "AP_TS_PEN_I2C_SDA", >> 1073 "AP_TS_PEN_I2C_SCL", >> 1074 "H1_AP_INT_ODL", >> 1075 "", >> 1076 "LCM_RST_1V8_L", >> 1077 "AMP_EN", >> 1078 "", >> 1079 "DP_HOT_PLUG_DET", >> 1080 >> 1081 "HUB_RST_L", /* 60 */ >> 1082 "FP_TO_AP_IRQ_L", >> 1083 "", >> 1084 "", >> 1085 "UF_CAM_MCLK", >> 1086 "WF_CAM_MCLK", >> 1087 "IO_BRD_ID2", >> 1088 "EN_PP3300_CODEC", >> 1089 "EC_IN_RW_ODL", >> 1090 "UF_CAM_SDA", >> 1091 >> 1092 "UF_CAM_SCL", /* 70 */ >> 1093 "WF_CAM_SDA", >> 1094 "WF_CAM_SCL", >> 1095 "AP_BRD_ID0", >> 1096 "AP_BRD_ID1", >> 1097 "AP_BRD_ID2", >> 1098 "", >> 1099 "FPMCU_BOOT0", >> 1100 "FP_RST_L", >> 1101 "PE_CLKREQ_ODL", >> 1102 >> 1103 "EN_EDP_PP3300", /* 80 */ >> 1104 "TS_INT_L", >> 1105 "FORCE_USB_BOOT", >> 1106 "WCD_RST_L", >> 1107 "WLAN_EN", >> 1108 "BT_EN", >> 1109 "WLAN_SW_CTRL", >> 1110 "PCIE0_RESET_L", >> 1111 "PCIE0_CLK_REQ_L", >> 1112 "PCIE0_WAKE_L", >> 1113 >> 1114 "AS_EN", /* 90 */ >> 1115 "SD_CD_ODL", >> 1116 "", >> 1117 /* >> 1118 * AP_FLASH_WP_L is crossystem ABI. Schematics >> 1119 * call it BIOS_FLASH_WP_L. >> 1120 */ >> 1121 "AP_FLASH_WP_L", >> 1122 "BT_WLAN_SB_CLK", >> 1123 "BT_WLAN_SB_DATA", >> 1124 "HP_MCLK", >> 1125 "HP_BCLK", >> 1126 "HP_DOUT", >> 1127 "HP_DIN", >> 1128 >> 1129 "HP_LRCLK", /* 100 */ >> 1130 "HP_IRQ", >> 1131 "TP_INT_ODL", >> 1132 "", >> 1133 "IO_SKU_ID2", >> 1134 "TS_RESET_L", >> 1135 "AMP_BCLK", >> 1136 "AMP_DIN", >> 1137 "AMP_LRCLK", >> 1138 "UIM2_DATA", >> 1139 >> 1140 "UIM2_CLK", /* 110 */ >> 1141 "UIM2_RST", >> 1142 "UIM2_PRESENT", >> 1143 "UIM1_DATA", >> 1144 "UIM1_CLK", >> 1145 "UIM1_RST", >> 1146 "", >> 1147 "RFFE0_CLK", >> 1148 "RFFE0_DATA/BOOT_CONFIG_0", >> 1149 "RFFE1_CLK", >> 1150 >> 1151 "RFFE1_DATA/BOOT_CONFIG_1", /* 120 */ >> 1152 "RFFE2_CLK", >> 1153 "RFFE2_DATA/BOOT_CONFIG_2", >> 1154 "RFFE3_CLK", >> 1155 "RFFE3_DATA/BOOT_CONFIG_3", >> 1156 "RFFE4_CLK", >> 1157 "RFFE4_DATA", >> 1158 "WCI2_LTE_COEX_RXD", >> 1159 "WCI2_LTE_COEX_TXD", >> 1160 "IO_SKU_ID0", >> 1161 >> 1162 "IO_SKU_ID1", /* 130 */ >> 1163 "", >> 1164 "", >> 1165 "QLINK0_REQ", >> 1166 "QLINK0_EN", >> 1167 "QLINK0_WMSS_RESET_L", >> 1168 "QLINK1_REQ", >> 1169 "QLINK1_EN", >> 1170 "QLINK1_WMSS_RESET_L", >> 1171 "FORCED_USB_BOOT_POL", >> 1172 >> 1173 "", /* 140 */ >> 1174 "P_SENSOR_INT_L", >> 1175 "AP_EC_INT_L", >> 1176 "", >> 1177 "WCD_SWR_TX_CLK", >> 1178 "WCD_SWR_TX_DATA_0", >> 1179 "WCD_SWR_TX_DATA_1", >> 1180 "WCD_SWR_RX_CLK", >> 1181 "WCD_SWR_RX_DATA_0", >> 1182 "WCD_SWR_RX_DATA_1", >> 1183 >> 1184 "", /* 150 */ >> 1185 "", >> 1186 "", >> 1187 "", >> 1188 "", >> 1189 "", >> 1190 "", >> 1191 "", >> 1192 "WCD_SWR_TX_DATA_2", >> 1193 "", >> 1194 >> 1195 "", /* 160 */ >> 1196 "", >> 1197 "", >> 1198 "", >> 1199 "", >> 1200 "", >> 1201 "", >> 1202 "", >> 1203 "", >> 1204 "", >> 1205 >> 1206 "", /* 170 */ >> 1207 "SENS_UART_TXD", >> 1208 "SENS_UART_RXD", >> 1209 "", >> 1210 "", >> 1211 ""; >> 1212 >> 1213 /* >> 1214 * pinctrl settings for pins that have no real owners. >> 1215 */ 792 pinctrl-names = "default"; 1216 pinctrl-names = "default"; 793 pinctrl-0 = <&bios_flash_wp_od>; !! 1217 pinctrl-0 = <&bios_flash_wp_l>; 794 1218 795 amp_en: amp-en-state { !! 1219 amp_en: amp-en { 796 pins = "gpio63"; !! 1220 pins = "gpio57"; 797 function = "gpio"; 1221 function = "gpio"; 798 bias-disable; !! 1222 bias-pull-down; 799 drive-strength = <2>; << 800 }; 1223 }; 801 1224 802 ap_ec_int_l: ap-ec-int-l-state { !! 1225 ap_ec_int_l: ap-ec-int-l { 803 pins = "gpio18"; !! 1226 pins = "gpio142"; 804 function = "gpio"; !! 1227 input-enable; 805 bias-pull-up; 1228 bias-pull-up; 806 }; 1229 }; 807 1230 808 bios_flash_wp_od: bios-flash-wp-od-sta !! 1231 bios_flash_wp_l: bios-flash-wp-l { 809 pins = "gpio16"; !! 1232 pins = "gpio93"; 810 function = "gpio"; 1233 function = "gpio"; 811 /* Has external pull */ !! 1234 input-enable; 812 bias-disable; 1235 bias-disable; 813 }; 1236 }; 814 1237 815 en_fp_rails: en-fp-rails-state { !! 1238 bt_en: bt-en { 816 pins = "gpio77"; !! 1239 pins = "gpio85"; 817 function = "gpio"; 1240 function = "gpio"; 818 bias-disable; << 819 drive-strength = <2>; 1241 drive-strength = <2>; 820 output-high; !! 1242 output-low; >> 1243 bias-pull-down; 821 }; 1244 }; 822 1245 823 en_pp3300_codec: en-pp3300-codec-state !! 1246 en_fp_rails: en-fp-rails { 824 pins = "gpio105"; !! 1247 pins = "gpio42"; 825 function = "gpio"; !! 1248 drive-strength = <2>; >> 1249 output-high; 826 bias-disable; 1250 bias-disable; >> 1251 }; >> 1252 >> 1253 en_pp3300_codec: en-pp3300-codec { >> 1254 pins = "gpio67"; 827 drive-strength = <2>; 1255 drive-strength = <2>; >> 1256 bias-disable; 828 }; 1257 }; 829 1258 830 en_pp3300_dx_edp: en-pp3300-dx-edp-sta !! 1259 en_pp3300_dx_edp: en-pp3300-dx-edp { 831 pins = "gpio80"; 1260 pins = "gpio80"; 832 function = "gpio"; 1261 function = "gpio"; 833 bias-disable; << 834 drive-strength = <2>; 1262 drive-strength = <2>; >> 1263 /* Has external pulldown */ >> 1264 bias-disable; 835 }; 1265 }; 836 1266 837 fp_rst_l: fp-rst-l-state { !! 1267 en_pp3300_hub: en-pp3300-hub { 838 pins = "gpio78"; !! 1268 pins = "gpio24"; 839 function = "gpio"; 1269 function = "gpio"; 840 bias-disable; << 841 drive-strength = <2>; 1270 drive-strength = <2>; >> 1271 /* Has external pulldown */ >> 1272 bias-disable; 842 }; 1273 }; 843 1274 844 fp_to_ap_irq_l: fp-to-ap-irq-l-state { !! 1275 fp_to_ap_irq_l: fp-to-ap-irq-l { 845 pins = "gpio61"; 1276 pins = "gpio61"; 846 function = "gpio"; 1277 function = "gpio"; >> 1278 input-enable; 847 /* Has external pullup */ 1279 /* Has external pullup */ 848 bias-disable; 1280 bias-disable; 849 }; 1281 }; 850 1282 851 fpmcu_boot0: fpmcu-boot0-state { !! 1283 h1_ap_int_odl: h1-ap-int-odl { 852 pins = "gpio68"; !! 1284 pins = "gpio54"; 853 function = "gpio"; 1285 function = "gpio"; 854 bias-disable; !! 1286 input-enable; >> 1287 bias-pull-up; 855 }; 1288 }; 856 1289 857 gsc_ap_int_odl: gsc-ap-int-odl-state { !! 1290 hp_irq: hp-irq { 858 pins = "gpio104"; !! 1291 pins = "gpio101"; 859 function = "gpio"; 1292 function = "gpio"; 860 bias-pull-up; 1293 bias-pull-up; 861 }; 1294 }; 862 1295 863 hp_irq: hp-irq-state { !! 1296 p_sensor_int_l: p-sensor-int-l { 864 pins = "gpio101"; !! 1297 pins = "gpio141"; 865 function = "gpio"; 1298 function = "gpio"; >> 1299 input-enable; 866 bias-pull-up; 1300 bias-pull-up; 867 }; 1301 }; 868 1302 869 hub_en: hub-en-state { !! 1303 pen_irq_l: pen-irq-l { 870 pins = "gpio157"; !! 1304 pins = "gpio43"; 871 function = "gpio"; 1305 function = "gpio"; >> 1306 /* Has external pullup */ 872 bias-disable; 1307 bias-disable; 873 drive-strength = <2>; << 874 }; 1308 }; 875 1309 876 pe_wake_odl: pe-wake-odl-state { !! 1310 pen_pdct_l: pen-pdct-l { 877 pins = "gpio3"; !! 1311 pins = "gpio39"; 878 function = "gpio"; 1312 function = "gpio"; 879 /* Has external pull */ !! 1313 /* Has external pullup */ 880 bias-disable; 1314 bias-disable; 881 drive-strength = <2>; << 882 }; 1315 }; 883 1316 884 /* For ap_spi_fp */ !! 1317 qup_spi8_cs_gpio_init_high: qup-spi8-cs-gpio-init-high { 885 qup_spi9_cs_gpio_init_high: qup-spi9-c !! 1318 pins = "gpio35"; 886 pins = "gpio39"; << 887 function = "gpio"; << 888 output-high; 1319 output-high; 889 }; 1320 }; 890 1321 891 /* For ap_ec_spi */ !! 1322 qup_spi11_cs_gpio_init_high: qup-spi11-cs-gpio-init-high { 892 qup_spi10_cs_gpio_init_high: qup-spi10 !! 1323 pins = "gpio47"; 893 pins = "gpio43"; << 894 function = "gpio"; << 895 output-high; 1324 output-high; 896 }; 1325 }; 897 1326 898 sar0_irq_odl: sar0-irq-odl-state { !! 1327 qup_spi12_cs_gpio_init_high: qup-spi12-cs-gpio-init-high { 899 pins = "gpio141"; !! 1328 pins = "gpio51"; >> 1329 output-high; >> 1330 }; >> 1331 >> 1332 qup_uart7_sleep_cts: qup-uart7-sleep-cts { >> 1333 pins = "gpio28"; 900 function = "gpio"; 1334 function = "gpio"; 901 bias-pull-up; !! 1335 /* >> 1336 * Configure a pull-down on CTS to match the pull of >> 1337 * the Bluetooth module. >> 1338 */ >> 1339 bias-pull-down; >> 1340 }; >> 1341 >> 1342 qup_uart7_sleep_rts: qup-uart7-sleep-rts { >> 1343 pins = "gpio29"; >> 1344 function = "gpio"; >> 1345 /* >> 1346 * Configure pull-down on RTS. As RTS is active low >> 1347 * signal, pull it low to indicate the BT SoC that it >> 1348 * can wakeup the system anytime from suspend state by >> 1349 * pulling RX low (by sending wakeup bytes). >> 1350 */ >> 1351 bias-pull-down; 902 }; 1352 }; 903 1353 904 sar1_irq_odl: sar1-irq-odl-state { !! 1354 qup_uart7_sleep_rx: qup-uart7-sleep-rx { 905 pins = "gpio140"; !! 1355 pins = "gpio31"; 906 function = "gpio"; 1356 function = "gpio"; >> 1357 /* >> 1358 * Configure a pull-up on RX. This is needed to avoid >> 1359 * garbage data when the TX pin of the Bluetooth module >> 1360 * is floating which may cause spurious wakeups. >> 1361 */ 907 bias-pull-up; 1362 bias-pull-up; 908 }; 1363 }; 909 1364 910 sd_cd_odl: sd-cd-odl-state { !! 1365 qup_uart7_sleep_tx: qup-uart7-sleep-tx { 911 pins = "gpio91"; !! 1366 pins = "gpio30"; 912 function = "gpio"; 1367 function = "gpio"; >> 1368 /* >> 1369 * Configure pull-up on TX when it isn't actively driven >> 1370 * to prevent BT SoC from receiving garbage during sleep. >> 1371 */ 913 bias-pull-up; 1372 bias-pull-up; 914 }; 1373 }; 915 1374 916 ssd_en: ssd-en-state { !! 1375 tp_int_odl: tp-int-odl { 917 pins = "gpio51"; !! 1376 pins = "gpio102"; 918 function = "gpio"; 1377 function = "gpio"; >> 1378 /* Has external pullup */ 919 bias-disable; 1379 bias-disable; 920 drive-strength = <2>; << 921 }; 1380 }; 922 1381 923 ssd_rst_l: ssd-rst-l-state { !! 1382 ts_int_l: ts-int-l { 924 pins = "gpio2"; !! 1383 pins = "gpio81"; 925 function = "gpio"; 1384 function = "gpio"; 926 bias-disable; !! 1385 /* Has external pullup */ 927 drive-strength = <2>; !! 1386 bias-pull-up; 928 output-low; << 929 }; 1387 }; 930 1388 931 tp_int_odl: tp-int-odl-state { !! 1389 ts_reset_l: ts-reset-l { 932 pins = "gpio7"; !! 1390 pins = "gpio105"; 933 function = "gpio"; 1391 function = "gpio"; 934 /* Has external pullup */ 1392 /* Has external pullup */ 935 bias-disable; 1393 bias-disable; >> 1394 drive-strength = <2>; 936 }; 1395 }; 937 1396 938 wf_cam_en: wf-cam-en-state { !! 1397 uf_cam_en: uf-cam-en { 939 pins = "gpio119"; !! 1398 pins = "gpio6"; 940 function = "gpio"; 1399 function = "gpio"; >> 1400 drive-strength = <2>; 941 /* Has external pulldown */ 1401 /* Has external pulldown */ 942 bias-disable; 1402 bias-disable; >> 1403 }; >> 1404 >> 1405 wf_cam_en: wf-cam-en { >> 1406 pins = "gpio7"; >> 1407 function = "gpio"; 943 drive-strength = <2>; 1408 drive-strength = <2>; >> 1409 /* Has external pulldown */ >> 1410 bias-disable; 944 }; 1411 }; 945 }; 1412 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.