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