1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 #include <dt-bindings/gpio/gpio.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/leds/common.h> 4 #include <dt-bindings/leds/common.h> 5 #include <dt-bindings/pinctrl/rockchip.h> 5 #include <dt-bindings/pinctrl/rockchip.h> 6 #include <dt-bindings/soc/rockchip,vop2.h> 6 #include <dt-bindings/soc/rockchip,vop2.h> 7 #include "rk3566.dtsi" 7 #include "rk3566.dtsi" 8 8 9 / { 9 / { 10 model = "Xunlong Orange Pi 3B"; 10 model = "Xunlong Orange Pi 3B"; 11 compatible = "xunlong,orangepi-3b", "r 11 compatible = "xunlong,orangepi-3b", "rockchip,rk3566"; 12 12 13 aliases { 13 aliases { 14 ethernet0 = &gmac1; 14 ethernet0 = &gmac1; 15 mmc0 = &sdhci; 15 mmc0 = &sdhci; 16 mmc1 = &sdmmc0; 16 mmc1 = &sdmmc0; 17 mmc2 = &sdmmc1; 17 mmc2 = &sdmmc1; 18 }; 18 }; 19 19 20 chosen { 20 chosen { 21 stdout-path = "serial2:1500000 21 stdout-path = "serial2:1500000n8"; 22 }; 22 }; 23 23 24 hdmi-con { 24 hdmi-con { 25 compatible = "hdmi-connector"; 25 compatible = "hdmi-connector"; 26 type = "a"; 26 type = "a"; 27 27 28 port { 28 port { 29 hdmi_con_in: endpoint 29 hdmi_con_in: endpoint { 30 remote-endpoin 30 remote-endpoint = <&hdmi_out_con>; 31 }; 31 }; 32 }; 32 }; 33 }; 33 }; 34 34 35 leds { 35 leds { 36 compatible = "gpio-leds"; 36 compatible = "gpio-leds"; 37 pinctrl-names = "default"; 37 pinctrl-names = "default"; 38 pinctrl-0 = <&work_led>; 38 pinctrl-0 = <&work_led>; 39 39 40 led-0 { 40 led-0 { 41 color = <LED_COLOR_ID_ 41 color = <LED_COLOR_ID_GREEN>; 42 default-state = "on"; 42 default-state = "on"; 43 function = LED_FUNCTIO 43 function = LED_FUNCTION_HEARTBEAT; 44 gpios = <&gpio0 RK_PC0 44 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; 45 linux,default-trigger 45 linux,default-trigger = "heartbeat"; 46 }; 46 }; 47 }; 47 }; 48 48 49 vcc3v3_pcie30: regulator-3v3-vcc-pcie3 49 vcc3v3_pcie30: regulator-3v3-vcc-pcie30 { 50 compatible = "regulator-fixed" 50 compatible = "regulator-fixed"; 51 enable-active-high; 51 enable-active-high; 52 gpios = <&gpio0 RK_PB7 GPIO_AC 52 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; 53 pinctrl-names = "default"; 53 pinctrl-names = "default"; 54 pinctrl-0 = <&pcie20_pwren>; 54 pinctrl-0 = <&pcie20_pwren>; 55 regulator-name = "vcc3v3_pcie3 55 regulator-name = "vcc3v3_pcie30"; 56 regulator-min-microvolt = <330 56 regulator-min-microvolt = <3300000>; 57 regulator-max-microvolt = <330 57 regulator-max-microvolt = <3300000>; 58 vin-supply = <&vcc3v3_sys>; 58 vin-supply = <&vcc3v3_sys>; 59 }; 59 }; 60 60 61 vcc3v3_sys: regulator-3v3-vcc-sys { 61 vcc3v3_sys: regulator-3v3-vcc-sys { 62 compatible = "regulator-fixed" 62 compatible = "regulator-fixed"; 63 regulator-name = "vcc3v3_sys"; 63 regulator-name = "vcc3v3_sys"; 64 regulator-always-on; 64 regulator-always-on; 65 regulator-boot-on; 65 regulator-boot-on; 66 regulator-min-microvolt = <330 66 regulator-min-microvolt = <3300000>; 67 regulator-max-microvolt = <330 67 regulator-max-microvolt = <3300000>; 68 vin-supply = <&vcc5v0_sys>; 68 vin-supply = <&vcc5v0_sys>; 69 }; 69 }; 70 70 71 vcc5v0_sys: regulator-5v0-vcc-sys { 71 vcc5v0_sys: regulator-5v0-vcc-sys { 72 compatible = "regulator-fixed" 72 compatible = "regulator-fixed"; 73 regulator-name = "vcc5v0_sys"; 73 regulator-name = "vcc5v0_sys"; 74 regulator-always-on; 74 regulator-always-on; 75 regulator-boot-on; 75 regulator-boot-on; 76 regulator-min-microvolt = <500 76 regulator-min-microvolt = <5000000>; 77 regulator-max-microvolt = <500 77 regulator-max-microvolt = <5000000>; 78 }; 78 }; 79 79 80 vcc5v0_usb_host: regulator-5v0-vcc-usb 80 vcc5v0_usb_host: regulator-5v0-vcc-usb-host { 81 compatible = "regulator-fixed" 81 compatible = "regulator-fixed"; 82 enable-active-high; 82 enable-active-high; 83 gpios = <&gpio0 RK_PA6 GPIO_AC 83 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 84 pinctrl-names = "default"; 84 pinctrl-names = "default"; 85 pinctrl-0 = <&usb_host_pwren_h 85 pinctrl-0 = <&usb_host_pwren_h>; 86 regulator-name = "vcc5v0_usb_h 86 regulator-name = "vcc5v0_usb_host"; 87 regulator-min-microvolt = <500 87 regulator-min-microvolt = <5000000>; 88 regulator-max-microvolt = <500 88 regulator-max-microvolt = <5000000>; 89 vin-supply = <&vcc5v0_sys>; 89 vin-supply = <&vcc5v0_sys>; 90 }; 90 }; 91 91 92 vcc5v0_usb_otg: regulator-5v0-vcc-usb- 92 vcc5v0_usb_otg: regulator-5v0-vcc-usb-otg { 93 compatible = "regulator-fixed" 93 compatible = "regulator-fixed"; 94 enable-active-high; 94 enable-active-high; 95 gpios = <&gpio0 RK_PA5 GPIO_AC 95 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; 96 pinctrl-names = "default"; 96 pinctrl-names = "default"; 97 pinctrl-0 = <&usb_otg_pwren_h> 97 pinctrl-0 = <&usb_otg_pwren_h>; 98 regulator-name = "vcc5v0_usb_o 98 regulator-name = "vcc5v0_usb_otg"; 99 regulator-min-microvolt = <500 99 regulator-min-microvolt = <5000000>; 100 regulator-max-microvolt = <500 100 regulator-max-microvolt = <5000000>; 101 vin-supply = <&vcc5v0_sys>; 101 vin-supply = <&vcc5v0_sys>; 102 }; 102 }; 103 103 104 sdio_pwrseq: sdio-pwrseq { 104 sdio_pwrseq: sdio-pwrseq { 105 compatible = "mmc-pwrseq-simpl 105 compatible = "mmc-pwrseq-simple"; 106 clocks = <&rk809 1>; 106 clocks = <&rk809 1>; 107 clock-names = "ext_clock"; 107 clock-names = "ext_clock"; 108 pinctrl-names = "default"; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&wifi_reg_on_h>; 109 pinctrl-0 = <&wifi_reg_on_h>; 110 post-power-on-delay-ms = <200> 110 post-power-on-delay-ms = <200>; 111 power-off-delay-us = <5000000> 111 power-off-delay-us = <5000000>; 112 reset-gpios = <&gpio0 RK_PD3 G 112 reset-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>; 113 }; 113 }; 114 114 115 sound { 115 sound { 116 compatible = "simple-audio-car 116 compatible = "simple-audio-card"; 117 simple-audio-card,format = "i2 117 simple-audio-card,format = "i2s"; 118 simple-audio-card,name = "Anal 118 simple-audio-card,name = "Analog RK809"; 119 simple-audio-card,mclk-fs = <2 119 simple-audio-card,mclk-fs = <256>; 120 120 121 simple-audio-card,cpu { 121 simple-audio-card,cpu { 122 sound-dai = <&i2s1_8ch 122 sound-dai = <&i2s1_8ch>; 123 }; 123 }; 124 124 125 simple-audio-card,codec { 125 simple-audio-card,codec { 126 sound-dai = <&rk809>; 126 sound-dai = <&rk809>; 127 }; 127 }; 128 }; 128 }; 129 }; 129 }; 130 130 131 &combphy1 { 131 &combphy1 { 132 status = "okay"; 132 status = "okay"; 133 }; 133 }; 134 134 135 &combphy2 { 135 &combphy2 { 136 status = "okay"; 136 status = "okay"; 137 }; 137 }; 138 138 139 &cpu0 { 139 &cpu0 { 140 cpu-supply = <&vdd_cpu>; 140 cpu-supply = <&vdd_cpu>; 141 }; 141 }; 142 142 143 &cpu1 { 143 &cpu1 { 144 cpu-supply = <&vdd_cpu>; 144 cpu-supply = <&vdd_cpu>; 145 }; 145 }; 146 146 147 &cpu2 { 147 &cpu2 { 148 cpu-supply = <&vdd_cpu>; 148 cpu-supply = <&vdd_cpu>; 149 }; 149 }; 150 150 151 &cpu3 { 151 &cpu3 { 152 cpu-supply = <&vdd_cpu>; 152 cpu-supply = <&vdd_cpu>; 153 }; 153 }; 154 154 155 &gmac1 { 155 &gmac1 { 156 assigned-clocks = <&cru SCLK_GMAC1_RX_ 156 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; 157 assigned-clock-parents = <&cru SCLK_GM 157 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>; 158 clock_in_out = "input"; 158 clock_in_out = "input"; 159 phy-mode = "rgmii-id"; 159 phy-mode = "rgmii-id"; 160 phy-supply = <&vcc_3v3>; 160 phy-supply = <&vcc_3v3>; 161 pinctrl-names = "default"; 161 pinctrl-names = "default"; 162 pinctrl-0 = <&gmac1m0_miim 162 pinctrl-0 = <&gmac1m0_miim 163 &gmac1m0_tx_bus2 163 &gmac1m0_tx_bus2 164 &gmac1m0_rx_bus2 164 &gmac1m0_rx_bus2 165 &gmac1m0_rgmii_clk 165 &gmac1m0_rgmii_clk 166 &gmac1m0_rgmii_bus 166 &gmac1m0_rgmii_bus 167 &gmac1m0_clkinout>; 167 &gmac1m0_clkinout>; 168 }; 168 }; 169 169 170 &gpu { 170 &gpu { 171 mali-supply = <&vdd_gpu>; 171 mali-supply = <&vdd_gpu>; 172 status = "okay"; 172 status = "okay"; 173 }; 173 }; 174 174 175 &hdmi { 175 &hdmi { 176 avdd-0v9-supply = <&vdda0v9_image>; 176 avdd-0v9-supply = <&vdda0v9_image>; 177 avdd-1v8-supply = <&vcca1v8_image>; 177 avdd-1v8-supply = <&vcca1v8_image>; 178 status = "okay"; 178 status = "okay"; 179 }; 179 }; 180 180 181 &hdmi_in { 181 &hdmi_in { 182 hdmi_in_vp0: endpoint { 182 hdmi_in_vp0: endpoint { 183 remote-endpoint = <&vp0_out_hd 183 remote-endpoint = <&vp0_out_hdmi>; 184 }; 184 }; 185 }; 185 }; 186 186 187 &hdmi_out { 187 &hdmi_out { 188 hdmi_out_con: endpoint { 188 hdmi_out_con: endpoint { 189 remote-endpoint = <&hdmi_con_i 189 remote-endpoint = <&hdmi_con_in>; 190 }; 190 }; 191 }; 191 }; 192 192 193 &hdmi_sound { 193 &hdmi_sound { 194 status = "okay"; 194 status = "okay"; 195 }; 195 }; 196 196 197 &i2c0 { 197 &i2c0 { 198 status = "okay"; 198 status = "okay"; 199 199 200 rk809: pmic@20 { 200 rk809: pmic@20 { 201 compatible = "rockchip,rk809"; 201 compatible = "rockchip,rk809"; 202 reg = <0x20>; 202 reg = <0x20>; 203 assigned-clocks = <&cru I2S1_M 203 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 204 assigned-clock-parents = <&cru 204 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 205 #clock-cells = <1>; 205 #clock-cells = <1>; 206 clocks = <&cru I2S1_MCLKOUT_TX 206 clocks = <&cru I2S1_MCLKOUT_TX>; 207 clock-names = "mclk"; 207 clock-names = "mclk"; 208 clock-output-names = "rk809-cl 208 clock-output-names = "rk809-clkout1", "rk809-clkout2"; 209 interrupt-parent = <&gpio0>; 209 interrupt-parent = <&gpio0>; 210 interrupts = <RK_PA3 IRQ_TYPE_ 210 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 211 pinctrl-names = "default"; 211 pinctrl-names = "default"; 212 pinctrl-0 = <&pmic_int_l>, <&i 212 pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>; 213 #sound-dai-cells = <0>; 213 #sound-dai-cells = <0>; 214 system-power-controller; 214 system-power-controller; 215 wakeup-source; 215 wakeup-source; 216 216 217 vcc1-supply = <&vcc3v3_sys>; 217 vcc1-supply = <&vcc3v3_sys>; 218 vcc2-supply = <&vcc3v3_sys>; 218 vcc2-supply = <&vcc3v3_sys>; 219 vcc3-supply = <&vcc3v3_sys>; 219 vcc3-supply = <&vcc3v3_sys>; 220 vcc4-supply = <&vcc3v3_sys>; 220 vcc4-supply = <&vcc3v3_sys>; 221 vcc5-supply = <&vcc3v3_sys>; 221 vcc5-supply = <&vcc3v3_sys>; 222 vcc6-supply = <&vcc3v3_sys>; 222 vcc6-supply = <&vcc3v3_sys>; 223 vcc7-supply = <&vcc3v3_sys>; 223 vcc7-supply = <&vcc3v3_sys>; 224 vcc8-supply = <&vcc3v3_sys>; 224 vcc8-supply = <&vcc3v3_sys>; 225 vcc9-supply = <&vcc3v3_sys>; 225 vcc9-supply = <&vcc3v3_sys>; 226 226 227 regulators { 227 regulators { 228 vdd_logic: DCDC_REG1 { 228 vdd_logic: DCDC_REG1 { 229 regulator-name 229 regulator-name = "vdd_logic"; 230 regulator-alwa 230 regulator-always-on; 231 regulator-boot 231 regulator-boot-on; 232 regulator-init 232 regulator-initial-mode = <0x2>; 233 regulator-min- 233 regulator-min-microvolt = <500000>; 234 regulator-max- 234 regulator-max-microvolt = <1350000>; 235 regulator-ramp 235 regulator-ramp-delay = <6001>; 236 236 237 regulator-stat 237 regulator-state-mem { 238 regula 238 regulator-off-in-suspend; 239 }; 239 }; 240 }; 240 }; 241 241 242 vdd_gpu: DCDC_REG2 { 242 vdd_gpu: DCDC_REG2 { 243 regulator-name 243 regulator-name = "vdd_gpu"; 244 regulator-alwa 244 regulator-always-on; 245 regulator-boot 245 regulator-boot-on; 246 regulator-init 246 regulator-initial-mode = <0x2>; 247 regulator-min- 247 regulator-min-microvolt = <500000>; 248 regulator-max- 248 regulator-max-microvolt = <1350000>; 249 regulator-ramp 249 regulator-ramp-delay = <6001>; 250 250 251 regulator-stat 251 regulator-state-mem { 252 regula 252 regulator-off-in-suspend; 253 }; 253 }; 254 }; 254 }; 255 255 256 vcc_ddr: DCDC_REG3 { 256 vcc_ddr: DCDC_REG3 { 257 regulator-name 257 regulator-name = "vcc_ddr"; 258 regulator-alwa 258 regulator-always-on; 259 regulator-boot 259 regulator-boot-on; 260 regulator-init 260 regulator-initial-mode = <0x2>; 261 261 262 regulator-stat 262 regulator-state-mem { 263 regula 263 regulator-on-in-suspend; 264 }; 264 }; 265 }; 265 }; 266 266 267 vdd_npu: DCDC_REG4 { 267 vdd_npu: DCDC_REG4 { 268 regulator-name 268 regulator-name = "vdd_npu"; 269 regulator-init 269 regulator-initial-mode = <0x2>; 270 regulator-min- 270 regulator-min-microvolt = <500000>; 271 regulator-max- 271 regulator-max-microvolt = <1350000>; 272 regulator-ramp 272 regulator-ramp-delay = <6001>; 273 273 274 regulator-stat 274 regulator-state-mem { 275 regula 275 regulator-off-in-suspend; 276 }; 276 }; 277 }; 277 }; 278 278 279 vcc_1v8: DCDC_REG5 { 279 vcc_1v8: DCDC_REG5 { 280 regulator-name 280 regulator-name = "vcc_1v8"; 281 regulator-alwa 281 regulator-always-on; 282 regulator-boot 282 regulator-boot-on; 283 regulator-min- 283 regulator-min-microvolt = <1800000>; 284 regulator-max- 284 regulator-max-microvolt = <1800000>; 285 285 286 regulator-stat 286 regulator-state-mem { 287 regula 287 regulator-off-in-suspend; 288 }; 288 }; 289 }; 289 }; 290 290 291 vdda0v9_image: LDO_REG 291 vdda0v9_image: LDO_REG1 { 292 regulator-name 292 regulator-name = "vdda0v9_image"; 293 regulator-min- 293 regulator-min-microvolt = <900000>; 294 regulator-max- 294 regulator-max-microvolt = <900000>; 295 295 296 regulator-stat 296 regulator-state-mem { 297 regula 297 regulator-off-in-suspend; 298 }; 298 }; 299 }; 299 }; 300 300 301 vdda_0v9: LDO_REG2 { 301 vdda_0v9: LDO_REG2 { 302 regulator-name 302 regulator-name = "vdda_0v9"; 303 regulator-alwa 303 regulator-always-on; 304 regulator-boot 304 regulator-boot-on; 305 regulator-min- 305 regulator-min-microvolt = <900000>; 306 regulator-max- 306 regulator-max-microvolt = <900000>; 307 307 308 regulator-stat 308 regulator-state-mem { 309 regula 309 regulator-off-in-suspend; 310 }; 310 }; 311 }; 311 }; 312 312 313 vdda0v9_pmu: LDO_REG3 313 vdda0v9_pmu: LDO_REG3 { 314 regulator-name 314 regulator-name = "vdda0v9_pmu"; 315 regulator-alwa 315 regulator-always-on; 316 regulator-boot 316 regulator-boot-on; 317 regulator-min- 317 regulator-min-microvolt = <900000>; 318 regulator-max- 318 regulator-max-microvolt = <900000>; 319 319 320 regulator-stat 320 regulator-state-mem { 321 regula 321 regulator-on-in-suspend; 322 regula 322 regulator-suspend-microvolt = <900000>; 323 }; 323 }; 324 }; 324 }; 325 325 326 vccio_acodec: LDO_REG4 326 vccio_acodec: LDO_REG4 { 327 regulator-name 327 regulator-name = "vccio_acodec"; 328 regulator-alwa 328 regulator-always-on; 329 regulator-boot 329 regulator-boot-on; 330 regulator-min- 330 regulator-min-microvolt = <3300000>; 331 regulator-max- 331 regulator-max-microvolt = <3300000>; 332 332 333 regulator-stat 333 regulator-state-mem { 334 regula 334 regulator-off-in-suspend; 335 }; 335 }; 336 }; 336 }; 337 337 338 vccio_sd: LDO_REG5 { 338 vccio_sd: LDO_REG5 { 339 regulator-name 339 regulator-name = "vccio_sd"; 340 regulator-alwa 340 regulator-always-on; 341 regulator-boot 341 regulator-boot-on; 342 regulator-min- 342 regulator-min-microvolt = <1800000>; 343 regulator-max- 343 regulator-max-microvolt = <3300000>; 344 344 345 regulator-stat 345 regulator-state-mem { 346 regula 346 regulator-off-in-suspend; 347 }; 347 }; 348 }; 348 }; 349 349 350 vcc3v3_pmu: LDO_REG6 { 350 vcc3v3_pmu: LDO_REG6 { 351 regulator-name 351 regulator-name = "vcc3v3_pmu"; 352 regulator-alwa 352 regulator-always-on; 353 regulator-boot 353 regulator-boot-on; 354 regulator-min- 354 regulator-min-microvolt = <3300000>; 355 regulator-max- 355 regulator-max-microvolt = <3300000>; 356 356 357 regulator-stat 357 regulator-state-mem { 358 regula 358 regulator-on-in-suspend; 359 regula 359 regulator-suspend-microvolt = <3300000>; 360 }; 360 }; 361 }; 361 }; 362 362 363 vcca_1v8: LDO_REG7 { 363 vcca_1v8: LDO_REG7 { 364 regulator-name 364 regulator-name = "vcca_1v8"; 365 regulator-alwa 365 regulator-always-on; 366 regulator-boot 366 regulator-boot-on; 367 regulator-min- 367 regulator-min-microvolt = <1800000>; 368 regulator-max- 368 regulator-max-microvolt = <1800000>; 369 369 370 regulator-stat 370 regulator-state-mem { 371 regula 371 regulator-off-in-suspend; 372 }; 372 }; 373 }; 373 }; 374 374 375 vcca1v8_pmu: LDO_REG8 375 vcca1v8_pmu: LDO_REG8 { 376 regulator-name 376 regulator-name = "vcca1v8_pmu"; 377 regulator-alwa 377 regulator-always-on; 378 regulator-boot 378 regulator-boot-on; 379 regulator-min- 379 regulator-min-microvolt = <1800000>; 380 regulator-max- 380 regulator-max-microvolt = <1800000>; 381 381 382 regulator-stat 382 regulator-state-mem { 383 regula 383 regulator-on-in-suspend; 384 regula 384 regulator-suspend-microvolt = <1800000>; 385 }; 385 }; 386 }; 386 }; 387 387 388 vcca1v8_image: LDO_REG 388 vcca1v8_image: LDO_REG9 { 389 regulator-name 389 regulator-name = "vcca1v8_image"; 390 regulator-min- 390 regulator-min-microvolt = <1800000>; 391 regulator-max- 391 regulator-max-microvolt = <1800000>; 392 392 393 regulator-stat 393 regulator-state-mem { 394 regula 394 regulator-off-in-suspend; 395 }; 395 }; 396 }; 396 }; 397 397 398 vcc_3v3: SWITCH_REG1 { 398 vcc_3v3: SWITCH_REG1 { 399 regulator-name 399 regulator-name = "vcc_3v3"; 400 regulator-alwa 400 regulator-always-on; 401 regulator-boot 401 regulator-boot-on; 402 402 403 regulator-stat 403 regulator-state-mem { 404 regula 404 regulator-off-in-suspend; 405 }; 405 }; 406 }; 406 }; 407 407 408 vcc3v3_sd: SWITCH_REG2 408 vcc3v3_sd: SWITCH_REG2 { 409 regulator-name 409 regulator-name = "vcc3v3_sd"; 410 regulator-alwa 410 regulator-always-on; 411 regulator-boot 411 regulator-boot-on; 412 412 413 regulator-stat 413 regulator-state-mem { 414 regula 414 regulator-off-in-suspend; 415 }; 415 }; 416 }; 416 }; 417 }; 417 }; 418 }; 418 }; 419 419 420 vdd_cpu: regulator@40 { 420 vdd_cpu: regulator@40 { 421 compatible = "silergy,syr827"; 421 compatible = "silergy,syr827"; 422 reg = <0x40>; 422 reg = <0x40>; 423 fcs,suspend-voltage-selector = 423 fcs,suspend-voltage-selector = <1>; 424 regulator-name = "vdd_cpu"; 424 regulator-name = "vdd_cpu"; 425 regulator-always-on; 425 regulator-always-on; 426 regulator-boot-on; 426 regulator-boot-on; 427 regulator-min-microvolt = <830 427 regulator-min-microvolt = <830000>; 428 regulator-max-microvolt = <120 428 regulator-max-microvolt = <1200000>; 429 regulator-ramp-delay = <2300>; 429 regulator-ramp-delay = <2300>; 430 vin-supply = <&vcc3v3_sys>; 430 vin-supply = <&vcc3v3_sys>; 431 431 432 regulator-state-mem { 432 regulator-state-mem { 433 regulator-off-in-suspe 433 regulator-off-in-suspend; 434 }; 434 }; 435 }; 435 }; 436 }; 436 }; 437 437 438 &i2s0_8ch { 438 &i2s0_8ch { 439 status = "okay"; 439 status = "okay"; 440 }; 440 }; 441 441 442 &i2s1_8ch { 442 &i2s1_8ch { 443 pinctrl-names = "default"; 443 pinctrl-names = "default"; 444 pinctrl-0 = <&i2s1m0_sclktx 444 pinctrl-0 = <&i2s1m0_sclktx 445 &i2s1m0_lrcktx 445 &i2s1m0_lrcktx 446 &i2s1m0_sdi0 446 &i2s1m0_sdi0 447 &i2s1m0_sdo0>; 447 &i2s1m0_sdo0>; 448 rockchip,trcm-sync-tx-only; 448 rockchip,trcm-sync-tx-only; 449 status = "okay"; 449 status = "okay"; 450 }; 450 }; 451 451 452 &pcie2x1 { 452 &pcie2x1 { 453 pinctrl-names = "default"; 453 pinctrl-names = "default"; 454 pinctrl-0 = <&pcie20_pins>; 454 pinctrl-0 = <&pcie20_pins>; 455 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTI 455 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 456 vpcie3v3-supply = <&vcc3v3_pcie30>; 456 vpcie3v3-supply = <&vcc3v3_pcie30>; 457 status = "okay"; 457 status = "okay"; 458 }; 458 }; 459 459 460 &pinctrl { 460 &pinctrl { 461 bluetooth { 461 bluetooth { 462 bt_reg_on_h: bt-reg-on-h { 462 bt_reg_on_h: bt-reg-on-h { 463 rockchip,pins = <2 RK_ 463 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 464 }; 464 }; 465 465 466 bt_wake_host_h: bt-wake-host-h 466 bt_wake_host_h: bt-wake-host-h { 467 rockchip,pins = <2 RK_ 467 rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>; 468 }; 468 }; 469 469 470 host_wake_bt_h: host-wake-bt-h 470 host_wake_bt_h: host-wake-bt-h { 471 rockchip,pins = <2 RK_ 471 rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 472 }; 472 }; 473 }; 473 }; 474 474 475 leds { 475 leds { 476 work_led: work-led { 476 work_led: work-led { 477 rockchip,pins = <0 RK_ 477 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 478 }; 478 }; 479 }; 479 }; 480 480 481 pcie { 481 pcie { 482 pcie20_pins: pcie20-pins { 482 pcie20_pins: pcie20-pins { 483 rockchip,pins = 483 rockchip,pins = 484 <1 RK_PB0 4 &p 484 <1 RK_PB0 4 &pcfg_pull_none>, 485 <0 RK_PB6 RK_F 485 <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>, 486 <1 RK_PB1 4 &p 486 <1 RK_PB1 4 &pcfg_pull_none>; 487 }; 487 }; 488 488 489 pcie20_pwren: pcie20-pwren { 489 pcie20_pwren: pcie20-pwren { 490 rockchip,pins = <0 RK_ 490 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 491 }; 491 }; 492 }; 492 }; 493 493 494 pmic { 494 pmic { 495 pmic_int_l: pmic-int-l { 495 pmic_int_l: pmic-int-l { 496 rockchip,pins = <0 RK_ 496 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 497 }; 497 }; 498 }; 498 }; 499 499 500 usb { 500 usb { 501 usb_host_pwren_h: usb-host-pwr 501 usb_host_pwren_h: usb-host-pwren-h { 502 rockchip,pins = <0 RK_ 502 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 503 }; 503 }; 504 504 505 usb_otg_pwren_h: usb-otg-pwren 505 usb_otg_pwren_h: usb-otg-pwren-h { 506 rockchip,pins = <0 RK_ 506 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 507 }; 507 }; 508 }; 508 }; 509 509 510 wifi { 510 wifi { 511 wifi_reg_on_h: wifi-reg-on-h { 511 wifi_reg_on_h: wifi-reg-on-h { 512 rockchip,pins = <0 RK_ 512 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 513 }; 513 }; 514 514 515 wifi_wake_host_h: wifi-wake-ho 515 wifi_wake_host_h: wifi-wake-host-h { 516 rockchip,pins = <0 RK_ 516 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>; 517 }; 517 }; 518 }; 518 }; 519 }; 519 }; 520 520 521 &pmu_io_domains { 521 &pmu_io_domains { 522 pmuio1-supply = <&vcc3v3_pmu>; 522 pmuio1-supply = <&vcc3v3_pmu>; 523 pmuio2-supply = <&vcc3v3_pmu>; 523 pmuio2-supply = <&vcc3v3_pmu>; 524 vccio1-supply = <&vccio_acodec>; 524 vccio1-supply = <&vccio_acodec>; 525 vccio2-supply = <&vcc_1v8>; 525 vccio2-supply = <&vcc_1v8>; 526 vccio3-supply = <&vccio_sd>; 526 vccio3-supply = <&vccio_sd>; 527 vccio4-supply = <&vcc_1v8>; 527 vccio4-supply = <&vcc_1v8>; 528 vccio6-supply = <&vcc_3v3>; 528 vccio6-supply = <&vcc_3v3>; 529 vccio7-supply = <&vcc_3v3>; 529 vccio7-supply = <&vcc_3v3>; 530 status = "okay"; 530 status = "okay"; 531 }; 531 }; 532 532 533 &saradc { 533 &saradc { 534 vref-supply = <&vcca_1v8>; 534 vref-supply = <&vcca_1v8>; 535 status = "okay"; 535 status = "okay"; 536 }; 536 }; 537 537 538 &sdhci { 538 &sdhci { 539 bus-width = <8>; 539 bus-width = <8>; 540 cap-mmc-highspeed; 540 cap-mmc-highspeed; 541 max-frequency = <200000000>; 541 max-frequency = <200000000>; 542 mmc-hs200-1_8v; 542 mmc-hs200-1_8v; 543 non-removable; 543 non-removable; 544 pinctrl-names = "default"; 544 pinctrl-names = "default"; 545 pinctrl-0 = <&emmc_bus8 &emmc_clk &emm 545 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 546 vmmc-supply = <&vcc_3v3>; 546 vmmc-supply = <&vcc_3v3>; 547 vqmmc-supply = <&vcc_1v8>; 547 vqmmc-supply = <&vcc_1v8>; 548 status = "okay"; 548 status = "okay"; 549 }; 549 }; 550 550 551 &sdmmc0 { 551 &sdmmc0 { 552 bus-width = <4>; 552 bus-width = <4>; 553 cap-sd-highspeed; 553 cap-sd-highspeed; 554 disable-wp; 554 disable-wp; 555 pinctrl-names = "default"; 555 pinctrl-names = "default"; 556 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 556 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 557 vmmc-supply = <&vcc3v3_sd>; 557 vmmc-supply = <&vcc3v3_sd>; 558 vqmmc-supply = <&vccio_sd>; 558 vqmmc-supply = <&vccio_sd>; 559 status = "okay"; 559 status = "okay"; 560 }; 560 }; 561 561 562 &sdmmc1 { 562 &sdmmc1 { 563 bus-width = <4>; 563 bus-width = <4>; 564 cap-sd-highspeed; 564 cap-sd-highspeed; 565 cap-sdio-irq; 565 cap-sdio-irq; 566 keep-power-in-suspend; 566 keep-power-in-suspend; 567 mmc-pwrseq = <&sdio_pwrseq>; 567 mmc-pwrseq = <&sdio_pwrseq>; 568 no-mmc; 568 no-mmc; 569 no-sd; 569 no-sd; 570 non-removable; 570 non-removable; 571 pinctrl-names = "default"; 571 pinctrl-names = "default"; 572 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk 572 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk &sdmmc1_cmd>; 573 sd-uhs-sdr104; 573 sd-uhs-sdr104; 574 vmmc-supply = <&vcc_3v3>; 574 vmmc-supply = <&vcc_3v3>; 575 vqmmc-supply = <&vcc_1v8>; 575 vqmmc-supply = <&vcc_1v8>; 576 status = "okay"; 576 status = "okay"; 577 }; 577 }; 578 578 579 &sfc { 579 &sfc { 580 #address-cells = <1>; 580 #address-cells = <1>; 581 #size-cells = <0>; 581 #size-cells = <0>; 582 status = "okay"; 582 status = "okay"; 583 583 584 flash@0 { 584 flash@0 { 585 compatible = "jedec,spi-nor"; 585 compatible = "jedec,spi-nor"; 586 reg = <0>; 586 reg = <0>; 587 spi-max-frequency = <104000000 587 spi-max-frequency = <104000000>; 588 spi-rx-bus-width = <4>; 588 spi-rx-bus-width = <4>; 589 spi-tx-bus-width = <1>; 589 spi-tx-bus-width = <1>; 590 }; 590 }; 591 }; 591 }; 592 592 593 &tsadc { 593 &tsadc { 594 rockchip,hw-tshut-mode = <1>; 594 rockchip,hw-tshut-mode = <1>; 595 rockchip,hw-tshut-polarity = <0>; 595 rockchip,hw-tshut-polarity = <0>; 596 status = "okay"; 596 status = "okay"; 597 }; 597 }; 598 598 599 &uart1 { 599 &uart1 { 600 pinctrl-names = "default"; 600 pinctrl-names = "default"; 601 pinctrl-0 = <&uart1m0_xfer &uart1m0_ct 601 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; 602 uart-has-rtscts; 602 uart-has-rtscts; 603 status = "okay"; 603 status = "okay"; 604 }; 604 }; 605 605 606 &uart2 { 606 &uart2 { 607 status = "okay"; 607 status = "okay"; 608 }; 608 }; 609 609 610 &usb_host0_ehci { 610 &usb_host0_ehci { 611 status = "okay"; 611 status = "okay"; 612 }; 612 }; 613 613 614 &usb_host0_ohci { 614 &usb_host0_ohci { 615 status = "okay"; 615 status = "okay"; 616 }; 616 }; 617 617 618 &usb_host0_xhci { 618 &usb_host0_xhci { 619 dr_mode = "host"; 619 dr_mode = "host"; 620 status = "okay"; 620 status = "okay"; 621 }; 621 }; 622 622 623 &usb_host1_ehci { 623 &usb_host1_ehci { 624 status = "okay"; 624 status = "okay"; 625 }; 625 }; 626 626 627 &usb_host1_ohci { 627 &usb_host1_ohci { 628 status = "okay"; 628 status = "okay"; 629 }; 629 }; 630 630 631 &usb_host1_xhci { 631 &usb_host1_xhci { 632 status = "okay"; 632 status = "okay"; 633 }; 633 }; 634 634 635 &usb2phy0 { 635 &usb2phy0 { 636 status = "okay"; 636 status = "okay"; 637 }; 637 }; 638 638 639 &usb2phy0_host { 639 &usb2phy0_host { 640 phy-supply = <&vcc5v0_usb_host>; 640 phy-supply = <&vcc5v0_usb_host>; 641 status = "okay"; 641 status = "okay"; 642 }; 642 }; 643 643 644 &usb2phy0_otg { 644 &usb2phy0_otg { 645 phy-supply = <&vcc5v0_usb_otg>; 645 phy-supply = <&vcc5v0_usb_otg>; 646 status = "okay"; 646 status = "okay"; 647 }; 647 }; 648 648 649 &usb2phy1 { 649 &usb2phy1 { 650 status = "okay"; 650 status = "okay"; 651 }; 651 }; 652 652 653 &usb2phy1_host { 653 &usb2phy1_host { 654 phy-supply = <&vcc5v0_usb_host>; 654 phy-supply = <&vcc5v0_usb_host>; 655 status = "okay"; 655 status = "okay"; 656 }; 656 }; 657 657 658 &usb2phy1_otg { 658 &usb2phy1_otg { 659 phy-supply = <&vcc5v0_usb_host>; 659 phy-supply = <&vcc5v0_usb_host>; 660 status = "okay"; 660 status = "okay"; 661 }; 661 }; 662 662 663 &vop { 663 &vop { 664 assigned-clocks = <&cru DCLK_VOP0>, <& 664 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 665 assigned-clock-parents = <&pmucru PLL_ 665 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 666 status = "okay"; 666 status = "okay"; 667 }; 667 }; 668 668 669 &vop_mmu { 669 &vop_mmu { 670 status = "okay"; 670 status = "okay"; 671 }; 671 }; 672 672 673 &vp0 { 673 &vp0 { 674 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 674 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 675 reg = <ROCKCHIP_VOP2_EP_HDMI0> 675 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 676 remote-endpoint = <&hdmi_in_vp 676 remote-endpoint = <&hdmi_in_vp0>; 677 }; 677 }; 678 }; 678 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.