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