| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
/* |
| 3 |
* Copyright (c) 2022, Collabora Ltd |
| 4 |
* Author: AngeloGioacchino Del Regno <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
#include <dt-bindings/gpio/gpio.h> |
| 9 |
#include "mt6795.dtsi" |
| 10 |
#include "mt6331.dtsi" |
| 11 |
|
| 12 |
/ { |
| 13 |
model = "Sony Xperia M5"; |
| 14 |
compatible = "sony,xperia-m5", "mediatek,mt6795"; |
| 15 |
chassis-type = "handset"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
mmc0 = &mmc0; |
| 19 |
mmc1 = &mmc1; |
| 20 |
mmc2 = &mmc2; |
| 21 |
serial0 = &uart0; |
| 22 |
serial1 = &uart1; |
| 23 |
}; |
| 24 |
|
| 25 |
backlight_lcd0: backlight { |
| 26 |
compatible = "led-backlight"; |
| 27 |
leds = <&disp_led_pwm>, <&pmic_bl_led>; |
| 28 |
|
| 29 |
default-brightness-level = <300>; |
| 30 |
}; |
| 31 |
|
| 32 |
led-controller-display { |
| 33 |
compatible = "pwm-leds"; |
| 34 |
|
| 35 |
disp_led_pwm: led-0 { |
| 36 |
label = "backlight-pwm"; |
| 37 |
pwms = <&pwm0 0 500000>; |
| 38 |
max-brightness = <1024>; |
| 39 |
}; |
| 40 |
}; |
| 41 |
|
| 42 |
memory@40000000 { |
| 43 |
device_type = "memory"; |
| 44 |
reg = <0 0x40000000 0 0x1e800000>; |
| 45 |
}; |
| 46 |
|
| 47 |
reserved_memory: reserved-memory { |
| 48 |
#address-cells = <2>; |
| 49 |
#size-cells = <2>; |
| 50 |
ranges; |
| 51 |
|
| 52 |
/* 128 KiB reserved for ARM Trusted Firmware (BL31) */ |
| 53 |
bl31_secmon_reserved: secmon@43000000 { |
| 54 |
reg = <0 0x43000000 0 0x30000>; |
| 55 |
no-map; |
| 56 |
}; |
| 57 |
|
| 58 |
/* preloader and bootloader regions cannot be touched */ |
| 59 |
preloader-region@44800000 { |
| 60 |
reg = <0 0x44800000 0 0x100000>; |
| 61 |
no-map; |
| 62 |
}; |
| 63 |
|
| 64 |
bootloader-region@46000000 { |
| 65 |
reg = <0 0x46000000 0 0x400000>; |
| 66 |
no-map; |
| 67 |
}; |
| 68 |
}; |
| 69 |
|
| 70 |
vreg_disp_avdd: regulator-disp-avdd { |
| 71 |
compatible = "regulator-fixed"; |
| 72 |
regulator-name = "disp_avdd"; |
| 73 |
regulator-min-microvolt = <5000000>; |
| 74 |
regulator-max-microvolt = <5000000>; |
| 75 |
gpio = <&pio 138 GPIO_ACTIVE_HIGH>; |
| 76 |
enable-active-high; |
| 77 |
}; |
| 78 |
|
| 79 |
vreg_disp_avee: regulator-disp-avee { |
| 80 |
compatible = "regulator-fixed"; |
| 81 |
regulator-name = "disp_avee"; |
| 82 |
regulator-min-microvolt = <5000000>; |
| 83 |
regulator-max-microvolt = <5000000>; |
| 84 |
gpio = <&pio 139 GPIO_ACTIVE_HIGH>; |
| 85 |
enable-active-high; |
| 86 |
}; |
| 87 |
|
| 88 |
vreg_disp_vddh: regulator-disp-vddh { |
| 89 |
compatible = "regulator-fixed"; |
| 90 |
regulator-name = "disp_vddh"; |
| 91 |
regulator-min-microvolt = <1800000>; |
| 92 |
regulator-max-microvolt = <1800000>; |
| 93 |
regulator-always-on; |
| 94 |
regulator-boot-on; |
| 95 |
}; |
| 96 |
}; |
| 97 |
|
| 98 |
&dsi0 { |
| 99 |
status = "okay"; |
| 100 |
#address-cells = <1>; |
| 101 |
#size-cells = <0>; |
| 102 |
|
| 103 |
panel: panel@0 { |
| 104 |
compatible = "sharp,ls060t1sx01"; |
| 105 |
reg = <0>; |
| 106 |
avdd-supply = <&vreg_disp_avdd>; |
| 107 |
avee-supply = <&vreg_disp_avee>; |
| 108 |
vddi-supply = <&mt6331_vgp3_reg>; |
| 109 |
vddh-supply = <&vreg_disp_vddh>; |
| 110 |
reset-gpios = <&pio 106 GPIO_ACTIVE_LOW>; |
| 111 |
backlight = <&backlight_lcd0>; |
| 112 |
|
| 113 |
pinctrl-0 = <&disp_rst_pins>; |
| 114 |
pinctrl-names = "default"; |
| 115 |
|
| 116 |
port { |
| 117 |
panel_in: endpoint { |
| 118 |
remote-endpoint = <&dsi0_out>; |
| 119 |
}; |
| 120 |
}; |
| 121 |
}; |
| 122 |
|
| 123 |
port { |
| 124 |
dsi0_out: endpoint { |
| 125 |
remote-endpoint = <&panel_in>; |
| 126 |
}; |
| 127 |
}; |
| 128 |
}; |
| 129 |
|
| 130 |
&fhctl { |
| 131 |
clocks = <&apmixedsys CLK_APMIXED_MAINPLL>, <&apmixedsys CLK_APMIXED_MPLL>, |
| 132 |
<&apmixedsys CLK_APMIXED_MSDCPLL>; |
| 133 |
mediatek,hopping-ssc-percent = <8>, <5>, <8>; |
| 134 |
status = "okay"; |
| 135 |
}; |
| 136 |
|
| 137 |
&i2c0 { |
| 138 |
pinctrl-names = "default"; |
| 139 |
pinctrl-0 = <&i2c0_pins>; |
| 140 |
status = "okay"; |
| 141 |
}; |
| 142 |
|
| 143 |
&i2c1 { |
| 144 |
pinctrl-names = "default"; |
| 145 |
pinctrl-0 = <&i2c1_pins>; |
| 146 |
status = "okay"; |
| 147 |
|
| 148 |
accelerometer@10 { |
| 149 |
compatible = "bosch,bma255"; |
| 150 |
reg = <0x10>; |
| 151 |
pinctrl-names = "default"; |
| 152 |
pinctrl-0 = <&accel_pins>; |
| 153 |
}; |
| 154 |
|
| 155 |
magnetometer@12 { |
| 156 |
compatible = "bosch,bmm150"; |
| 157 |
reg = <0x12>; |
| 158 |
}; |
| 159 |
}; |
| 160 |
|
| 161 |
&i2c2 { |
| 162 |
pinctrl-names = "default"; |
| 163 |
pinctrl-0 = <&i2c2_pins>; |
| 164 |
status = "okay"; |
| 165 |
|
| 166 |
touchscreen@20 { |
| 167 |
compatible = "syna,rmi4-i2c"; |
| 168 |
reg = <0x20>; |
| 169 |
#address-cells = <1>; |
| 170 |
#size-cells = <0>; |
| 171 |
interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_FALLING>; |
| 172 |
pinctrl-names = "default"; |
| 173 |
pinctrl-0 = <&ts_pins>; |
| 174 |
syna,startup-delay-ms = <160>; |
| 175 |
syna,reset-delay-ms = <90>; |
| 176 |
|
| 177 |
rmi4-f01@1 { |
| 178 |
reg = <0x1>; |
| 179 |
syna,nosleep-mode = <1>; |
| 180 |
}; |
| 181 |
|
| 182 |
rmi4-f12@12 { |
| 183 |
reg = <0x12>; |
| 184 |
syna,sensor-type = <1>; |
| 185 |
}; |
| 186 |
}; |
| 187 |
}; |
| 188 |
|
| 189 |
&i2c3 { |
| 190 |
pinctrl-names = "default"; |
| 191 |
pinctrl-0 = <&i2c3_pins>; |
| 192 |
status = "okay"; |
| 193 |
|
| 194 |
pn547: nfc@28 { |
| 195 |
compatible = "nxp,pn544-i2c"; |
| 196 |
reg = <0x28>; |
| 197 |
interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_RISING>; |
| 198 |
pinctrl-names = "default"; |
| 199 |
pinctrl-0 = <&nfc_pins>; |
| 200 |
enable-gpios = <&pio 149 GPIO_ACTIVE_HIGH>; |
| 201 |
firmware-gpios = <&pio 94 GPIO_ACTIVE_HIGH>; |
| 202 |
}; |
| 203 |
|
| 204 |
proximity@48 { |
| 205 |
compatible = "sensortek,stk3310"; |
| 206 |
reg = <0x48>; |
| 207 |
interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>; |
| 208 |
pinctrl-names = "default"; |
| 209 |
pinctrl-0 = <&proximity_pins>; |
| 210 |
}; |
| 211 |
}; |
| 212 |
|
| 213 |
&mmc0 { |
| 214 |
/* eMMC controller */ |
| 215 |
mediatek,latch-ck = <4>; /* hs400 */ |
| 216 |
mediatek,hs200-cmd-int-delay = <1>; |
| 217 |
mediatek,hs400-cmd-int-delay = <1>; |
| 218 |
mediatek,hs400-ds-dly3 = <0x1a>; |
| 219 |
non-removable; |
| 220 |
pinctrl-names = "default", "state_uhs"; |
| 221 |
pinctrl-0 = <&mmc0_pins_default>; |
| 222 |
pinctrl-1 = <&mmc0_pins_uhs>; |
| 223 |
vmmc-supply = <&mt6331_vemc33_reg>; |
| 224 |
vqmmc-supply = <&mt6331_vio18_reg>; |
| 225 |
status = "okay"; |
| 226 |
}; |
| 227 |
|
| 228 |
&mmc1 { |
| 229 |
/* MicroSD card slot */ |
| 230 |
pinctrl-names = "default", "state_uhs"; |
| 231 |
pinctrl-0 = <&mmc1_pins_default>; |
| 232 |
pinctrl-1 = <&mmc1_pins_uhs>; |
| 233 |
vmmc-supply = <&mt6331_vmc_reg>; |
| 234 |
vqmmc-supply = <&mt6331_vmch_reg>; |
| 235 |
status = "okay"; |
| 236 |
}; |
| 237 |
|
| 238 |
&mmc2 { |
| 239 |
/* SDIO WiFi on MMC2 */ |
| 240 |
pinctrl-names = "default", "state_uhs"; |
| 241 |
pinctrl-0 = <&mmc2_pins_default>; |
| 242 |
pinctrl-1 = <&mmc2_pins_uhs>; |
| 243 |
vmmc-supply = <&mt6331_vmc_reg>; |
| 244 |
vqmmc-supply = <&mt6331_vmch_reg>; |
| 245 |
status = "okay"; |
| 246 |
}; |
| 247 |
|
| 248 |
&mt6331_vgp3_reg { |
| 249 |
regulator-min-microvolt = <1800000>; |
| 250 |
}; |
| 251 |
|
| 252 |
&pio { |
| 253 |
disp_rst_pins: lcm-pins { |
| 254 |
pins-rst { |
| 255 |
pinmux = <PINMUX_GPIO106__FUNC_GPIO106>; |
| 256 |
}; |
| 257 |
}; |
| 258 |
|
| 259 |
mmc0_pins_default: emmc-sdr-pins { |
| 260 |
pins-cmd-dat { |
| 261 |
pinmux = <PINMUX_GPIO154__FUNC_MSDC0_DAT0>, |
| 262 |
<PINMUX_GPIO155__FUNC_MSDC0_DAT1>, |
| 263 |
<PINMUX_GPIO156__FUNC_MSDC0_DAT2>, |
| 264 |
<PINMUX_GPIO157__FUNC_MSDC0_DAT3>, |
| 265 |
<PINMUX_GPIO158__FUNC_MSDC0_DAT4>, |
| 266 |
<PINMUX_GPIO159__FUNC_MSDC0_DAT5>, |
| 267 |
<PINMUX_GPIO160__FUNC_MSDC0_DAT6>, |
| 268 |
<PINMUX_GPIO161__FUNC_MSDC0_DAT7>, |
| 269 |
<PINMUX_GPIO162__FUNC_MSDC0_CMD>; |
| 270 |
input-enable; |
| 271 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 272 |
}; |
| 273 |
|
| 274 |
pins-clk { |
| 275 |
pinmux = <PINMUX_GPIO163__FUNC_MSDC0_CLK>; |
| 276 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 277 |
}; |
| 278 |
|
| 279 |
pins-rst { |
| 280 |
pinmux = <PINMUX_GPIO165__FUNC_MSDC0_RSTB>; |
| 281 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 282 |
}; |
| 283 |
}; |
| 284 |
|
| 285 |
mmc0_pins_uhs: emmc-uhs-pins { |
| 286 |
pins-cmd-dat { |
| 287 |
pinmux = <PINMUX_GPIO154__FUNC_MSDC0_DAT0>, |
| 288 |
<PINMUX_GPIO155__FUNC_MSDC0_DAT1>, |
| 289 |
<PINMUX_GPIO156__FUNC_MSDC0_DAT2>, |
| 290 |
<PINMUX_GPIO157__FUNC_MSDC0_DAT3>, |
| 291 |
<PINMUX_GPIO158__FUNC_MSDC0_DAT4>, |
| 292 |
<PINMUX_GPIO159__FUNC_MSDC0_DAT5>, |
| 293 |
<PINMUX_GPIO160__FUNC_MSDC0_DAT6>, |
| 294 |
<PINMUX_GPIO161__FUNC_MSDC0_DAT7>, |
| 295 |
<PINMUX_GPIO162__FUNC_MSDC0_CMD>; |
| 296 |
input-enable; |
| 297 |
drive-strength = <6>; |
| 298 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 299 |
}; |
| 300 |
|
| 301 |
pins-clk { |
| 302 |
pinmux = <PINMUX_GPIO163__FUNC_MSDC0_CLK>; |
| 303 |
drive-strength = <6>; |
| 304 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 305 |
}; |
| 306 |
|
| 307 |
pins-rst { |
| 308 |
pinmux = <PINMUX_GPIO165__FUNC_MSDC0_RSTB>; |
| 309 |
drive-strength = <6>; |
| 310 |
bias-pull-up = <MTK_PUPD_SET_R1R0_10>; |
| 311 |
}; |
| 312 |
|
| 313 |
pins-ds { |
| 314 |
pinmux = <PINMUX_GPIO164__FUNC_MSDC0_DSL>; |
| 315 |
drive-strength = <6>; |
| 316 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 317 |
}; |
| 318 |
}; |
| 319 |
|
| 320 |
mmc1_pins_default: microsd-pins { |
| 321 |
pins-cmd-dat { |
| 322 |
pinmux = <PINMUX_GPIO171__FUNC_MSDC1_DAT0>, |
| 323 |
<PINMUX_GPIO172__FUNC_MSDC1_DAT1>, |
| 324 |
<PINMUX_GPIO173__FUNC_MSDC1_DAT2>, |
| 325 |
<PINMUX_GPIO174__FUNC_MSDC1_DAT3>, |
| 326 |
<PINMUX_GPIO170__FUNC_MSDC1_CMD>; |
| 327 |
input-enable; |
| 328 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 329 |
drive-strength = <4>; |
| 330 |
}; |
| 331 |
|
| 332 |
pins-clk { |
| 333 |
pinmux = <PINMUX_GPIO175__FUNC_MSDC1_CLK>; |
| 334 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 335 |
drive-strength = <4>; |
| 336 |
}; |
| 337 |
}; |
| 338 |
|
| 339 |
mmc1_pins_uhs: microsd-uhs-pins { |
| 340 |
pins-cmd-dat { |
| 341 |
pinmux = <PINMUX_GPIO171__FUNC_MSDC1_DAT0>, |
| 342 |
<PINMUX_GPIO172__FUNC_MSDC1_DAT1>, |
| 343 |
<PINMUX_GPIO173__FUNC_MSDC1_DAT2>, |
| 344 |
<PINMUX_GPIO174__FUNC_MSDC1_DAT3>, |
| 345 |
<PINMUX_GPIO170__FUNC_MSDC1_CMD>; |
| 346 |
input-enable; |
| 347 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 348 |
drive-strength = <6>; |
| 349 |
}; |
| 350 |
|
| 351 |
pins-clk { |
| 352 |
pinmux = <PINMUX_GPIO175__FUNC_MSDC1_CLK>; |
| 353 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 354 |
drive-strength = <8>; |
| 355 |
}; |
| 356 |
}; |
| 357 |
|
| 358 |
mmc2_pins_default: sdio-pins { |
| 359 |
pins-cmd-dat { |
| 360 |
pinmux = <PINMUX_GPIO100__FUNC_MSDC2_DAT0>, |
| 361 |
<PINMUX_GPIO101__FUNC_MSDC2_DAT1>, |
| 362 |
<PINMUX_GPIO102__FUNC_MSDC2_DAT2>, |
| 363 |
<PINMUX_GPIO103__FUNC_MSDC2_DAT3>, |
| 364 |
<PINMUX_GPIO105__FUNC_MSDC2_CMD>; |
| 365 |
input-enable; |
| 366 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 367 |
drive-strength = <4>; |
| 368 |
}; |
| 369 |
|
| 370 |
pins-clk { |
| 371 |
pinmux = <PINMUX_GPIO104__FUNC_MSDC2_CLK>; |
| 372 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 373 |
drive-strength = <4>; |
| 374 |
}; |
| 375 |
}; |
| 376 |
|
| 377 |
mmc2_pins_uhs: sdio-uhs-pins { |
| 378 |
pins-cmd-dat { |
| 379 |
pinmux = <PINMUX_GPIO100__FUNC_MSDC2_DAT0>, |
| 380 |
<PINMUX_GPIO101__FUNC_MSDC2_DAT1>, |
| 381 |
<PINMUX_GPIO102__FUNC_MSDC2_DAT2>, |
| 382 |
<PINMUX_GPIO103__FUNC_MSDC2_DAT3>, |
| 383 |
<PINMUX_GPIO105__FUNC_MSDC2_CMD>; |
| 384 |
input-enable; |
| 385 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 386 |
drive-strength = <8>; |
| 387 |
}; |
| 388 |
|
| 389 |
pins-clk { |
| 390 |
pinmux = <PINMUX_GPIO104__FUNC_MSDC2_CLK>; |
| 391 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 392 |
drive-strength = <8>; |
| 393 |
}; |
| 394 |
}; |
| 395 |
|
| 396 |
nfc_pins: nfc-pins { |
| 397 |
pins-irq { |
| 398 |
pinmux = <PINMUX_GPIO3__FUNC_GPIO3>; |
| 399 |
bias-pull-down; |
| 400 |
input-enable; |
| 401 |
}; |
| 402 |
|
| 403 |
pins-fw-ven { |
| 404 |
pinmux = <PINMUX_GPIO94__FUNC_GPIO94>, |
| 405 |
<PINMUX_GPIO149__FUNC_GPIO149>; |
| 406 |
}; |
| 407 |
}; |
| 408 |
|
| 409 |
ts_pins: touchscreen-pins { |
| 410 |
pins-irq { |
| 411 |
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>; |
| 412 |
bias-pull-up; |
| 413 |
input-enable; |
| 414 |
}; |
| 415 |
|
| 416 |
pins-rst { |
| 417 |
pinmux = <PINMUX_GPIO102__FUNC_GPIO102>; |
| 418 |
output-high; |
| 419 |
}; |
| 420 |
}; |
| 421 |
|
| 422 |
proximity_pins: proximity-pins { |
| 423 |
pins-irq { |
| 424 |
pinmux = <PINMUX_GPIO8__FUNC_GPIO8>; |
| 425 |
bias-pull-up; |
| 426 |
input-enable; |
| 427 |
}; |
| 428 |
}; |
| 429 |
|
| 430 |
accel_pins: accelerometer-pins { |
| 431 |
pins-irq { |
| 432 |
pinmux = <PINMUX_GPIO12__FUNC_GPIO12>; |
| 433 |
bias-pull-up; |
| 434 |
input-enable; |
| 435 |
}; |
| 436 |
}; |
| 437 |
|
| 438 |
i2c0_pins: i2c0-pins { |
| 439 |
pins-bus { |
| 440 |
pinmux = <PINMUX_GPIO45__FUNC_SDA0>, |
| 441 |
<PINMUX_GPIO46__FUNC_SCL0>; |
| 442 |
input-enable; |
| 443 |
}; |
| 444 |
}; |
| 445 |
|
| 446 |
i2c1_pins: i2c1-pins { |
| 447 |
pins-bus { |
| 448 |
pinmux = <PINMUX_GPIO125__FUNC_SDA1>, |
| 449 |
<PINMUX_GPIO126__FUNC_SCL1>; |
| 450 |
bias-disable; |
| 451 |
}; |
| 452 |
}; |
| 453 |
|
| 454 |
i2c2_pins: i2c2-pins { |
| 455 |
pins-bus { |
| 456 |
pinmux = <PINMUX_GPIO43__FUNC_SDA2>, |
| 457 |
<PINMUX_GPIO44__FUNC_SCL2>; |
| 458 |
bias-disable; |
| 459 |
}; |
| 460 |
}; |
| 461 |
|
| 462 |
i2c3_pins: i2c3-pins { |
| 463 |
pins-bus { |
| 464 |
pinmux = <PINMUX_GPIO136__FUNC_SDA3>, |
| 465 |
<PINMUX_GPIO137__FUNC_SCL3>; |
| 466 |
bias-disable; |
| 467 |
}; |
| 468 |
}; |
| 469 |
|
| 470 |
i2c4_pins: i2c4-pins { |
| 471 |
pins-bus { |
| 472 |
pinmux = <PINMUX_GPIO100__FUNC_SDA4>, |
| 473 |
<PINMUX_GPIO101__FUNC_SCL4>; |
| 474 |
bias-disable; |
| 475 |
}; |
| 476 |
}; |
| 477 |
|
| 478 |
uart0_pins: uart0-pins { |
| 479 |
pins-rx { |
| 480 |
pinmux = <PINMUX_GPIO113__FUNC_URXD0>; |
| 481 |
bias-pull-up; |
| 482 |
input-enable; |
| 483 |
}; |
| 484 |
pins-tx { |
| 485 |
pinmux = <PINMUX_GPIO114__FUNC_UTXD0>; |
| 486 |
output-high; |
| 487 |
}; |
| 488 |
}; |
| 489 |
|
| 490 |
uart2_pins: uart2-pins { |
| 491 |
pins-rx { |
| 492 |
pinmux = <PINMUX_GPIO31__FUNC_URXD2>; |
| 493 |
bias-pull-up; |
| 494 |
input-enable; |
| 495 |
}; |
| 496 |
pins-tx { |
| 497 |
pinmux = <PINMUX_GPIO32__FUNC_UTXD2>; |
| 498 |
}; |
| 499 |
}; |
| 500 |
}; |
| 501 |
|
| 502 |
&pmic { |
| 503 |
/* |
| 504 |
* Smartphones, including the Xperia M5, are equipped with a companion |
| 505 |
* MT6332 PMIC: when this is present, the main MT6331 PMIC will fire |
| 506 |
* an interrupt on the companion, so we use the MT6332 IRQ GPIO. |
| 507 |
*/ |
| 508 |
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>; |
| 509 |
|
| 510 |
leds { |
| 511 |
compatible = "mediatek,mt6332-led"; |
| 512 |
#address-cells = <1>; |
| 513 |
#size-cells = <0>; |
| 514 |
|
| 515 |
pmic_bl_led: led@0 { |
| 516 |
reg = <0>; |
| 517 |
label = "backlight-pmic"; |
| 518 |
}; |
| 519 |
}; |
| 520 |
}; |
| 521 |
|
| 522 |
&pwm0 { |
| 523 |
status = "okay"; |
| 524 |
}; |
| 525 |
|
| 526 |
&uart0 { |
| 527 |
status = "okay"; |
| 528 |
|
| 529 |
pinctrl-names = "default"; |
| 530 |
pinctrl-0 = <&uart0_pins>; |
| 531 |
}; |
| 532 |
|
| 533 |
&uart2 { |
| 534 |
status = "okay"; |
| 535 |
|
| 536 |
pinctrl-names = "default"; |
| 537 |
pinctrl-0 = <&uart2_pins>; |
| 538 |
}; |