1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 /* 3 /* 4 * Copyright (c) 2021 Rockchip Electronics Co. 4 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 5 * Copyright (c) 2022 EmbedFire <embedfire@embe 5 * Copyright (c) 2022 EmbedFire <embedfire@embedfire.com> 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 12 #include <dt-bindings/soc/rockchip,vop2.h> 12 #include <dt-bindings/soc/rockchip,vop2.h> 13 #include "rk3568.dtsi" 13 #include "rk3568.dtsi" 14 14 15 / { 15 / { 16 model = "EmbedFire LubanCat 2"; 16 model = "EmbedFire LubanCat 2"; 17 compatible = "embedfire,lubancat-2", " 17 compatible = "embedfire,lubancat-2", "rockchip,rk3568"; 18 18 19 aliases { 19 aliases { 20 ethernet0 = &gmac0; 20 ethernet0 = &gmac0; 21 ethernet1 = &gmac1; 21 ethernet1 = &gmac1; 22 mmc0 = &sdmmc0; 22 mmc0 = &sdmmc0; 23 mmc1 = &sdhci; 23 mmc1 = &sdhci; 24 }; 24 }; 25 25 26 chosen: chosen { 26 chosen: chosen { 27 stdout-path = "serial2:1500000 27 stdout-path = "serial2:1500000n8"; 28 }; 28 }; 29 29 30 leds { 30 leds { 31 compatible = "gpio-leds"; 31 compatible = "gpio-leds"; 32 32 33 user_led: user-led { 33 user_led: user-led { 34 label = "user_led"; 34 label = "user_led"; 35 linux,default-trigger 35 linux,default-trigger = "heartbeat"; 36 default-state = "on"; 36 default-state = "on"; 37 gpios = <&gpio0 RK_PC7 37 gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; 38 pinctrl-names = "defau 38 pinctrl-names = "default"; 39 pinctrl-0 = <&user_led 39 pinctrl-0 = <&user_led_pin>; 40 }; 40 }; 41 }; 41 }; 42 42 43 hdmi-con { 43 hdmi-con { 44 compatible = "hdmi-connector"; 44 compatible = "hdmi-connector"; 45 type = "a"; 45 type = "a"; 46 46 47 port { 47 port { 48 hdmi_con_in: endpoint 48 hdmi_con_in: endpoint { 49 remote-endpoin 49 remote-endpoint = <&hdmi_out_con>; 50 }; 50 }; 51 }; 51 }; 52 }; 52 }; 53 53 54 dc_5v: dc-5v-regulator { 54 dc_5v: dc-5v-regulator { 55 compatible = "regulator-fixed" 55 compatible = "regulator-fixed"; 56 regulator-name = "dc_5v"; 56 regulator-name = "dc_5v"; 57 regulator-always-on; 57 regulator-always-on; 58 regulator-boot-on; 58 regulator-boot-on; 59 regulator-min-microvolt = <500 59 regulator-min-microvolt = <5000000>; 60 regulator-max-microvolt = <500 60 regulator-max-microvolt = <5000000>; 61 }; 61 }; 62 62 63 vcc3v3_sys: vcc3v3-sys-regulator { 63 vcc3v3_sys: vcc3v3-sys-regulator { 64 compatible = "regulator-fixed" 64 compatible = "regulator-fixed"; 65 regulator-name = "vcc3v3_sys"; 65 regulator-name = "vcc3v3_sys"; 66 regulator-always-on; 66 regulator-always-on; 67 regulator-boot-on; 67 regulator-boot-on; 68 regulator-min-microvolt = <330 68 regulator-min-microvolt = <3300000>; 69 regulator-max-microvolt = <330 69 regulator-max-microvolt = <3300000>; 70 vin-supply = <&vcc5v0_sys>; 70 vin-supply = <&vcc5v0_sys>; 71 }; 71 }; 72 72 73 vcc5v0_sys: vcc5v0-sys-regulator { 73 vcc5v0_sys: vcc5v0-sys-regulator { 74 compatible = "regulator-fixed" 74 compatible = "regulator-fixed"; 75 regulator-name = "vcc5v0_sys"; 75 regulator-name = "vcc5v0_sys"; 76 regulator-always-on; 76 regulator-always-on; 77 regulator-boot-on; 77 regulator-boot-on; 78 regulator-min-microvolt = <500 78 regulator-min-microvolt = <5000000>; 79 regulator-max-microvolt = <500 79 regulator-max-microvolt = <5000000>; 80 vin-supply = <&dc_5v>; 80 vin-supply = <&dc_5v>; 81 }; 81 }; 82 82 83 vcc3v3_m2_pcie: vcc3v3-m2-pcie-regulat 83 vcc3v3_m2_pcie: vcc3v3-m2-pcie-regulator { 84 compatible = "regulator-fixed" 84 compatible = "regulator-fixed"; 85 regulator-name = "m2_pcie_3v3" 85 regulator-name = "m2_pcie_3v3"; 86 enable-active-high; 86 enable-active-high; 87 regulator-min-microvolt = <330 87 regulator-min-microvolt = <3300000>; 88 regulator-max-microvolt = <330 88 regulator-max-microvolt = <3300000>; 89 gpios = <&gpio0 RK_PD4 GPIO_AC 89 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 90 pinctrl-0 = <&vcc3v3_m2_pcie_e 90 pinctrl-0 = <&vcc3v3_m2_pcie_en>; 91 pinctrl-names = "default"; 91 pinctrl-names = "default"; 92 startup-delay-us = <200000>; 92 startup-delay-us = <200000>; 93 vin-supply = <&vcc5v0_sys>; 93 vin-supply = <&vcc5v0_sys>; 94 }; 94 }; 95 95 96 vcc3v3_mini_pcie: vcc3v3-mini-pcie-reg 96 vcc3v3_mini_pcie: vcc3v3-mini-pcie-regulator { 97 compatible = "regulator-fixed" 97 compatible = "regulator-fixed"; 98 regulator-name = "minipcie_3v3 98 regulator-name = "minipcie_3v3"; 99 enable-active-high; 99 enable-active-high; 100 regulator-min-microvolt = <330 100 regulator-min-microvolt = <3300000>; 101 regulator-max-microvolt = <330 101 regulator-max-microvolt = <3300000>; 102 gpio = <&gpio3 RK_PC3 GPIO_ACT 102 gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; 103 pinctrl-0 = <&vcc3v3_mini_pcie 103 pinctrl-0 = <&vcc3v3_mini_pcie_en>; 104 pinctrl-names = "default"; 104 pinctrl-names = "default"; 105 startup-delay-us = <5000>; 105 startup-delay-us = <5000>; 106 vin-supply = <&vcc5v0_sys>; 106 vin-supply = <&vcc5v0_sys>; 107 }; 107 }; 108 108 109 vcc5v0_usb20_host: vcc5v0-usb20-host-r 109 vcc5v0_usb20_host: vcc5v0-usb20-host-regulator { 110 compatible = "regulator-fixed" 110 compatible = "regulator-fixed"; 111 regulator-name = "vcc5v0_usb20 111 regulator-name = "vcc5v0_usb20_host"; 112 enable-active-high; 112 enable-active-high; 113 gpio = <&gpio0 RK_PD5 GPIO_ACT 113 gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; 114 pinctrl-0 = <&vcc5v0_usb20_hos 114 pinctrl-0 = <&vcc5v0_usb20_host_en>; 115 pinctrl-names = "default"; 115 pinctrl-names = "default"; 116 }; 116 }; 117 117 118 vcc5v0_usb30_host: vcc5v0-usb30-host-r 118 vcc5v0_usb30_host: vcc5v0-usb30-host-regulator { 119 compatible = "regulator-fixed" 119 compatible = "regulator-fixed"; 120 regulator-name = "vcc5v0_usb30 120 regulator-name = "vcc5v0_usb30_host"; 121 enable-active-high; 121 enable-active-high; 122 gpio = <&gpio0 RK_PD6 GPIO_ACT 122 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>; 123 pinctrl-0 = <&vcc5v0_usb30_hos 123 pinctrl-0 = <&vcc5v0_usb30_host_en>; 124 pinctrl-names = "default"; 124 pinctrl-names = "default"; 125 }; 125 }; 126 126 127 vcc5v0_otg_vbus: vcc5v0-otg-vbus-regul 127 vcc5v0_otg_vbus: vcc5v0-otg-vbus-regulator { 128 compatible = "regulator-fixed" 128 compatible = "regulator-fixed"; 129 regulator-name = "vcc5v0_otg_v 129 regulator-name = "vcc5v0_otg_vbus"; 130 enable-active-high; 130 enable-active-high; 131 regulator-min-microvolt = <500 131 regulator-min-microvolt = <5000000>; 132 regulator-max-microvolt = <500 132 regulator-max-microvolt = <5000000>; 133 gpio = <&gpio0 RK_PD3 GPIO_ACT 133 gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; 134 pinctrl-0 = <&vcc5v0_otg_vbus_ 134 pinctrl-0 = <&vcc5v0_otg_vbus_en>; 135 pinctrl-names = "default"; 135 pinctrl-names = "default"; 136 }; 136 }; 137 }; 137 }; 138 138 139 &combphy0 { 139 &combphy0 { 140 status = "okay"; 140 status = "okay"; 141 }; 141 }; 142 142 143 &combphy1 { 143 &combphy1 { 144 status = "okay"; 144 status = "okay"; 145 }; 145 }; 146 146 147 &combphy2 { 147 &combphy2 { 148 status = "okay"; 148 status = "okay"; 149 }; 149 }; 150 150 151 &cpu0 { 151 &cpu0 { 152 cpu-supply = <&vdd_cpu>; 152 cpu-supply = <&vdd_cpu>; 153 }; 153 }; 154 154 155 &cpu1 { 155 &cpu1 { 156 cpu-supply = <&vdd_cpu>; 156 cpu-supply = <&vdd_cpu>; 157 }; 157 }; 158 158 159 &cpu2 { 159 &cpu2 { 160 cpu-supply = <&vdd_cpu>; 160 cpu-supply = <&vdd_cpu>; 161 }; 161 }; 162 162 163 &cpu3 { 163 &cpu3 { 164 cpu-supply = <&vdd_cpu>; 164 cpu-supply = <&vdd_cpu>; 165 }; 165 }; 166 166 167 &gpu { 167 &gpu { 168 mali-supply = <&vdd_gpu>; 168 mali-supply = <&vdd_gpu>; 169 status = "okay"; 169 status = "okay"; 170 }; 170 }; 171 171 172 &hdmi { 172 &hdmi { 173 avdd-0v9-supply = <&vdda0v9_image>; 173 avdd-0v9-supply = <&vdda0v9_image>; 174 avdd-1v8-supply = <&vcca1v8_image>; 174 avdd-1v8-supply = <&vcca1v8_image>; 175 status = "okay"; 175 status = "okay"; 176 }; 176 }; 177 177 178 &hdmi_in { 178 &hdmi_in { 179 hdmi_in_vp0: endpoint { 179 hdmi_in_vp0: endpoint { 180 remote-endpoint = <&vp0_out_hd 180 remote-endpoint = <&vp0_out_hdmi>; 181 }; 181 }; 182 }; 182 }; 183 183 184 &hdmi_out { 184 &hdmi_out { 185 hdmi_out_con: endpoint { 185 hdmi_out_con: endpoint { 186 remote-endpoint = <&hdmi_con_i 186 remote-endpoint = <&hdmi_con_in>; 187 }; 187 }; 188 }; 188 }; 189 189 190 &hdmi_sound { 190 &hdmi_sound { 191 status = "okay"; 191 status = "okay"; 192 }; 192 }; 193 193 194 &i2c0 { 194 &i2c0 { 195 status = "okay"; 195 status = "okay"; 196 196 197 vdd_cpu: regulator@1c { 197 vdd_cpu: regulator@1c { 198 compatible = "tcs,tcs4525"; 198 compatible = "tcs,tcs4525"; 199 reg = <0x1c>; 199 reg = <0x1c>; 200 fcs,suspend-voltage-selector = 200 fcs,suspend-voltage-selector = <1>; 201 regulator-name = "vdd_cpu"; 201 regulator-name = "vdd_cpu"; 202 regulator-always-on; 202 regulator-always-on; 203 regulator-boot-on; 203 regulator-boot-on; 204 regulator-min-microvolt = <800 204 regulator-min-microvolt = <800000>; 205 regulator-max-microvolt = <115 205 regulator-max-microvolt = <1150000>; 206 regulator-ramp-delay = <2300>; 206 regulator-ramp-delay = <2300>; 207 vin-supply = <&vcc5v0_sys>; 207 vin-supply = <&vcc5v0_sys>; 208 208 209 regulator-state-mem { 209 regulator-state-mem { 210 regulator-off-in-suspe 210 regulator-off-in-suspend; 211 }; 211 }; 212 }; 212 }; 213 213 214 rk809: pmic@20 { 214 rk809: pmic@20 { 215 compatible = "rockchip,rk809"; 215 compatible = "rockchip,rk809"; 216 reg = <0x20>; 216 reg = <0x20>; 217 interrupt-parent = <&gpio0>; 217 interrupt-parent = <&gpio0>; 218 interrupts = <RK_PA3 IRQ_TYPE_ 218 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 219 assigned-clocks = <&cru I2S1_M 219 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 220 assigned-clock-parents = <&cru 220 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 221 #clock-cells = <1>; 221 #clock-cells = <1>; 222 clock-names = "mclk"; 222 clock-names = "mclk"; 223 clocks = <&cru I2S1_MCLKOUT_TX 223 clocks = <&cru I2S1_MCLKOUT_TX>; 224 pinctrl-names = "default"; 224 pinctrl-names = "default"; 225 pinctrl-0 = <&pmic_int>; 225 pinctrl-0 = <&pmic_int>; 226 rockchip,system-power-controll 226 rockchip,system-power-controller; 227 #sound-dai-cells = <0>; 227 #sound-dai-cells = <0>; 228 vcc1-supply = <&vcc3v3_sys>; 228 vcc1-supply = <&vcc3v3_sys>; 229 vcc2-supply = <&vcc3v3_sys>; 229 vcc2-supply = <&vcc3v3_sys>; 230 vcc3-supply = <&vcc3v3_sys>; 230 vcc3-supply = <&vcc3v3_sys>; 231 vcc4-supply = <&vcc3v3_sys>; 231 vcc4-supply = <&vcc3v3_sys>; 232 vcc5-supply = <&vcc3v3_sys>; 232 vcc5-supply = <&vcc3v3_sys>; 233 vcc6-supply = <&vcc3v3_sys>; 233 vcc6-supply = <&vcc3v3_sys>; 234 vcc7-supply = <&vcc3v3_sys>; 234 vcc7-supply = <&vcc3v3_sys>; 235 vcc8-supply = <&vcc3v3_sys>; 235 vcc8-supply = <&vcc3v3_sys>; 236 vcc9-supply = <&vcc3v3_sys>; 236 vcc9-supply = <&vcc3v3_sys>; 237 wakeup-source; 237 wakeup-source; 238 238 239 regulators { 239 regulators { 240 vdd_logic: DCDC_REG1 { 240 vdd_logic: DCDC_REG1 { 241 regulator-name 241 regulator-name = "vdd_logic"; 242 regulator-alwa 242 regulator-always-on; 243 regulator-boot 243 regulator-boot-on; 244 regulator-min- 244 regulator-min-microvolt = <500000>; 245 regulator-max- 245 regulator-max-microvolt = <1350000>; >> 246 regulator-init-microvolt = <900000>; 246 regulator-ramp 247 regulator-ramp-delay = <6001>; 247 regulator-init 248 regulator-initial-mode = <0x2>; 248 249 249 regulator-stat 250 regulator-state-mem { 250 regula 251 regulator-off-in-suspend; 251 }; 252 }; 252 }; 253 }; 253 254 254 vdd_gpu: DCDC_REG2 { 255 vdd_gpu: DCDC_REG2 { 255 regulator-name 256 regulator-name = "vdd_gpu"; 256 regulator-alwa 257 regulator-always-on; 257 regulator-boot 258 regulator-boot-on; 258 regulator-min- 259 regulator-min-microvolt = <500000>; 259 regulator-max- 260 regulator-max-microvolt = <1350000>; >> 261 regulator-init-microvolt = <900000>; 260 regulator-ramp 262 regulator-ramp-delay = <6001>; 261 regulator-init 263 regulator-initial-mode = <0x2>; 262 264 263 regulator-stat 265 regulator-state-mem { 264 regula 266 regulator-off-in-suspend; 265 }; 267 }; 266 }; 268 }; 267 269 268 vcc_ddr: DCDC_REG3 { 270 vcc_ddr: DCDC_REG3 { 269 regulator-name 271 regulator-name = "vcc_ddr"; 270 regulator-alwa 272 regulator-always-on; 271 regulator-boot 273 regulator-boot-on; 272 regulator-init 274 regulator-initial-mode = <0x2>; 273 275 274 regulator-stat 276 regulator-state-mem { 275 regula 277 regulator-on-in-suspend; 276 }; 278 }; 277 }; 279 }; 278 280 279 vdd_npu: DCDC_REG4 { 281 vdd_npu: DCDC_REG4 { 280 regulator-name 282 regulator-name = "vdd_npu"; 281 regulator-alwa 283 regulator-always-on; 282 regulator-boot 284 regulator-boot-on; 283 regulator-min- 285 regulator-min-microvolt = <500000>; 284 regulator-max- 286 regulator-max-microvolt = <1350000>; >> 287 regulator-init-microvolt = <900000>; 285 regulator-ramp 288 regulator-ramp-delay = <6001>; 286 regulator-init 289 regulator-initial-mode = <0x2>; 287 290 288 regulator-stat 291 regulator-state-mem { 289 regula 292 regulator-off-in-suspend; 290 }; 293 }; 291 }; 294 }; 292 295 293 vcc_1v8: DCDC_REG5 { 296 vcc_1v8: DCDC_REG5 { 294 regulator-name 297 regulator-name = "vcc_1v8"; 295 regulator-alwa 298 regulator-always-on; 296 regulator-boot 299 regulator-boot-on; 297 regulator-min- 300 regulator-min-microvolt = <1800000>; 298 regulator-max- 301 regulator-max-microvolt = <1800000>; 299 302 300 regulator-stat 303 regulator-state-mem { 301 regula 304 regulator-off-in-suspend; 302 }; 305 }; 303 }; 306 }; 304 307 305 vdda0v9_image: LDO_REG 308 vdda0v9_image: LDO_REG1 { 306 regulator-name 309 regulator-name = "vdda0v9_image"; 307 regulator-boot 310 regulator-boot-on; 308 regulator-alwa 311 regulator-always-on; 309 regulator-min- 312 regulator-min-microvolt = <900000>; 310 regulator-max- 313 regulator-max-microvolt = <900000>; 311 314 312 regulator-stat 315 regulator-state-mem { 313 regula 316 regulator-off-in-suspend; 314 }; 317 }; 315 }; 318 }; 316 319 317 vdda_0v9: LDO_REG2 { 320 vdda_0v9: LDO_REG2 { 318 regulator-name 321 regulator-name = "vdda_0v9"; 319 regulator-alwa 322 regulator-always-on; 320 regulator-boot 323 regulator-boot-on; 321 regulator-min- 324 regulator-min-microvolt = <900000>; 322 regulator-max- 325 regulator-max-microvolt = <900000>; 323 326 324 regulator-stat 327 regulator-state-mem { 325 regula 328 regulator-off-in-suspend; 326 }; 329 }; 327 }; 330 }; 328 331 329 vdda0v9_pmu: LDO_REG3 332 vdda0v9_pmu: LDO_REG3 { 330 regulator-name 333 regulator-name = "vdda0v9_pmu"; 331 regulator-alwa 334 regulator-always-on; 332 regulator-boot 335 regulator-boot-on; 333 regulator-min- 336 regulator-min-microvolt = <900000>; 334 regulator-max- 337 regulator-max-microvolt = <900000>; 335 338 336 regulator-stat 339 regulator-state-mem { 337 regula 340 regulator-on-in-suspend; 338 regula 341 regulator-suspend-microvolt = <900000>; 339 }; 342 }; 340 }; 343 }; 341 344 342 vccio_acodec: LDO_REG4 345 vccio_acodec: LDO_REG4 { 343 regulator-name 346 regulator-name = "vccio_acodec"; 344 regulator-alwa 347 regulator-always-on; 345 regulator-boot 348 regulator-boot-on; 346 regulator-min- 349 regulator-min-microvolt = <3300000>; 347 regulator-max- 350 regulator-max-microvolt = <3300000>; 348 351 349 regulator-stat 352 regulator-state-mem { 350 regula 353 regulator-off-in-suspend; 351 }; 354 }; 352 }; 355 }; 353 356 354 vccio_sd: LDO_REG5 { 357 vccio_sd: LDO_REG5 { 355 regulator-name 358 regulator-name = "vccio_sd"; 356 regulator-alwa 359 regulator-always-on; 357 regulator-boot 360 regulator-boot-on; 358 regulator-min- 361 regulator-min-microvolt = <1800000>; 359 regulator-max- 362 regulator-max-microvolt = <3300000>; 360 363 361 regulator-stat 364 regulator-state-mem { 362 regula 365 regulator-off-in-suspend; 363 }; 366 }; 364 }; 367 }; 365 368 366 vcc3v3_pmu: LDO_REG6 { 369 vcc3v3_pmu: LDO_REG6 { 367 regulator-name 370 regulator-name = "vcc3v3_pmu"; 368 regulator-alwa 371 regulator-always-on; 369 regulator-boot 372 regulator-boot-on; 370 regulator-min- 373 regulator-min-microvolt = <3300000>; 371 regulator-max- 374 regulator-max-microvolt = <3300000>; 372 375 373 regulator-stat 376 regulator-state-mem { 374 regula 377 regulator-on-in-suspend; 375 regula 378 regulator-suspend-microvolt = <3300000>; 376 }; 379 }; 377 }; 380 }; 378 381 379 vcca_1v8: LDO_REG7 { 382 vcca_1v8: LDO_REG7 { 380 regulator-name 383 regulator-name = "vcca_1v8"; 381 regulator-alwa 384 regulator-always-on; 382 regulator-boot 385 regulator-boot-on; 383 regulator-min- 386 regulator-min-microvolt = <1800000>; 384 regulator-max- 387 regulator-max-microvolt = <1800000>; 385 388 386 regulator-stat 389 regulator-state-mem { 387 regula 390 regulator-off-in-suspend; 388 }; 391 }; 389 }; 392 }; 390 393 391 vcca1v8_pmu: LDO_REG8 394 vcca1v8_pmu: LDO_REG8 { 392 regulator-name 395 regulator-name = "vcca1v8_pmu"; 393 regulator-alwa 396 regulator-always-on; 394 regulator-boot 397 regulator-boot-on; 395 regulator-min- 398 regulator-min-microvolt = <1800000>; 396 regulator-max- 399 regulator-max-microvolt = <1800000>; 397 400 398 regulator-stat 401 regulator-state-mem { 399 regula 402 regulator-on-in-suspend; 400 regula 403 regulator-suspend-microvolt = <1800000>; 401 }; 404 }; 402 }; 405 }; 403 406 404 vcca1v8_image: LDO_REG 407 vcca1v8_image: LDO_REG9 { 405 regulator-name 408 regulator-name = "vcca1v8_image"; 406 regulator-alwa 409 regulator-always-on; 407 regulator-boot 410 regulator-boot-on; 408 regulator-min- 411 regulator-min-microvolt = <1800000>; 409 regulator-max- 412 regulator-max-microvolt = <1800000>; 410 413 411 regulator-stat 414 regulator-state-mem { 412 regula 415 regulator-off-in-suspend; 413 }; 416 }; 414 }; 417 }; 415 418 416 vcc_3v3: SWITCH_REG1 { 419 vcc_3v3: SWITCH_REG1 { 417 regulator-name 420 regulator-name = "vcc_3v3"; 418 regulator-alwa 421 regulator-always-on; 419 regulator-boot 422 regulator-boot-on; 420 423 421 regulator-stat 424 regulator-state-mem { 422 regula 425 regulator-off-in-suspend; 423 }; 426 }; 424 }; 427 }; 425 428 426 vcc3v3_sd: SWITCH_REG2 429 vcc3v3_sd: SWITCH_REG2 { 427 regulator-name 430 regulator-name = "vcc3v3_sd"; 428 regulator-alwa 431 regulator-always-on; 429 regulator-boot 432 regulator-boot-on; 430 433 431 regulator-stat 434 regulator-state-mem { 432 regula 435 regulator-off-in-suspend; 433 }; 436 }; 434 }; 437 }; 435 }; 438 }; 436 }; 439 }; 437 }; 440 }; 438 441 439 &i2s1_8ch { 442 &i2s1_8ch { 440 rockchip,trcm-sync-tx-only; 443 rockchip,trcm-sync-tx-only; 441 status = "okay"; 444 status = "okay"; 442 }; 445 }; 443 446 444 &gmac0 { 447 &gmac0 { 445 phy-mode = "rgmii"; 448 phy-mode = "rgmii"; 446 clock_in_out = "output"; 449 clock_in_out = "output"; 447 450 448 snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ 451 snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; 449 snps,reset-active-low; 452 snps,reset-active-low; 450 /* Reset time is 20ms, 100ms for rtl82 453 /* Reset time is 20ms, 100ms for rtl8211f */ 451 snps,reset-delays-us = <0 20000 100000 454 snps,reset-delays-us = <0 20000 100000>; 452 455 453 assigned-clocks = <&cru SCLK_GMAC0_RX_ 456 assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; 454 assigned-clock-parents = <&cru SCLK_GM 457 assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>; 455 458 456 pinctrl-names = "default"; 459 pinctrl-names = "default"; 457 pinctrl-0 = <&gmac0_miim 460 pinctrl-0 = <&gmac0_miim 458 &gmac0_tx_bus2 461 &gmac0_tx_bus2 459 &gmac0_rx_bus2 462 &gmac0_rx_bus2 460 &gmac0_rgmii_clk 463 &gmac0_rgmii_clk 461 &gmac0_rgmii_bus>; 464 &gmac0_rgmii_bus>; 462 465 463 tx_delay = <0x22>; 466 tx_delay = <0x22>; 464 rx_delay = <0x0e>; 467 rx_delay = <0x0e>; 465 468 466 phy-handle = <&rgmii_phy0>; 469 phy-handle = <&rgmii_phy0>; 467 status = "okay"; 470 status = "okay"; 468 }; 471 }; 469 472 470 &mdio0 { 473 &mdio0 { 471 rgmii_phy0: phy@0 { 474 rgmii_phy0: phy@0 { 472 compatible = "ethernet-phy-iee 475 compatible = "ethernet-phy-ieee802.3-c22"; 473 reg = <0x0>; 476 reg = <0x0>; 474 }; 477 }; 475 }; 478 }; 476 479 477 &gmac1 { 480 &gmac1 { 478 phy-mode = "rgmii"; 481 phy-mode = "rgmii"; 479 clock_in_out = "output"; 482 clock_in_out = "output"; 480 483 481 snps,reset-gpio = <&gpio3 RK_PA2 GPIO_ 484 snps,reset-gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>; 482 snps,reset-active-low; 485 snps,reset-active-low; 483 /* Reset time is 20ms, 100ms for rtl82 486 /* Reset time is 20ms, 100ms for rtl8211f */ 484 snps,reset-delays-us = <0 20000 100000 487 snps,reset-delays-us = <0 20000 100000>; 485 488 486 assigned-clocks = <&cru SCLK_GMAC1_RX_ 489 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; 487 assigned-clock-parents = <&cru SCLK_GM 490 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>; 488 491 489 pinctrl-names = "default"; 492 pinctrl-names = "default"; 490 pinctrl-0 = <&gmac1m1_miim 493 pinctrl-0 = <&gmac1m1_miim 491 &gmac1m1_tx_bus2 494 &gmac1m1_tx_bus2 492 &gmac1m1_rx_bus2 495 &gmac1m1_rx_bus2 493 &gmac1m1_rgmii_clk 496 &gmac1m1_rgmii_clk 494 &gmac1m1_rgmii_bus>; 497 &gmac1m1_rgmii_bus>; 495 498 496 tx_delay = <0x21>; 499 tx_delay = <0x21>; 497 rx_delay = <0x0e>; 500 rx_delay = <0x0e>; 498 501 499 phy-handle = <&rgmii_phy1>; 502 phy-handle = <&rgmii_phy1>; 500 status = "okay"; 503 status = "okay"; 501 }; 504 }; 502 505 503 &mdio1 { 506 &mdio1 { 504 rgmii_phy1: phy@0 { 507 rgmii_phy1: phy@0 { 505 compatible = "ethernet-phy-iee 508 compatible = "ethernet-phy-ieee802.3-c22"; 506 reg = <0x0>; 509 reg = <0x0>; 507 }; 510 }; 508 }; 511 }; 509 512 510 &gic { 513 &gic { 511 mbi-ranges = <94 31>, <229 31>, <289 3 514 mbi-ranges = <94 31>, <229 31>, <289 31>; 512 }; 515 }; 513 516 514 &pcie30phy { 517 &pcie30phy { 515 status = "okay"; 518 status = "okay"; 516 }; 519 }; 517 520 518 &pcie3x2 { 521 &pcie3x2 { 519 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTI 522 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; 520 vpcie3v3-supply = <&vcc3v3_m2_pcie>; 523 vpcie3v3-supply = <&vcc3v3_m2_pcie>; 521 status = "okay"; 524 status = "okay"; 522 }; 525 }; 523 526 524 &pcie2x1 { 527 &pcie2x1 { 525 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTI 528 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; >> 529 disable-gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>; 526 vpcie3v3-supply = <&vcc3v3_mini_pcie>; 530 vpcie3v3-supply = <&vcc3v3_mini_pcie>; 527 status = "okay"; 531 status = "okay"; 528 }; 532 }; 529 533 530 &pmu_io_domains { 534 &pmu_io_domains { 531 pmuio2-supply = <&vcc3v3_pmu>; 535 pmuio2-supply = <&vcc3v3_pmu>; 532 vccio1-supply = <&vccio_acodec>; 536 vccio1-supply = <&vccio_acodec>; 533 vccio3-supply = <&vccio_sd>; 537 vccio3-supply = <&vccio_sd>; 534 vccio4-supply = <&vcc_1v8>; 538 vccio4-supply = <&vcc_1v8>; 535 vccio5-supply = <&vcc_3v3>; 539 vccio5-supply = <&vcc_3v3>; 536 vccio6-supply = <&vcc_1v8>; 540 vccio6-supply = <&vcc_1v8>; 537 vccio7-supply = <&vcc_3v3>; 541 vccio7-supply = <&vcc_3v3>; 538 status = "okay"; 542 status = "okay"; 539 }; 543 }; 540 544 541 &pwm8 { 545 &pwm8 { 542 status = "okay"; 546 status = "okay"; 543 }; 547 }; 544 548 545 &pwm9 { 549 &pwm9 { 546 status = "disabled"; 550 status = "disabled"; 547 }; 551 }; 548 552 549 &pwm10 { 553 &pwm10 { 550 status = "disabled"; 554 status = "disabled"; 551 }; 555 }; 552 556 553 &pwm14 { 557 &pwm14 { 554 status = "disabled"; 558 status = "disabled"; 555 }; 559 }; 556 560 557 &spi3 { 561 &spi3 { 558 pinctrl-0 = <&spi3m1_pins>; 562 pinctrl-0 = <&spi3m1_pins>; 559 status = "disabled"; 563 status = "disabled"; 560 }; 564 }; 561 565 562 &uart2 { 566 &uart2 { 563 status = "okay"; 567 status = "okay"; 564 }; 568 }; 565 569 566 &uart3 { 570 &uart3 { 567 pinctrl-names = "default"; 571 pinctrl-names = "default"; 568 pinctrl-0 = <&uart3m1_xfer>; 572 pinctrl-0 = <&uart3m1_xfer>; 569 status = "disabled"; 573 status = "disabled"; 570 }; 574 }; 571 575 572 &saradc { 576 &saradc { 573 vref-supply = <&vcca_1v8>; 577 vref-supply = <&vcca_1v8>; 574 status = "okay"; 578 status = "okay"; 575 }; 579 }; 576 580 577 &tsadc { 581 &tsadc { 578 rockchip,hw-tshut-mode = <1>; 582 rockchip,hw-tshut-mode = <1>; 579 rockchip,hw-tshut-polarity = <0>; 583 rockchip,hw-tshut-polarity = <0>; 580 status = "okay"; 584 status = "okay"; 581 }; 585 }; 582 586 583 &sdhci { 587 &sdhci { 584 assigned-clocks = <&cru BCLK_EMMC>, <& 588 assigned-clocks = <&cru BCLK_EMMC>, <&cru TCLK_EMMC>, <&cru CCLK_EMMC>; 585 assigned-clock-rates = <200000000>, <2 589 assigned-clock-rates = <200000000>, <24000000>, <200000000>; 586 bus-width = <8>; 590 bus-width = <8>; 587 max-frequency = <200000000>; 591 max-frequency = <200000000>; 588 mmc-hs200-1_8v; 592 mmc-hs200-1_8v; 589 non-removable; 593 non-removable; 590 pinctrl-names = "default"; 594 pinctrl-names = "default"; 591 pinctrl-0 = <&emmc_bus8 &emmc_clk &emm 595 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>; >> 596 supports-emmc; 592 status = "okay"; 597 status = "okay"; 593 }; 598 }; 594 599 595 &sdmmc0 { 600 &sdmmc0 { 596 max-frequency = <150000000>; 601 max-frequency = <150000000>; 597 no-sdio; 602 no-sdio; 598 no-mmc; 603 no-mmc; 599 bus-width = <4>; 604 bus-width = <4>; 600 cap-mmc-highspeed; 605 cap-mmc-highspeed; 601 cap-sd-highspeed; 606 cap-sd-highspeed; 602 disable-wp; 607 disable-wp; 603 sd-uhs-sdr104; 608 sd-uhs-sdr104; 604 vmmc-supply = <&vcc3v3_sd>; 609 vmmc-supply = <&vcc3v3_sd>; 605 vqmmc-supply = <&vccio_sd>; 610 vqmmc-supply = <&vccio_sd>; 606 pinctrl-names = "default"; 611 pinctrl-names = "default"; 607 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 612 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 608 status = "okay"; 613 status = "okay"; 609 }; 614 }; 610 615 611 /* USB OTG/USB Host_1 USB 2.0 Comb */ 616 /* USB OTG/USB Host_1 USB 2.0 Comb */ 612 &usb2phy0 { 617 &usb2phy0 { 613 status = "okay"; 618 status = "okay"; 614 }; 619 }; 615 620 616 &usb2phy0_host { 621 &usb2phy0_host { 617 phy-supply = <&vcc5v0_usb30_host>; 622 phy-supply = <&vcc5v0_usb30_host>; 618 status = "okay"; 623 status = "okay"; 619 }; 624 }; 620 625 621 &usb2phy0_otg { 626 &usb2phy0_otg { 622 phy-supply = <&vcc5v0_otg_vbus>; 627 phy-supply = <&vcc5v0_otg_vbus>; 623 status = "okay"; 628 status = "okay"; 624 }; 629 }; 625 630 626 &usb_host0_ehci { 631 &usb_host0_ehci { 627 status = "okay"; 632 status = "okay"; 628 }; 633 }; 629 634 630 &usb_host0_ohci { 635 &usb_host0_ohci { 631 status = "okay"; 636 status = "okay"; 632 }; 637 }; 633 638 634 /* USB Host_2/USB Host_3 USB 2.0 Comb */ 639 /* USB Host_2/USB Host_3 USB 2.0 Comb */ 635 &usb2phy1 { 640 &usb2phy1 { 636 status = "okay"; 641 status = "okay"; 637 }; 642 }; 638 643 639 &usb2phy1_host { 644 &usb2phy1_host { 640 status = "okay"; 645 status = "okay"; 641 }; 646 }; 642 647 643 &usb2phy1_otg { 648 &usb2phy1_otg { 644 phy-supply = <&vcc5v0_usb20_host>; 649 phy-supply = <&vcc5v0_usb20_host>; 645 status = "okay"; 650 status = "okay"; 646 }; 651 }; 647 652 648 &usb_host1_ehci { 653 &usb_host1_ehci { 649 status = "okay"; 654 status = "okay"; 650 }; 655 }; 651 656 652 &usb_host1_ohci { 657 &usb_host1_ohci { 653 status = "okay"; 658 status = "okay"; 654 }; 659 }; 655 660 656 /* MULTI_PHY0 For SATA0, USB3.0 OTG Only USB2. 661 /* MULTI_PHY0 For SATA0, USB3.0 OTG Only USB2.0 */ 657 &usb_host0_xhci { 662 &usb_host0_xhci { 658 phys = <&usb2phy0_otg>; 663 phys = <&usb2phy0_otg>; 659 phy-names = "usb2-phy"; 664 phy-names = "usb2-phy"; 660 extcon = <&usb2phy0>; 665 extcon = <&usb2phy0>; 661 maximum-speed = "high-speed"; 666 maximum-speed = "high-speed"; 662 dr_mode = "host"; 667 dr_mode = "host"; 663 status = "okay"; 668 status = "okay"; 664 }; 669 }; 665 670 666 &sata0 { 671 &sata0 { 667 status = "okay"; 672 status = "okay"; 668 }; 673 }; 669 674 670 /* USB3.0 Host */ 675 /* USB3.0 Host */ 671 &usb_host1_xhci { 676 &usb_host1_xhci { 672 status = "okay"; 677 status = "okay"; 673 }; 678 }; 674 679 675 &vop { 680 &vop { 676 assigned-clocks = <&cru DCLK_VOP0>, <& 681 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 677 assigned-clock-parents = <&pmucru PLL_ 682 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 678 status = "okay"; 683 status = "okay"; 679 }; 684 }; 680 685 681 &vop_mmu { 686 &vop_mmu { 682 status = "okay"; 687 status = "okay"; 683 }; 688 }; 684 689 685 &vp0 { 690 &vp0 { 686 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 691 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 687 reg = <ROCKCHIP_VOP2_EP_HDMI0> 692 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 688 remote-endpoint = <&hdmi_in_vp 693 remote-endpoint = <&hdmi_in_vp0>; 689 }; 694 }; 690 }; 695 }; 691 696 692 &pinctrl { 697 &pinctrl { 693 leds { 698 leds { 694 user_led_pin: user-status-led- 699 user_led_pin: user-status-led-pin { 695 rockchip,pins = <0 RK_ 700 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; 696 }; 701 }; 697 }; 702 }; 698 703 699 usb { 704 usb { 700 vcc5v0_usb20_host_en: vcc5v0-u 705 vcc5v0_usb20_host_en: vcc5v0-usb20-host-en { 701 rockchip,pins = <0 RK_ 706 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 702 }; 707 }; 703 708 704 vcc5v0_usb30_host_en: vcc5v0-u 709 vcc5v0_usb30_host_en: vcc5v0-usb30-host-en { 705 rockchip,pins = <0 RK_ 710 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 706 }; 711 }; 707 712 708 vcc5v0_otg_vbus_en: vcc5v0-otg 713 vcc5v0_otg_vbus_en: vcc5v0-otg-vbus-en { 709 rockchip,pins = <0 RK_ 714 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 710 }; 715 }; 711 }; 716 }; 712 717 713 pcie { 718 pcie { 714 vcc3v3_m2_pcie_en: vcc3v3-m2-p 719 vcc3v3_m2_pcie_en: vcc3v3-m2-pcie-en { 715 rockchip,pins = <0 RK_ 720 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 716 }; 721 }; 717 722 718 vcc3v3_mini_pcie_en: vcc3v3-mi 723 vcc3v3_mini_pcie_en: vcc3v3-mini-pcie-en { 719 rockchip,pins = <3 RK_ 724 rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; 720 }; 725 }; 721 }; 726 }; 722 727 723 pmic { 728 pmic { 724 pmic_int: pmic-int { 729 pmic_int: pmic-int { 725 rockchip,pins = <0 RK_ 730 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 726 }; 731 }; 727 }; 732 }; 728 }; 733 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.