1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 /dts-v1/; 3 /dts-v1/; 4 4 5 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/usb/pd.h> 9 #include <dt-bindings/usb/pd.h> 10 #include "rk3588s.dtsi" 10 #include "rk3588s.dtsi" 11 11 12 / { 12 / { 13 model = "Xunlong Orange Pi 5"; 13 model = "Xunlong Orange Pi 5"; 14 compatible = "xunlong,orangepi-5", "ro 14 compatible = "xunlong,orangepi-5", "rockchip,rk3588s"; 15 15 16 aliases { 16 aliases { 17 ethernet0 = &gmac1; 17 ethernet0 = &gmac1; 18 mmc0 = &sdmmc; 18 mmc0 = &sdmmc; 19 }; 19 }; 20 20 21 chosen { 21 chosen { 22 stdout-path = "serial2:1500000 22 stdout-path = "serial2:1500000n8"; 23 }; 23 }; 24 24 25 adc-keys { 25 adc-keys { 26 compatible = "adc-keys"; 26 compatible = "adc-keys"; 27 io-channels = <&saradc 1>; 27 io-channels = <&saradc 1>; 28 io-channel-names = "buttons"; 28 io-channel-names = "buttons"; 29 keyup-threshold-microvolt = <1 29 keyup-threshold-microvolt = <1800000>; 30 poll-interval = <100>; 30 poll-interval = <100>; 31 31 32 button-recovery { 32 button-recovery { 33 label = "Recovery"; 33 label = "Recovery"; 34 linux,code = <KEY_VEND 34 linux,code = <KEY_VENDOR>; 35 press-threshold-microv 35 press-threshold-microvolt = <1800>; 36 }; 36 }; 37 }; 37 }; 38 38 39 leds { 39 leds { 40 compatible = "gpio-leds"; 40 compatible = "gpio-leds"; 41 pinctrl-names = "default"; 41 pinctrl-names = "default"; 42 pinctrl-0 = <&leds_gpio>; 42 pinctrl-0 = <&leds_gpio>; 43 43 44 led-1 { 44 led-1 { 45 gpios = <&gpio1 RK_PA2 45 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; 46 label = "status_led"; 46 label = "status_led"; 47 linux,default-trigger 47 linux,default-trigger = "heartbeat"; 48 }; 48 }; 49 }; 49 }; 50 50 51 vbus_typec: vbus-typec-regulator { 51 vbus_typec: vbus-typec-regulator { 52 compatible = "regulator-fixed" 52 compatible = "regulator-fixed"; 53 enable-active-high; 53 enable-active-high; 54 gpio = <&gpio3 RK_PC0 GPIO_ACT 54 gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 55 pinctrl-names = "default"; 55 pinctrl-names = "default"; 56 pinctrl-0 = <&typec5v_pwren>; 56 pinctrl-0 = <&typec5v_pwren>; 57 regulator-name = "vbus_typec"; 57 regulator-name = "vbus_typec"; 58 regulator-min-microvolt = <500 58 regulator-min-microvolt = <5000000>; 59 regulator-max-microvolt = <500 59 regulator-max-microvolt = <5000000>; 60 vin-supply = <&vcc5v0_sys>; 60 vin-supply = <&vcc5v0_sys>; 61 }; 61 }; 62 62 63 vcc5v0_sys: vcc5v0-sys-regulator { 63 vcc5v0_sys: vcc5v0-sys-regulator { 64 compatible = "regulator-fixed" 64 compatible = "regulator-fixed"; 65 regulator-name = "vcc5v0_sys"; 65 regulator-name = "vcc5v0_sys"; 66 regulator-always-on; 66 regulator-always-on; 67 regulator-boot-on; 67 regulator-boot-on; 68 regulator-min-microvolt = <500 68 regulator-min-microvolt = <5000000>; 69 regulator-max-microvolt = <500 69 regulator-max-microvolt = <5000000>; 70 }; 70 }; 71 71 72 vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator 72 vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator { 73 compatible = "regulator-fixed" 73 compatible = "regulator-fixed"; 74 enable-active-low; 74 enable-active-low; 75 gpios = <&gpio4 RK_PB5 GPIO_AC 75 gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>; 76 regulator-name = "vcc_3v3_sd_s 76 regulator-name = "vcc_3v3_sd_s0"; 77 regulator-boot-on; 77 regulator-boot-on; 78 regulator-min-microvolt = <330 78 regulator-min-microvolt = <3300000>; 79 regulator-max-microvolt = <330 79 regulator-max-microvolt = <3300000>; 80 vin-supply = <&vcc_3v3_s3>; 80 vin-supply = <&vcc_3v3_s3>; 81 }; 81 }; 82 82 83 vcc3v3_pcie20: vcc3v3-pcie20-regulator 83 vcc3v3_pcie20: vcc3v3-pcie20-regulator { 84 compatible = "regulator-fixed" 84 compatible = "regulator-fixed"; 85 enable-active-high; 85 enable-active-high; 86 gpios = <&gpio0 RK_PC5 GPIO_AC 86 gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; 87 regulator-name = "vcc3v3_pcie2 87 regulator-name = "vcc3v3_pcie20"; 88 regulator-boot-on; 88 regulator-boot-on; 89 regulator-min-microvolt = <180 89 regulator-min-microvolt = <1800000>; 90 regulator-max-microvolt = <180 90 regulator-max-microvolt = <1800000>; 91 startup-delay-us = <50000>; 91 startup-delay-us = <50000>; 92 vin-supply = <&vcc5v0_sys>; 92 vin-supply = <&vcc5v0_sys>; 93 }; 93 }; 94 }; 94 }; 95 95 96 &combphy0_ps { 96 &combphy0_ps { 97 status = "okay"; 97 status = "okay"; 98 }; 98 }; 99 99 100 &combphy2_psu { 100 &combphy2_psu { 101 status = "okay"; 101 status = "okay"; 102 }; 102 }; 103 103 104 &cpu_b0 { 104 &cpu_b0 { 105 cpu-supply = <&vdd_cpu_big0_s0>; 105 cpu-supply = <&vdd_cpu_big0_s0>; 106 }; 106 }; 107 107 108 &cpu_b1 { 108 &cpu_b1 { 109 cpu-supply = <&vdd_cpu_big0_s0>; 109 cpu-supply = <&vdd_cpu_big0_s0>; 110 }; 110 }; 111 111 112 &cpu_b2 { 112 &cpu_b2 { 113 cpu-supply = <&vdd_cpu_big1_s0>; 113 cpu-supply = <&vdd_cpu_big1_s0>; 114 }; 114 }; 115 115 116 &cpu_b3 { 116 &cpu_b3 { 117 cpu-supply = <&vdd_cpu_big1_s0>; 117 cpu-supply = <&vdd_cpu_big1_s0>; 118 }; 118 }; 119 119 120 &cpu_l0 { 120 &cpu_l0 { 121 cpu-supply = <&vdd_cpu_lit_s0>; 121 cpu-supply = <&vdd_cpu_lit_s0>; 122 }; 122 }; 123 123 124 &cpu_l1 { 124 &cpu_l1 { 125 cpu-supply = <&vdd_cpu_lit_s0>; 125 cpu-supply = <&vdd_cpu_lit_s0>; 126 }; 126 }; 127 127 128 &cpu_l2 { 128 &cpu_l2 { 129 cpu-supply = <&vdd_cpu_lit_s0>; 129 cpu-supply = <&vdd_cpu_lit_s0>; 130 }; 130 }; 131 131 132 &cpu_l3 { 132 &cpu_l3 { 133 cpu-supply = <&vdd_cpu_lit_s0>; 133 cpu-supply = <&vdd_cpu_lit_s0>; 134 }; 134 }; 135 135 136 &gmac1 { 136 &gmac1 { 137 clock_in_out = "output"; 137 clock_in_out = "output"; 138 phy-handle = <&rgmii_phy1>; 138 phy-handle = <&rgmii_phy1>; 139 phy-mode = "rgmii-rxid"; 139 phy-mode = "rgmii-rxid"; 140 pinctrl-0 = <&gmac1_miim 140 pinctrl-0 = <&gmac1_miim 141 &gmac1_tx_bus2 141 &gmac1_tx_bus2 142 &gmac1_rx_bus2 142 &gmac1_rx_bus2 143 &gmac1_rgmii_clk 143 &gmac1_rgmii_clk 144 &gmac1_rgmii_bus>; 144 &gmac1_rgmii_bus>; 145 pinctrl-names = "default"; 145 pinctrl-names = "default"; 146 tx_delay = <0x42>; 146 tx_delay = <0x42>; 147 status = "okay"; 147 status = "okay"; 148 }; 148 }; 149 149 150 &gpu { 150 &gpu { 151 mali-supply = <&vdd_gpu_s0>; 151 mali-supply = <&vdd_gpu_s0>; 152 status = "okay"; 152 status = "okay"; 153 }; 153 }; 154 154 155 &i2c0 { 155 &i2c0 { 156 pinctrl-names = "default"; 156 pinctrl-names = "default"; 157 pinctrl-0 = <&i2c0m2_xfer>; 157 pinctrl-0 = <&i2c0m2_xfer>; 158 status = "okay"; 158 status = "okay"; 159 159 160 vdd_cpu_big0_s0: regulator@42 { 160 vdd_cpu_big0_s0: regulator@42 { 161 compatible = "rockchip,rk8602" 161 compatible = "rockchip,rk8602"; 162 reg = <0x42>; 162 reg = <0x42>; 163 fcs,suspend-voltage-selector = 163 fcs,suspend-voltage-selector = <1>; 164 regulator-name = "vdd_cpu_big0 164 regulator-name = "vdd_cpu_big0_s0"; 165 regulator-always-on; 165 regulator-always-on; 166 regulator-boot-on; 166 regulator-boot-on; 167 regulator-min-microvolt = <550 167 regulator-min-microvolt = <550000>; 168 regulator-max-microvolt = <105 168 regulator-max-microvolt = <1050000>; 169 regulator-ramp-delay = <2300>; 169 regulator-ramp-delay = <2300>; 170 vin-supply = <&vcc5v0_sys>; 170 vin-supply = <&vcc5v0_sys>; 171 171 172 regulator-state-mem { 172 regulator-state-mem { 173 regulator-off-in-suspe 173 regulator-off-in-suspend; 174 }; 174 }; 175 }; 175 }; 176 176 177 vdd_cpu_big1_s0: regulator@43 { 177 vdd_cpu_big1_s0: regulator@43 { 178 compatible = "rockchip,rk8603" 178 compatible = "rockchip,rk8603", "rockchip,rk8602"; 179 reg = <0x43>; 179 reg = <0x43>; 180 fcs,suspend-voltage-selector = 180 fcs,suspend-voltage-selector = <1>; 181 regulator-name = "vdd_cpu_big1 181 regulator-name = "vdd_cpu_big1_s0"; 182 regulator-always-on; 182 regulator-always-on; 183 regulator-boot-on; 183 regulator-boot-on; 184 regulator-min-microvolt = <550 184 regulator-min-microvolt = <550000>; 185 regulator-max-microvolt = <105 185 regulator-max-microvolt = <1050000>; 186 regulator-ramp-delay = <2300>; 186 regulator-ramp-delay = <2300>; 187 vin-supply = <&vcc5v0_sys>; 187 vin-supply = <&vcc5v0_sys>; 188 188 189 regulator-state-mem { 189 regulator-state-mem { 190 regulator-off-in-suspe 190 regulator-off-in-suspend; 191 }; 191 }; 192 }; 192 }; 193 }; 193 }; 194 194 195 &i2c2 { 195 &i2c2 { 196 status = "okay"; 196 status = "okay"; 197 197 198 vdd_npu_s0: regulator@42 { 198 vdd_npu_s0: regulator@42 { 199 compatible = "rockchip,rk8602" 199 compatible = "rockchip,rk8602"; 200 reg = <0x42>; 200 reg = <0x42>; 201 fcs,suspend-voltage-selector = 201 fcs,suspend-voltage-selector = <1>; 202 regulator-name = "vdd_npu_s0"; 202 regulator-name = "vdd_npu_s0"; 203 regulator-always-on; 203 regulator-always-on; 204 regulator-boot-on; 204 regulator-boot-on; 205 regulator-min-microvolt = <550 205 regulator-min-microvolt = <550000>; 206 regulator-max-microvolt = <950 206 regulator-max-microvolt = <950000>; 207 regulator-ramp-delay = <2300>; 207 regulator-ramp-delay = <2300>; 208 vin-supply = <&vcc5v0_sys>; 208 vin-supply = <&vcc5v0_sys>; 209 209 210 regulator-state-mem { 210 regulator-state-mem { 211 regulator-off-in-suspe 211 regulator-off-in-suspend; 212 }; 212 }; 213 }; 213 }; 214 }; 214 }; 215 215 216 &i2c6 { 216 &i2c6 { 217 pinctrl-names = "default"; 217 pinctrl-names = "default"; 218 pinctrl-0 = <&i2c6m3_xfer>; 218 pinctrl-0 = <&i2c6m3_xfer>; 219 status = "okay"; 219 status = "okay"; 220 220 221 usbc0: usb-typec@22 { 221 usbc0: usb-typec@22 { 222 compatible = "fcs,fusb302"; 222 compatible = "fcs,fusb302"; 223 reg = <0x22>; 223 reg = <0x22>; 224 interrupt-parent = <&gpio0>; 224 interrupt-parent = <&gpio0>; 225 interrupts = <RK_PD3 IRQ_TYPE_ 225 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>; 226 pinctrl-names = "default"; 226 pinctrl-names = "default"; 227 pinctrl-0 = <&usbc0_int>; 227 pinctrl-0 = <&usbc0_int>; 228 vbus-supply = <&vbus_typec>; 228 vbus-supply = <&vbus_typec>; 229 status = "okay"; 229 status = "okay"; 230 230 231 usb_con: connector { 231 usb_con: connector { 232 compatible = "usb-c-co 232 compatible = "usb-c-connector"; 233 label = "USB-C"; 233 label = "USB-C"; 234 data-role = "dual"; 234 data-role = "dual"; 235 op-sink-microwatt = <1 235 op-sink-microwatt = <1000000>; 236 power-role = "dual"; 236 power-role = "dual"; 237 sink-pdos = 237 sink-pdos = 238 <PDO_FIXED(500 238 <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; 239 source-pdos = 239 source-pdos = 240 <PDO_FIXED(500 240 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 241 try-power-role = "sour 241 try-power-role = "source"; 242 242 243 ports { 243 ports { 244 #address-cells 244 #address-cells = <1>; 245 #size-cells = 245 #size-cells = <0>; 246 246 247 port@0 { 247 port@0 { 248 reg = 248 reg = <0>; 249 usbc0_ 249 usbc0_hs: endpoint { 250 250 remote-endpoint = <&usb_host0_xhci_drd_sw>; 251 }; 251 }; 252 }; 252 }; 253 253 254 port@1 { 254 port@1 { 255 reg = 255 reg = <1>; 256 usbc0_ 256 usbc0_ss: endpoint { 257 257 remote-endpoint = <&usbdp_phy0_typec_ss>; 258 }; 258 }; 259 }; 259 }; 260 260 261 port@2 { 261 port@2 { 262 reg = 262 reg = <2>; 263 usbc0_ 263 usbc0_sbu: endpoint { 264 264 remote-endpoint = <&usbdp_phy0_typec_sbu>; 265 }; 265 }; 266 }; 266 }; 267 }; 267 }; 268 }; 268 }; 269 }; 269 }; 270 270 271 hym8563: rtc@51 { 271 hym8563: rtc@51 { 272 compatible = "haoyu,hym8563"; 272 compatible = "haoyu,hym8563"; 273 reg = <0x51>; 273 reg = <0x51>; 274 #clock-cells = <0>; 274 #clock-cells = <0>; 275 clock-output-names = "hym8563" 275 clock-output-names = "hym8563"; 276 pinctrl-names = "default"; 276 pinctrl-names = "default"; 277 pinctrl-0 = <&hym8563_int>; 277 pinctrl-0 = <&hym8563_int>; 278 interrupt-parent = <&gpio0>; 278 interrupt-parent = <&gpio0>; 279 interrupts = <RK_PB0 IRQ_TYPE_ 279 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 280 wakeup-source; 280 wakeup-source; 281 }; 281 }; 282 }; 282 }; 283 283 284 &mdio1 { 284 &mdio1 { 285 rgmii_phy1: ethernet-phy@1 { 285 rgmii_phy1: ethernet-phy@1 { 286 compatible = "ethernet-phy-iee 286 compatible = "ethernet-phy-ieee802.3-c22"; 287 reg = <0x1>; 287 reg = <0x1>; 288 reset-assert-us = <20000>; 288 reset-assert-us = <20000>; 289 reset-deassert-us = <100000>; 289 reset-deassert-us = <100000>; 290 reset-gpios = <&gpio3 RK_PB2 G 290 reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>; 291 }; 291 }; 292 }; 292 }; 293 293 294 &pcie2x1l2 { 294 &pcie2x1l2 { 295 reset-gpios = <&gpio3 RK_PD1 GPIO_ACTI 295 reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; 296 vpcie3v3-supply = <&vcc3v3_pcie20>; 296 vpcie3v3-supply = <&vcc3v3_pcie20>; 297 status = "okay"; 297 status = "okay"; 298 }; 298 }; 299 299 300 &pinctrl { 300 &pinctrl { 301 gpio-func { 301 gpio-func { 302 leds_gpio: leds-gpio { 302 leds_gpio: leds-gpio { 303 rockchip,pins = <0 RK_ 303 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 304 }; 304 }; 305 }; 305 }; 306 306 307 hym8563 { 307 hym8563 { 308 hym8563_int: hym8563-int { 308 hym8563_int: hym8563-int { 309 rockchip,pins = <0 RK_ 309 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 310 }; 310 }; 311 }; 311 }; 312 312 313 usb-typec { 313 usb-typec { 314 usbc0_int: usbc0-int { 314 usbc0_int: usbc0-int { 315 rockchip,pins = <0 RK_ 315 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; 316 }; 316 }; 317 317 318 typec5v_pwren: typec5v-pwren { 318 typec5v_pwren: typec5v-pwren { 319 rockchip,pins = <3 RK_ 319 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 320 }; 320 }; 321 }; 321 }; 322 }; 322 }; 323 323 324 &saradc { 324 &saradc { 325 vref-supply = <&avcc_1v8_s0>; 325 vref-supply = <&avcc_1v8_s0>; 326 status = "okay"; 326 status = "okay"; 327 }; 327 }; 328 328 329 &sdmmc { 329 &sdmmc { 330 bus-width = <4>; 330 bus-width = <4>; 331 cap-sd-highspeed; 331 cap-sd-highspeed; 332 disable-wp; 332 disable-wp; 333 max-frequency = <150000000>; 333 max-frequency = <150000000>; 334 no-mmc; 334 no-mmc; 335 no-sdio; 335 no-sdio; 336 sd-uhs-sdr104; 336 sd-uhs-sdr104; 337 vmmc-supply = <&vcc_3v3_sd_s0>; 337 vmmc-supply = <&vcc_3v3_sd_s0>; 338 vqmmc-supply = <&vccio_sd_s0>; 338 vqmmc-supply = <&vccio_sd_s0>; 339 status = "okay"; 339 status = "okay"; 340 }; 340 }; 341 341 342 &sfc { 342 &sfc { 343 pinctrl-names = "default"; 343 pinctrl-names = "default"; 344 pinctrl-0 = <&fspim0_pins>; 344 pinctrl-0 = <&fspim0_pins>; 345 status = "okay"; 345 status = "okay"; 346 346 347 flash@0 { 347 flash@0 { 348 compatible = "jedec,spi-nor"; 348 compatible = "jedec,spi-nor"; 349 reg = <0x0>; 349 reg = <0x0>; 350 spi-max-frequency = <100000000 350 spi-max-frequency = <100000000>; 351 spi-rx-bus-width = <4>; 351 spi-rx-bus-width = <4>; 352 spi-tx-bus-width = <1>; 352 spi-tx-bus-width = <1>; 353 }; 353 }; 354 }; 354 }; 355 355 356 &spi2 { 356 &spi2 { 357 status = "okay"; 357 status = "okay"; 358 assigned-clocks = <&cru CLK_SPI2>; 358 assigned-clocks = <&cru CLK_SPI2>; 359 assigned-clock-rates = <200000000>; 359 assigned-clock-rates = <200000000>; 360 num-cs = <1>; 360 num-cs = <1>; 361 pinctrl-names = "default"; 361 pinctrl-names = "default"; 362 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins> 362 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; 363 363 364 pmic@0 { 364 pmic@0 { 365 compatible = "rockchip,rk806"; 365 compatible = "rockchip,rk806"; 366 reg = <0x0>; 366 reg = <0x0>; 367 interrupt-parent = <&gpio0>; 367 interrupt-parent = <&gpio0>; 368 interrupts = <7 IRQ_TYPE_LEVEL 368 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 369 pinctrl-names = "default"; 369 pinctrl-names = "default"; 370 pinctrl-0 = <&pmic_pins>, <&rk 370 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, 371 <&rk806_dvs2_n 371 <&rk806_dvs2_null>, <&rk806_dvs3_null>; 372 spi-max-frequency = <1000000>; 372 spi-max-frequency = <1000000>; 373 system-power-controller; 373 system-power-controller; 374 374 375 vcc1-supply = <&vcc5v0_sys>; 375 vcc1-supply = <&vcc5v0_sys>; 376 vcc2-supply = <&vcc5v0_sys>; 376 vcc2-supply = <&vcc5v0_sys>; 377 vcc3-supply = <&vcc5v0_sys>; 377 vcc3-supply = <&vcc5v0_sys>; 378 vcc4-supply = <&vcc5v0_sys>; 378 vcc4-supply = <&vcc5v0_sys>; 379 vcc5-supply = <&vcc5v0_sys>; 379 vcc5-supply = <&vcc5v0_sys>; 380 vcc6-supply = <&vcc5v0_sys>; 380 vcc6-supply = <&vcc5v0_sys>; 381 vcc7-supply = <&vcc5v0_sys>; 381 vcc7-supply = <&vcc5v0_sys>; 382 vcc8-supply = <&vcc5v0_sys>; 382 vcc8-supply = <&vcc5v0_sys>; 383 vcc9-supply = <&vcc5v0_sys>; 383 vcc9-supply = <&vcc5v0_sys>; 384 vcc10-supply = <&vcc5v0_sys>; 384 vcc10-supply = <&vcc5v0_sys>; 385 vcc11-supply = <&vcc_2v0_pldo_ 385 vcc11-supply = <&vcc_2v0_pldo_s3>; 386 vcc12-supply = <&vcc5v0_sys>; 386 vcc12-supply = <&vcc5v0_sys>; 387 vcc13-supply = <&vcc_1v1_nldo_ 387 vcc13-supply = <&vcc_1v1_nldo_s3>; 388 vcc14-supply = <&vcc_1v1_nldo_ 388 vcc14-supply = <&vcc_1v1_nldo_s3>; 389 vcca-supply = <&vcc5v0_sys>; 389 vcca-supply = <&vcc5v0_sys>; 390 390 391 gpio-controller; 391 gpio-controller; 392 #gpio-cells = <2>; 392 #gpio-cells = <2>; 393 393 394 rk806_dvs1_null: dvs1-null-pin 394 rk806_dvs1_null: dvs1-null-pins { 395 pins = "gpio_pwrctrl1" 395 pins = "gpio_pwrctrl1"; 396 function = "pin_fun0"; 396 function = "pin_fun0"; 397 }; 397 }; 398 398 399 rk806_dvs2_null: dvs2-null-pin 399 rk806_dvs2_null: dvs2-null-pins { 400 pins = "gpio_pwrctrl2" 400 pins = "gpio_pwrctrl2"; 401 function = "pin_fun0"; 401 function = "pin_fun0"; 402 }; 402 }; 403 403 404 rk806_dvs3_null: dvs3-null-pin 404 rk806_dvs3_null: dvs3-null-pins { 405 pins = "gpio_pwrctrl3" 405 pins = "gpio_pwrctrl3"; 406 function = "pin_fun0"; 406 function = "pin_fun0"; 407 }; 407 }; 408 408 409 regulators { 409 regulators { 410 vdd_gpu_s0: dcdc-reg1 410 vdd_gpu_s0: dcdc-reg1 { 411 regulator-name 411 regulator-name = "vdd_gpu_s0"; 412 regulator-boot 412 regulator-boot-on; 413 regulator-min- 413 regulator-min-microvolt = <550000>; 414 regulator-max- 414 regulator-max-microvolt = <950000>; 415 regulator-ramp 415 regulator-ramp-delay = <12500>; 416 regulator-enab 416 regulator-enable-ramp-delay = <400>; 417 417 418 regulator-stat 418 regulator-state-mem { 419 regula 419 regulator-off-in-suspend; 420 }; 420 }; 421 }; 421 }; 422 422 423 vdd_cpu_lit_s0: dcdc-r 423 vdd_cpu_lit_s0: dcdc-reg2 { 424 regulator-name 424 regulator-name = "vdd_cpu_lit_s0"; 425 regulator-alwa 425 regulator-always-on; 426 regulator-boot 426 regulator-boot-on; 427 regulator-min- 427 regulator-min-microvolt = <550000>; 428 regulator-max- 428 regulator-max-microvolt = <950000>; 429 regulator-ramp 429 regulator-ramp-delay = <12500>; 430 430 431 regulator-stat 431 regulator-state-mem { 432 regula 432 regulator-off-in-suspend; 433 }; 433 }; 434 }; 434 }; 435 435 436 vdd_log_s0: dcdc-reg3 436 vdd_log_s0: dcdc-reg3 { 437 regulator-name 437 regulator-name = "vdd_log_s0"; 438 regulator-alwa 438 regulator-always-on; 439 regulator-boot 439 regulator-boot-on; 440 regulator-min- 440 regulator-min-microvolt = <675000>; 441 regulator-max- 441 regulator-max-microvolt = <750000>; 442 regulator-ramp 442 regulator-ramp-delay = <12500>; 443 443 444 regulator-stat 444 regulator-state-mem { 445 regula 445 regulator-off-in-suspend; 446 regula 446 regulator-suspend-microvolt = <750000>; 447 }; 447 }; 448 }; 448 }; 449 449 450 vdd_vdenc_s0: dcdc-reg 450 vdd_vdenc_s0: dcdc-reg4 { 451 regulator-name 451 regulator-name = "vdd_vdenc_s0"; 452 regulator-alwa 452 regulator-always-on; 453 regulator-boot 453 regulator-boot-on; 454 regulator-min- 454 regulator-min-microvolt = <550000>; 455 regulator-max- 455 regulator-max-microvolt = <950000>; 456 regulator-ramp 456 regulator-ramp-delay = <12500>; 457 457 458 regulator-stat 458 regulator-state-mem { 459 regula 459 regulator-off-in-suspend; 460 }; 460 }; 461 }; 461 }; 462 462 463 vdd_ddr_s0: dcdc-reg5 463 vdd_ddr_s0: dcdc-reg5 { 464 regulator-name 464 regulator-name = "vdd_ddr_s0"; 465 regulator-alwa 465 regulator-always-on; 466 regulator-boot 466 regulator-boot-on; 467 regulator-min- 467 regulator-min-microvolt = <675000>; 468 regulator-max- 468 regulator-max-microvolt = <900000>; 469 regulator-ramp 469 regulator-ramp-delay = <12500>; 470 470 471 regulator-stat 471 regulator-state-mem { 472 regula 472 regulator-off-in-suspend; 473 regula 473 regulator-suspend-microvolt = <850000>; 474 }; 474 }; 475 }; 475 }; 476 476 477 vcc_1v1_nldo_s3: vdd2_ 477 vcc_1v1_nldo_s3: vdd2_ddr_s3: dcdc-reg6 { 478 regulator-name 478 regulator-name = "vdd2_ddr_s3"; 479 regulator-alwa 479 regulator-always-on; 480 regulator-boot 480 regulator-boot-on; 481 regulator-max- 481 regulator-max-microvolt = <1100000>; 482 regulator-min- 482 regulator-min-microvolt = <1100000>; 483 483 484 regulator-stat 484 regulator-state-mem { 485 regula 485 regulator-on-in-suspend; 486 }; 486 }; 487 }; 487 }; 488 488 489 vcc_2v0_pldo_s3: dcdc- 489 vcc_2v0_pldo_s3: dcdc-reg7 { 490 regulator-name 490 regulator-name = "vdd_2v0_pldo_s3"; 491 regulator-alwa 491 regulator-always-on; 492 regulator-boot 492 regulator-boot-on; 493 regulator-min- 493 regulator-min-microvolt = <2000000>; 494 regulator-max- 494 regulator-max-microvolt = <2000000>; 495 regulator-ramp 495 regulator-ramp-delay = <12500>; 496 496 497 regulator-stat 497 regulator-state-mem { 498 regula 498 regulator-on-in-suspend; 499 regula 499 regulator-suspend-microvolt = <2000000>; 500 }; 500 }; 501 }; 501 }; 502 502 503 vcc_3v3_s3: dcdc-reg8 503 vcc_3v3_s3: dcdc-reg8 { 504 regulator-name 504 regulator-name = "vcc_3v3_s3"; 505 regulator-alwa 505 regulator-always-on; 506 regulator-boot 506 regulator-boot-on; 507 regulator-min- 507 regulator-min-microvolt = <3300000>; 508 regulator-max- 508 regulator-max-microvolt = <3300000>; 509 509 510 regulator-stat 510 regulator-state-mem { 511 regula 511 regulator-on-in-suspend; 512 regula 512 regulator-suspend-microvolt = <3300000>; 513 }; 513 }; 514 }; 514 }; 515 515 516 vddq_ddr_s0: dcdc-reg9 516 vddq_ddr_s0: dcdc-reg9 { 517 regulator-name 517 regulator-name = "vddq_ddr_s0"; 518 regulator-alwa 518 regulator-always-on; 519 regulator-boot 519 regulator-boot-on; 520 520 521 regulator-stat 521 regulator-state-mem { 522 regula 522 regulator-off-in-suspend; 523 }; 523 }; 524 }; 524 }; 525 525 526 vcc_1v8_s3: dcdc-reg10 526 vcc_1v8_s3: dcdc-reg10 { 527 regulator-name 527 regulator-name = "vcc_1v8_s3"; 528 regulator-alwa 528 regulator-always-on; 529 regulator-boot 529 regulator-boot-on; 530 regulator-min- 530 regulator-min-microvolt = <1800000>; 531 regulator-max- 531 regulator-max-microvolt = <1800000>; 532 532 533 regulator-stat 533 regulator-state-mem { 534 regula 534 regulator-on-in-suspend; 535 regula 535 regulator-suspend-microvolt = <1800000>; 536 }; 536 }; 537 }; 537 }; 538 538 539 avcc_1v8_s0: pldo-reg1 539 avcc_1v8_s0: pldo-reg1 { 540 regulator-name 540 regulator-name = "avcc_1v8_s0"; 541 regulator-alwa 541 regulator-always-on; 542 regulator-boot 542 regulator-boot-on; 543 regulator-min- 543 regulator-min-microvolt = <1800000>; 544 regulator-max- 544 regulator-max-microvolt = <1800000>; 545 545 546 regulator-stat 546 regulator-state-mem { 547 regula 547 regulator-off-in-suspend; 548 }; 548 }; 549 }; 549 }; 550 550 551 vcc_1v8_s0: pldo-reg2 551 vcc_1v8_s0: pldo-reg2 { 552 regulator-name 552 regulator-name = "vcc_1v8_s0"; 553 regulator-alwa 553 regulator-always-on; 554 regulator-boot 554 regulator-boot-on; 555 regulator-min- 555 regulator-min-microvolt = <1800000>; 556 regulator-max- 556 regulator-max-microvolt = <1800000>; 557 557 558 regulator-stat 558 regulator-state-mem { 559 regula 559 regulator-off-in-suspend; 560 regula 560 regulator-suspend-microvolt = <1800000>; 561 }; 561 }; 562 }; 562 }; 563 563 564 avdd_1v2_s0: pldo-reg3 564 avdd_1v2_s0: pldo-reg3 { 565 regulator-name 565 regulator-name = "avdd_1v2_s0"; 566 regulator-alwa 566 regulator-always-on; 567 regulator-boot 567 regulator-boot-on; 568 regulator-min- 568 regulator-min-microvolt = <1200000>; 569 regulator-max- 569 regulator-max-microvolt = <1200000>; 570 570 571 regulator-stat 571 regulator-state-mem { 572 regula 572 regulator-off-in-suspend; 573 }; 573 }; 574 }; 574 }; 575 575 576 vcc_3v3_s0: pldo-reg4 576 vcc_3v3_s0: pldo-reg4 { 577 regulator-name 577 regulator-name = "vcc_3v3_s0"; 578 regulator-alwa 578 regulator-always-on; 579 regulator-boot 579 regulator-boot-on; 580 regulator-min- 580 regulator-min-microvolt = <3300000>; 581 regulator-max- 581 regulator-max-microvolt = <3300000>; 582 regulator-ramp 582 regulator-ramp-delay = <12500>; 583 583 584 regulator-stat 584 regulator-state-mem { 585 regula 585 regulator-off-in-suspend; 586 }; 586 }; 587 }; 587 }; 588 588 589 vccio_sd_s0: pldo-reg5 589 vccio_sd_s0: pldo-reg5 { 590 regulator-name 590 regulator-name = "vccio_sd_s0"; 591 regulator-alwa 591 regulator-always-on; 592 regulator-boot 592 regulator-boot-on; 593 regulator-min- 593 regulator-min-microvolt = <1800000>; 594 regulator-max- 594 regulator-max-microvolt = <3300000>; 595 regulator-ramp 595 regulator-ramp-delay = <12500>; 596 596 597 regulator-stat 597 regulator-state-mem { 598 regula 598 regulator-off-in-suspend; 599 }; 599 }; 600 }; 600 }; 601 601 602 pldo6_s3: pldo-reg6 { 602 pldo6_s3: pldo-reg6 { 603 regulator-name 603 regulator-name = "pldo6_s3"; 604 regulator-alwa 604 regulator-always-on; 605 regulator-boot 605 regulator-boot-on; 606 regulator-min- 606 regulator-min-microvolt = <1800000>; 607 regulator-max- 607 regulator-max-microvolt = <1800000>; 608 608 609 regulator-stat 609 regulator-state-mem { 610 regula 610 regulator-on-in-suspend; 611 regula 611 regulator-suspend-microvolt = <1800000>; 612 }; 612 }; 613 }; 613 }; 614 614 615 vdd_0v75_s3: nldo-reg1 615 vdd_0v75_s3: nldo-reg1 { 616 regulator-name 616 regulator-name = "vdd_0v75_s3"; 617 regulator-alwa 617 regulator-always-on; 618 regulator-boot 618 regulator-boot-on; 619 regulator-min- 619 regulator-min-microvolt = <750000>; 620 regulator-max- 620 regulator-max-microvolt = <750000>; 621 621 622 regulator-stat 622 regulator-state-mem { 623 regula 623 regulator-on-in-suspend; 624 regula 624 regulator-suspend-microvolt = <750000>; 625 }; 625 }; 626 }; 626 }; 627 627 628 vdd_ddr_pll_s0: nldo-r 628 vdd_ddr_pll_s0: nldo-reg2 { 629 regulator-name 629 regulator-name = "vdd_ddr_pll_s0"; 630 regulator-alwa 630 regulator-always-on; 631 regulator-boot 631 regulator-boot-on; 632 regulator-min- 632 regulator-min-microvolt = <850000>; 633 regulator-max- 633 regulator-max-microvolt = <850000>; 634 634 635 regulator-stat 635 regulator-state-mem { 636 regula 636 regulator-off-in-suspend; 637 regula 637 regulator-suspend-microvolt = <850000>; 638 }; 638 }; 639 }; 639 }; 640 640 641 avdd_0v75_s0: nldo-reg 641 avdd_0v75_s0: nldo-reg3 { 642 regulator-name 642 regulator-name = "avdd_0v75_s0"; 643 regulator-alwa 643 regulator-always-on; 644 regulator-boot 644 regulator-boot-on; 645 regulator-min- 645 regulator-min-microvolt = <750000>; 646 regulator-max- 646 regulator-max-microvolt = <750000>; 647 647 648 regulator-stat 648 regulator-state-mem { 649 regula 649 regulator-off-in-suspend; 650 }; 650 }; 651 }; 651 }; 652 652 653 vdd_0v85_s0: nldo-reg4 653 vdd_0v85_s0: nldo-reg4 { 654 regulator-name 654 regulator-name = "vdd_0v85_s0"; 655 regulator-alwa 655 regulator-always-on; 656 regulator-boot 656 regulator-boot-on; 657 regulator-min- 657 regulator-min-microvolt = <850000>; 658 regulator-max- 658 regulator-max-microvolt = <850000>; 659 659 660 regulator-stat 660 regulator-state-mem { 661 regula 661 regulator-off-in-suspend; 662 }; 662 }; 663 }; 663 }; 664 664 665 vdd_0v75_s0: nldo-reg5 665 vdd_0v75_s0: nldo-reg5 { 666 regulator-name 666 regulator-name = "vdd_0v75_s0"; 667 regulator-alwa 667 regulator-always-on; 668 regulator-boot 668 regulator-boot-on; 669 regulator-min- 669 regulator-min-microvolt = <750000>; 670 regulator-max- 670 regulator-max-microvolt = <750000>; 671 671 672 regulator-stat 672 regulator-state-mem { 673 regula 673 regulator-off-in-suspend; 674 }; 674 }; 675 }; 675 }; 676 }; 676 }; 677 }; 677 }; 678 }; 678 }; 679 679 680 &tsadc { 680 &tsadc { 681 status = "okay"; 681 status = "okay"; 682 }; 682 }; 683 683 684 &u2phy0 { 684 &u2phy0 { 685 status = "okay"; 685 status = "okay"; 686 }; 686 }; 687 687 688 &u2phy0_otg { 688 &u2phy0_otg { 689 status = "okay"; 689 status = "okay"; 690 }; 690 }; 691 691 692 &u2phy2 { 692 &u2phy2 { 693 status = "okay"; 693 status = "okay"; 694 }; 694 }; 695 695 696 &u2phy2_host { 696 &u2phy2_host { 697 status = "okay"; 697 status = "okay"; 698 }; 698 }; 699 699 700 &u2phy3 { 700 &u2phy3 { 701 status = "okay"; 701 status = "okay"; 702 }; 702 }; 703 703 704 &u2phy3_host { 704 &u2phy3_host { 705 status = "okay"; 705 status = "okay"; 706 }; 706 }; 707 707 708 &uart2 { 708 &uart2 { 709 pinctrl-0 = <&uart2m0_xfer>; 709 pinctrl-0 = <&uart2m0_xfer>; 710 status = "okay"; 710 status = "okay"; 711 }; 711 }; 712 712 713 &usbdp_phy0 { 713 &usbdp_phy0 { 714 mode-switch; 714 mode-switch; 715 orientation-switch; 715 orientation-switch; 716 sbu1-dc-gpios = <&gpio4 RK_PA5 GPIO_AC 716 sbu1-dc-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; 717 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_AC 717 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; 718 status = "okay"; 718 status = "okay"; 719 719 720 port { 720 port { 721 #address-cells = <1>; 721 #address-cells = <1>; 722 #size-cells = <0>; 722 #size-cells = <0>; 723 723 724 usbdp_phy0_typec_ss: endpoint@ 724 usbdp_phy0_typec_ss: endpoint@0 { 725 reg = <0>; 725 reg = <0>; 726 remote-endpoint = <&us 726 remote-endpoint = <&usbc0_ss>; 727 }; 727 }; 728 728 729 usbdp_phy0_typec_sbu: endpoint 729 usbdp_phy0_typec_sbu: endpoint@1 { 730 reg = <1>; 730 reg = <1>; 731 remote-endpoint = <&us 731 remote-endpoint = <&usbc0_sbu>; 732 }; 732 }; 733 }; 733 }; 734 }; 734 }; 735 735 736 &usb_host0_ehci { 736 &usb_host0_ehci { 737 status = "okay"; 737 status = "okay"; 738 }; 738 }; 739 739 740 &usb_host0_ohci { 740 &usb_host0_ohci { 741 status = "okay"; 741 status = "okay"; 742 }; 742 }; 743 743 744 &usb_host0_xhci { 744 &usb_host0_xhci { 745 dr_mode = "otg"; 745 dr_mode = "otg"; 746 usb-role-switch; 746 usb-role-switch; 747 status = "okay"; 747 status = "okay"; 748 748 749 port { 749 port { 750 usb_host0_xhci_drd_sw: endpoin 750 usb_host0_xhci_drd_sw: endpoint { 751 remote-endpoint = <&us 751 remote-endpoint = <&usbc0_hs>; 752 }; 752 }; 753 }; 753 }; 754 }; 754 }; 755 755 756 &usb_host1_ehci { 756 &usb_host1_ehci { 757 status = "okay"; 757 status = "okay"; 758 }; 758 }; 759 759 760 &usb_host1_ohci { 760 &usb_host1_ohci { 761 status = "okay"; 761 status = "okay"; 762 }; 762 }; 763 763 764 &usb_host2_xhci { 764 &usb_host2_xhci { 765 status = "okay"; 765 status = "okay"; 766 }; 766 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.