| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
/* |
| 3 |
* Copyright 2016 MediaTek Inc. |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/input/input.h> |
| 7 |
#include <dt-bindings/input/linux-event-codes.h> |
| 8 |
#include <dt-bindings/regulator/dlg,da9211-regulator.h> |
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include "mt8173.dtsi" |
| 11 |
|
| 12 |
/ { |
| 13 |
aliases { |
| 14 |
mmc0 = &mmc0; |
| 15 |
mmc1 = &mmc1; |
| 16 |
mmc2 = &mmc3; |
| 17 |
}; |
| 18 |
|
| 19 |
memory@40000000 { |
| 20 |
device_type = "memory"; |
| 21 |
reg = <0 0x40000000 0 0x80000000>; |
| 22 |
}; |
| 23 |
|
| 24 |
backlight: backlight { |
| 25 |
compatible = "pwm-backlight"; |
| 26 |
pwms = <&pwm0 0 1000000>; |
| 27 |
power-supply = <&bl_fixed_reg>; |
| 28 |
enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>; |
| 29 |
|
| 30 |
pinctrl-names = "default"; |
| 31 |
pinctrl-0 = <&panel_backlight_en_pins>; |
| 32 |
status = "okay"; |
| 33 |
}; |
| 34 |
|
| 35 |
bl_fixed_reg: fixedregulator2 { |
| 36 |
compatible = "regulator-fixed"; |
| 37 |
regulator-name = "bl_fixed"; |
| 38 |
regulator-min-microvolt = <1800000>; |
| 39 |
regulator-max-microvolt = <1800000>; |
| 40 |
startup-delay-us = <1000>; |
| 41 |
enable-active-high; |
| 42 |
gpio = <&pio 32 GPIO_ACTIVE_HIGH>; |
| 43 |
pinctrl-names = "default"; |
| 44 |
pinctrl-0 = <&bl_fixed_pins>; |
| 45 |
}; |
| 46 |
|
| 47 |
chosen { |
| 48 |
stdout-path = "serial0:115200n8"; |
| 49 |
}; |
| 50 |
|
| 51 |
gpio_keys: gpio-keys { |
| 52 |
compatible = "gpio-keys"; |
| 53 |
pinctrl-names = "default"; |
| 54 |
pinctrl-0 = <&gpio_keys_pins>; |
| 55 |
|
| 56 |
switch-lid { |
| 57 |
label = "Lid"; |
| 58 |
gpios = <&pio 69 GPIO_ACTIVE_LOW>; |
| 59 |
linux,code = <SW_LID>; |
| 60 |
linux,input-type = <EV_SW>; |
| 61 |
wakeup-source; |
| 62 |
}; |
| 63 |
|
| 64 |
switch-power { |
| 65 |
label = "Power"; |
| 66 |
gpios = <&pio 14 GPIO_ACTIVE_HIGH>; |
| 67 |
linux,code = <KEY_POWER>; |
| 68 |
debounce-interval = <30>; |
| 69 |
wakeup-source; |
| 70 |
}; |
| 71 |
|
| 72 |
switch-tablet-mode { |
| 73 |
label = "Tablet_mode"; |
| 74 |
gpios = <&pio 121 GPIO_ACTIVE_HIGH>; |
| 75 |
linux,code = <SW_TABLET_MODE>; |
| 76 |
linux,input-type = <EV_SW>; |
| 77 |
wakeup-source; |
| 78 |
}; |
| 79 |
|
| 80 |
switch-volume-down { |
| 81 |
label = "Volume_down"; |
| 82 |
gpios = <&pio 123 GPIO_ACTIVE_LOW>; |
| 83 |
linux,code = <KEY_VOLUMEDOWN>; |
| 84 |
}; |
| 85 |
|
| 86 |
switch-volume-up { |
| 87 |
label = "Volume_up"; |
| 88 |
gpios = <&pio 124 GPIO_ACTIVE_LOW>; |
| 89 |
linux,code = <KEY_VOLUMEUP>; |
| 90 |
}; |
| 91 |
}; |
| 92 |
|
| 93 |
panel_fixed_3v3: regulator1 { |
| 94 |
compatible = "regulator-fixed"; |
| 95 |
regulator-name = "PANEL_3V3"; |
| 96 |
regulator-min-microvolt = <3300000>; |
| 97 |
regulator-max-microvolt = <3300000>; |
| 98 |
enable-active-high; |
| 99 |
regulator-boot-on; |
| 100 |
off-on-delay-us = <500000>; |
| 101 |
gpio = <&pio 41 GPIO_ACTIVE_HIGH>; |
| 102 |
pinctrl-names = "default"; |
| 103 |
pinctrl-0 = <&panel_fixed_pins>; |
| 104 |
}; |
| 105 |
|
| 106 |
ps8640_fixed_1v2: regulator2 { |
| 107 |
compatible = "regulator-fixed"; |
| 108 |
regulator-name = "PS8640_1V2"; |
| 109 |
regulator-min-microvolt = <1200000>; |
| 110 |
regulator-max-microvolt = <1200000>; |
| 111 |
regulator-enable-ramp-delay = <2000>; |
| 112 |
enable-active-high; |
| 113 |
regulator-boot-on; |
| 114 |
gpio = <&pio 30 GPIO_ACTIVE_HIGH>; |
| 115 |
pinctrl-names = "default"; |
| 116 |
pinctrl-0 = <&ps8640_fixed_pins>; |
| 117 |
}; |
| 118 |
|
| 119 |
sdio_fixed_3v3: fixedregulator0 { |
| 120 |
compatible = "regulator-fixed"; |
| 121 |
regulator-name = "3V3"; |
| 122 |
regulator-min-microvolt = <3300000>; |
| 123 |
regulator-max-microvolt = <3300000>; |
| 124 |
gpio = <&pio 85 GPIO_ACTIVE_HIGH>; |
| 125 |
pinctrl-names = "default"; |
| 126 |
pinctrl-0 = <&sdio_fixed_3v3_pins>; |
| 127 |
}; |
| 128 |
|
| 129 |
sound: sound { |
| 130 |
compatible = "mediatek,mt8173-rt5650"; |
| 131 |
mediatek,audio-codec = <&rt5650 &hdmi0>; |
| 132 |
mediatek,platform = <&afe>; |
| 133 |
pinctrl-names = "default"; |
| 134 |
pinctrl-0 = <&aud_i2s2>; |
| 135 |
|
| 136 |
mediatek,mclk = <1>; |
| 137 |
codec-capture { |
| 138 |
sound-dai = <&rt5650 1>; |
| 139 |
}; |
| 140 |
}; |
| 141 |
|
| 142 |
hdmicon: connector { |
| 143 |
compatible = "hdmi-connector"; |
| 144 |
label = "hdmi"; |
| 145 |
type = "a"; |
| 146 |
ddc-i2c-bus = <&hdmiddc0>; |
| 147 |
|
| 148 |
port { |
| 149 |
hdmi_connector_in: endpoint { |
| 150 |
remote-endpoint = <&hdmi0_out>; |
| 151 |
}; |
| 152 |
}; |
| 153 |
}; |
| 154 |
|
| 155 |
watchdog { |
| 156 |
compatible = "arm,smc-wdt"; |
| 157 |
}; |
| 158 |
}; |
| 159 |
|
| 160 |
/* |
| 161 |
* Disable the original MMIO watch dog and switch to the SMC watchdog, which |
| 162 |
* operates on the same MMIO. |
| 163 |
*/ |
| 164 |
&watchdog { |
| 165 |
status = "disabled"; |
| 166 |
}; |
| 167 |
|
| 168 |
&mfg_async { |
| 169 |
domain-supply = <&da9211_vgpu_reg>; |
| 170 |
}; |
| 171 |
|
| 172 |
&cec { |
| 173 |
status = "okay"; |
| 174 |
}; |
| 175 |
|
| 176 |
&cpu0 { |
| 177 |
proc-supply = <&mt6397_vpca15_reg>; |
| 178 |
}; |
| 179 |
|
| 180 |
&cpu1 { |
| 181 |
proc-supply = <&mt6397_vpca15_reg>; |
| 182 |
}; |
| 183 |
|
| 184 |
&cpu2 { |
| 185 |
proc-supply = <&da9211_vcpu_reg>; |
| 186 |
sram-supply = <&mt6397_vsramca7_reg>; |
| 187 |
}; |
| 188 |
|
| 189 |
&cpu3 { |
| 190 |
proc-supply = <&da9211_vcpu_reg>; |
| 191 |
sram-supply = <&mt6397_vsramca7_reg>; |
| 192 |
}; |
| 193 |
|
| 194 |
&cpu_thermal { |
| 195 |
sustainable-power = <4500>; /* milliwatts */ |
| 196 |
trips { |
| 197 |
threshold: trip-point0 { |
| 198 |
temperature = <60000>; |
| 199 |
}; |
| 200 |
|
| 201 |
target: trip-point1 { |
| 202 |
temperature = <65000>; |
| 203 |
}; |
| 204 |
}; |
| 205 |
}; |
| 206 |
|
| 207 |
&dsi0 { |
| 208 |
status = "okay"; |
| 209 |
port { |
| 210 |
dsi0_out: endpoint { |
| 211 |
remote-endpoint = <&ps8640_in>; |
| 212 |
}; |
| 213 |
}; |
| 214 |
}; |
| 215 |
|
| 216 |
&dpi0 { |
| 217 |
status = "okay"; |
| 218 |
}; |
| 219 |
|
| 220 |
&hdmi0 { |
| 221 |
status = "okay"; |
| 222 |
ports { |
| 223 |
port@1 { |
| 224 |
reg = <1>; |
| 225 |
|
| 226 |
hdmi0_out: endpoint { |
| 227 |
remote-endpoint = <&hdmi_connector_in>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
}; |
| 231 |
}; |
| 232 |
|
| 233 |
&hdmi_phy { |
| 234 |
status = "okay"; |
| 235 |
mediatek,ibias = <0xc>; |
| 236 |
}; |
| 237 |
|
| 238 |
&i2c0 { |
| 239 |
status = "okay"; |
| 240 |
|
| 241 |
rt5650: audio-codec@1a { |
| 242 |
compatible = "realtek,rt5650"; |
| 243 |
reg = <0x1a>; |
| 244 |
avdd-supply = <&mt6397_vgp1_reg>; |
| 245 |
cpvdd-supply = <&mt6397_vcama_reg>; |
| 246 |
interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_BOTH>; |
| 247 |
pinctrl-names = "default"; |
| 248 |
pinctrl-0 = <&rt5650_irq>; |
| 249 |
#sound-dai-cells = <1>; |
| 250 |
realtek,dmic1-data-pin = <2>; |
| 251 |
realtek,jd-mode = <2>; |
| 252 |
}; |
| 253 |
|
| 254 |
ps8640: edp-bridge@8 { |
| 255 |
compatible = "parade,ps8640"; |
| 256 |
reg = <0x8>; |
| 257 |
powerdown-gpios = <&pio 127 GPIO_ACTIVE_LOW>; |
| 258 |
reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>; |
| 259 |
pinctrl-names = "default"; |
| 260 |
pinctrl-0 = <&ps8640_pins>; |
| 261 |
vdd12-supply = <&ps8640_fixed_1v2>; |
| 262 |
vdd33-supply = <&mt6397_vgp2_reg>; |
| 263 |
|
| 264 |
ports { |
| 265 |
#address-cells = <1>; |
| 266 |
#size-cells = <0>; |
| 267 |
|
| 268 |
port@0 { |
| 269 |
reg = <0>; |
| 270 |
|
| 271 |
ps8640_in: endpoint { |
| 272 |
remote-endpoint = <&dsi0_out>; |
| 273 |
}; |
| 274 |
}; |
| 275 |
|
| 276 |
port@1 { |
| 277 |
reg = <1>; |
| 278 |
|
| 279 |
ps8640_out: endpoint { |
| 280 |
remote-endpoint = <&panel_in>; |
| 281 |
}; |
| 282 |
}; |
| 283 |
}; |
| 284 |
|
| 285 |
aux-bus { |
| 286 |
panel: panel { |
| 287 |
compatible = "edp-panel"; |
| 288 |
power-supply = <&panel_fixed_3v3>; |
| 289 |
backlight = <&backlight>; |
| 290 |
|
| 291 |
port { |
| 292 |
panel_in: endpoint { |
| 293 |
remote-endpoint = <&ps8640_out>; |
| 294 |
}; |
| 295 |
}; |
| 296 |
}; |
| 297 |
}; |
| 298 |
}; |
| 299 |
}; |
| 300 |
|
| 301 |
&i2c1 { |
| 302 |
clock-frequency = <1500000>; |
| 303 |
status = "okay"; |
| 304 |
|
| 305 |
da9211: da9211@68 { |
| 306 |
compatible = "dlg,da9211"; |
| 307 |
reg = <0x68>; |
| 308 |
interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; |
| 309 |
|
| 310 |
regulators { |
| 311 |
da9211_vcpu_reg: BUCKA { |
| 312 |
regulator-name = "VBUCKA"; |
| 313 |
regulator-min-microvolt = < 700000>; |
| 314 |
regulator-max-microvolt = <1310000>; |
| 315 |
regulator-min-microamp = <2000000>; |
| 316 |
regulator-max-microamp = <4400000>; |
| 317 |
regulator-ramp-delay = <10000>; |
| 318 |
regulator-always-on; |
| 319 |
regulator-allowed-modes = <DA9211_BUCK_MODE_SYNC |
| 320 |
DA9211_BUCK_MODE_AUTO>; |
| 321 |
}; |
| 322 |
|
| 323 |
da9211_vgpu_reg: BUCKB { |
| 324 |
regulator-name = "VBUCKB"; |
| 325 |
regulator-min-microvolt = < 700000>; |
| 326 |
regulator-max-microvolt = <1310000>; |
| 327 |
regulator-min-microamp = <2000000>; |
| 328 |
regulator-max-microamp = <3000000>; |
| 329 |
regulator-ramp-delay = <10000>; |
| 330 |
}; |
| 331 |
}; |
| 332 |
}; |
| 333 |
}; |
| 334 |
|
| 335 |
&i2c2 { |
| 336 |
status = "okay"; |
| 337 |
|
| 338 |
tpm: tpm@20 { |
| 339 |
compatible = "infineon,slb9645tt"; |
| 340 |
reg = <0x20>; |
| 341 |
powered-while-suspended; |
| 342 |
}; |
| 343 |
}; |
| 344 |
|
| 345 |
&i2c3 { |
| 346 |
clock-frequency = <400000>; |
| 347 |
status = "okay"; |
| 348 |
|
| 349 |
touchscreen: touchscreen@10 { |
| 350 |
compatible = "elan,ekth3500"; |
| 351 |
reg = <0x10>; |
| 352 |
interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>; |
| 353 |
}; |
| 354 |
}; |
| 355 |
|
| 356 |
&i2c4 { |
| 357 |
clock-frequency = <400000>; |
| 358 |
status = "okay"; |
| 359 |
|
| 360 |
trackpad: trackpad@15 { |
| 361 |
compatible = "elan,ekth3000"; |
| 362 |
interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>; |
| 363 |
pinctrl-names = "default"; |
| 364 |
pinctrl-0 = <&trackpad_irq>; |
| 365 |
reg = <0x15>; |
| 366 |
vcc-supply = <&mt6397_vgp6_reg>; |
| 367 |
wakeup-source; |
| 368 |
}; |
| 369 |
}; |
| 370 |
|
| 371 |
&mipi_tx0 { |
| 372 |
status = "okay"; |
| 373 |
}; |
| 374 |
|
| 375 |
&mmc0 { |
| 376 |
status = "okay"; |
| 377 |
pinctrl-names = "default", "state_uhs"; |
| 378 |
pinctrl-0 = <&mmc0_pins_default>; |
| 379 |
pinctrl-1 = <&mmc0_pins_uhs>; |
| 380 |
bus-width = <8>; |
| 381 |
max-frequency = <200000000>; |
| 382 |
cap-mmc-highspeed; |
| 383 |
mmc-hs200-1_8v; |
| 384 |
mmc-hs400-1_8v; |
| 385 |
cap-mmc-hw-reset; |
| 386 |
hs400-ds-delay = <0x14015>; |
| 387 |
mediatek,hs200-cmd-int-delay = <30>; |
| 388 |
mediatek,hs400-cmd-int-delay = <14>; |
| 389 |
mediatek,hs400-cmd-resp-sel-rising; |
| 390 |
vmmc-supply = <&mt6397_vemc_3v3_reg>; |
| 391 |
vqmmc-supply = <&mt6397_vio18_reg>; |
| 392 |
assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>; |
| 393 |
assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>; |
| 394 |
non-removable; |
| 395 |
}; |
| 396 |
|
| 397 |
&mmc1 { |
| 398 |
status = "okay"; |
| 399 |
pinctrl-names = "default", "state_uhs"; |
| 400 |
pinctrl-0 = <&mmc1_pins_default>; |
| 401 |
pinctrl-1 = <&mmc1_pins_uhs>; |
| 402 |
bus-width = <4>; |
| 403 |
max-frequency = <200000000>; |
| 404 |
cap-sd-highspeed; |
| 405 |
sd-uhs-sdr50; |
| 406 |
sd-uhs-sdr104; |
| 407 |
cd-gpios = <&pio 1 GPIO_ACTIVE_LOW>; |
| 408 |
vmmc-supply = <&mt6397_vmch_reg>; |
| 409 |
vqmmc-supply = <&mt6397_vmc_reg>; |
| 410 |
}; |
| 411 |
|
| 412 |
&mmc3 { |
| 413 |
status = "okay"; |
| 414 |
pinctrl-names = "default", "state_uhs"; |
| 415 |
pinctrl-0 = <&mmc3_pins_default>; |
| 416 |
pinctrl-1 = <&mmc3_pins_uhs>; |
| 417 |
bus-width = <4>; |
| 418 |
max-frequency = <200000000>; |
| 419 |
cap-sd-highspeed; |
| 420 |
sd-uhs-sdr50; |
| 421 |
sd-uhs-sdr104; |
| 422 |
keep-power-in-suspend; |
| 423 |
wakeup-source; |
| 424 |
cap-sdio-irq; |
| 425 |
vmmc-supply = <&sdio_fixed_3v3>; |
| 426 |
vqmmc-supply = <&mt6397_vgp3_reg>; |
| 427 |
non-removable; |
| 428 |
cap-power-off-card; |
| 429 |
|
| 430 |
#address-cells = <1>; |
| 431 |
#size-cells = <0>; |
| 432 |
|
| 433 |
mwifiex: wifi@1 { |
| 434 |
compatible = "marvell,sd8897"; |
| 435 |
reg = <1>; |
| 436 |
interrupts-extended = <&pio 38 IRQ_TYPE_LEVEL_LOW>; |
| 437 |
marvell,wakeup-pin = <3>; |
| 438 |
}; |
| 439 |
|
| 440 |
btmrvl: bluetooth@2 { |
| 441 |
compatible = "marvell,sd8897-bt"; |
| 442 |
reg = <2>; |
| 443 |
interrupts-extended = <&pio 119 IRQ_TYPE_LEVEL_LOW>; |
| 444 |
marvell,wakeup-pin = /bits/ 16 <0x0d>; |
| 445 |
marvell,wakeup-gap-ms = /bits/ 16 <0x64>; |
| 446 |
}; |
| 447 |
}; |
| 448 |
|
| 449 |
&nor_flash { |
| 450 |
status = "okay"; |
| 451 |
pinctrl-names = "default"; |
| 452 |
pinctrl-0 = <&nor_gpio1_pins>; |
| 453 |
|
| 454 |
flash@0 { |
| 455 |
compatible = "jedec,spi-nor"; |
| 456 |
reg = <0>; |
| 457 |
spi-max-frequency = <50000000>; |
| 458 |
}; |
| 459 |
}; |
| 460 |
|
| 461 |
&pio { |
| 462 |
gpio-line-names = "EC_INT_1V8", |
| 463 |
"SD_CD_L", |
| 464 |
"ALC5514_IRQ", |
| 465 |
"ALC5650_IRQ", |
| 466 |
/* |
| 467 |
* AP_FLASH_WP_L is crossystem ABI. Schematics |
| 468 |
* call it SFWP_B. |
| 469 |
*/ |
| 470 |
"AP_FLASH_WP_L", |
| 471 |
"SFIN", |
| 472 |
"SFCS0", |
| 473 |
"SFHOLD", |
| 474 |
"SFOUT", |
| 475 |
"SFCK", |
| 476 |
"WRAP_EVENT_S_EINT10", |
| 477 |
"PMU_INT", |
| 478 |
"I2S2_WS_ALC5650", |
| 479 |
"I2S2_BCK_ALC5650", |
| 480 |
"PWR_BTN_1V8", |
| 481 |
"DA9212_IRQ", |
| 482 |
"IDDIG", |
| 483 |
"WATCHDOG", |
| 484 |
"CEC", |
| 485 |
"HDMISCK", |
| 486 |
"HDMISD", |
| 487 |
"HTPLG", |
| 488 |
"MSDC3_DAT0", |
| 489 |
"MSDC3_DAT1", |
| 490 |
"MSDC3_DAT2", |
| 491 |
"MSDC3_DAT3", |
| 492 |
"MSDC3_CLK", |
| 493 |
"MSDC3_CMD", |
| 494 |
"USB_C0_OC_FLAGB", |
| 495 |
"USBA_OC1_L", |
| 496 |
"PS8640_1V2_ENABLE", |
| 497 |
"THERM_ALERT_N", |
| 498 |
"PANEL_LCD_POWER_EN", |
| 499 |
"ANX7688_CHIP_PD_C", |
| 500 |
"EC_IN_RW_1V8", |
| 501 |
"ANX7688_1V_EN_C", |
| 502 |
"USB_DP_HPD_C", |
| 503 |
"TPM_DAVINT_N", |
| 504 |
"MARVELL8897_IRQ", |
| 505 |
"EN_USB_A0_PWR", |
| 506 |
"USBA_A0_OC_L", |
| 507 |
"EN_PP3300_DX_EDP", |
| 508 |
"", |
| 509 |
"SOC_I2C2_1V8_SDA_400K", |
| 510 |
"SOC_I2C2_1V8_SCL_400K", |
| 511 |
"SOC_I2C0_1V8_SDA_400K", |
| 512 |
"SOC_I2C0_1V8_SCL_400K", |
| 513 |
"EMMC_ID1", |
| 514 |
"EMMC_ID0", |
| 515 |
"MEM_CONFIG3", |
| 516 |
"EMMC_ID2", |
| 517 |
"MEM_CONFIG1", |
| 518 |
"MEM_CONFIG2", |
| 519 |
"BRD_ID2", |
| 520 |
"MEM_CONFIG0", |
| 521 |
"BRD_ID0", |
| 522 |
"BRD_ID1", |
| 523 |
"EMMC_DAT0", |
| 524 |
"EMMC_DAT1", |
| 525 |
"EMMC_DAT2", |
| 526 |
"EMMC_DAT3", |
| 527 |
"EMMC_DAT4", |
| 528 |
"EMMC_DAT5", |
| 529 |
"EMMC_DAT6", |
| 530 |
"EMMC_DAT7", |
| 531 |
"EMMC_CLK", |
| 532 |
"EMMC_CMD", |
| 533 |
"EMMC_RCLK", |
| 534 |
"PLT_RST_L", |
| 535 |
"LID_OPEN_1V8_L", |
| 536 |
"AUDIO_SPI_MISO_R", |
| 537 |
"", |
| 538 |
"AC_OK_1V8", |
| 539 |
"SD_DATA0", |
| 540 |
"SD_DATA1", |
| 541 |
"SD_DATA2", |
| 542 |
"SD_DATA3", |
| 543 |
"SD_CLK", |
| 544 |
"SD_CMD", |
| 545 |
"PWRAP_SPI0_MI", |
| 546 |
"PWRAP_SPI0_MO", |
| 547 |
"PWRAP_SPI0_CK", |
| 548 |
"PWRAP_SPI0_CSN", |
| 549 |
"", |
| 550 |
"", |
| 551 |
"WIFI_PDN", |
| 552 |
"RTC32K_1V8", |
| 553 |
"DISP_PWM0", |
| 554 |
"TOUCHSCREEN_INT_L", |
| 555 |
"", |
| 556 |
"SRCLKENA0", |
| 557 |
"SRCLKENA1", |
| 558 |
"PS8640_MODE_CONF", |
| 559 |
"TOUCHSCREEN_RESET_R", |
| 560 |
"PLATFORM_PROCHOT_L", |
| 561 |
"PANEL_POWER_EN", |
| 562 |
"REC_MODE_L", |
| 563 |
"EC_FW_UPDATE_L", |
| 564 |
"ACCEL2_INT_L", |
| 565 |
"HDMI_DP_INT", |
| 566 |
"ACCELGYRO3_INT_L", |
| 567 |
"ACCELGYRO4_INT_L", |
| 568 |
"SPI_EC_CLK", |
| 569 |
"SPI_EC_MI", |
| 570 |
"SPI_EC_MO", |
| 571 |
"SPI_EC_CSN", |
| 572 |
"SOC_I2C3_1V8_SDA_400K", |
| 573 |
"SOC_I2C3_1V8_SCL_400K", |
| 574 |
"", |
| 575 |
"", |
| 576 |
"", |
| 577 |
"", |
| 578 |
"", |
| 579 |
"", |
| 580 |
"", |
| 581 |
"PS8640_SYSRSTN_1V8", |
| 582 |
"APIN_MAX98090_DOUT2", |
| 583 |
"TP_INT_1V8_L_R", |
| 584 |
"RST_USB_HUB_R", |
| 585 |
"BT_WAKE_L", |
| 586 |
"ACCEL1_INT_L", |
| 587 |
"TABLET_MODE_L", |
| 588 |
"", |
| 589 |
"V_UP_IN_L_R", |
| 590 |
"V_DOWN_IN_L_R", |
| 591 |
"SOC_I2C1_1V8_SDA_1M", |
| 592 |
"SOC_I2C1_1V8_SCL_1M", |
| 593 |
"PS8640_PDN_1V8", |
| 594 |
"MAX98090_LRCLK", |
| 595 |
"MAX98090_BCLK", |
| 596 |
"MAX98090_MCLK", |
| 597 |
"APOUT_MAX98090_DIN", |
| 598 |
"APIN_MAX98090_DOUT", |
| 599 |
"SOC_I2C4_1V8_SDA_400K", |
| 600 |
"SOC_I2C4_1V8_SCL_400K"; |
| 601 |
|
| 602 |
aud_i2s2: aud-i2s2-pins { |
| 603 |
pins-bus { |
| 604 |
pinmux = <MT8173_PIN_128_I2S0_LRCK__FUNC_I2S1_WS>, |
| 605 |
<MT8173_PIN_129_I2S0_BCK__FUNC_I2S1_BCK>, |
| 606 |
<MT8173_PIN_130_I2S0_MCK__FUNC_I2S1_MCK>, |
| 607 |
<MT8173_PIN_131_I2S0_DATA0__FUNC_I2S1_DO_1>, |
| 608 |
<MT8173_PIN_12_EINT12__FUNC_I2S2_WS>, |
| 609 |
<MT8173_PIN_13_EINT13__FUNC_I2S2_BCK>, |
| 610 |
<MT8173_PIN_132_I2S0_DATA1__FUNC_I2S2_DI_2>; |
| 611 |
bias-pull-down; |
| 612 |
}; |
| 613 |
}; |
| 614 |
|
| 615 |
bl_fixed_pins: backlight-pins { |
| 616 |
pins-blon { |
| 617 |
pinmux = <MT8173_PIN_32_UTXD2__FUNC_GPIO32>; |
| 618 |
output-low; |
| 619 |
}; |
| 620 |
}; |
| 621 |
|
| 622 |
bt_wake_pins: bt-pins { |
| 623 |
pins-wake { |
| 624 |
pinmux = <MT8173_PIN_119_KPROW0__FUNC_GPIO119>; |
| 625 |
bias-pull-up; |
| 626 |
}; |
| 627 |
}; |
| 628 |
|
| 629 |
disp_pwm0_pins: disp-pwm0-pins { |
| 630 |
pins1 { |
| 631 |
pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>; |
| 632 |
output-low; |
| 633 |
}; |
| 634 |
}; |
| 635 |
|
| 636 |
gpio_keys_pins: gpio-keys-pins { |
| 637 |
pins-volumeupdn { |
| 638 |
pinmux = <MT8173_PIN_123_KPCOL1__FUNC_GPIO123>, |
| 639 |
<MT8173_PIN_124_KPCOL2__FUNC_GPIO124>; |
| 640 |
bias-pull-up; |
| 641 |
}; |
| 642 |
|
| 643 |
pins-tabletmode { |
| 644 |
pinmux = <MT8173_PIN_121_KPROW2__FUNC_GPIO121>; |
| 645 |
bias-pull-up; |
| 646 |
}; |
| 647 |
}; |
| 648 |
|
| 649 |
hdmi_mux_pins: hdmi-pins { |
| 650 |
pins-mux { |
| 651 |
pinmux = <MT8173_PIN_36_DAISYNC__FUNC_GPIO36>; |
| 652 |
}; |
| 653 |
}; |
| 654 |
|
| 655 |
i2c1_pins_a: i2c1-pins { |
| 656 |
pins-da9211 { |
| 657 |
pinmux = <MT8173_PIN_15_EINT15__FUNC_GPIO15>; |
| 658 |
bias-pull-up; |
| 659 |
}; |
| 660 |
}; |
| 661 |
|
| 662 |
mmc0_pins_default: mmc0-default-pins { |
| 663 |
pins-cmd-dat { |
| 664 |
pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>, |
| 665 |
<MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>, |
| 666 |
<MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>, |
| 667 |
<MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>, |
| 668 |
<MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>, |
| 669 |
<MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>, |
| 670 |
<MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>, |
| 671 |
<MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>, |
| 672 |
<MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>; |
| 673 |
bias-pull-up; |
| 674 |
}; |
| 675 |
|
| 676 |
pins-clk { |
| 677 |
pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>; |
| 678 |
bias-pull-down; |
| 679 |
}; |
| 680 |
|
| 681 |
pins-rst { |
| 682 |
pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>; |
| 683 |
bias-pull-up; |
| 684 |
}; |
| 685 |
}; |
| 686 |
|
| 687 |
mmc1_pins_default: mmc1-default-pins { |
| 688 |
pins-cmd-dat { |
| 689 |
pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>, |
| 690 |
<MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>, |
| 691 |
<MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>, |
| 692 |
<MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>, |
| 693 |
<MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>; |
| 694 |
input-enable; |
| 695 |
drive-strength = <4>; |
| 696 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 697 |
}; |
| 698 |
|
| 699 |
pins-clk { |
| 700 |
pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>; |
| 701 |
bias-pull-down; |
| 702 |
drive-strength = <4>; |
| 703 |
}; |
| 704 |
|
| 705 |
pins-insert { |
| 706 |
pinmux = <MT8173_PIN_1_EINT1__FUNC_GPIO1>; |
| 707 |
bias-pull-up; |
| 708 |
}; |
| 709 |
}; |
| 710 |
|
| 711 |
mmc3_pins_default: mmc3-default-pins { |
| 712 |
pins-dat { |
| 713 |
pinmux = <MT8173_PIN_22_MSDC3_DAT0__FUNC_MSDC3_DAT0>, |
| 714 |
<MT8173_PIN_23_MSDC3_DAT1__FUNC_MSDC3_DAT1>, |
| 715 |
<MT8173_PIN_24_MSDC3_DAT2__FUNC_MSDC3_DAT2>, |
| 716 |
<MT8173_PIN_25_MSDC3_DAT3__FUNC_MSDC3_DAT3>; |
| 717 |
input-enable; |
| 718 |
drive-strength = <8>; |
| 719 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 720 |
}; |
| 721 |
|
| 722 |
pins-cmd { |
| 723 |
pinmux = <MT8173_PIN_27_MSDC3_CMD__FUNC_MSDC3_CMD>; |
| 724 |
input-enable; |
| 725 |
drive-strength = <8>; |
| 726 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 727 |
}; |
| 728 |
|
| 729 |
pins-clk { |
| 730 |
pinmux = <MT8173_PIN_26_MSDC3_CLK__FUNC_MSDC3_CLK>; |
| 731 |
bias-pull-down; |
| 732 |
drive-strength = <8>; |
| 733 |
}; |
| 734 |
}; |
| 735 |
|
| 736 |
mmc0_pins_uhs: mmc0-uhs-pins { |
| 737 |
pins-cmd-dat { |
| 738 |
pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>, |
| 739 |
<MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>, |
| 740 |
<MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>, |
| 741 |
<MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>, |
| 742 |
<MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>, |
| 743 |
<MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>, |
| 744 |
<MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>, |
| 745 |
<MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>, |
| 746 |
<MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>; |
| 747 |
input-enable; |
| 748 |
drive-strength = <6>; |
| 749 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 750 |
}; |
| 751 |
|
| 752 |
pins-clk { |
| 753 |
pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>; |
| 754 |
drive-strength = <6>; |
| 755 |
bias-pull-down = <MTK_PUPD_SET_R1R0_01>; |
| 756 |
}; |
| 757 |
|
| 758 |
pins-ds { |
| 759 |
pinmux = <MT8173_PIN_67_MSDC0_DSL__FUNC_MSDC0_DSL>; |
| 760 |
drive-strength = <MTK_DRIVE_10mA>; |
| 761 |
bias-pull-down = <MTK_PUPD_SET_R1R0_01>; |
| 762 |
}; |
| 763 |
|
| 764 |
pins-rst { |
| 765 |
pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>; |
| 766 |
bias-pull-up; |
| 767 |
}; |
| 768 |
}; |
| 769 |
|
| 770 |
mmc1_pins_uhs: mmc1-pins { |
| 771 |
pins-cmd-dat { |
| 772 |
pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>, |
| 773 |
<MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>, |
| 774 |
<MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>, |
| 775 |
<MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>, |
| 776 |
<MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>; |
| 777 |
input-enable; |
| 778 |
drive-strength = <6>; |
| 779 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 780 |
}; |
| 781 |
|
| 782 |
pins-clk { |
| 783 |
pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>; |
| 784 |
drive-strength = <8>; |
| 785 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 786 |
}; |
| 787 |
}; |
| 788 |
|
| 789 |
mmc3_pins_uhs: mmc3-pins { |
| 790 |
pins-dat { |
| 791 |
pinmux = <MT8173_PIN_22_MSDC3_DAT0__FUNC_MSDC3_DAT0>, |
| 792 |
<MT8173_PIN_23_MSDC3_DAT1__FUNC_MSDC3_DAT1>, |
| 793 |
<MT8173_PIN_24_MSDC3_DAT2__FUNC_MSDC3_DAT2>, |
| 794 |
<MT8173_PIN_25_MSDC3_DAT3__FUNC_MSDC3_DAT3>; |
| 795 |
input-enable; |
| 796 |
drive-strength = <8>; |
| 797 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 798 |
}; |
| 799 |
|
| 800 |
pins-cmd { |
| 801 |
pinmux = <MT8173_PIN_27_MSDC3_CMD__FUNC_MSDC3_CMD>; |
| 802 |
input-enable; |
| 803 |
drive-strength = <8>; |
| 804 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 805 |
}; |
| 806 |
|
| 807 |
pins-clk { |
| 808 |
pinmux = <MT8173_PIN_26_MSDC3_CLK__FUNC_MSDC3_CLK>; |
| 809 |
drive-strength = <8>; |
| 810 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 811 |
}; |
| 812 |
}; |
| 813 |
|
| 814 |
nor_gpio1_pins: nor-pins { |
| 815 |
pins1 { |
| 816 |
pinmux = <MT8173_PIN_6_EINT6__FUNC_SFCS0>, |
| 817 |
<MT8173_PIN_7_EINT7__FUNC_SFHOLD>, |
| 818 |
<MT8173_PIN_8_EINT8__FUNC_SFIN>; |
| 819 |
input-enable; |
| 820 |
drive-strength = <4>; |
| 821 |
bias-pull-up; |
| 822 |
}; |
| 823 |
|
| 824 |
pins2 { |
| 825 |
pinmux = <MT8173_PIN_5_EINT5__FUNC_SFOUT>; |
| 826 |
drive-strength = <4>; |
| 827 |
bias-pull-up; |
| 828 |
}; |
| 829 |
|
| 830 |
pins-clk { |
| 831 |
pinmux = <MT8173_PIN_9_EINT9__FUNC_SFCK>; |
| 832 |
input-enable; |
| 833 |
drive-strength = <4>; |
| 834 |
bias-pull-up; |
| 835 |
}; |
| 836 |
}; |
| 837 |
|
| 838 |
panel_backlight_en_pins: panel-backlight-en-pins { |
| 839 |
pins1 { |
| 840 |
pinmux = <MT8173_PIN_95_PCM_TX__FUNC_GPIO95>; |
| 841 |
}; |
| 842 |
}; |
| 843 |
|
| 844 |
panel_fixed_pins: panel-fixed-pins { |
| 845 |
pins1 { |
| 846 |
pinmux = <MT8173_PIN_41_CMMCLK__FUNC_GPIO41>; |
| 847 |
}; |
| 848 |
}; |
| 849 |
|
| 850 |
ps8640_pins: ps8640-pins { |
| 851 |
pins1 { |
| 852 |
pinmux = <MT8173_PIN_92_PCM_CLK__FUNC_GPIO92>, |
| 853 |
<MT8173_PIN_115_URTS0__FUNC_GPIO115>, |
| 854 |
<MT8173_PIN_127_LCM_RST__FUNC_GPIO127>; |
| 855 |
}; |
| 856 |
}; |
| 857 |
|
| 858 |
ps8640_fixed_pins: ps8640-fixed-pins { |
| 859 |
pins1 { |
| 860 |
pinmux = <MT8173_PIN_30_URTS2__FUNC_GPIO30>; |
| 861 |
}; |
| 862 |
}; |
| 863 |
|
| 864 |
rt5650_irq: rt5650-pins { |
| 865 |
pins-intn { |
| 866 |
pinmux = <MT8173_PIN_3_EINT3__FUNC_GPIO3>; |
| 867 |
bias-pull-down; |
| 868 |
}; |
| 869 |
}; |
| 870 |
|
| 871 |
sdio_fixed_3v3_pins: sdio-vreg-3v3-pins { |
| 872 |
pins1 { |
| 873 |
pinmux = <MT8173_PIN_85_AUD_DAT_MOSI__FUNC_GPIO85>; |
| 874 |
output-low; |
| 875 |
}; |
| 876 |
}; |
| 877 |
|
| 878 |
spi_pins_a: spi1-pins { |
| 879 |
pins1 { |
| 880 |
pinmux = <MT8173_PIN_0_EINT0__FUNC_GPIO0>; |
| 881 |
bias-pull-up; |
| 882 |
}; |
| 883 |
|
| 884 |
pins-spi { |
| 885 |
pinmux = <MT8173_PIN_102_MSDC2_DAT2__FUNC_SPI_CK_1_>, |
| 886 |
<MT8173_PIN_103_MSDC2_DAT3__FUNC_SPI_MI_1_>, |
| 887 |
<MT8173_PIN_104_MSDC2_CLK__FUNC_SPI_MO_1_>, |
| 888 |
<MT8173_PIN_105_MSDC2_CMD__FUNC_SPI_CS_1_>; |
| 889 |
bias-disable; |
| 890 |
}; |
| 891 |
}; |
| 892 |
|
| 893 |
trackpad_irq: trackpad-pins { |
| 894 |
pins-intn { |
| 895 |
pinmux = <MT8173_PIN_117_URXD3__FUNC_GPIO117>; |
| 896 |
input-enable; |
| 897 |
bias-pull-up; |
| 898 |
}; |
| 899 |
}; |
| 900 |
|
| 901 |
usb_pins: usb-pins { |
| 902 |
pins1 { |
| 903 |
pinmux = <MT8173_PIN_101_MSDC2_DAT1__FUNC_GPIO101>; |
| 904 |
output-high; |
| 905 |
bias-disable; |
| 906 |
}; |
| 907 |
}; |
| 908 |
|
| 909 |
wifi_wake_pins: wifi-pins { |
| 910 |
pins-wake { |
| 911 |
pinmux = <MT8173_PIN_38_CONN_RST__FUNC_GPIO38>; |
| 912 |
bias-pull-up; |
| 913 |
}; |
| 914 |
}; |
| 915 |
}; |
| 916 |
|
| 917 |
&pwm0 { |
| 918 |
pinctrl-names = "default"; |
| 919 |
pinctrl-0 = <&disp_pwm0_pins>; |
| 920 |
status = "okay"; |
| 921 |
}; |
| 922 |
|
| 923 |
&pwrap { |
| 924 |
pmic: pmic { |
| 925 |
compatible = "mediatek,mt6397"; |
| 926 |
interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>; |
| 927 |
interrupt-controller; |
| 928 |
#interrupt-cells = <2>; |
| 929 |
|
| 930 |
clock: clocks { |
| 931 |
compatible = "mediatek,mt6397-clk"; |
| 932 |
#clock-cells = <1>; |
| 933 |
}; |
| 934 |
|
| 935 |
pio6397: pinctrl { |
| 936 |
compatible = "mediatek,mt6397-pinctrl"; |
| 937 |
gpio-controller; |
| 938 |
#gpio-cells = <2>; |
| 939 |
}; |
| 940 |
|
| 941 |
regulators { |
| 942 |
compatible = "mediatek,mt6397-regulator"; |
| 943 |
|
| 944 |
mt6397_vpca15_reg: buck_vpca15 { |
| 945 |
regulator-name = "vpca15"; |
| 946 |
regulator-min-microvolt = < 700000>; |
| 947 |
regulator-max-microvolt = <1350000>; |
| 948 |
regulator-ramp-delay = <12500>; |
| 949 |
regulator-always-on; |
| 950 |
regulator-allowed-modes = <0 1>; |
| 951 |
}; |
| 952 |
|
| 953 |
mt6397_vpca7_reg: buck_vpca7 { |
| 954 |
regulator-name = "vpca7"; |
| 955 |
regulator-min-microvolt = < 700000>; |
| 956 |
regulator-max-microvolt = <1350000>; |
| 957 |
regulator-ramp-delay = <12500>; |
| 958 |
regulator-enable-ramp-delay = <115>; |
| 959 |
regulator-always-on; |
| 960 |
}; |
| 961 |
|
| 962 |
mt6397_vsramca15_reg: buck_vsramca15 { |
| 963 |
regulator-name = "vsramca15"; |
| 964 |
regulator-min-microvolt = < 700000>; |
| 965 |
regulator-max-microvolt = <1350000>; |
| 966 |
regulator-ramp-delay = <12500>; |
| 967 |
regulator-always-on; |
| 968 |
}; |
| 969 |
|
| 970 |
mt6397_vsramca7_reg: buck_vsramca7 { |
| 971 |
regulator-name = "vsramca7"; |
| 972 |
regulator-min-microvolt = < 700000>; |
| 973 |
regulator-max-microvolt = <1350000>; |
| 974 |
regulator-ramp-delay = <12500>; |
| 975 |
regulator-always-on; |
| 976 |
}; |
| 977 |
|
| 978 |
mt6397_vcore_reg: buck_vcore { |
| 979 |
regulator-name = "vcore"; |
| 980 |
regulator-min-microvolt = < 700000>; |
| 981 |
regulator-max-microvolt = <1350000>; |
| 982 |
regulator-ramp-delay = <12500>; |
| 983 |
regulator-always-on; |
| 984 |
}; |
| 985 |
|
| 986 |
mt6397_vgpu_reg: buck_vgpu { |
| 987 |
regulator-name = "vgpu"; |
| 988 |
regulator-min-microvolt = < 700000>; |
| 989 |
regulator-max-microvolt = <1350000>; |
| 990 |
regulator-ramp-delay = <12500>; |
| 991 |
regulator-enable-ramp-delay = <115>; |
| 992 |
}; |
| 993 |
|
| 994 |
mt6397_vdrm_reg: buck_vdrm { |
| 995 |
regulator-name = "vdrm"; |
| 996 |
regulator-min-microvolt = <1200000>; |
| 997 |
regulator-max-microvolt = <1400000>; |
| 998 |
regulator-ramp-delay = <12500>; |
| 999 |
regulator-always-on; |
| 1000 |
}; |
| 1001 |
|
| 1002 |
mt6397_vio18_reg: buck_vio18 { |
| 1003 |
regulator-name = "vio18"; |
| 1004 |
regulator-min-microvolt = <1620000>; |
| 1005 |
regulator-max-microvolt = <1980000>; |
| 1006 |
regulator-ramp-delay = <12500>; |
| 1007 |
regulator-always-on; |
| 1008 |
}; |
| 1009 |
|
| 1010 |
mt6397_vtcxo_reg: ldo_vtcxo { |
| 1011 |
regulator-name = "vtcxo"; |
| 1012 |
regulator-always-on; |
| 1013 |
}; |
| 1014 |
|
| 1015 |
mt6397_va28_reg: ldo_va28 { |
| 1016 |
regulator-name = "va28"; |
| 1017 |
}; |
| 1018 |
|
| 1019 |
mt6397_vcama_reg: ldo_vcama { |
| 1020 |
regulator-name = "vcama"; |
| 1021 |
regulator-min-microvolt = <1800000>; |
| 1022 |
regulator-max-microvolt = <1800000>; |
| 1023 |
regulator-enable-ramp-delay = <218>; |
| 1024 |
}; |
| 1025 |
|
| 1026 |
mt6397_vio28_reg: ldo_vio28 { |
| 1027 |
regulator-name = "vio28"; |
| 1028 |
regulator-always-on; |
| 1029 |
}; |
| 1030 |
|
| 1031 |
mt6397_vusb_reg: ldo_vusb { |
| 1032 |
regulator-name = "vusb"; |
| 1033 |
}; |
| 1034 |
|
| 1035 |
mt6397_vmc_reg: ldo_vmc { |
| 1036 |
regulator-name = "vmc"; |
| 1037 |
regulator-min-microvolt = <1800000>; |
| 1038 |
regulator-max-microvolt = <3300000>; |
| 1039 |
regulator-enable-ramp-delay = <218>; |
| 1040 |
}; |
| 1041 |
|
| 1042 |
mt6397_vmch_reg: ldo_vmch { |
| 1043 |
regulator-name = "vmch"; |
| 1044 |
regulator-min-microvolt = <3000000>; |
| 1045 |
regulator-max-microvolt = <3300000>; |
| 1046 |
regulator-enable-ramp-delay = <218>; |
| 1047 |
}; |
| 1048 |
|
| 1049 |
mt6397_vemc_3v3_reg: ldo_vemc3v3 { |
| 1050 |
regulator-name = "vemc_3v3"; |
| 1051 |
regulator-min-microvolt = <3000000>; |
| 1052 |
regulator-max-microvolt = <3300000>; |
| 1053 |
regulator-enable-ramp-delay = <218>; |
| 1054 |
}; |
| 1055 |
|
| 1056 |
mt6397_vgp1_reg: ldo_vgp1 { |
| 1057 |
regulator-name = "vcamd"; |
| 1058 |
regulator-min-microvolt = <1800000>; |
| 1059 |
regulator-max-microvolt = <1800000>; |
| 1060 |
regulator-enable-ramp-delay = <240>; |
| 1061 |
}; |
| 1062 |
|
| 1063 |
mt6397_vgp2_reg: ldo_vgp2 { |
| 1064 |
regulator-name = "vcamio"; |
| 1065 |
regulator-min-microvolt = <3300000>; |
| 1066 |
regulator-max-microvolt = <3300000>; |
| 1067 |
regulator-enable-ramp-delay = <218>; |
| 1068 |
}; |
| 1069 |
|
| 1070 |
mt6397_vgp3_reg: ldo_vgp3 { |
| 1071 |
regulator-name = "vcamaf"; |
| 1072 |
regulator-min-microvolt = <1800000>; |
| 1073 |
regulator-max-microvolt = <1800000>; |
| 1074 |
regulator-enable-ramp-delay = <218>; |
| 1075 |
}; |
| 1076 |
|
| 1077 |
mt6397_vgp4_reg: ldo_vgp4 { |
| 1078 |
regulator-name = "vgp4"; |
| 1079 |
regulator-min-microvolt = <1200000>; |
| 1080 |
regulator-max-microvolt = <3300000>; |
| 1081 |
regulator-enable-ramp-delay = <218>; |
| 1082 |
}; |
| 1083 |
|
| 1084 |
mt6397_vgp5_reg: ldo_vgp5 { |
| 1085 |
regulator-name = "vgp5"; |
| 1086 |
regulator-min-microvolt = <1200000>; |
| 1087 |
regulator-max-microvolt = <3000000>; |
| 1088 |
regulator-enable-ramp-delay = <218>; |
| 1089 |
}; |
| 1090 |
|
| 1091 |
mt6397_vgp6_reg: ldo_vgp6 { |
| 1092 |
regulator-name = "vgp6"; |
| 1093 |
regulator-min-microvolt = <3300000>; |
| 1094 |
regulator-max-microvolt = <3300000>; |
| 1095 |
regulator-enable-ramp-delay = <218>; |
| 1096 |
regulator-always-on; |
| 1097 |
}; |
| 1098 |
|
| 1099 |
mt6397_vibr_reg: ldo_vibr { |
| 1100 |
regulator-name = "vibr"; |
| 1101 |
regulator-min-microvolt = <1300000>; |
| 1102 |
regulator-max-microvolt = <3300000>; |
| 1103 |
regulator-enable-ramp-delay = <218>; |
| 1104 |
}; |
| 1105 |
}; |
| 1106 |
|
| 1107 |
rtc: rtc { |
| 1108 |
compatible = "mediatek,mt6397-rtc"; |
| 1109 |
}; |
| 1110 |
}; |
| 1111 |
}; |
| 1112 |
|
| 1113 |
&spi { |
| 1114 |
pinctrl-names = "default"; |
| 1115 |
pinctrl-0 = <&spi_pins_a>; |
| 1116 |
mediatek,pad-select = <1>; |
| 1117 |
status = "okay"; |
| 1118 |
/* clients */ |
| 1119 |
cros_ec: ec@0 { |
| 1120 |
compatible = "google,cros-ec-spi"; |
| 1121 |
reg = <0x0>; |
| 1122 |
spi-max-frequency = <12000000>; |
| 1123 |
interrupts-extended = <&pio 0 IRQ_TYPE_LEVEL_LOW>; |
| 1124 |
google,cros-ec-spi-msg-delay = <500>; |
| 1125 |
wakeup-source; |
| 1126 |
|
| 1127 |
i2c_tunnel: i2c-tunnel0 { |
| 1128 |
compatible = "google,cros-ec-i2c-tunnel"; |
| 1129 |
google,remote-bus = <0>; |
| 1130 |
#address-cells = <1>; |
| 1131 |
#size-cells = <0>; |
| 1132 |
|
| 1133 |
battery: sbs-battery@b { |
| 1134 |
compatible = "sbs,sbs-battery"; |
| 1135 |
reg = <0xb>; |
| 1136 |
sbs,i2c-retry-count = <2>; |
| 1137 |
sbs,poll-retry-count = <1>; |
| 1138 |
}; |
| 1139 |
}; |
| 1140 |
}; |
| 1141 |
}; |
| 1142 |
|
| 1143 |
&ssusb { |
| 1144 |
dr_mode = "host"; |
| 1145 |
wakeup-source; |
| 1146 |
vusb33-supply = <&mt6397_vusb_reg>; |
| 1147 |
status = "okay"; |
| 1148 |
}; |
| 1149 |
|
| 1150 |
&uart0 { |
| 1151 |
status = "okay"; |
| 1152 |
}; |
| 1153 |
|
| 1154 |
&usb_host { |
| 1155 |
pinctrl-names = "default"; |
| 1156 |
pinctrl-0 = <&usb_pins>; |
| 1157 |
vusb33-supply = <&mt6397_vusb_reg>; |
| 1158 |
status = "okay"; |
| 1159 |
}; |
| 1160 |
|
| 1161 |
#include <arm/cros-ec-keyboard.dtsi> |