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>, <&phy_intb>, <&phy_rstb>; 180 phy-handle = <&rtl8211e>; 152 phy-handle = <&rtl8211e>; 181 phy-mode = "rgmii"; 153 phy-mode = "rgmii"; 182 phy-supply = <&vcc3v3_s3>; 154 phy-supply = <&vcc3v3_s3>; >> 155 snps,reset-active-low; >> 156 snps,reset-delays-us = <0 10000 30000>; >> 157 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 183 tx_delay = <0x28>; 158 tx_delay = <0x28>; 184 rx_delay = <0x11>; 159 rx_delay = <0x11>; 185 status = "okay"; 160 status = "okay"; 186 161 187 mdio { 162 mdio { 188 compatible = "snps,dwmac-mdio" 163 compatible = "snps,dwmac-mdio"; 189 #address-cells = <1>; 164 #address-cells = <1>; 190 #size-cells = <0>; 165 #size-cells = <0>; 191 166 192 rtl8211e: ethernet-phy@1 { !! 167 rtl8211e: phy@1 { 193 reg = <1>; 168 reg = <1>; 194 interrupt-parent = <&g 169 interrupt-parent = <&gpio3>; 195 interrupts = <RK_PB2 I 170 interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; 196 reset-assert-us = <100 << 197 reset-deassert-us = <3 << 198 reset-gpios = <&gpio3 << 199 }; 171 }; 200 }; 172 }; 201 }; 173 }; 202 174 203 &gpu { 175 &gpu { 204 mali-supply = <&vdd_gpu>; 176 mali-supply = <&vdd_gpu>; 205 status = "okay"; 177 status = "okay"; 206 }; 178 }; 207 179 208 &hdmi { 180 &hdmi { 209 ddc-i2c-bus = <&i2c7>; 181 ddc-i2c-bus = <&i2c7>; 210 pinctrl-names = "default"; 182 pinctrl-names = "default"; 211 pinctrl-0 = <&hdmi_cec>; 183 pinctrl-0 = <&hdmi_cec>; 212 status = "okay"; 184 status = "okay"; 213 }; 185 }; 214 186 215 &hdmi_sound { << 216 status = "okay"; << 217 }; << 218 << 219 &i2c0 { 187 &i2c0 { 220 clock-frequency = <400000>; 188 clock-frequency = <400000>; 221 i2c-scl-rising-time-ns = <160>; 189 i2c-scl-rising-time-ns = <160>; 222 i2c-scl-falling-time-ns = <30>; 190 i2c-scl-falling-time-ns = <30>; 223 status = "okay"; 191 status = "okay"; 224 192 225 vdd_cpu_b: regulator@40 { 193 vdd_cpu_b: regulator@40 { 226 compatible = "silergy,syr827"; 194 compatible = "silergy,syr827"; 227 reg = <0x40>; 195 reg = <0x40>; 228 fcs,suspend-voltage-selector = 196 fcs,suspend-voltage-selector = <1>; 229 pinctrl-names = "default"; 197 pinctrl-names = "default"; 230 pinctrl-0 = <&cpu_b_sleep>; 198 pinctrl-0 = <&cpu_b_sleep>; 231 regulator-always-on; 199 regulator-always-on; 232 regulator-boot-on; 200 regulator-boot-on; 233 regulator-min-microvolt = <712 201 regulator-min-microvolt = <712500>; 234 regulator-max-microvolt = <150 202 regulator-max-microvolt = <1500000>; 235 regulator-name = "vdd_cpu_b"; 203 regulator-name = "vdd_cpu_b"; 236 regulator-ramp-delay = <1000>; 204 regulator-ramp-delay = <1000>; 237 vin-supply = <&vcc3v3_sys>; 205 vin-supply = <&vcc3v3_sys>; 238 206 239 regulator-state-mem { 207 regulator-state-mem { 240 regulator-off-in-suspe 208 regulator-off-in-suspend; 241 }; 209 }; 242 }; 210 }; 243 211 244 vdd_gpu: regulator@41 { 212 vdd_gpu: regulator@41 { 245 compatible = "silergy,syr828"; 213 compatible = "silergy,syr828"; 246 reg = <0x41>; 214 reg = <0x41>; 247 fcs,suspend-voltage-selector = 215 fcs,suspend-voltage-selector = <1>; 248 pinctrl-names = "default"; 216 pinctrl-names = "default"; 249 pinctrl-0 = <&gpu_sleep>; 217 pinctrl-0 = <&gpu_sleep>; 250 regulator-always-on; 218 regulator-always-on; 251 regulator-boot-on; 219 regulator-boot-on; 252 regulator-min-microvolt = <712 220 regulator-min-microvolt = <712500>; 253 regulator-max-microvolt = <150 221 regulator-max-microvolt = <1500000>; 254 regulator-name = "vdd_gpu"; 222 regulator-name = "vdd_gpu"; 255 regulator-ramp-delay = <1000>; 223 regulator-ramp-delay = <1000>; 256 vin-supply = <&vcc3v3_sys>; 224 vin-supply = <&vcc3v3_sys>; 257 225 258 regulator-state-mem { 226 regulator-state-mem { 259 regulator-off-in-suspe 227 regulator-off-in-suspend; 260 }; 228 }; 261 }; 229 }; 262 230 263 rk808: pmic@1b { 231 rk808: pmic@1b { 264 compatible = "rockchip,rk808"; 232 compatible = "rockchip,rk808"; 265 reg = <0x1b>; 233 reg = <0x1b>; 266 clock-output-names = "xin32k", 234 clock-output-names = "xin32k", "rtc_clko_wifi"; 267 #clock-cells = <1>; 235 #clock-cells = <1>; 268 interrupt-parent = <&gpio1>; 236 interrupt-parent = <&gpio1>; 269 interrupts = <21 IRQ_TYPE_LEVE 237 interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 270 pinctrl-names = "default"; 238 pinctrl-names = "default"; 271 pinctrl-0 = <&pmic_int_l>, <&a !! 239 pinctrl-0 = <&pmic_int_l>; 272 rockchip,system-power-controll 240 rockchip,system-power-controller; 273 wakeup-source; 241 wakeup-source; 274 242 275 vcc1-supply = <&vcc3v3_sys>; 243 vcc1-supply = <&vcc3v3_sys>; 276 vcc2-supply = <&vcc3v3_sys>; 244 vcc2-supply = <&vcc3v3_sys>; 277 vcc3-supply = <&vcc3v3_sys>; 245 vcc3-supply = <&vcc3v3_sys>; 278 vcc4-supply = <&vcc3v3_sys>; 246 vcc4-supply = <&vcc3v3_sys>; 279 vcc6-supply = <&vcc3v3_sys>; 247 vcc6-supply = <&vcc3v3_sys>; 280 vcc7-supply = <&vcc3v3_sys>; 248 vcc7-supply = <&vcc3v3_sys>; 281 vcc8-supply = <&vcc3v3_sys>; 249 vcc8-supply = <&vcc3v3_sys>; 282 vcc9-supply = <&vcc3v3_sys>; 250 vcc9-supply = <&vcc3v3_sys>; 283 vcc10-supply = <&vcc3v3_sys>; 251 vcc10-supply = <&vcc3v3_sys>; 284 vcc11-supply = <&vcc3v3_sys>; 252 vcc11-supply = <&vcc3v3_sys>; 285 vcc12-supply = <&vcc3v3_sys>; 253 vcc12-supply = <&vcc3v3_sys>; 286 vddio-supply = <&vcc_3v0>; 254 vddio-supply = <&vcc_3v0>; 287 255 288 regulators { 256 regulators { 289 vdd_center: DCDC_REG1 257 vdd_center: DCDC_REG1 { 290 regulator-alwa 258 regulator-always-on; 291 regulator-boot 259 regulator-boot-on; 292 regulator-min- 260 regulator-min-microvolt = <750000>; 293 regulator-max- 261 regulator-max-microvolt = <1350000>; 294 regulator-name 262 regulator-name = "vdd_center"; 295 regulator-ramp 263 regulator-ramp-delay = <6001>; 296 264 297 regulator-stat 265 regulator-state-mem { 298 regula 266 regulator-off-in-suspend; 299 }; 267 }; 300 }; 268 }; 301 269 302 vdd_cpu_l: DCDC_REG2 { 270 vdd_cpu_l: DCDC_REG2 { 303 regulator-alwa 271 regulator-always-on; 304 regulator-boot 272 regulator-boot-on; 305 regulator-min- 273 regulator-min-microvolt = <750000>; 306 regulator-max- 274 regulator-max-microvolt = <1350000>; 307 regulator-name 275 regulator-name = "vdd_cpu_l"; 308 regulator-ramp 276 regulator-ramp-delay = <6001>; 309 277 310 regulator-stat 278 regulator-state-mem { 311 regula 279 regulator-off-in-suspend; 312 }; 280 }; 313 }; 281 }; 314 282 315 vcc_ddr: DCDC_REG3 { 283 vcc_ddr: DCDC_REG3 { 316 regulator-alwa 284 regulator-always-on; 317 regulator-boot 285 regulator-boot-on; 318 regulator-name 286 regulator-name = "vcc_ddr"; 319 287 320 regulator-stat 288 regulator-state-mem { 321 regula 289 regulator-on-in-suspend; 322 }; 290 }; 323 }; 291 }; 324 292 325 vcc_1v8: DCDC_REG4 { 293 vcc_1v8: DCDC_REG4 { 326 regulator-alwa 294 regulator-always-on; 327 regulator-boot 295 regulator-boot-on; 328 regulator-min- 296 regulator-min-microvolt = <1800000>; 329 regulator-max- 297 regulator-max-microvolt = <1800000>; 330 regulator-name 298 regulator-name = "vcc_1v8"; 331 299 332 regulator-stat 300 regulator-state-mem { 333 regula 301 regulator-on-in-suspend; 334 regula 302 regulator-suspend-microvolt = <1800000>; 335 }; 303 }; 336 }; 304 }; 337 305 338 vcc1v8_cam: LDO_REG1 { 306 vcc1v8_cam: LDO_REG1 { 339 regulator-alwa 307 regulator-always-on; 340 regulator-boot 308 regulator-boot-on; 341 regulator-min- 309 regulator-min-microvolt = <1800000>; 342 regulator-max- 310 regulator-max-microvolt = <1800000>; 343 regulator-name 311 regulator-name = "vcc1v8_cam"; 344 312 345 regulator-stat 313 regulator-state-mem { 346 regula 314 regulator-off-in-suspend; 347 }; 315 }; 348 }; 316 }; 349 317 350 vcc3v0_touch: LDO_REG2 318 vcc3v0_touch: LDO_REG2 { 351 regulator-alwa 319 regulator-always-on; 352 regulator-boot 320 regulator-boot-on; 353 regulator-min- 321 regulator-min-microvolt = <3000000>; 354 regulator-max- 322 regulator-max-microvolt = <3000000>; 355 regulator-name 323 regulator-name = "vcc3v0_touch"; 356 324 357 regulator-stat 325 regulator-state-mem { 358 regula 326 regulator-off-in-suspend; 359 }; 327 }; 360 }; 328 }; 361 329 362 vcc1v8_pmupll: LDO_REG 330 vcc1v8_pmupll: LDO_REG3 { 363 regulator-alwa 331 regulator-always-on; 364 regulator-boot 332 regulator-boot-on; 365 regulator-min- 333 regulator-min-microvolt = <1800000>; 366 regulator-max- 334 regulator-max-microvolt = <1800000>; 367 regulator-name 335 regulator-name = "vcc1v8_pmupll"; 368 336 369 regulator-stat 337 regulator-state-mem { 370 regula 338 regulator-on-in-suspend; 371 regula 339 regulator-suspend-microvolt = <1800000>; 372 }; 340 }; 373 }; 341 }; 374 342 375 vcc_sdio: LDO_REG4 { 343 vcc_sdio: LDO_REG4 { 376 regulator-alwa 344 regulator-always-on; 377 regulator-boot 345 regulator-boot-on; >> 346 regulator-init-microvolt = <3000000>; 378 regulator-min- 347 regulator-min-microvolt = <1800000>; 379 regulator-max- 348 regulator-max-microvolt = <3300000>; 380 regulator-name 349 regulator-name = "vcc_sdio"; 381 350 382 regulator-stat 351 regulator-state-mem { 383 regula 352 regulator-on-in-suspend; 384 regula 353 regulator-suspend-microvolt = <3000000>; 385 }; 354 }; 386 }; 355 }; 387 356 388 vcca3v0_codec: LDO_REG 357 vcca3v0_codec: LDO_REG5 { 389 regulator-alwa 358 regulator-always-on; 390 regulator-boot 359 regulator-boot-on; 391 regulator-min- 360 regulator-min-microvolt = <3000000>; 392 regulator-max- 361 regulator-max-microvolt = <3000000>; 393 regulator-name 362 regulator-name = "vcca3v0_codec"; 394 363 395 regulator-stat 364 regulator-state-mem { 396 regula 365 regulator-off-in-suspend; 397 }; 366 }; 398 }; 367 }; 399 368 400 vcc_1v5: LDO_REG6 { 369 vcc_1v5: LDO_REG6 { 401 regulator-alwa 370 regulator-always-on; 402 regulator-boot 371 regulator-boot-on; 403 regulator-min- 372 regulator-min-microvolt = <1500000>; 404 regulator-max- 373 regulator-max-microvolt = <1500000>; 405 regulator-name 374 regulator-name = "vcc_1v5"; 406 375 407 regulator-stat 376 regulator-state-mem { 408 regula 377 regulator-on-in-suspend; 409 regula 378 regulator-suspend-microvolt = <1500000>; 410 }; 379 }; 411 }; 380 }; 412 381 413 vcca1v8_codec: LDO_REG 382 vcca1v8_codec: LDO_REG7 { 414 regulator-alwa 383 regulator-always-on; 415 regulator-boot 384 regulator-boot-on; 416 regulator-min- 385 regulator-min-microvolt = <1800000>; 417 regulator-max- 386 regulator-max-microvolt = <1800000>; 418 regulator-name 387 regulator-name = "vcca1v8_codec"; 419 388 420 regulator-stat 389 regulator-state-mem { 421 regula 390 regulator-off-in-suspend; 422 }; 391 }; 423 }; 392 }; 424 393 425 vcc_3v0: LDO_REG8 { 394 vcc_3v0: LDO_REG8 { 426 regulator-alwa 395 regulator-always-on; 427 regulator-boot 396 regulator-boot-on; 428 regulator-min- 397 regulator-min-microvolt = <3000000>; 429 regulator-max- 398 regulator-max-microvolt = <3000000>; 430 regulator-name 399 regulator-name = "vcc_3v0"; 431 400 432 regulator-stat 401 regulator-state-mem { 433 regula 402 regulator-on-in-suspend; 434 regula 403 regulator-suspend-microvolt = <3000000>; 435 }; 404 }; 436 }; 405 }; 437 406 438 vcc3v3_s3: SWITCH_REG1 407 vcc3v3_s3: SWITCH_REG1 { 439 regulator-alwa 408 regulator-always-on; 440 regulator-boot 409 regulator-boot-on; 441 regulator-name 410 regulator-name = "vcc3v3_s3"; 442 411 443 regulator-stat 412 regulator-state-mem { 444 regula 413 regulator-off-in-suspend; 445 }; 414 }; 446 }; 415 }; 447 416 448 vcc3v3_s0: SWITCH_REG2 417 vcc3v3_s0: SWITCH_REG2 { 449 regulator-alwa 418 regulator-always-on; 450 regulator-boot 419 regulator-boot-on; 451 regulator-name 420 regulator-name = "vcc3v3_s0"; 452 421 453 regulator-stat 422 regulator-state-mem { 454 regula 423 regulator-off-in-suspend; 455 }; 424 }; 456 }; 425 }; 457 }; 426 }; 458 }; 427 }; 459 }; 428 }; 460 429 461 &i2c1 { 430 &i2c1 { 462 clock-frequency = <200000>; 431 clock-frequency = <200000>; 463 i2c-scl-rising-time-ns = <150>; 432 i2c-scl-rising-time-ns = <150>; 464 i2c-scl-falling-time-ns = <30>; 433 i2c-scl-falling-time-ns = <30>; 465 status = "okay"; 434 status = "okay"; 466 }; 435 }; 467 436 468 &i2c2 { 437 &i2c2 { 469 status = "okay"; 438 status = "okay"; 470 }; 439 }; 471 440 472 &i2c4 { 441 &i2c4 { 473 clock-frequency = <400000>; 442 clock-frequency = <400000>; 474 i2c-scl-rising-time-ns = <160>; 443 i2c-scl-rising-time-ns = <160>; 475 i2c-scl-falling-time-ns = <30>; 444 i2c-scl-falling-time-ns = <30>; 476 status = "okay"; 445 status = "okay"; 477 446 478 fusb0: typec-portc@22 { 447 fusb0: typec-portc@22 { 479 compatible = "fcs,fusb302"; 448 compatible = "fcs,fusb302"; 480 reg = <0x22>; 449 reg = <0x22>; 481 interrupt-parent = <&gpio1>; 450 interrupt-parent = <&gpio1>; 482 interrupts = <RK_PA2 IRQ_TYPE_ 451 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 483 pinctrl-names = "default"; 452 pinctrl-names = "default"; 484 pinctrl-0 = <&fusb0_int>; 453 pinctrl-0 = <&fusb0_int>; 485 vbus-supply = <&vbus_typec>; 454 vbus-supply = <&vbus_typec>; 486 }; 455 }; 487 }; 456 }; 488 457 489 &i2c7 { 458 &i2c7 { 490 status = "okay"; 459 status = "okay"; 491 }; 460 }; 492 461 493 &i2s2 { << 494 status = "okay"; << 495 }; << 496 << 497 &io_domains { 462 &io_domains { 498 bt656-supply = <&vcc_1v8>; 463 bt656-supply = <&vcc_1v8>; 499 audio-supply = <&vcca1v8_codec>; 464 audio-supply = <&vcca1v8_codec>; 500 sdmmc-supply = <&vcc_sdio>; 465 sdmmc-supply = <&vcc_sdio>; 501 gpio1830-supply = <&vcc_3v0>; 466 gpio1830-supply = <&vcc_3v0>; 502 status = "okay"; 467 status = "okay"; 503 }; 468 }; 504 469 505 &pcie_phy { 470 &pcie_phy { 506 assigned-clock-parents = <&cru SCLK_PC 471 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; 507 assigned-clock-rates = <100000000>; 472 assigned-clock-rates = <100000000>; 508 assigned-clocks = <&cru SCLK_PCIEPHY_R 473 assigned-clocks = <&cru SCLK_PCIEPHY_REF>; 509 status = "okay"; 474 status = "okay"; 510 }; 475 }; 511 476 512 &pcie0 { 477 &pcie0 { 513 num-lanes = <2>; !! 478 ep-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>; 514 vpcie0v9-supply = <&vcca0v9_s3>; !! 479 max-link-speed = <2>; 515 vpcie1v8-supply = <&vcca1v8_s3>; !! 480 num-lanes = <4>; 516 status = "okay"; 481 status = "okay"; 517 }; 482 }; 518 483 519 &pinctrl { 484 &pinctrl { 520 fusb30x { 485 fusb30x { 521 fusb0_int: fusb0-int { 486 fusb0_int: fusb0-int { 522 rockchip,pins = <1 RK_ 487 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 523 }; 488 }; 524 }; 489 }; 525 490 526 gpio-leds { 491 gpio-leds { 527 status_led_pin: status-led-pin !! 492 leds_gpio: leds-gpio { 528 rockchip,pins = <0 RK_ 493 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 529 }; 494 }; 530 }; 495 }; 531 496 532 gmac { !! 497 phy { 533 phy_intb: phy-intb { 498 phy_intb: phy-intb { 534 rockchip,pins = <3 RK_ 499 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; 535 }; 500 }; 536 501 537 phy_rstb: phy-rstb { 502 phy_rstb: phy-rstb { 538 rockchip,pins = <3 RK_ 503 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 539 }; 504 }; 540 }; 505 }; 541 506 542 pmic { 507 pmic { 543 cpu_b_sleep: cpu-b-sleep { 508 cpu_b_sleep: cpu-b-sleep { 544 rockchip,pins = <1 RK_ 509 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 545 }; 510 }; 546 511 547 gpu_sleep: gpu-sleep { 512 gpu_sleep: gpu-sleep { 548 rockchip,pins = <1 RK_ 513 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 549 }; 514 }; 550 515 551 pmic_int_l: pmic-int-l { 516 pmic_int_l: pmic-int-l { 552 rockchip,pins = <1 RK_ 517 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 553 }; 518 }; 554 }; 519 }; 555 520 556 rockchip-key { 521 rockchip-key { 557 power_key: power-key { 522 power_key: power-key { 558 rockchip,pins = <0 RK_ 523 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 559 }; 524 }; 560 }; 525 }; 561 526 562 sdio { 527 sdio { 563 bt_host_wake_l: bt-host-wake-l 528 bt_host_wake_l: bt-host-wake-l { 564 rockchip,pins = <0 RK_ 529 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 565 }; 530 }; 566 531 567 bt_reg_on_h: bt-reg-on-h { 532 bt_reg_on_h: bt-reg-on-h { 568 /* external pullup to 533 /* external pullup to VCC1V8_PMUPLL */ 569 rockchip,pins = <0 RK_ 534 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 570 }; 535 }; 571 536 572 bt_wake_l: bt-wake-l { 537 bt_wake_l: bt-wake-l { 573 rockchip,pins = <2 RK_ 538 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 574 }; 539 }; 575 540 576 wifi_reg_on_h: wifi-reg_on-h { 541 wifi_reg_on_h: wifi-reg_on-h { 577 rockchip,pins = <0 RK_ 542 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 578 }; 543 }; 579 }; 544 }; 580 545 581 sdmmc { 546 sdmmc { 582 sdmmc0_det_l: sdmmc0-det-l { 547 sdmmc0_det_l: sdmmc0-det-l { 583 rockchip,pins = <0 RK_ 548 rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; 584 }; 549 }; 585 550 586 sdmmc0_pwr_h: sdmmc0-pwr-h { 551 sdmmc0_pwr_h: sdmmc0-pwr-h { 587 rockchip,pins = <0 RK_ 552 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 588 }; 553 }; 589 }; 554 }; 590 }; 555 }; 591 556 592 &pmu_io_domains { 557 &pmu_io_domains { 593 pmu1830-supply = <&vcc_3v0>; 558 pmu1830-supply = <&vcc_3v0>; 594 status = "okay"; 559 status = "okay"; 595 }; 560 }; 596 561 597 &pwm0 { 562 &pwm0 { 598 status = "okay"; 563 status = "okay"; 599 }; 564 }; 600 565 601 &pwm1 { 566 &pwm1 { 602 status = "okay"; 567 status = "okay"; 603 }; 568 }; 604 569 605 &pwm2 { 570 &pwm2 { 606 pinctrl-names = "active"; 571 pinctrl-names = "active"; 607 pinctrl-0 = <&pwm2_pin_pull_down>; 572 pinctrl-0 = <&pwm2_pin_pull_down>; 608 status = "okay"; 573 status = "okay"; 609 }; 574 }; 610 575 611 &saradc { 576 &saradc { 612 vref-supply = <&vcca1v8_s3>; 577 vref-supply = <&vcca1v8_s3>; 613 status = "okay"; 578 status = "okay"; 614 }; 579 }; 615 580 616 &sdhci { 581 &sdhci { 617 bus-width = <8>; 582 bus-width = <8>; 618 mmc-hs200-1_8v; 583 mmc-hs200-1_8v; 619 non-removable; 584 non-removable; 620 status = "okay"; 585 status = "okay"; 621 }; 586 }; 622 587 623 &sdio0 { 588 &sdio0 { 624 bus-width = <4>; 589 bus-width = <4>; 625 cap-sd-highspeed; 590 cap-sd-highspeed; 626 cap-sdio-irq; 591 cap-sdio-irq; 627 keep-power-in-suspend; 592 keep-power-in-suspend; 628 mmc-pwrseq = <&sdio_pwrseq>; 593 mmc-pwrseq = <&sdio_pwrseq>; 629 non-removable; 594 non-removable; 630 pinctrl-names = "default"; 595 pinctrl-names = "default"; 631 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &s 596 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 632 sd-uhs-sdr104; 597 sd-uhs-sdr104; 633 status = "okay"; 598 status = "okay"; 634 }; 599 }; 635 600 636 &sdmmc { 601 &sdmmc { 637 bus-width = <4>; 602 bus-width = <4>; 638 cap-sd-highspeed; 603 cap-sd-highspeed; 639 cap-mmc-highspeed; 604 cap-mmc-highspeed; 640 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_ 605 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; 641 disable-wp; 606 disable-wp; 642 pinctrl-names = "default"; 607 pinctrl-names = "default"; 643 pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &s 608 pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc0_det_l>; 644 sd-uhs-sdr104; 609 sd-uhs-sdr104; 645 vmmc-supply = <&vcc3v0_sd>; 610 vmmc-supply = <&vcc3v0_sd>; 646 vqmmc-supply = <&vcc_sdio>; 611 vqmmc-supply = <&vcc_sdio>; 647 status = "okay"; 612 status = "okay"; 648 }; 613 }; 649 614 650 &tcphy0 { 615 &tcphy0 { 651 status = "okay"; 616 status = "okay"; 652 }; 617 }; 653 618 654 &tcphy1 { 619 &tcphy1 { 655 status = "okay"; 620 status = "okay"; 656 }; 621 }; 657 622 658 &tsadc { 623 &tsadc { 659 /* tshut mode 0:CRU 1:GPIO */ 624 /* tshut mode 0:CRU 1:GPIO */ 660 rockchip,hw-tshut-mode = <1>; 625 rockchip,hw-tshut-mode = <1>; 661 /* tshut polarity 0:LOW 1:HIGH */ 626 /* tshut polarity 0:LOW 1:HIGH */ 662 rockchip,hw-tshut-polarity = <1>; 627 rockchip,hw-tshut-polarity = <1>; 663 status = "okay"; 628 status = "okay"; 664 }; 629 }; 665 630 666 &u2phy0 { 631 &u2phy0 { 667 status = "okay"; 632 status = "okay"; 668 }; 633 }; 669 634 670 &u2phy0_host { 635 &u2phy0_host { 671 status = "okay"; 636 status = "okay"; 672 }; 637 }; 673 638 674 &u2phy0_otg { 639 &u2phy0_otg { 675 status = "okay"; 640 status = "okay"; 676 }; 641 }; 677 642 678 &u2phy1 { 643 &u2phy1 { 679 status = "okay"; 644 status = "okay"; 680 }; 645 }; 681 646 682 &u2phy1_host { 647 &u2phy1_host { 683 status = "okay"; 648 status = "okay"; 684 }; 649 }; 685 650 686 &u2phy1_otg { 651 &u2phy1_otg { 687 status = "okay"; 652 status = "okay"; 688 }; 653 }; 689 654 690 &uart0 { 655 &uart0 { 691 pinctrl-names = "default"; 656 pinctrl-names = "default"; 692 pinctrl-0 = <&uart0_xfer &uart0_rts &u 657 pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>; 693 status = "okay"; 658 status = "okay"; 694 659 695 bluetooth { 660 bluetooth { 696 compatible = "brcm,bcm43438-bt 661 compatible = "brcm,bcm43438-bt"; 697 clocks = <&rk808 1>; 662 clocks = <&rk808 1>; 698 clock-names = "lpo"; 663 clock-names = "lpo"; 699 device-wakeup-gpios = <&gpio2 664 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; 700 host-wakeup-gpios = <&gpio0 RK 665 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 701 shutdown-gpios = <&gpio0 RK_PB 666 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 702 max-speed = <4000000>; 667 max-speed = <4000000>; 703 pinctrl-names = "default"; 668 pinctrl-names = "default"; 704 pinctrl-0 = <&bt_reg_on_h &bt_ 669 pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>; 705 vbat-supply = <&vcc3v3_sys>; 670 vbat-supply = <&vcc3v3_sys>; 706 vddio-supply = <&vcc_1v8>; 671 vddio-supply = <&vcc_1v8>; 707 }; 672 }; 708 }; 673 }; 709 674 710 &uart2 { 675 &uart2 { 711 status = "okay"; 676 status = "okay"; 712 }; 677 }; 713 678 714 &usbdrd3_0 { 679 &usbdrd3_0 { 715 status = "okay"; 680 status = "okay"; 716 }; 681 }; 717 682 718 &usbdrd3_1 { 683 &usbdrd3_1 { 719 status = "okay"; 684 status = "okay"; 720 }; 685 }; 721 686 722 &usbdrd_dwc3_0 { 687 &usbdrd_dwc3_0 { 723 status = "okay"; 688 status = "okay"; 724 }; 689 }; 725 690 726 &usbdrd_dwc3_1 { 691 &usbdrd_dwc3_1 { 727 dr_mode = "host"; 692 dr_mode = "host"; 728 status = "okay"; 693 status = "okay"; 729 }; 694 }; 730 695 731 &usb_host0_ehci { 696 &usb_host0_ehci { 732 status = "okay"; 697 status = "okay"; 733 }; 698 }; 734 699 735 &usb_host0_ohci { 700 &usb_host0_ohci { 736 status = "okay"; 701 status = "okay"; 737 }; 702 }; 738 703 739 &usb_host1_ehci { 704 &usb_host1_ehci { 740 status = "okay"; 705 status = "okay"; 741 }; 706 }; 742 707 743 &usb_host1_ohci { 708 &usb_host1_ohci { 744 status = "okay"; 709 status = "okay"; 745 }; 710 }; 746 711 747 &vopb { 712 &vopb { 748 status = "okay"; 713 status = "okay"; 749 }; 714 }; 750 715 751 &vopb_mmu { 716 &vopb_mmu { 752 status = "okay"; 717 status = "okay"; 753 }; 718 }; 754 719 755 &vopl { 720 &vopl { 756 status = "okay"; 721 status = "okay"; 757 }; 722 }; 758 723 759 &vopl_mmu { 724 &vopl_mmu { 760 status = "okay"; 725 status = "okay"; 761 }; 726 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.