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