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