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