| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2022 Neil Armstrong <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
|
| 8 |
#include "meson-g12b-s922x.dtsi" |
| 9 |
#include <dt-bindings/input/input.h> |
| 10 |
#include <dt-bindings/leds/common.h> |
| 11 |
#include <dt-bindings/gpio/meson-g12a-gpio.h> |
| 12 |
#include <dt-bindings/sound/meson-g12a-toacodec.h> |
| 13 |
#include <dt-bindings/sound/meson-g12a-tohdmitx.h> |
| 14 |
|
| 15 |
/ { |
| 16 |
compatible = "hardkernel,odroid-go-ultra", "amlogic,s922x", "amlogic,g12b"; |
| 17 |
model = "Hardkernel ODROID-GO-Ultra"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
serial0 = &uart_AO; |
| 21 |
rtc0 = &vrtc; |
| 22 |
}; |
| 23 |
|
| 24 |
adc-joystick-left { |
| 25 |
compatible = "adc-joystick"; |
| 26 |
io-channels = <&saradc 2>, <&saradc 3>; |
| 27 |
poll-interval = <10>; |
| 28 |
#address-cells = <1>; |
| 29 |
#size-cells = <0>; |
| 30 |
|
| 31 |
axis@0 { |
| 32 |
reg = <0>; |
| 33 |
linux,code = <ABS_Y>; |
| 34 |
abs-range = <3150 950>; |
| 35 |
abs-fuzz = <32>; |
| 36 |
abs-flat = <64>; |
| 37 |
}; |
| 38 |
axis@1 { |
| 39 |
reg = <1>; |
| 40 |
linux,code = <ABS_X>; |
| 41 |
abs-range = <700 2900>; |
| 42 |
abs-fuzz = <32>; |
| 43 |
abs-flat = <64>; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
adc-joystick-right { |
| 48 |
compatible = "adc-joystick"; |
| 49 |
io-channels = <&saradc 0>, <&saradc 1>; |
| 50 |
poll-interval = <10>; |
| 51 |
#address-cells = <1>; |
| 52 |
#size-cells = <0>; |
| 53 |
|
| 54 |
axis@0 { |
| 55 |
reg = <0>; |
| 56 |
linux,code = <ABS_RY>; |
| 57 |
abs-range = <3150 950>; |
| 58 |
abs-fuzz = <32>; |
| 59 |
abs-flat = <64>; |
| 60 |
}; |
| 61 |
axis@1 { |
| 62 |
reg = <1>; |
| 63 |
linux,code = <ABS_RX>; |
| 64 |
abs-range = <800 3000>; |
| 65 |
abs-fuzz = <32>; |
| 66 |
abs-flat = <64>; |
| 67 |
}; |
| 68 |
}; |
| 69 |
|
| 70 |
chosen { |
| 71 |
stdout-path = "serial0:115200n8"; |
| 72 |
}; |
| 73 |
|
| 74 |
codec_clk: codec-clk { |
| 75 |
compatible = "fixed-clock"; |
| 76 |
clock-frequency = <12288000>; |
| 77 |
clock-output-names = "codec_clk"; |
| 78 |
#clock-cells = <0>; |
| 79 |
}; |
| 80 |
|
| 81 |
gpio-keys { |
| 82 |
compatible = "gpio-keys-polled"; |
| 83 |
poll-interval = <10>; |
| 84 |
pinctrl-0 = <&keypad_gpio_pins>; |
| 85 |
pinctrl-names = "default"; |
| 86 |
|
| 87 |
volume-up-button { |
| 88 |
label = "VOLUME-UP"; |
| 89 |
linux,code = <KEY_VOLUMEUP>; |
| 90 |
gpios = <&gpio GPIOX_8 GPIO_ACTIVE_LOW>; |
| 91 |
}; |
| 92 |
volume-down-button { |
| 93 |
label = "VOLUME-DOWN"; |
| 94 |
linux,code = <KEY_VOLUMEDOWN>; |
| 95 |
gpios = <&gpio GPIOX_9 GPIO_ACTIVE_LOW>; |
| 96 |
}; |
| 97 |
dpad-up-button { |
| 98 |
label = "DPAD-UP"; |
| 99 |
linux,code = <BTN_DPAD_UP>; |
| 100 |
gpios = <&gpio GPIOX_0 GPIO_ACTIVE_LOW>; |
| 101 |
}; |
| 102 |
dpad-down-button { |
| 103 |
label = "DPAD-DOWN"; |
| 104 |
linux,code = <BTN_DPAD_DOWN>; |
| 105 |
gpios = <&gpio GPIOX_1 GPIO_ACTIVE_LOW>; |
| 106 |
}; |
| 107 |
dpad-left-button { |
| 108 |
label = "DPAD-LEFT"; |
| 109 |
linux,code = <BTN_DPAD_LEFT>; |
| 110 |
gpios = <&gpio GPIOX_2 GPIO_ACTIVE_LOW>; |
| 111 |
}; |
| 112 |
dpad-right-button { |
| 113 |
label = "DPAD-RIGHT"; |
| 114 |
linux,code = <BTN_DPAD_RIGHT>; |
| 115 |
gpios = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>; |
| 116 |
}; |
| 117 |
a-button { |
| 118 |
label = "A"; |
| 119 |
linux,code = <BTN_EAST>; |
| 120 |
gpios = <&gpio GPIOX_4 GPIO_ACTIVE_LOW>; |
| 121 |
}; |
| 122 |
b-button { |
| 123 |
label = "B"; |
| 124 |
linux,code = <BTN_SOUTH>; |
| 125 |
gpios = <&gpio GPIOX_5 GPIO_ACTIVE_LOW>; |
| 126 |
}; |
| 127 |
y-button { |
| 128 |
label = "Y"; |
| 129 |
linux,code = <BTN_WEST>; |
| 130 |
gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; |
| 131 |
}; |
| 132 |
x-button { |
| 133 |
label = "X"; |
| 134 |
linux,code = <BTN_NORTH>; |
| 135 |
gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>; |
| 136 |
}; |
| 137 |
f1-button { |
| 138 |
label = "F1"; |
| 139 |
linux,code = <BTN_TRIGGER_HAPPY1>; |
| 140 |
gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>; |
| 141 |
}; |
| 142 |
f2-button { |
| 143 |
label = "F2"; |
| 144 |
linux,code = <BTN_TRIGGER_HAPPY2>; |
| 145 |
gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>; |
| 146 |
}; |
| 147 |
f3-button { |
| 148 |
label = "F3"; |
| 149 |
linux,code = <BTN_TRIGGER_HAPPY3>; |
| 150 |
gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>; |
| 151 |
}; |
| 152 |
f4-button { |
| 153 |
label = "F4"; |
| 154 |
linux,code = <BTN_TRIGGER_HAPPY4>; |
| 155 |
gpios = <&gpio GPIOX_12 GPIO_ACTIVE_LOW>; |
| 156 |
}; |
| 157 |
f5-button { |
| 158 |
label = "F5"; |
| 159 |
linux,code = <BTN_TRIGGER_HAPPY5>; |
| 160 |
gpios = <&gpio GPIOX_13 GPIO_ACTIVE_LOW>; |
| 161 |
}; |
| 162 |
f6-button { |
| 163 |
label = "F6"; |
| 164 |
linux,code = <BTN_TRIGGER_HAPPY6>; |
| 165 |
gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>; |
| 166 |
}; |
| 167 |
top-left-button { |
| 168 |
label = "TOP Left"; |
| 169 |
linux,code = <BTN_TL>; |
| 170 |
gpios = <&gpio GPIOX_14 GPIO_ACTIVE_LOW>; |
| 171 |
}; |
| 172 |
top-left2-button { |
| 173 |
label = "TOP Left 2"; |
| 174 |
linux,code = <BTN_TL2>; |
| 175 |
gpios = <&gpio GPIOX_19 GPIO_ACTIVE_LOW>; |
| 176 |
}; |
| 177 |
top-right-button { |
| 178 |
label = "TOP Right"; |
| 179 |
linux,code = <BTN_TR>; |
| 180 |
gpios = <&gpio GPIOX_15 GPIO_ACTIVE_LOW>; |
| 181 |
}; |
| 182 |
top-right2-button { |
| 183 |
label = "TOP Right 2"; |
| 184 |
linux,code = <BTN_TR2>; |
| 185 |
gpios = <&gpio GPIOX_18 GPIO_ACTIVE_LOW>; |
| 186 |
}; |
| 187 |
}; |
| 188 |
|
| 189 |
memory@0 { |
| 190 |
device_type = "memory"; |
| 191 |
reg = <0x0 0x0 0x0 0x40000000>; |
| 192 |
}; |
| 193 |
|
| 194 |
emmc_pwrseq: emmc-pwrseq { |
| 195 |
compatible = "mmc-pwrseq-emmc"; |
| 196 |
reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; |
| 197 |
}; |
| 198 |
|
| 199 |
leds { |
| 200 |
compatible = "gpio-leds"; |
| 201 |
|
| 202 |
led-blue { |
| 203 |
color = <LED_COLOR_ID_BLUE>; |
| 204 |
gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; |
| 205 |
linux,default-trigger = "heartbeat"; |
| 206 |
}; |
| 207 |
}; |
| 208 |
|
| 209 |
vdd_sys: regulator-vdd-sys { |
| 210 |
compatible = "regulator-fixed"; |
| 211 |
regulator-name = "VDD_SYS"; |
| 212 |
regulator-min-microvolt = <3800000>; |
| 213 |
regulator-max-microvolt = <3800000>; |
| 214 |
regulator-always-on; |
| 215 |
}; |
| 216 |
|
| 217 |
sound { |
| 218 |
compatible = "amlogic,axg-sound-card"; |
| 219 |
model = "Odroid GO Ultra"; |
| 220 |
audio-widgets = "Microphone", "Mic Jack", |
| 221 |
"Headphone", "Headphones", |
| 222 |
"Speaker", "Internal Speakers"; |
| 223 |
audio-aux-devs = <&tdmout_b>, <&tdmin_b>, <&speaker_amp>; |
| 224 |
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", |
| 225 |
"TDM_B Playback", "TDMOUT_B OUT", |
| 226 |
"TDMIN_B IN 1", "TDM_B Capture", |
| 227 |
"TDMIN_B IN 4", "TDM_B Loopback", |
| 228 |
"TODDR_A IN 1", "TDMIN_B OUT", |
| 229 |
"MICL", "Mic Jack", |
| 230 |
"Headphones", "HPOL", |
| 231 |
"Headphones", "HPOR", |
| 232 |
"Speaker Amplifier INL", "HPOL", |
| 233 |
"Speaker Amplifier INR", "HPOR", |
| 234 |
"Internal Speakers", "Speaker Amplifier OUTL", |
| 235 |
"Internal Speakers", "Speaker Amplifier OUTR"; |
| 236 |
|
| 237 |
clocks = <&clkc CLKID_MPLL2>, |
| 238 |
<&clkc CLKID_MPLL0>, |
| 239 |
<&clkc CLKID_MPLL1>; |
| 240 |
|
| 241 |
assigned-clocks = <&clkc CLKID_MPLL2>, |
| 242 |
<&clkc CLKID_MPLL0>, |
| 243 |
<&clkc CLKID_MPLL1>; |
| 244 |
assigned-clock-rates = <294912000>, |
| 245 |
<270950400>, |
| 246 |
<393216000>; |
| 247 |
|
| 248 |
dai-link-0 { |
| 249 |
sound-dai = <&frddr_a>; |
| 250 |
}; |
| 251 |
|
| 252 |
dai-link-1 { |
| 253 |
sound-dai = <&toddr_a>; |
| 254 |
}; |
| 255 |
|
| 256 |
dai-link-2 { |
| 257 |
sound-dai = <&tdmif_b>; |
| 258 |
dai-format = "i2s"; |
| 259 |
dai-tdm-slot-tx-mask-0 = <1 1>; |
| 260 |
mclk-fs = <256>; |
| 261 |
|
| 262 |
codec-0 { |
| 263 |
sound-dai = <&rk817>; |
| 264 |
}; |
| 265 |
}; |
| 266 |
}; |
| 267 |
|
| 268 |
speaker_amp: speaker-amplifier { |
| 269 |
compatible = "simple-audio-amplifier"; |
| 270 |
sound-name-prefix = "Speaker Amplifier"; |
| 271 |
VCC-supply = <&hp_5v>; |
| 272 |
}; |
| 273 |
}; |
| 274 |
|
| 275 |
&arb { |
| 276 |
status = "okay"; |
| 277 |
}; |
| 278 |
|
| 279 |
&cpu0 { |
| 280 |
cpu-supply = <&vddcpu_b>; |
| 281 |
}; |
| 282 |
|
| 283 |
&cpu1 { |
| 284 |
cpu-supply = <&vddcpu_b>; |
| 285 |
}; |
| 286 |
|
| 287 |
&cpu100 { |
| 288 |
cpu-supply = <&vddcpu_a>; |
| 289 |
}; |
| 290 |
|
| 291 |
&cpu101 { |
| 292 |
cpu-supply = <&vddcpu_a>; |
| 293 |
}; |
| 294 |
|
| 295 |
&cpu102 { |
| 296 |
cpu-supply = <&vddcpu_a>; |
| 297 |
}; |
| 298 |
|
| 299 |
&cpu103 { |
| 300 |
cpu-supply = <&vddcpu_a>; |
| 301 |
}; |
| 302 |
|
| 303 |
/* RK817 only supports 12.5mV steps, round up the values */ |
| 304 |
&cpu_opp_table_0 { |
| 305 |
opp-1000000000 { |
| 306 |
opp-microvolt = <737500>; |
| 307 |
}; |
| 308 |
opp-1200000000 { |
| 309 |
opp-microvolt = <737500>; |
| 310 |
}; |
| 311 |
opp-1398000000 { |
| 312 |
opp-microvolt = <762500>; |
| 313 |
}; |
| 314 |
opp-1512000000 { |
| 315 |
opp-microvolt = <800000>; |
| 316 |
}; |
| 317 |
opp-1608000000 { |
| 318 |
opp-microvolt = <837500>; |
| 319 |
}; |
| 320 |
opp-1704000000 { |
| 321 |
opp-microvolt = <862500>; |
| 322 |
}; |
| 323 |
opp-1896000000 { |
| 324 |
opp-microvolt = <987500>; |
| 325 |
}; |
| 326 |
opp-1992000000 { |
| 327 |
opp-microvolt = <1012500>; |
| 328 |
}; |
| 329 |
}; |
| 330 |
|
| 331 |
/* RK818 only supports 12.5mV steps, round up the values */ |
| 332 |
&cpub_opp_table_1 { |
| 333 |
opp-1000000000 { |
| 334 |
opp-microvolt = <775000>; |
| 335 |
}; |
| 336 |
opp-1200000000 { |
| 337 |
opp-microvolt = <775000>; |
| 338 |
}; |
| 339 |
opp-1398000000 { |
| 340 |
opp-microvolt = <800000>; |
| 341 |
}; |
| 342 |
opp-1512000000 { |
| 343 |
opp-microvolt = <825000>; |
| 344 |
}; |
| 345 |
opp-1608000000 { |
| 346 |
opp-microvolt = <862500>; |
| 347 |
}; |
| 348 |
opp-1704000000 { |
| 349 |
opp-microvolt = <900000>; |
| 350 |
}; |
| 351 |
opp-1800000000 { |
| 352 |
opp-microvolt = <987500>; |
| 353 |
}; |
| 354 |
opp-1908000000 { |
| 355 |
opp-microvolt = <1025000>; |
| 356 |
}; |
| 357 |
}; |
| 358 |
|
| 359 |
&i2c_AO { |
| 360 |
status = "okay"; |
| 361 |
pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>; |
| 362 |
pinctrl-names = "default"; |
| 363 |
|
| 364 |
rk818: pmic@1c { |
| 365 |
compatible = "rockchip,rk818"; |
| 366 |
reg = <0x1c>; |
| 367 |
interrupt-parent = <&gpio_intc>; |
| 368 |
interrupts = <IRQID_GPIOAO_7 IRQ_TYPE_LEVEL_LOW>; /* GPIOAO_7 */ |
| 369 |
#clock-cells = <1>; |
| 370 |
|
| 371 |
vcc1-supply = <&vdd_sys>; |
| 372 |
vcc2-supply = <&vdd_sys>; |
| 373 |
vcc3-supply = <&vdd_sys>; |
| 374 |
vcc4-supply = <&vdd_sys>; |
| 375 |
vcc6-supply = <&vdd_sys>; |
| 376 |
vcc7-supply = <&vcc_2v3>; |
| 377 |
vcc8-supply = <&vcc_2v3>; |
| 378 |
vcc9-supply = <&vddao_3v3>; |
| 379 |
boost-supply = <&vdd_sys>; |
| 380 |
|
| 381 |
regulators { |
| 382 |
vddcpu_a: DCDC_REG1 { |
| 383 |
regulator-name = "vddcpu_a"; |
| 384 |
regulator-always-on; |
| 385 |
regulator-boot-on; |
| 386 |
regulator-min-microvolt = <775000>; |
| 387 |
regulator-max-microvolt = <1025000>; |
| 388 |
regulator-ramp-delay = <6001>; |
| 389 |
regulator-state-mem { |
| 390 |
regulator-on-in-suspend; |
| 391 |
regulator-suspend-microvolt = <775000>; |
| 392 |
}; |
| 393 |
}; |
| 394 |
|
| 395 |
vdd_ee: DCDC_REG2 { |
| 396 |
regulator-name = "vdd_ee"; |
| 397 |
regulator-always-on; |
| 398 |
regulator-boot-on; |
| 399 |
regulator-min-microvolt = <875000>; |
| 400 |
regulator-max-microvolt = <1250000>; |
| 401 |
regulator-ramp-delay = <6001>; |
| 402 |
regulator-state-mem { |
| 403 |
regulator-on-in-suspend; |
| 404 |
regulator-suspend-microvolt = <875000>; |
| 405 |
}; |
| 406 |
}; |
| 407 |
|
| 408 |
vddq_1v1: DCDC_REG3 { |
| 409 |
regulator-name = "vddq_1v1"; |
| 410 |
regulator-always-on; |
| 411 |
regulator-boot-on; |
| 412 |
regulator-state-mem { |
| 413 |
regulator-on-in-suspend; |
| 414 |
}; |
| 415 |
}; |
| 416 |
|
| 417 |
vddao_3v3: DCDC_REG4 { |
| 418 |
regulator-always-on; |
| 419 |
regulator-boot-on; |
| 420 |
regulator-min-microvolt = <3300000>; |
| 421 |
regulator-max-microvolt = <3300000>; |
| 422 |
regulator-name = "vddao_3v3"; |
| 423 |
regulator-state-mem { |
| 424 |
regulator-on-in-suspend; |
| 425 |
regulator-suspend-microvolt = <3300000>; |
| 426 |
}; |
| 427 |
}; |
| 428 |
|
| 429 |
hp_5v: DCDC_BOOST { |
| 430 |
regulator-always-on; |
| 431 |
regulator-boot-on; |
| 432 |
regulator-name = "hp_5v"; |
| 433 |
regulator-min-microvolt = <5000000>; |
| 434 |
regulator-max-microvolt = <5000000>; |
| 435 |
regulator-state-mem { |
| 436 |
regulator-off-in-suspend; |
| 437 |
}; |
| 438 |
}; |
| 439 |
|
| 440 |
vddio_ao1v8: LDO_REG5 { |
| 441 |
regulator-always-on; |
| 442 |
regulator-boot-on; |
| 443 |
regulator-min-microvolt = <1800000>; |
| 444 |
regulator-max-microvolt = <1800000>; |
| 445 |
regulator-name = "vddio_ao1v8"; |
| 446 |
regulator-state-mem { |
| 447 |
regulator-on-in-suspend; |
| 448 |
regulator-suspend-microvolt = <1800000>; |
| 449 |
}; |
| 450 |
}; |
| 451 |
|
| 452 |
vddq_1v8: LDO_REG7 { |
| 453 |
regulator-always-on; |
| 454 |
regulator-boot-on; |
| 455 |
regulator-min-microvolt = <1800000>; |
| 456 |
regulator-max-microvolt = <1800000>; |
| 457 |
regulator-name = "vddq_1v8"; |
| 458 |
regulator-state-mem { |
| 459 |
regulator-on-in-suspend; |
| 460 |
regulator-suspend-microvolt = <1800000>; |
| 461 |
}; |
| 462 |
}; |
| 463 |
|
| 464 |
vddio_c: LDO_REG9 { |
| 465 |
regulator-always-on; |
| 466 |
regulator-boot-on; |
| 467 |
regulator-min-microvolt = <1800000>; |
| 468 |
regulator-max-microvolt = <3300000>; |
| 469 |
regulator-name = "vddio_c"; |
| 470 |
regulator-state-mem { |
| 471 |
regulator-on-in-suspend; |
| 472 |
regulator-suspend-microvolt = <3300000>; |
| 473 |
}; |
| 474 |
}; |
| 475 |
|
| 476 |
vcc_sd: SWITCH_REG { |
| 477 |
regulator-name = "vcc_sd"; |
| 478 |
regulator-always-on; |
| 479 |
regulator-boot-on; |
| 480 |
regulator-min-microvolt = <3300000>; |
| 481 |
regulator-max-microvolt = <3300000>; |
| 482 |
regulator-state-mem { |
| 483 |
regulator-on-in-suspend; |
| 484 |
}; |
| 485 |
}; |
| 486 |
|
| 487 |
OTG_SWITCH { |
| 488 |
regulator-name = "otg_switch"; |
| 489 |
regulator-state-mem { |
| 490 |
regulator-off-in-suspend; |
| 491 |
}; |
| 492 |
}; |
| 493 |
}; |
| 494 |
}; |
| 495 |
}; |
| 496 |
|
| 497 |
&i2c3 { |
| 498 |
status = "okay"; |
| 499 |
pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; |
| 500 |
pinctrl-names = "default"; |
| 501 |
|
| 502 |
rk817: pmic@20 { |
| 503 |
compatible = "rockchip,rk817"; |
| 504 |
reg = <0x20>; |
| 505 |
interrupt-parent = <&gpio_intc>; |
| 506 |
|
| 507 |
interrupts = <IRQID_GPIOAO_5 IRQ_TYPE_LEVEL_LOW>; /* GPIOAO_5 */ |
| 508 |
|
| 509 |
vcc1-supply = <&vdd_sys>; |
| 510 |
vcc2-supply = <&vdd_sys>; |
| 511 |
vcc3-supply = <&vdd_sys>; |
| 512 |
vcc4-supply = <&vdd_sys>; |
| 513 |
vcc5-supply = <&vdd_sys>; |
| 514 |
vcc6-supply = <&vdd_sys>; |
| 515 |
vcc7-supply = <&vdd_sys>; |
| 516 |
vcc8-supply = <&vdd_sys>; |
| 517 |
vcc9-supply = <&rk817_boost>; |
| 518 |
|
| 519 |
#sound-dai-cells = <0>; |
| 520 |
clocks = <&codec_clk>; |
| 521 |
clock-names = "mclk"; |
| 522 |
|
| 523 |
#clock-cells = <1>; |
| 524 |
|
| 525 |
regulators { |
| 526 |
vddcpu_b: DCDC_REG2 { |
| 527 |
regulator-always-on; |
| 528 |
regulator-boot-on; |
| 529 |
regulator-min-microvolt = <737500>; |
| 530 |
regulator-max-microvolt = <1012500>; |
| 531 |
regulator-ramp-delay = <6001>; |
| 532 |
regulator-initial-mode = <0x2>; |
| 533 |
regulator-name = "vddcpu_b"; |
| 534 |
regulator-state-mem { |
| 535 |
regulator-on-in-suspend; |
| 536 |
regulator-suspend-microvolt = <1000000>; |
| 537 |
}; |
| 538 |
}; |
| 539 |
|
| 540 |
vcc_2v3: DCDC_REG3 { |
| 541 |
regulator-always-on; |
| 542 |
regulator-boot-on; |
| 543 |
regulator-min-microvolt = <2300000>; |
| 544 |
regulator-max-microvolt = <2400000>; |
| 545 |
regulator-initial-mode = <0x2>; |
| 546 |
regulator-name = "vcc_2v3"; |
| 547 |
regulator-state-mem { |
| 548 |
regulator-on-in-suspend; |
| 549 |
}; |
| 550 |
}; |
| 551 |
|
| 552 |
LDO_REG4 { |
| 553 |
regulator-always-on; |
| 554 |
regulator-boot-on; |
| 555 |
regulator-min-microvolt = <3300000>; |
| 556 |
regulator-max-microvolt = <3300000>; |
| 557 |
regulator-name = "vdd_codec"; |
| 558 |
regulator-state-mem { |
| 559 |
regulator-off-in-suspend; |
| 560 |
}; |
| 561 |
}; |
| 562 |
|
| 563 |
vcc_lcd: LDO_REG8 { |
| 564 |
regulator-min-microvolt = <3300000>; |
| 565 |
regulator-max-microvolt = <3300000>; |
| 566 |
regulator-name = "vcc_lcd"; |
| 567 |
regulator-state-mem { |
| 568 |
regulator-off-in-suspend; |
| 569 |
}; |
| 570 |
}; |
| 571 |
|
| 572 |
rk817_boost: BOOST { |
| 573 |
regulator-always-on; |
| 574 |
regulator-boot-on; |
| 575 |
regulator-min-microvolt = <5000000>; |
| 576 |
regulator-max-microvolt = <5400000>; |
| 577 |
regulator-name = "rk817_boost"; |
| 578 |
regulator-state-mem { |
| 579 |
regulator-off-in-suspend; |
| 580 |
}; |
| 581 |
}; |
| 582 |
|
| 583 |
usb_host: OTG_SWITCH { |
| 584 |
regulator-name = "usb_host"; |
| 585 |
regulator-min-microvolt = <5000000>; |
| 586 |
regulator-max-microvolt = <5000000>; |
| 587 |
regulator-state-mem { |
| 588 |
regulator-off-in-suspend; |
| 589 |
}; |
| 590 |
}; |
| 591 |
}; |
| 592 |
}; |
| 593 |
}; |
| 594 |
|
| 595 |
&clkc_audio { |
| 596 |
status = "okay"; |
| 597 |
}; |
| 598 |
|
| 599 |
ð_phy { |
| 600 |
status = "disabled"; |
| 601 |
}; |
| 602 |
|
| 603 |
&frddr_a { |
| 604 |
status = "okay"; |
| 605 |
}; |
| 606 |
|
| 607 |
&periphs_pinctrl { |
| 608 |
keypad_gpio_pins: keypad-gpio-state { |
| 609 |
mux { |
| 610 |
groups = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", |
| 611 |
"GPIOX_4", "GPIOX_5", "GPIOX_6", "GPIOX_7", |
| 612 |
"GPIOX_8", "GPIOX_9", "GPIOX_10", "GPIOX_11", |
| 613 |
"GPIOX_12", "GPIOX_13", "GPIOX_14", "GPIOX_15", |
| 614 |
"GPIOX_16", "GPIOX_17", "GPIOX_18", "GPIOX_19"; |
| 615 |
function = "gpio_periphs"; |
| 616 |
bias-pull-up; |
| 617 |
output-disable; |
| 618 |
}; |
| 619 |
}; |
| 620 |
}; |
| 621 |
|
| 622 |
&saradc { |
| 623 |
status = "okay"; |
| 624 |
vref-supply = <&vddio_ao1v8>; |
| 625 |
}; |
| 626 |
|
| 627 |
/* SD card */ |
| 628 |
&sd_emmc_b { |
| 629 |
status = "okay"; |
| 630 |
pinctrl-0 = <&sdcard_c_pins>; |
| 631 |
pinctrl-1 = <&sdcard_clk_gate_c_pins>; |
| 632 |
pinctrl-names = "default", "clk-gate"; |
| 633 |
|
| 634 |
bus-width = <4>; |
| 635 |
cap-sd-highspeed; |
| 636 |
max-frequency = <50000000>; |
| 637 |
disable-wp; |
| 638 |
|
| 639 |
cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; |
| 640 |
vmmc-supply = <&vcc_sd>; |
| 641 |
vqmmc-supply = <&vddio_c>; |
| 642 |
|
| 643 |
}; |
| 644 |
|
| 645 |
/* eMMC */ |
| 646 |
&sd_emmc_c { |
| 647 |
status = "okay"; |
| 648 |
pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; |
| 649 |
pinctrl-1 = <&emmc_clk_gate_pins>; |
| 650 |
pinctrl-names = "default", "clk-gate"; |
| 651 |
|
| 652 |
bus-width = <8>; |
| 653 |
cap-mmc-highspeed; |
| 654 |
mmc-ddr-1_8v; |
| 655 |
mmc-hs200-1_8v; |
| 656 |
max-frequency = <200000000>; |
| 657 |
disable-wp; |
| 658 |
|
| 659 |
mmc-pwrseq = <&emmc_pwrseq>; |
| 660 |
vmmc-supply = <&vcc_sd>; |
| 661 |
vqmmc-supply = <&vddio_ao1v8>; |
| 662 |
}; |
| 663 |
|
| 664 |
|
| 665 |
&tdmif_b { |
| 666 |
pinctrl-0 = <&tdm_b_dout0_pins>, <&tdm_b_fs_pins>, <&tdm_b_sclk_pins>, <&tdm_b_din1_pins>; |
| 667 |
pinctrl-names = "default"; |
| 668 |
status = "okay"; |
| 669 |
|
| 670 |
assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD1>, |
| 671 |
<&clkc_audio AUD_CLKID_TDM_LRCLK_PAD1>; |
| 672 |
assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_B_SCLK>, |
| 673 |
<&clkc_audio AUD_CLKID_MST_B_LRCLK>; |
| 674 |
assigned-clock-rates = <0>, <0>; |
| 675 |
}; |
| 676 |
|
| 677 |
&tdmin_b { |
| 678 |
status = "okay"; |
| 679 |
}; |
| 680 |
|
| 681 |
&tdmout_b { |
| 682 |
status = "okay"; |
| 683 |
}; |
| 684 |
|
| 685 |
&toddr_a { |
| 686 |
status = "okay"; |
| 687 |
}; |
| 688 |
|
| 689 |
&uart_AO { |
| 690 |
status = "okay"; |
| 691 |
pinctrl-0 = <&uart_ao_a_pins>; |
| 692 |
pinctrl-names = "default"; |
| 693 |
}; |
| 694 |
|
| 695 |
&usb { |
| 696 |
status = "okay"; |
| 697 |
dr_mode = "peripheral"; |
| 698 |
}; |
| 699 |
|
| 700 |
&usb2_phy0 { |
| 701 |
status = "okay"; |
| 702 |
}; |
| 703 |
|
| 704 |
&usb2_phy1 { |
| 705 |
status = "okay"; |
| 706 |
phy-supply = <&usb_host>; |
| 707 |
}; |