1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * RK3399-based FriendlyElec boards device tre 3 * RK3399-based FriendlyElec boards device tree source 4 * 4 * 5 * Copyright (c) 2016 Fuzhou Rockchip Electron 5 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 6 * 6 * 7 * Copyright (c) 2018 FriendlyElec Computer Te 7 * Copyright (c) 2018 FriendlyElec Computer Tech. Co., Ltd. 8 * (http://www.friendlyarm.com) 8 * (http://www.friendlyarm.com) 9 * 9 * 10 * Copyright (c) 2018 Collabora Ltd. 10 * Copyright (c) 2018 Collabora Ltd. 11 * Copyright (c) 2019 Arm Ltd. 11 * Copyright (c) 2019 Arm Ltd. 12 */ 12 */ 13 13 14 /dts-v1/; 14 /dts-v1/; 15 #include <dt-bindings/input/linux-event-codes. 15 #include <dt-bindings/input/linux-event-codes.h> 16 #include "rk3399.dtsi" 16 #include "rk3399.dtsi" >> 17 #include "rk3399-opp.dtsi" 17 18 18 / { 19 / { 19 aliases { << 20 ethernet0 = &gmac; << 21 mmc0 = &sdio0; << 22 mmc1 = &sdmmc; << 23 mmc2 = &sdhci; << 24 }; << 25 << 26 chosen { 20 chosen { 27 stdout-path = "serial2:1500000 21 stdout-path = "serial2:1500000n8"; 28 }; 22 }; 29 23 30 clkin_gmac: external-gmac-clock { 24 clkin_gmac: external-gmac-clock { 31 compatible = "fixed-clock"; 25 compatible = "fixed-clock"; 32 clock-frequency = <125000000>; 26 clock-frequency = <125000000>; 33 clock-output-names = "clkin_gm 27 clock-output-names = "clkin_gmac"; 34 #clock-cells = <0>; 28 #clock-cells = <0>; 35 }; 29 }; 36 30 37 vcc3v3_sys: vcc3v3-sys { 31 vcc3v3_sys: vcc3v3-sys { 38 compatible = "regulator-fixed" 32 compatible = "regulator-fixed"; 39 regulator-always-on; 33 regulator-always-on; 40 regulator-boot-on; 34 regulator-boot-on; 41 regulator-min-microvolt = <330 35 regulator-min-microvolt = <3300000>; 42 regulator-max-microvolt = <330 36 regulator-max-microvolt = <3300000>; 43 regulator-name = "vcc3v3_sys"; 37 regulator-name = "vcc3v3_sys"; 44 }; 38 }; 45 39 46 vcc5v0_sys: vcc5v0-sys { 40 vcc5v0_sys: vcc5v0-sys { 47 compatible = "regulator-fixed" 41 compatible = "regulator-fixed"; 48 regulator-always-on; 42 regulator-always-on; 49 regulator-boot-on; 43 regulator-boot-on; 50 regulator-min-microvolt = <500 44 regulator-min-microvolt = <5000000>; 51 regulator-max-microvolt = <500 45 regulator-max-microvolt = <5000000>; 52 regulator-name = "vcc5v0_sys"; 46 regulator-name = "vcc5v0_sys"; 53 vin-supply = <&vdd_5v>; 47 vin-supply = <&vdd_5v>; 54 }; 48 }; 55 49 56 /* switched by pmic_sleep */ 50 /* switched by pmic_sleep */ 57 vcc1v8_s3: vcc1v8-s3 { !! 51 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 58 compatible = "regulator-fixed" 52 compatible = "regulator-fixed"; 59 regulator-always-on; 53 regulator-always-on; 60 regulator-boot-on; 54 regulator-boot-on; 61 regulator-min-microvolt = <180 55 regulator-min-microvolt = <1800000>; 62 regulator-max-microvolt = <180 56 regulator-max-microvolt = <1800000>; 63 regulator-name = "vcc1v8_s3"; 57 regulator-name = "vcc1v8_s3"; 64 vin-supply = <&vcc_1v8>; 58 vin-supply = <&vcc_1v8>; 65 }; 59 }; 66 60 67 vcc3v0_sd: vcc3v0-sd { 61 vcc3v0_sd: vcc3v0-sd { 68 compatible = "regulator-fixed" 62 compatible = "regulator-fixed"; 69 enable-active-high; 63 enable-active-high; 70 gpio = <&gpio0 RK_PA1 GPIO_ACT 64 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; 71 pinctrl-names = "default"; 65 pinctrl-names = "default"; 72 pinctrl-0 = <&sdmmc0_pwr_h>; 66 pinctrl-0 = <&sdmmc0_pwr_h>; 73 regulator-always-on; 67 regulator-always-on; 74 regulator-min-microvolt = <300 68 regulator-min-microvolt = <3000000>; 75 regulator-max-microvolt = <300 69 regulator-max-microvolt = <3000000>; 76 regulator-name = "vcc3v0_sd"; 70 regulator-name = "vcc3v0_sd"; 77 vin-supply = <&vcc3v3_sys>; 71 vin-supply = <&vcc3v3_sys>; 78 }; 72 }; 79 73 80 /* << 81 * Really, this is supplied by vcc_1v8 << 82 * drives the enable pin, but we can't << 83 */ << 84 vcca0v9_s3: vcca0v9-s3 { << 85 compatible = "regulator-fixed" << 86 regulator-min-microvolt = <900 << 87 regulator-max-microvolt = <900 << 88 regulator-name = "vcca0v9_s3"; << 89 vin-supply = <&vcc1v8_s3>; << 90 }; << 91 << 92 /* As above, actually supplied by vcc3 << 93 vcca1v8_s3: vcca1v8-s3 { << 94 compatible = "regulator-fixed" << 95 regulator-min-microvolt = <180 << 96 regulator-max-microvolt = <180 << 97 regulator-name = "vcca1v8_s3"; << 98 vin-supply = <&vcc1v8_s3>; << 99 }; << 100 << 101 vbus_typec: vbus-typec { 74 vbus_typec: vbus-typec { 102 compatible = "regulator-fixed" 75 compatible = "regulator-fixed"; 103 regulator-min-microvolt = <500 76 regulator-min-microvolt = <5000000>; 104 regulator-max-microvolt = <500 77 regulator-max-microvolt = <5000000>; 105 regulator-name = "vbus_typec"; 78 regulator-name = "vbus_typec"; 106 }; 79 }; 107 80 108 gpio-keys { 81 gpio-keys { 109 compatible = "gpio-keys"; 82 compatible = "gpio-keys"; 110 autorepeat; 83 autorepeat; 111 pinctrl-names = "default"; 84 pinctrl-names = "default"; 112 pinctrl-0 = <&power_key>; 85 pinctrl-0 = <&power_key>; 113 86 114 key-power { !! 87 power { 115 debounce-interval = <1 88 debounce-interval = <100>; 116 gpios = <&gpio0 RK_PA5 89 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 117 label = "GPIO Key Powe 90 label = "GPIO Key Power"; 118 linux,code = <KEY_POWE 91 linux,code = <KEY_POWER>; 119 wakeup-source; 92 wakeup-source; 120 }; 93 }; 121 }; 94 }; 122 95 123 leds: gpio-leds { 96 leds: gpio-leds { 124 compatible = "gpio-leds"; 97 compatible = "gpio-leds"; 125 pinctrl-names = "default"; 98 pinctrl-names = "default"; 126 pinctrl-0 = <&status_led_pin>; !! 99 pinctrl-0 = <&leds_gpio>; 127 100 128 status_led: led-0 { !! 101 status { 129 gpios = <&gpio0 RK_PB5 102 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 130 label = "status_led"; 103 label = "status_led"; 131 linux,default-trigger 104 linux,default-trigger = "heartbeat"; 132 }; 105 }; 133 }; 106 }; 134 107 135 sdio_pwrseq: sdio-pwrseq { 108 sdio_pwrseq: sdio-pwrseq { 136 compatible = "mmc-pwrseq-simpl 109 compatible = "mmc-pwrseq-simple"; 137 clocks = <&rk808 1>; 110 clocks = <&rk808 1>; 138 clock-names = "ext_clock"; 111 clock-names = "ext_clock"; 139 pinctrl-names = "default"; 112 pinctrl-names = "default"; 140 pinctrl-0 = <&wifi_reg_on_h>; 113 pinctrl-0 = <&wifi_reg_on_h>; 141 reset-gpios = <&gpio0 RK_PB2 G 114 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 142 }; 115 }; 143 }; 116 }; 144 117 145 &cpu_b0 { 118 &cpu_b0 { 146 cpu-supply = <&vdd_cpu_b>; 119 cpu-supply = <&vdd_cpu_b>; 147 }; 120 }; 148 121 149 &cpu_b1 { 122 &cpu_b1 { 150 cpu-supply = <&vdd_cpu_b>; 123 cpu-supply = <&vdd_cpu_b>; 151 }; 124 }; 152 125 153 &cpu_l0 { 126 &cpu_l0 { 154 cpu-supply = <&vdd_cpu_l>; 127 cpu-supply = <&vdd_cpu_l>; 155 }; 128 }; 156 129 157 &cpu_l1 { 130 &cpu_l1 { 158 cpu-supply = <&vdd_cpu_l>; 131 cpu-supply = <&vdd_cpu_l>; 159 }; 132 }; 160 133 161 &cpu_l2 { 134 &cpu_l2 { 162 cpu-supply = <&vdd_cpu_l>; 135 cpu-supply = <&vdd_cpu_l>; 163 }; 136 }; 164 137 165 &cpu_l3 { 138 &cpu_l3 { 166 cpu-supply = <&vdd_cpu_l>; 139 cpu-supply = <&vdd_cpu_l>; 167 }; 140 }; 168 141 169 &emmc_phy { 142 &emmc_phy { 170 rockchip,enable-strobe-pulldown; << 171 status = "okay"; 143 status = "okay"; 172 }; 144 }; 173 145 174 &gmac { 146 &gmac { 175 assigned-clock-parents = <&clkin_gmac> 147 assigned-clock-parents = <&clkin_gmac>; 176 assigned-clocks = <&cru SCLK_RMII_SRC> 148 assigned-clocks = <&cru SCLK_RMII_SRC>; 177 clock_in_out = "input"; 149 clock_in_out = "input"; 178 pinctrl-names = "default"; 150 pinctrl-names = "default"; 179 pinctrl-0 = <&rgmii_pins>, <&phy_intb> !! 151 pinctrl-0 = <&rgmii_pins>; 180 phy-handle = <&rtl8211e>; << 181 phy-mode = "rgmii"; 152 phy-mode = "rgmii"; 182 phy-supply = <&vcc3v3_s3>; 153 phy-supply = <&vcc3v3_s3>; >> 154 snps,reset-active-low; >> 155 snps,reset-delays-us = <0 10000 50000>; >> 156 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 183 tx_delay = <0x28>; 157 tx_delay = <0x28>; 184 rx_delay = <0x11>; 158 rx_delay = <0x11>; 185 status = "okay"; 159 status = "okay"; 186 << 187 mdio { << 188 compatible = "snps,dwmac-mdio" << 189 #address-cells = <1>; << 190 #size-cells = <0>; << 191 << 192 rtl8211e: ethernet-phy@1 { << 193 reg = <1>; << 194 interrupt-parent = <&g << 195 interrupts = <RK_PB2 I << 196 reset-assert-us = <100 << 197 reset-deassert-us = <3 << 198 reset-gpios = <&gpio3 << 199 }; << 200 }; << 201 }; 160 }; 202 161 203 &gpu { 162 &gpu { 204 mali-supply = <&vdd_gpu>; 163 mali-supply = <&vdd_gpu>; 205 status = "okay"; 164 status = "okay"; 206 }; 165 }; 207 166 208 &hdmi { 167 &hdmi { 209 ddc-i2c-bus = <&i2c7>; 168 ddc-i2c-bus = <&i2c7>; 210 pinctrl-names = "default"; 169 pinctrl-names = "default"; 211 pinctrl-0 = <&hdmi_cec>; 170 pinctrl-0 = <&hdmi_cec>; 212 status = "okay"; 171 status = "okay"; 213 }; 172 }; 214 173 215 &hdmi_sound { << 216 status = "okay"; << 217 }; << 218 << 219 &i2c0 { 174 &i2c0 { 220 clock-frequency = <400000>; 175 clock-frequency = <400000>; 221 i2c-scl-rising-time-ns = <160>; 176 i2c-scl-rising-time-ns = <160>; 222 i2c-scl-falling-time-ns = <30>; 177 i2c-scl-falling-time-ns = <30>; 223 status = "okay"; 178 status = "okay"; 224 179 225 vdd_cpu_b: regulator@40 { 180 vdd_cpu_b: regulator@40 { 226 compatible = "silergy,syr827"; 181 compatible = "silergy,syr827"; 227 reg = <0x40>; 182 reg = <0x40>; 228 fcs,suspend-voltage-selector = 183 fcs,suspend-voltage-selector = <1>; 229 pinctrl-names = "default"; 184 pinctrl-names = "default"; 230 pinctrl-0 = <&cpu_b_sleep>; 185 pinctrl-0 = <&cpu_b_sleep>; 231 regulator-always-on; 186 regulator-always-on; 232 regulator-boot-on; 187 regulator-boot-on; 233 regulator-min-microvolt = <712 188 regulator-min-microvolt = <712500>; 234 regulator-max-microvolt = <150 189 regulator-max-microvolt = <1500000>; 235 regulator-name = "vdd_cpu_b"; 190 regulator-name = "vdd_cpu_b"; 236 regulator-ramp-delay = <1000>; 191 regulator-ramp-delay = <1000>; 237 vin-supply = <&vcc3v3_sys>; 192 vin-supply = <&vcc3v3_sys>; 238 193 239 regulator-state-mem { 194 regulator-state-mem { 240 regulator-off-in-suspe 195 regulator-off-in-suspend; 241 }; 196 }; 242 }; 197 }; 243 198 244 vdd_gpu: regulator@41 { 199 vdd_gpu: regulator@41 { 245 compatible = "silergy,syr828"; 200 compatible = "silergy,syr828"; 246 reg = <0x41>; 201 reg = <0x41>; 247 fcs,suspend-voltage-selector = 202 fcs,suspend-voltage-selector = <1>; 248 pinctrl-names = "default"; 203 pinctrl-names = "default"; 249 pinctrl-0 = <&gpu_sleep>; 204 pinctrl-0 = <&gpu_sleep>; 250 regulator-always-on; 205 regulator-always-on; 251 regulator-boot-on; 206 regulator-boot-on; 252 regulator-min-microvolt = <712 207 regulator-min-microvolt = <712500>; 253 regulator-max-microvolt = <150 208 regulator-max-microvolt = <1500000>; 254 regulator-name = "vdd_gpu"; 209 regulator-name = "vdd_gpu"; 255 regulator-ramp-delay = <1000>; 210 regulator-ramp-delay = <1000>; 256 vin-supply = <&vcc3v3_sys>; 211 vin-supply = <&vcc3v3_sys>; 257 212 258 regulator-state-mem { 213 regulator-state-mem { 259 regulator-off-in-suspe 214 regulator-off-in-suspend; 260 }; 215 }; 261 }; 216 }; 262 217 263 rk808: pmic@1b { 218 rk808: pmic@1b { 264 compatible = "rockchip,rk808"; 219 compatible = "rockchip,rk808"; 265 reg = <0x1b>; 220 reg = <0x1b>; 266 clock-output-names = "xin32k", 221 clock-output-names = "xin32k", "rtc_clko_wifi"; 267 #clock-cells = <1>; 222 #clock-cells = <1>; 268 interrupt-parent = <&gpio1>; 223 interrupt-parent = <&gpio1>; 269 interrupts = <21 IRQ_TYPE_LEVE 224 interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 270 pinctrl-names = "default"; 225 pinctrl-names = "default"; 271 pinctrl-0 = <&pmic_int_l>, <&a !! 226 pinctrl-0 = <&pmic_int_l>; 272 rockchip,system-power-controll 227 rockchip,system-power-controller; 273 wakeup-source; 228 wakeup-source; 274 229 275 vcc1-supply = <&vcc3v3_sys>; 230 vcc1-supply = <&vcc3v3_sys>; 276 vcc2-supply = <&vcc3v3_sys>; 231 vcc2-supply = <&vcc3v3_sys>; 277 vcc3-supply = <&vcc3v3_sys>; 232 vcc3-supply = <&vcc3v3_sys>; 278 vcc4-supply = <&vcc3v3_sys>; 233 vcc4-supply = <&vcc3v3_sys>; 279 vcc6-supply = <&vcc3v3_sys>; 234 vcc6-supply = <&vcc3v3_sys>; 280 vcc7-supply = <&vcc3v3_sys>; 235 vcc7-supply = <&vcc3v3_sys>; 281 vcc8-supply = <&vcc3v3_sys>; 236 vcc8-supply = <&vcc3v3_sys>; 282 vcc9-supply = <&vcc3v3_sys>; 237 vcc9-supply = <&vcc3v3_sys>; 283 vcc10-supply = <&vcc3v3_sys>; 238 vcc10-supply = <&vcc3v3_sys>; 284 vcc11-supply = <&vcc3v3_sys>; 239 vcc11-supply = <&vcc3v3_sys>; 285 vcc12-supply = <&vcc3v3_sys>; 240 vcc12-supply = <&vcc3v3_sys>; 286 vddio-supply = <&vcc_3v0>; 241 vddio-supply = <&vcc_3v0>; 287 242 288 regulators { 243 regulators { 289 vdd_center: DCDC_REG1 244 vdd_center: DCDC_REG1 { 290 regulator-alwa 245 regulator-always-on; 291 regulator-boot 246 regulator-boot-on; 292 regulator-min- 247 regulator-min-microvolt = <750000>; 293 regulator-max- 248 regulator-max-microvolt = <1350000>; 294 regulator-name 249 regulator-name = "vdd_center"; 295 regulator-ramp 250 regulator-ramp-delay = <6001>; 296 251 297 regulator-stat 252 regulator-state-mem { 298 regula 253 regulator-off-in-suspend; 299 }; 254 }; 300 }; 255 }; 301 256 302 vdd_cpu_l: DCDC_REG2 { 257 vdd_cpu_l: DCDC_REG2 { 303 regulator-alwa 258 regulator-always-on; 304 regulator-boot 259 regulator-boot-on; 305 regulator-min- 260 regulator-min-microvolt = <750000>; 306 regulator-max- 261 regulator-max-microvolt = <1350000>; 307 regulator-name 262 regulator-name = "vdd_cpu_l"; 308 regulator-ramp 263 regulator-ramp-delay = <6001>; 309 264 310 regulator-stat 265 regulator-state-mem { 311 regula 266 regulator-off-in-suspend; 312 }; 267 }; 313 }; 268 }; 314 269 315 vcc_ddr: DCDC_REG3 { 270 vcc_ddr: DCDC_REG3 { 316 regulator-alwa 271 regulator-always-on; 317 regulator-boot 272 regulator-boot-on; 318 regulator-name 273 regulator-name = "vcc_ddr"; 319 274 320 regulator-stat 275 regulator-state-mem { 321 regula 276 regulator-on-in-suspend; 322 }; 277 }; 323 }; 278 }; 324 279 325 vcc_1v8: DCDC_REG4 { 280 vcc_1v8: DCDC_REG4 { 326 regulator-alwa 281 regulator-always-on; 327 regulator-boot 282 regulator-boot-on; 328 regulator-min- 283 regulator-min-microvolt = <1800000>; 329 regulator-max- 284 regulator-max-microvolt = <1800000>; 330 regulator-name 285 regulator-name = "vcc_1v8"; 331 286 332 regulator-stat 287 regulator-state-mem { 333 regula 288 regulator-on-in-suspend; 334 regula 289 regulator-suspend-microvolt = <1800000>; 335 }; 290 }; 336 }; 291 }; 337 292 338 vcc1v8_cam: LDO_REG1 { 293 vcc1v8_cam: LDO_REG1 { 339 regulator-alwa 294 regulator-always-on; 340 regulator-boot 295 regulator-boot-on; 341 regulator-min- 296 regulator-min-microvolt = <1800000>; 342 regulator-max- 297 regulator-max-microvolt = <1800000>; 343 regulator-name 298 regulator-name = "vcc1v8_cam"; 344 299 345 regulator-stat 300 regulator-state-mem { 346 regula 301 regulator-off-in-suspend; 347 }; 302 }; 348 }; 303 }; 349 304 350 vcc3v0_touch: LDO_REG2 305 vcc3v0_touch: LDO_REG2 { 351 regulator-alwa 306 regulator-always-on; 352 regulator-boot 307 regulator-boot-on; 353 regulator-min- 308 regulator-min-microvolt = <3000000>; 354 regulator-max- 309 regulator-max-microvolt = <3000000>; 355 regulator-name 310 regulator-name = "vcc3v0_touch"; 356 311 357 regulator-stat 312 regulator-state-mem { 358 regula 313 regulator-off-in-suspend; 359 }; 314 }; 360 }; 315 }; 361 316 362 vcc1v8_pmupll: LDO_REG 317 vcc1v8_pmupll: LDO_REG3 { 363 regulator-alwa 318 regulator-always-on; 364 regulator-boot 319 regulator-boot-on; 365 regulator-min- 320 regulator-min-microvolt = <1800000>; 366 regulator-max- 321 regulator-max-microvolt = <1800000>; 367 regulator-name 322 regulator-name = "vcc1v8_pmupll"; 368 323 369 regulator-stat 324 regulator-state-mem { 370 regula 325 regulator-on-in-suspend; 371 regula 326 regulator-suspend-microvolt = <1800000>; 372 }; 327 }; 373 }; 328 }; 374 329 375 vcc_sdio: LDO_REG4 { 330 vcc_sdio: LDO_REG4 { 376 regulator-alwa 331 regulator-always-on; 377 regulator-boot 332 regulator-boot-on; >> 333 regulator-init-microvolt = <3000000>; 378 regulator-min- 334 regulator-min-microvolt = <1800000>; 379 regulator-max- 335 regulator-max-microvolt = <3300000>; 380 regulator-name 336 regulator-name = "vcc_sdio"; 381 337 382 regulator-stat 338 regulator-state-mem { 383 regula 339 regulator-on-in-suspend; 384 regula 340 regulator-suspend-microvolt = <3000000>; 385 }; 341 }; 386 }; 342 }; 387 343 388 vcca3v0_codec: LDO_REG 344 vcca3v0_codec: LDO_REG5 { 389 regulator-alwa 345 regulator-always-on; 390 regulator-boot 346 regulator-boot-on; 391 regulator-min- 347 regulator-min-microvolt = <3000000>; 392 regulator-max- 348 regulator-max-microvolt = <3000000>; 393 regulator-name 349 regulator-name = "vcca3v0_codec"; 394 350 395 regulator-stat 351 regulator-state-mem { 396 regula 352 regulator-off-in-suspend; 397 }; 353 }; 398 }; 354 }; 399 355 400 vcc_1v5: LDO_REG6 { 356 vcc_1v5: LDO_REG6 { 401 regulator-alwa 357 regulator-always-on; 402 regulator-boot 358 regulator-boot-on; 403 regulator-min- 359 regulator-min-microvolt = <1500000>; 404 regulator-max- 360 regulator-max-microvolt = <1500000>; 405 regulator-name 361 regulator-name = "vcc_1v5"; 406 362 407 regulator-stat 363 regulator-state-mem { 408 regula 364 regulator-on-in-suspend; 409 regula 365 regulator-suspend-microvolt = <1500000>; 410 }; 366 }; 411 }; 367 }; 412 368 413 vcca1v8_codec: LDO_REG 369 vcca1v8_codec: LDO_REG7 { 414 regulator-alwa 370 regulator-always-on; 415 regulator-boot 371 regulator-boot-on; 416 regulator-min- 372 regulator-min-microvolt = <1800000>; 417 regulator-max- 373 regulator-max-microvolt = <1800000>; 418 regulator-name 374 regulator-name = "vcca1v8_codec"; 419 375 420 regulator-stat 376 regulator-state-mem { 421 regula 377 regulator-off-in-suspend; 422 }; 378 }; 423 }; 379 }; 424 380 425 vcc_3v0: LDO_REG8 { 381 vcc_3v0: LDO_REG8 { 426 regulator-alwa 382 regulator-always-on; 427 regulator-boot 383 regulator-boot-on; 428 regulator-min- 384 regulator-min-microvolt = <3000000>; 429 regulator-max- 385 regulator-max-microvolt = <3000000>; 430 regulator-name 386 regulator-name = "vcc_3v0"; 431 387 432 regulator-stat 388 regulator-state-mem { 433 regula 389 regulator-on-in-suspend; 434 regula 390 regulator-suspend-microvolt = <3000000>; 435 }; 391 }; 436 }; 392 }; 437 393 438 vcc3v3_s3: SWITCH_REG1 394 vcc3v3_s3: SWITCH_REG1 { 439 regulator-alwa 395 regulator-always-on; 440 regulator-boot 396 regulator-boot-on; 441 regulator-name 397 regulator-name = "vcc3v3_s3"; 442 398 443 regulator-stat 399 regulator-state-mem { 444 regula 400 regulator-off-in-suspend; 445 }; 401 }; 446 }; 402 }; 447 403 448 vcc3v3_s0: SWITCH_REG2 404 vcc3v3_s0: SWITCH_REG2 { 449 regulator-alwa 405 regulator-always-on; 450 regulator-boot 406 regulator-boot-on; 451 regulator-name 407 regulator-name = "vcc3v3_s0"; 452 408 453 regulator-stat 409 regulator-state-mem { 454 regula 410 regulator-off-in-suspend; 455 }; 411 }; 456 }; 412 }; 457 }; 413 }; 458 }; 414 }; 459 }; 415 }; 460 416 461 &i2c1 { 417 &i2c1 { 462 clock-frequency = <200000>; 418 clock-frequency = <200000>; 463 i2c-scl-rising-time-ns = <150>; 419 i2c-scl-rising-time-ns = <150>; 464 i2c-scl-falling-time-ns = <30>; 420 i2c-scl-falling-time-ns = <30>; 465 status = "okay"; 421 status = "okay"; 466 }; 422 }; 467 423 468 &i2c2 { 424 &i2c2 { 469 status = "okay"; 425 status = "okay"; 470 }; 426 }; 471 427 472 &i2c4 { 428 &i2c4 { 473 clock-frequency = <400000>; 429 clock-frequency = <400000>; 474 i2c-scl-rising-time-ns = <160>; 430 i2c-scl-rising-time-ns = <160>; 475 i2c-scl-falling-time-ns = <30>; 431 i2c-scl-falling-time-ns = <30>; 476 status = "okay"; 432 status = "okay"; 477 433 478 fusb0: typec-portc@22 { 434 fusb0: typec-portc@22 { 479 compatible = "fcs,fusb302"; 435 compatible = "fcs,fusb302"; 480 reg = <0x22>; 436 reg = <0x22>; 481 interrupt-parent = <&gpio1>; 437 interrupt-parent = <&gpio1>; 482 interrupts = <RK_PA2 IRQ_TYPE_ 438 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 483 pinctrl-names = "default"; 439 pinctrl-names = "default"; 484 pinctrl-0 = <&fusb0_int>; 440 pinctrl-0 = <&fusb0_int>; 485 vbus-supply = <&vbus_typec>; 441 vbus-supply = <&vbus_typec>; 486 }; 442 }; 487 }; 443 }; 488 444 489 &i2c7 { 445 &i2c7 { 490 status = "okay"; 446 status = "okay"; 491 }; 447 }; 492 448 493 &i2s2 { << 494 status = "okay"; << 495 }; << 496 << 497 &io_domains { 449 &io_domains { 498 bt656-supply = <&vcc_1v8>; 450 bt656-supply = <&vcc_1v8>; 499 audio-supply = <&vcca1v8_codec>; 451 audio-supply = <&vcca1v8_codec>; 500 sdmmc-supply = <&vcc_sdio>; 452 sdmmc-supply = <&vcc_sdio>; 501 gpio1830-supply = <&vcc_3v0>; 453 gpio1830-supply = <&vcc_3v0>; 502 status = "okay"; 454 status = "okay"; 503 }; 455 }; 504 456 505 &pcie_phy { 457 &pcie_phy { 506 assigned-clock-parents = <&cru SCLK_PC 458 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; 507 assigned-clock-rates = <100000000>; 459 assigned-clock-rates = <100000000>; 508 assigned-clocks = <&cru SCLK_PCIEPHY_R 460 assigned-clocks = <&cru SCLK_PCIEPHY_REF>; 509 status = "okay"; 461 status = "okay"; 510 }; 462 }; 511 463 512 &pcie0 { 464 &pcie0 { 513 num-lanes = <2>; !! 465 ep-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>; 514 vpcie0v9-supply = <&vcca0v9_s3>; !! 466 max-link-speed = <2>; 515 vpcie1v8-supply = <&vcca1v8_s3>; !! 467 num-lanes = <4>; 516 status = "okay"; 468 status = "okay"; 517 }; 469 }; 518 470 519 &pinctrl { 471 &pinctrl { 520 fusb30x { 472 fusb30x { 521 fusb0_int: fusb0-int { 473 fusb0_int: fusb0-int { 522 rockchip,pins = <1 RK_ 474 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 523 }; 475 }; 524 }; 476 }; 525 477 526 gpio-leds { 478 gpio-leds { 527 status_led_pin: status-led-pin !! 479 leds_gpio: leds-gpio { 528 rockchip,pins = <0 RK_ 480 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 529 }; << 530 }; << 531 << 532 gmac { << 533 phy_intb: phy-intb { << 534 rockchip,pins = <3 RK_ << 535 }; << 536 << 537 phy_rstb: phy-rstb { << 538 rockchip,pins = <3 RK_ << 539 }; 481 }; 540 }; 482 }; 541 483 542 pmic { 484 pmic { 543 cpu_b_sleep: cpu-b-sleep { 485 cpu_b_sleep: cpu-b-sleep { 544 rockchip,pins = <1 RK_ 486 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 545 }; 487 }; 546 488 547 gpu_sleep: gpu-sleep { 489 gpu_sleep: gpu-sleep { 548 rockchip,pins = <1 RK_ 490 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 549 }; 491 }; 550 492 551 pmic_int_l: pmic-int-l { 493 pmic_int_l: pmic-int-l { 552 rockchip,pins = <1 RK_ 494 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 553 }; 495 }; 554 }; 496 }; 555 497 556 rockchip-key { 498 rockchip-key { 557 power_key: power-key { 499 power_key: power-key { 558 rockchip,pins = <0 RK_ 500 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 559 }; 501 }; 560 }; 502 }; 561 503 562 sdio { 504 sdio { 563 bt_host_wake_l: bt-host-wake-l 505 bt_host_wake_l: bt-host-wake-l { 564 rockchip,pins = <0 RK_ 506 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 565 }; 507 }; 566 508 567 bt_reg_on_h: bt-reg-on-h { 509 bt_reg_on_h: bt-reg-on-h { 568 /* external pullup to 510 /* external pullup to VCC1V8_PMUPLL */ 569 rockchip,pins = <0 RK_ 511 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 570 }; 512 }; 571 513 572 bt_wake_l: bt-wake-l { 514 bt_wake_l: bt-wake-l { 573 rockchip,pins = <2 RK_ 515 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 574 }; 516 }; 575 517 576 wifi_reg_on_h: wifi-reg_on-h { 518 wifi_reg_on_h: wifi-reg_on-h { 577 rockchip,pins = <0 RK_ 519 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 578 }; 520 }; 579 }; 521 }; 580 522 581 sdmmc { 523 sdmmc { 582 sdmmc0_det_l: sdmmc0-det-l { 524 sdmmc0_det_l: sdmmc0-det-l { 583 rockchip,pins = <0 RK_ 525 rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; 584 }; 526 }; 585 527 586 sdmmc0_pwr_h: sdmmc0-pwr-h { 528 sdmmc0_pwr_h: sdmmc0-pwr-h { 587 rockchip,pins = <0 RK_ 529 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 588 }; 530 }; 589 }; 531 }; 590 }; 532 }; 591 533 592 &pmu_io_domains { 534 &pmu_io_domains { 593 pmu1830-supply = <&vcc_3v0>; 535 pmu1830-supply = <&vcc_3v0>; 594 status = "okay"; 536 status = "okay"; 595 }; 537 }; 596 538 597 &pwm0 { 539 &pwm0 { 598 status = "okay"; 540 status = "okay"; 599 }; 541 }; 600 542 601 &pwm1 { 543 &pwm1 { 602 status = "okay"; 544 status = "okay"; 603 }; 545 }; 604 546 605 &pwm2 { 547 &pwm2 { 606 pinctrl-names = "active"; 548 pinctrl-names = "active"; 607 pinctrl-0 = <&pwm2_pin_pull_down>; 549 pinctrl-0 = <&pwm2_pin_pull_down>; 608 status = "okay"; 550 status = "okay"; 609 }; 551 }; 610 552 611 &saradc { 553 &saradc { 612 vref-supply = <&vcca1v8_s3>; 554 vref-supply = <&vcca1v8_s3>; 613 status = "okay"; 555 status = "okay"; 614 }; 556 }; 615 557 616 &sdhci { 558 &sdhci { 617 bus-width = <8>; 559 bus-width = <8>; 618 mmc-hs200-1_8v; 560 mmc-hs200-1_8v; 619 non-removable; 561 non-removable; 620 status = "okay"; 562 status = "okay"; 621 }; 563 }; 622 564 623 &sdio0 { 565 &sdio0 { 624 bus-width = <4>; 566 bus-width = <4>; 625 cap-sd-highspeed; 567 cap-sd-highspeed; 626 cap-sdio-irq; 568 cap-sdio-irq; 627 keep-power-in-suspend; 569 keep-power-in-suspend; 628 mmc-pwrseq = <&sdio_pwrseq>; 570 mmc-pwrseq = <&sdio_pwrseq>; 629 non-removable; 571 non-removable; 630 pinctrl-names = "default"; 572 pinctrl-names = "default"; 631 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &s 573 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 632 sd-uhs-sdr104; 574 sd-uhs-sdr104; 633 status = "okay"; 575 status = "okay"; 634 }; 576 }; 635 577 636 &sdmmc { 578 &sdmmc { 637 bus-width = <4>; 579 bus-width = <4>; 638 cap-sd-highspeed; 580 cap-sd-highspeed; 639 cap-mmc-highspeed; 581 cap-mmc-highspeed; 640 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_ 582 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; 641 disable-wp; 583 disable-wp; 642 pinctrl-names = "default"; 584 pinctrl-names = "default"; 643 pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &s 585 pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc0_det_l>; 644 sd-uhs-sdr104; 586 sd-uhs-sdr104; 645 vmmc-supply = <&vcc3v0_sd>; 587 vmmc-supply = <&vcc3v0_sd>; 646 vqmmc-supply = <&vcc_sdio>; 588 vqmmc-supply = <&vcc_sdio>; 647 status = "okay"; 589 status = "okay"; 648 }; 590 }; 649 591 650 &tcphy0 { 592 &tcphy0 { 651 status = "okay"; 593 status = "okay"; 652 }; 594 }; 653 595 654 &tcphy1 { 596 &tcphy1 { 655 status = "okay"; 597 status = "okay"; 656 }; 598 }; 657 599 658 &tsadc { 600 &tsadc { 659 /* tshut mode 0:CRU 1:GPIO */ 601 /* tshut mode 0:CRU 1:GPIO */ 660 rockchip,hw-tshut-mode = <1>; 602 rockchip,hw-tshut-mode = <1>; 661 /* tshut polarity 0:LOW 1:HIGH */ 603 /* tshut polarity 0:LOW 1:HIGH */ 662 rockchip,hw-tshut-polarity = <1>; 604 rockchip,hw-tshut-polarity = <1>; 663 status = "okay"; 605 status = "okay"; 664 }; 606 }; 665 607 666 &u2phy0 { 608 &u2phy0 { 667 status = "okay"; 609 status = "okay"; 668 }; 610 }; 669 611 670 &u2phy0_host { 612 &u2phy0_host { 671 status = "okay"; 613 status = "okay"; 672 }; 614 }; 673 615 674 &u2phy0_otg { 616 &u2phy0_otg { 675 status = "okay"; 617 status = "okay"; 676 }; 618 }; 677 619 678 &u2phy1 { 620 &u2phy1 { 679 status = "okay"; 621 status = "okay"; 680 }; 622 }; 681 623 682 &u2phy1_host { 624 &u2phy1_host { 683 status = "okay"; 625 status = "okay"; 684 }; 626 }; 685 627 686 &u2phy1_otg { 628 &u2phy1_otg { 687 status = "okay"; 629 status = "okay"; 688 }; 630 }; 689 631 690 &uart0 { 632 &uart0 { 691 pinctrl-names = "default"; 633 pinctrl-names = "default"; 692 pinctrl-0 = <&uart0_xfer &uart0_rts &u 634 pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>; 693 status = "okay"; 635 status = "okay"; 694 636 695 bluetooth { 637 bluetooth { 696 compatible = "brcm,bcm43438-bt 638 compatible = "brcm,bcm43438-bt"; 697 clocks = <&rk808 1>; 639 clocks = <&rk808 1>; 698 clock-names = "lpo"; 640 clock-names = "lpo"; 699 device-wakeup-gpios = <&gpio2 641 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; 700 host-wakeup-gpios = <&gpio0 RK 642 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 701 shutdown-gpios = <&gpio0 RK_PB 643 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 702 max-speed = <4000000>; 644 max-speed = <4000000>; 703 pinctrl-names = "default"; 645 pinctrl-names = "default"; 704 pinctrl-0 = <&bt_reg_on_h &bt_ 646 pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>; 705 vbat-supply = <&vcc3v3_sys>; 647 vbat-supply = <&vcc3v3_sys>; 706 vddio-supply = <&vcc_1v8>; 648 vddio-supply = <&vcc_1v8>; 707 }; 649 }; 708 }; 650 }; 709 651 710 &uart2 { 652 &uart2 { 711 status = "okay"; 653 status = "okay"; 712 }; 654 }; 713 655 714 &usbdrd3_0 { 656 &usbdrd3_0 { 715 status = "okay"; 657 status = "okay"; 716 }; 658 }; 717 659 718 &usbdrd3_1 { 660 &usbdrd3_1 { 719 status = "okay"; 661 status = "okay"; 720 }; 662 }; 721 663 722 &usbdrd_dwc3_0 { 664 &usbdrd_dwc3_0 { 723 status = "okay"; 665 status = "okay"; 724 }; 666 }; 725 667 726 &usbdrd_dwc3_1 { 668 &usbdrd_dwc3_1 { 727 dr_mode = "host"; 669 dr_mode = "host"; 728 status = "okay"; 670 status = "okay"; 729 }; 671 }; 730 672 731 &usb_host0_ehci { 673 &usb_host0_ehci { 732 status = "okay"; 674 status = "okay"; 733 }; 675 }; 734 676 735 &usb_host0_ohci { 677 &usb_host0_ohci { 736 status = "okay"; 678 status = "okay"; 737 }; 679 }; 738 680 739 &usb_host1_ehci { 681 &usb_host1_ehci { 740 status = "okay"; 682 status = "okay"; 741 }; 683 }; 742 684 743 &usb_host1_ohci { 685 &usb_host1_ohci { 744 status = "okay"; 686 status = "okay"; 745 }; 687 }; 746 688 747 &vopb { 689 &vopb { 748 status = "okay"; 690 status = "okay"; 749 }; 691 }; 750 692 751 &vopb_mmu { 693 &vopb_mmu { 752 status = "okay"; 694 status = "okay"; 753 }; 695 }; 754 696 755 &vopl { 697 &vopl { 756 status = "okay"; 698 status = "okay"; 757 }; 699 }; 758 700 759 &vopl_mmu { 701 &vopl_mmu { 760 status = "okay"; 702 status = "okay"; 761 }; 703 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.