Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH |
| 3 | * |
Philipp Tomsich | faf1afc | 2017-04-07 19:09:37 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ X11 |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 8 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 9 | #include <dt-bindings/pwm/pwm.h> |
| 10 | #include "rk3399.dtsi" |
Philipp Tomsich | 572045b | 2017-04-17 17:50:38 +0200 | [diff] [blame] | 11 | #include "rk3399-sdram-ddr3-1600.dtsi" |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "Theobroma Systems RK3399-Q7 SoM"; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 15 | compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399"; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 16 | |
Philipp Tomsich | 572045b | 2017-04-17 17:50:38 +0200 | [diff] [blame] | 17 | config { |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 18 | u-boot,spl-payload-offset = <0x40000>; /* 256kbyte */ |
| 19 | u-boot,boot-led = "module_led"; |
Philipp Tomsich | 572045b | 2017-04-17 17:50:38 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 22 | chosen { |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | u-boot,spl-boot-order = &spiflash, &sdhci, &sdmmc; |
| 25 | }; |
| 26 | |
| 27 | aliases { |
| 28 | spi0 = &spi1; |
| 29 | spi1 = &spi5; |
| 30 | }; |
| 31 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 32 | leds { |
| 33 | compatible = "gpio-leds"; |
| 34 | pinctrl-names = "default"; |
| 35 | pinctrl-0 = <&leds_pins_puma>; |
| 36 | |
| 37 | module_led { |
| 38 | label = "module_led"; |
| 39 | gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; |
| 40 | linux,default-trigger = "heartbeat"; |
| 41 | }; |
| 42 | |
| 43 | sd_card_led { |
| 44 | label = "sd_card_led"; |
| 45 | gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; |
| 46 | linux,default-trigger = "mmc0"; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | clkin_gmac: external-gmac-clock { |
| 51 | compatible = "fixed-clock"; |
| 52 | clock-frequency = <125000000>; |
| 53 | clock-output-names = "clkin_gmac"; |
| 54 | #clock-cells = <0>; |
| 55 | }; |
| 56 | |
| 57 | dw_hdmi_audio: dw-hdmi-audio { |
| 58 | status = "enabled"; |
| 59 | compatible = "rockchip,dw-hdmi-audio"; |
| 60 | #sound-dai-cells = <0>; |
| 61 | }; |
| 62 | |
| 63 | hdmi_codec: hdmi-codec { |
| 64 | compatible = "simple-audio-card"; |
| 65 | simple-audio-card,format = "i2s"; |
| 66 | simple-audio-card,mclk-fs = <256>; |
| 67 | simple-audio-card,name = "HDMI-CODEC"; |
| 68 | |
| 69 | simple-audio-card,cpu { |
| 70 | sound-dai = <&i2s2>; |
| 71 | }; |
| 72 | |
| 73 | simple-audio-card,codec { |
| 74 | sound-dai = <&hdmi>; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | hdmi_sound: hdmi-sound { |
| 79 | status = "disabled"; |
| 80 | compatible = "simple-audio-card"; |
| 81 | simple-audio-card,format = "i2s"; |
| 82 | simple-audio-card,mclk-fs = <256>; |
| 83 | simple-audio-card,name = "rockchip,hdmi"; |
| 84 | |
| 85 | simple-audio-card,cpu { |
| 86 | sound-dai = <&i2s2>; |
| 87 | }; |
| 88 | simple-audio-card,codec { |
| 89 | sound-dai = <&hdmi>; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | vccadc_ref: vccadc-ref { |
| 94 | compatible = "regulator-fixed"; |
| 95 | regulator-name = "vcc1v8_sys"; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 96 | regulator-always-on; |
| 97 | regulator-boot-on; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 98 | regulator-min-microvolt = <1800000>; |
| 99 | regulator-max-microvolt = <1800000>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 100 | }; |
| 101 | |
| 102 | vcc3v3_sys: vcc3v3-sys { |
| 103 | compatible = "regulator-fixed"; |
| 104 | regulator-name = "vcc3v3_sys"; |
| 105 | regulator-always-on; |
| 106 | regulator-boot-on; |
| 107 | regulator-min-microvolt = <3300000>; |
| 108 | regulator-max-microvolt = <3300000>; |
| 109 | }; |
| 110 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 111 | vcc5v0_otg: vcc5v0-otg-regulator { |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 112 | compatible = "regulator-fixed"; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 113 | enable-active-high; |
| 114 | gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
| 115 | pinctrl-names = "default"; |
| 116 | pinctrl-0 = <&otg_vbus_drv>; |
| 117 | regulator-name = "vcc5v0_otg"; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 118 | regulator-always-on; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 119 | }; |
| 120 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 121 | vcc5v0_host: vcc5v0-host-regulator { |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 122 | compatible = "regulator-fixed"; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 123 | enable-active-low; |
| 124 | gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>; |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&host_vbus_drv>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 127 | regulator-name = "vcc5v0_host"; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 128 | regulator-always-on; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 129 | }; |
| 130 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 131 | vcc5v0_sys: vcc5v0-sys { |
| 132 | compatible = "regulator-fixed"; |
| 133 | regulator-name = "vcc5v0_sys"; |
| 134 | regulator-always-on; |
| 135 | regulator-boot-on; |
| 136 | regulator-min-microvolt = <5000000>; |
| 137 | regulator-max-microvolt = <5000000>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 138 | }; |
| 139 | |
| 140 | vcc_phy: vcc-phy-regulator { |
| 141 | compatible = "regulator-fixed"; |
| 142 | regulator-name = "vcc_phy"; |
| 143 | regulator-always-on; |
| 144 | regulator-boot-on; |
| 145 | }; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 146 | |
| 147 | vdd_log: vdd-log { |
| 148 | compatible = "pwm-regulator"; |
| 149 | pwms = <&pwm2 0 25000 1>; |
| 150 | regulator-name = "vdd_log"; |
| 151 | regulator-min-microvolt = <800000>; |
| 152 | regulator-max-microvolt = <1400000>; |
| 153 | regulator-always-on; |
| 154 | regulator-boot-on; |
| 155 | |
| 156 | /* for rockchip boot on */ |
| 157 | rockchip,pwm_id= <2>; |
| 158 | rockchip,pwm_voltage = <1000000>; |
| 159 | }; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | &emmc_phy { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 166 | &gmac { |
| 167 | phy-supply = <&vcc_phy>; |
| 168 | phy-mode = "rgmii"; |
| 169 | clock_in_out = "input"; |
| 170 | snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>; |
| 171 | snps,reset-active-low; |
| 172 | snps,reset-delays-us = <2 10000 50000>; |
| 173 | assigned-clocks = <&cru SCLK_RMII_SRC>; |
| 174 | assigned-clock-parents = <&clkin_gmac>; |
| 175 | pinctrl-names = "default"; |
| 176 | pinctrl-0 = <&rgmii_pins>; |
| 177 | tx_delay = <0x10>; |
| 178 | rx_delay = <0x10>; |
| 179 | status = "okay"; |
| 180 | }; |
| 181 | |
| 182 | &hdmi { |
| 183 | #address-cells = <1>; |
| 184 | #size-cells = <0>; |
| 185 | #sound-dai-cells = <0>; |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | |
| 189 | &i2c0 { |
| 190 | status = "okay"; |
| 191 | i2c-scl-rising-time-ns = <168>; |
| 192 | i2c-scl-falling-time-ns = <4>; |
| 193 | clock-frequency = <400000>; |
| 194 | |
| 195 | vdd_gpu: fan535555@60 { |
| 196 | compatible = "fcs,fan53555"; |
| 197 | reg = <0x60>; |
| 198 | vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
| 199 | vin-supply = <&vcc5v0_sys>; |
| 200 | regulator-compatible = "fan53555-reg"; |
| 201 | regulator-name = "vdd_gpu"; |
| 202 | regulator-min-microvolt = <600000>; |
| 203 | regulator-max-microvolt = <1230000>; |
| 204 | regulator-ramp-delay = <1000>; |
| 205 | fcs,suspend-voltage-selector = <1>; |
| 206 | regulator-always-on; |
| 207 | regulator-boot-on; |
| 208 | regulator-initial-state = <3>; |
| 209 | regulator-state-mem { |
| 210 | regulator-off-in-suspend; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | rk808: pmic@1b { |
| 215 | compatible = "rockchip,rk808"; |
| 216 | reg = <0x1b>; |
| 217 | interrupt-parent = <&gpio1>; |
| 218 | interrupts = <22 IRQ_TYPE_LEVEL_LOW>; // TODO check interrupt? |
| 219 | pinctrl-names = "default"; |
| 220 | pinctrl-0 = <&pmic_int_l>; |
| 221 | rockchip,system-power-controller; |
| 222 | wakeup-source; |
| 223 | #clock-cells = <1>; |
| 224 | clock-output-names = "xin32k", "rk808-clkout2"; |
| 225 | |
| 226 | vcc1-supply = <&vcc5v0_sys>; |
| 227 | vcc2-supply = <&vcc5v0_sys>; |
| 228 | vcc3-supply = <&vcc5v0_sys>; |
| 229 | vcc4-supply = <&vcc5v0_sys>; |
| 230 | vcc6-supply = <&vcc5v0_sys>; |
| 231 | vcc7-supply = <&vcc5v0_sys>; |
| 232 | vcc8-supply = <&vcc3v3_sys>; |
| 233 | vcc9-supply = <&vcc5v0_sys>; |
| 234 | vcc10-supply = <&vcc5v0_sys>; |
| 235 | vcc11-supply = <&vcc5v0_sys>; |
| 236 | vcc12-supply = <&vcc3v3_sys>; |
| 237 | vddio-supply = <&vcc1v8_pmu>; |
| 238 | |
| 239 | regulators { |
| 240 | vdd_center: DCDC_REG1 { |
| 241 | regulator-always-on; |
| 242 | regulator-boot-on; |
| 243 | regulator-min-microvolt = <750000>; |
| 244 | regulator-max-microvolt = <1350000>; |
| 245 | regulator-ramp-delay = <6001>; |
| 246 | regulator-name = "vdd_center"; |
| 247 | regulator-state-mem { |
| 248 | regulator-off-in-suspend; |
| 249 | }; |
| 250 | }; |
| 251 | |
| 252 | vdd_cpu_l: DCDC_REG2 { |
| 253 | regulator-always-on; |
| 254 | regulator-boot-on; |
| 255 | regulator-min-microvolt = <750000>; |
| 256 | regulator-max-microvolt = <1350000>; |
| 257 | regulator-ramp-delay = <6001>; |
| 258 | regulator-name = "vdd_cpu_l"; |
| 259 | regulator-state-mem { |
| 260 | regulator-off-in-suspend; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | vcc_ddr: DCDC_REG3 { |
| 265 | regulator-always-on; |
| 266 | regulator-boot-on; |
| 267 | regulator-name = "vcc_ddr"; |
| 268 | regulator-state-mem { |
| 269 | regulator-on-in-suspend; |
| 270 | }; |
| 271 | }; |
| 272 | |
| 273 | vcc_1v8: DCDC_REG4 { |
| 274 | regulator-always-on; |
| 275 | regulator-boot-on; |
| 276 | regulator-min-microvolt = <1800000>; |
| 277 | regulator-max-microvolt = <1800000>; |
| 278 | regulator-name = "vcc_1v8"; |
| 279 | regulator-state-mem { |
| 280 | regulator-on-in-suspend; |
| 281 | regulator-suspend-microvolt = <1800000>; |
| 282 | }; |
| 283 | }; |
| 284 | |
| 285 | vcc_ldo1: LDO_REG1 { |
| 286 | regulator-boot-on; |
| 287 | regulator-min-microvolt = <1800000>; |
| 288 | regulator-max-microvolt = <1800000>; |
| 289 | regulator-name = "vcc_ldo1"; |
| 290 | regulator-state-mem { |
| 291 | regulator-off-in-suspend; |
| 292 | }; |
| 293 | }; |
| 294 | |
| 295 | vcc1v8_hdmi: LDO_REG2 { |
| 296 | regulator-always-on; |
| 297 | regulator-boot-on; |
| 298 | regulator-min-microvolt = <1800000>; |
| 299 | regulator-max-microvolt = <1800000>; |
| 300 | regulator-name = "vcc1v8_hdmi"; |
| 301 | regulator-state-mem { |
| 302 | regulator-off-in-suspend; |
| 303 | }; |
| 304 | }; |
| 305 | |
| 306 | vcc1v8_pmu: LDO_REG3 { |
| 307 | regulator-always-on; |
| 308 | regulator-boot-on; |
| 309 | regulator-min-microvolt = <1800000>; |
| 310 | regulator-max-microvolt = <1800000>; |
| 311 | regulator-name = "vcc1v8_pmu"; |
| 312 | regulator-state-mem { |
| 313 | regulator-on-in-suspend; |
| 314 | regulator-suspend-microvolt = <1800000>; |
| 315 | }; |
| 316 | }; |
| 317 | |
| 318 | vcc_sd: LDO_REG4 { |
| 319 | regulator-always-on; |
| 320 | regulator-boot-on; |
| 321 | regulator-min-microvolt = <1800000>; |
| 322 | regulator-max-microvolt = <3300000>; |
| 323 | regulator-name = "vcc_sd"; |
| 324 | regulator-state-mem { |
| 325 | regulator-on-in-suspend; |
| 326 | regulator-suspend-microvolt = <3300000>; |
| 327 | }; |
| 328 | }; |
| 329 | |
| 330 | vcc_ldo5: LDO_REG5 { |
| 331 | regulator-boot-on; |
| 332 | regulator-min-microvolt = <3000000>; |
| 333 | regulator-max-microvolt = <3000000>; |
| 334 | regulator-name = "vcc_ldo5"; |
| 335 | regulator-state-mem { |
| 336 | regulator-off-in-suspend; |
| 337 | }; |
| 338 | }; |
| 339 | |
| 340 | vcc_ldo6: LDO_REG6 { |
| 341 | regulator-boot-on; |
| 342 | regulator-min-microvolt = <1500000>; |
| 343 | regulator-max-microvolt = <1500000>; |
| 344 | regulator-name = "vcc_ldo6"; |
| 345 | regulator-state-mem { |
| 346 | regulator-off-in-suspend; |
| 347 | }; |
| 348 | }; |
| 349 | |
| 350 | vcc0v9_hdmi: LDO_REG7 { |
| 351 | regulator-always-on; |
| 352 | regulator-boot-on; |
| 353 | regulator-min-microvolt = <900000>; |
| 354 | regulator-max-microvolt = <900000>; |
| 355 | regulator-name = "vcc0v9_hdmi"; |
| 356 | regulator-state-mem { |
| 357 | regulator-off-in-suspend; |
| 358 | }; |
| 359 | }; |
| 360 | |
| 361 | vcc_efuse: LDO_REG8 { |
| 362 | regulator-always-on; |
| 363 | regulator-boot-on; |
| 364 | regulator-min-microvolt = <1800000>; |
| 365 | regulator-max-microvolt = <1800000>; |
| 366 | regulator-name = "vcc_efuse"; |
| 367 | regulator-state-mem { |
| 368 | regulator-off-in-suspend; |
| 369 | }; |
| 370 | }; |
| 371 | |
| 372 | vcc3v3_s3: SWITCH_REG1 { |
| 373 | regulator-always-on; |
| 374 | regulator-boot-on; |
| 375 | regulator-name = "vcc3v3_s3"; |
| 376 | regulator-state-mem { |
| 377 | regulator-off-in-suspend; |
| 378 | }; |
| 379 | }; |
| 380 | |
| 381 | vcc3v3_s0: SWITCH_REG2 { |
| 382 | regulator-always-on; |
| 383 | regulator-boot-on; |
| 384 | regulator-name = "vcc3v3_s0"; |
| 385 | regulator-state-mem { |
| 386 | regulator-off-in-suspend; |
| 387 | }; |
| 388 | }; |
| 389 | }; |
| 390 | }; |
| 391 | }; |
| 392 | |
| 393 | &i2c8 { |
| 394 | status = "okay"; |
| 395 | clock-frequency = <400000>; |
| 396 | |
| 397 | vdd_cpu_b: fan53555@60 { |
| 398 | compatible = "fcs,fan53555"; |
| 399 | reg = <0x60>; |
| 400 | vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
| 401 | vin-supply = <&vcc5v0_sys>; |
| 402 | regulator-compatible = "fan53555-reg"; |
| 403 | regulator-name = "vdd_cpu_b"; |
| 404 | regulator-min-microvolt = <600000>; |
| 405 | regulator-max-microvolt = <1230000>; |
| 406 | regulator-ramp-delay = <1000>; |
| 407 | fcs,suspend-voltage-selector = <1>; |
| 408 | regulator-always-on; |
| 409 | regulator-boot-on; |
| 410 | regulator-initial-state = <3>; |
| 411 | regulator-state-mem { |
| 412 | regulator-off-in-suspend; |
| 413 | }; |
| 414 | }; |
| 415 | }; |
| 416 | |
| 417 | &i2s0 { |
| 418 | status = "okay"; |
| 419 | rockchip,i2s-broken-burst-len; |
| 420 | rockchip,playback-channels = <8>; |
| 421 | rockchip,capture-channels = <8>; |
| 422 | #sound-dai-cells = <0>; |
| 423 | }; |
| 424 | |
| 425 | &i2s2 { |
| 426 | #sound-dai-cells = <0>; |
| 427 | status = "okay"; |
| 428 | }; |
| 429 | |
| 430 | &io_domains { |
| 431 | status = "okay"; |
| 432 | |
| 433 | bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */ |
| 434 | audio-supply = <&vcc_1v8>; /* audio_gpio3d4a_ms */ |
| 435 | sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */ |
| 436 | gpio1830-supply = <&vcc_1v8>; /* gpio1833_gpio4cd_ms */ |
| 437 | }; |
| 438 | |
| 439 | &pcie0 { |
| 440 | assigned-clocks = <&cru SCLK_PCIEPHY_REF>; |
| 441 | assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; |
| 442 | assigned-clock-rates = <100000000>; |
| 443 | ep-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; |
| 444 | num-lanes = <4>; |
| 445 | pinctrl-names = "default"; |
| 446 | pinctrl-0 = <&pcie_clkreqn>; |
| 447 | status = "okay"; |
| 448 | }; |
| 449 | |
| 450 | &pcie_phy { |
| 451 | status = "okay"; |
| 452 | }; |
| 453 | |
| 454 | &pmu_io_domains { |
| 455 | status = "okay"; |
| 456 | pmu1830-supply = <&vcc_1v8>; |
| 457 | }; |
| 458 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 459 | &pwm0 { |
| 460 | status = "okay"; |
| 461 | }; |
| 462 | |
| 463 | &pwm2 { |
| 464 | status = "okay"; |
| 465 | }; |
| 466 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 467 | &sdhci { |
| 468 | bus-width = <8>; |
| 469 | mmc-hs400-1_8v; |
| 470 | supports-emmc; |
| 471 | non-removable; |
| 472 | keep-power-in-suspend; |
| 473 | mmc-hs400-enhanced-strobe; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 474 | status = "okay"; |
| 475 | }; |
| 476 | |
| 477 | &sdmmc { |
| 478 | u-boot,dm-pre-reloc; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 479 | clock-frequency = <150000000>; |
| 480 | clock-freq-min-max = <100000 150000000>; |
| 481 | supports-sd; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 482 | bus-width = <4>; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 483 | cap-mmc-highspeed; |
| 484 | cap-sd-highspeed; |
| 485 | disable-wp; |
| 486 | num-slots = <1>; |
| 487 | vqmmc-supply = <&vcc_sd>; |
| 488 | pinctrl-names = "default"; |
| 489 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 490 | status = "okay"; |
| 491 | }; |
| 492 | |
| 493 | &uart2 { |
| 494 | status = "okay"; |
| 495 | }; |
| 496 | |
| 497 | &usb_host0_ehci { |
| 498 | status = "okay"; |
| 499 | }; |
| 500 | |
| 501 | &usb_host0_ohci { |
| 502 | status = "okay"; |
| 503 | }; |
| 504 | |
| 505 | &dwc3_typec0 { |
Philipp Tomsich | 2dd2c01 | 2017-05-31 18:17:58 +0200 | [diff] [blame] | 506 | status = "disabled"; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 507 | }; |
| 508 | |
| 509 | &usb_host1_ehci { |
| 510 | status = "okay"; |
| 511 | }; |
| 512 | |
| 513 | &usb_host1_ohci { |
| 514 | status = "okay"; |
| 515 | }; |
| 516 | |
| 517 | &dwc3_typec1 { |
Philipp Tomsich | 2dd2c01 | 2017-05-31 18:17:58 +0200 | [diff] [blame] | 518 | rockchip,vbus-gpio = <&gpio4 3 GPIO_ACTIVE_LOW>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 519 | status = "okay"; |
| 520 | }; |
| 521 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 522 | &vopb { |
| 523 | status = "okay"; |
| 524 | }; |
| 525 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 526 | &pinctrl { |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 527 | /* Pins that are not explicitely used by any devices */ |
| 528 | pinctrl-names = "default"; |
| 529 | pinctrl-0 = <&puma_pin_hog>; |
| 530 | hog { |
| 531 | puma_pin_hog: puma_pin_hog { |
| 532 | rockchip,pins = |
| 533 | /* We need pull-ups on Q7 buttons */ |
| 534 | <0 4 RK_FUNC_GPIO &pcfg_pull_up>, /* LID_BTN# */ |
| 535 | <0 10 RK_FUNC_GPIO &pcfg_pull_up>, /* BATLOW# */ |
| 536 | <0 11 RK_FUNC_GPIO &pcfg_pull_up>, /* SLP_BTN# */ |
| 537 | <0 9 RK_FUNC_GPIO &pcfg_pull_up>; /* BIOS_DISABLE# */ |
| 538 | }; |
| 539 | }; |
| 540 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 541 | pmic { |
| 542 | pmic_int_l: pmic-int-l { |
| 543 | rockchip,pins = |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 544 | <1 22 RK_FUNC_GPIO &pcfg_pull_up>; |
| 545 | }; |
| 546 | }; |
| 547 | |
| 548 | leds_pins_puma: led_pins@0 { |
| 549 | rockchip,pins = |
| 550 | <2 25 RK_FUNC_GPIO &pcfg_pull_none>, |
| 551 | <1 2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 552 | }; |
| 553 | |
| 554 | usb2 { |
| 555 | otg_vbus_drv: otg-vbus-drv { |
| 556 | rockchip,pins = |
| 557 | <0 2 RK_FUNC_GPIO &pcfg_pull_none>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 558 | }; |
| 559 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 560 | host_vbus_drv: host-vbus-drv { |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 561 | rockchip,pins = |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 562 | <0 2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 563 | }; |
| 564 | }; |
| 565 | |
| 566 | i2c8 { |
| 567 | i2c8_xfer_a: i2c8-xfer { |
| 568 | rockchip,pins = <1 21 RK_FUNC_1 &pcfg_pull_up>, |
| 569 | <1 20 RK_FUNC_1 &pcfg_pull_up>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 570 | }; |
| 571 | }; |
| 572 | }; |
| 573 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 574 | &i2c1 { |
| 575 | status = "okay"; |
| 576 | clock-frequency = <400000>; |
| 577 | }; |
| 578 | &i2c2 { |
| 579 | status = "okay"; |
| 580 | clock-frequency = <400000>; |
| 581 | }; |
| 582 | &i2c4 { |
| 583 | status = "okay"; |
| 584 | clock-frequency = <400000>; |
| 585 | }; |
| 586 | &i2c6 { |
| 587 | status = "okay"; |
| 588 | clock-frequency = <400000>; |
| 589 | }; |
| 590 | |
| 591 | &i2c6_xfer { |
| 592 | /* Enable pull-ups, the pins would float otherwise. */ |
| 593 | rockchip,pins = |
| 594 | <2 10 RK_FUNC_2 &pcfg_pull_up>, |
| 595 | <2 9 RK_FUNC_2 &pcfg_pull_up>; |
| 596 | }; |
| 597 | |
| 598 | &i2c7 { |
| 599 | status = "okay"; |
| 600 | clock-frequency = <400000>; |
| 601 | |
| 602 | rtc_twi: rtc@6f { |
| 603 | compatible = "isil,isl1208"; |
| 604 | reg = <0x6f>; |
| 605 | }; |
| 606 | fan: fan@18 { |
| 607 | compatible = "ti,amc6821"; |
| 608 | reg = <0x18>; |
| 609 | cooling-min-state = <0>; |
| 610 | cooling-max-state = <9>; |
| 611 | #cooling-cells = <2>; |
| 612 | }; |
| 613 | }; |
| 614 | |
| 615 | &uart0 { |
| 616 | u-boot,dm-pre-reloc; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 617 | pinctrl-names = "default"; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 618 | pinctrl-0 = <&uart0_xfer &uart0_cts>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 619 | status = "okay"; |
| 620 | }; |
| 621 | |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 622 | |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 623 | &spi1 { |
| 624 | u-boot,dm-pre-reloc; |
| 625 | |
| 626 | status = "okay"; |
| 627 | |
| 628 | #address-cells = <1>; |
| 629 | #size-cells = <0>; |
| 630 | |
| 631 | spiflash: w25q32dw@0 { |
| 632 | u-boot,dm-pre-reloc; |
| 633 | |
| 634 | compatible = "spi-flash"; |
| 635 | reg = <0>; |
Philipp Tomsich | 2dd2c01 | 2017-05-31 18:17:58 +0200 | [diff] [blame] | 636 | spi-max-frequency = <49500000>; |
Philipp Tomsich | 3c2bbd5 | 2017-03-28 18:48:51 +0200 | [diff] [blame] | 637 | spi-cpol; |
| 638 | spi-cpha; |
| 639 | }; |
| 640 | }; |
| 641 | |
| 642 | &spi5 { |
| 643 | status = "okay"; |
| 644 | }; |
Philipp Tomsich | f592edd | 2017-06-06 15:42:32 +0200 | [diff] [blame^] | 645 | |