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 Quartz64 Model B"; 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-ramp 280 regulator-ramp-delay = <6001>; 281 281 282 regulator-stat 282 regulator-state-mem { 283 regula 283 regulator-on-in-suspend; 284 regula 284 regulator-suspend-microvolt = <900000>; 285 }; 285 }; 286 }; 286 }; 287 287 288 vdd_gpu: DCDC_REG2 { 288 vdd_gpu: DCDC_REG2 { 289 regulator-name 289 regulator-name = "vdd_gpu"; 290 regulator-alwa 290 regulator-always-on; 291 regulator-boot 291 regulator-boot-on; 292 regulator-min- 292 regulator-min-microvolt = <500000>; 293 regulator-max- 293 regulator-max-microvolt = <1350000>; 294 regulator-ramp 294 regulator-ramp-delay = <6001>; 295 295 296 regulator-stat 296 regulator-state-mem { 297 regula 297 regulator-off-in-suspend; 298 regula 298 regulator-suspend-microvolt = <900000>; 299 }; 299 }; 300 }; 300 }; 301 301 302 vcc_ddr: DCDC_REG3 { 302 vcc_ddr: DCDC_REG3 { 303 regulator-name 303 regulator-name = "vcc_ddr"; 304 regulator-alwa 304 regulator-always-on; 305 regulator-boot 305 regulator-boot-on; 306 regulator-init 306 regulator-initial-mode = <0x2>; 307 regulator-stat 307 regulator-state-mem { 308 regula 308 regulator-on-in-suspend; 309 }; 309 }; 310 }; 310 }; 311 311 312 vdd_npu: DCDC_REG4 { 312 vdd_npu: DCDC_REG4 { 313 regulator-name 313 regulator-name = "vdd_npu"; 314 regulator-min- 314 regulator-min-microvolt = <900000>; 315 regulator-max- 315 regulator-max-microvolt = <1350000>; 316 regulator-init 316 regulator-initial-mode = <0x2>; 317 regulator-stat 317 regulator-state-mem { 318 regula 318 regulator-off-in-suspend; 319 }; 319 }; 320 }; 320 }; 321 321 322 vcc_1v8: DCDC_REG5 { 322 vcc_1v8: DCDC_REG5 { 323 regulator-name 323 regulator-name = "vcc_1v8"; 324 regulator-alwa 324 regulator-always-on; 325 regulator-boot 325 regulator-boot-on; 326 regulator-min- 326 regulator-min-microvolt = <1800000>; 327 regulator-max- 327 regulator-max-microvolt = <1800000>; 328 328 329 regulator-stat 329 regulator-state-mem { 330 regula 330 regulator-on-in-suspend; 331 regula 331 regulator-suspend-microvolt = <1800000>; 332 }; 332 }; 333 }; 333 }; 334 334 335 vdda0v9_image: LDO_REG 335 vdda0v9_image: LDO_REG1 { 336 regulator-name 336 regulator-name = "vdda0v9_image"; 337 regulator-alwa 337 regulator-always-on; 338 regulator-boot 338 regulator-boot-on; 339 regulator-min- 339 regulator-min-microvolt = <900000>; 340 regulator-max- 340 regulator-max-microvolt = <900000>; 341 341 342 regulator-stat 342 regulator-state-mem { 343 regula 343 regulator-on-in-suspend; 344 regula 344 regulator-suspend-microvolt = <900000>; 345 }; 345 }; 346 }; 346 }; 347 347 348 vdda_0v9: LDO_REG2 { 348 vdda_0v9: LDO_REG2 { 349 regulator-name 349 regulator-name = "vdda_0v9"; 350 regulator-alwa 350 regulator-always-on; 351 regulator-boot 351 regulator-boot-on; 352 regulator-min- 352 regulator-min-microvolt = <900000>; 353 regulator-max- 353 regulator-max-microvolt = <900000>; 354 354 355 regulator-stat 355 regulator-state-mem { 356 regula 356 regulator-on-in-suspend; 357 regula 357 regulator-suspend-microvolt = <900000>; 358 }; 358 }; 359 }; 359 }; 360 360 361 vdda0v9_pmu: LDO_REG3 361 vdda0v9_pmu: LDO_REG3 { 362 regulator-name 362 regulator-name = "vdda0v9_pmu"; 363 regulator-alwa 363 regulator-always-on; 364 regulator-boot 364 regulator-boot-on; 365 regulator-min- 365 regulator-min-microvolt = <900000>; 366 regulator-max- 366 regulator-max-microvolt = <900000>; 367 regulator-stat 367 regulator-state-mem { 368 regula 368 regulator-on-in-suspend; 369 regula 369 regulator-suspend-microvolt = <900000>; 370 }; 370 }; 371 }; 371 }; 372 372 373 vccio_acodec: LDO_REG4 373 vccio_acodec: LDO_REG4 { 374 regulator-name 374 regulator-name = "vccio_acodec"; 375 regulator-alwa 375 regulator-always-on; 376 regulator-boot 376 regulator-boot-on; 377 regulator-min- 377 regulator-min-microvolt = <3300000>; 378 regulator-max- 378 regulator-max-microvolt = <3300000>; 379 379 380 regulator-stat 380 regulator-state-mem { 381 regula 381 regulator-on-in-suspend; 382 regula 382 regulator-suspend-microvolt = <3300000>; 383 383 384 }; 384 }; 385 }; 385 }; 386 386 387 vccio_sd: LDO_REG5 { 387 vccio_sd: LDO_REG5 { 388 regulator-name 388 regulator-name = "vccio_sd"; 389 regulator-alwa 389 regulator-always-on; 390 regulator-boot 390 regulator-boot-on; 391 regulator-min- 391 regulator-min-microvolt = <1800000>; 392 regulator-max- 392 regulator-max-microvolt = <3300000>; 393 393 394 regulator-stat 394 regulator-state-mem { 395 regula 395 regulator-on-in-suspend; 396 regula 396 regulator-suspend-microvolt = <3300000>; 397 }; 397 }; 398 }; 398 }; 399 399 400 vcc3v3_pmu: LDO_REG6 { 400 vcc3v3_pmu: LDO_REG6 { 401 regulator-name 401 regulator-name = "vcc3v3_pmu"; 402 regulator-alwa 402 regulator-always-on; 403 regulator-boot 403 regulator-boot-on; 404 regulator-min- 404 regulator-min-microvolt = <3300000>; 405 regulator-max- 405 regulator-max-microvolt = <3300000>; 406 406 407 regulator-stat 407 regulator-state-mem { 408 regula 408 regulator-on-in-suspend; 409 regula 409 regulator-suspend-microvolt = <3300000>; 410 }; 410 }; 411 }; 411 }; 412 412 413 vcca_1v8: LDO_REG7 { 413 vcca_1v8: LDO_REG7 { 414 regulator-name 414 regulator-name = "vcca_1v8"; 415 regulator-alwa 415 regulator-always-on; 416 regulator-boot 416 regulator-boot-on; 417 regulator-min- 417 regulator-min-microvolt = <1800000>; 418 regulator-max- 418 regulator-max-microvolt = <1800000>; 419 419 420 regulator-stat 420 regulator-state-mem { 421 regula 421 regulator-on-in-suspend; 422 regula 422 regulator-suspend-microvolt = <1800000>; 423 }; 423 }; 424 }; 424 }; 425 425 426 vcca1v8_pmu: LDO_REG8 426 vcca1v8_pmu: LDO_REG8 { 427 regulator-name 427 regulator-name = "vcca1v8_pmu"; 428 regulator-alwa 428 regulator-always-on; 429 regulator-boot 429 regulator-boot-on; 430 regulator-min- 430 regulator-min-microvolt = <1800000>; 431 regulator-max- 431 regulator-max-microvolt = <1800000>; 432 432 433 regulator-stat 433 regulator-state-mem { 434 regula 434 regulator-on-in-suspend; 435 regula 435 regulator-suspend-microvolt = <1800000>; 436 }; 436 }; 437 }; 437 }; 438 438 439 vcca1v8_image: LDO_REG 439 vcca1v8_image: LDO_REG9 { 440 regulator-name 440 regulator-name = "vcca1v8_image"; 441 regulator-alwa 441 regulator-always-on; 442 regulator-boot 442 regulator-boot-on; 443 regulator-min- 443 regulator-min-microvolt = <1800000>; 444 regulator-max- 444 regulator-max-microvolt = <1800000>; 445 445 446 regulator-stat 446 regulator-state-mem { 447 regula 447 regulator-on-in-suspend; 448 regula 448 regulator-suspend-microvolt = <1800000>; 449 }; 449 }; 450 }; 450 }; 451 451 452 vcc_3v3: SWITCH_REG1 { 452 vcc_3v3: SWITCH_REG1 { 453 regulator-boot 453 regulator-boot-on; 454 regulator-name 454 regulator-name = "vcc_3v3"; 455 }; 455 }; 456 456 457 vcc3v3_sd: SWITCH_REG2 457 vcc3v3_sd: SWITCH_REG2 { 458 regulator-name 458 regulator-name = "vcc3v3_sd"; 459 }; 459 }; 460 }; 460 }; 461 }; 461 }; 462 }; 462 }; 463 463 464 /* i2c2_m1 exposed on csi port, pulled up to v 464 /* i2c2_m1 exposed on csi port, pulled up to vcc_3v3 */ 465 &i2c2 { 465 &i2c2 { 466 pinctrl-names = "default"; 466 pinctrl-names = "default"; 467 pinctrl-0 = <&i2c2m1_xfer>; 467 pinctrl-0 = <&i2c2m1_xfer>; 468 status = "okay"; 468 status = "okay"; 469 }; 469 }; 470 470 471 /* i2c3_m1 exposed on dsi port, pulled up to v 471 /* i2c3_m1 exposed on dsi port, pulled up to vcc_3v3 */ 472 &i2c3 { 472 &i2c3 { 473 pinctrl-names = "default"; 473 pinctrl-names = "default"; 474 pinctrl-0 = <&i2c3m1_xfer>; 474 pinctrl-0 = <&i2c3m1_xfer>; 475 status = "okay"; 475 status = "okay"; 476 }; 476 }; 477 477 478 /* 478 /* 479 * i2c4_m0 is exposed on PI40, pulled up to vc 479 * i2c4_m0 is exposed on PI40, pulled up to vcc_3v3 480 * pin 27 - i2c4_sda_m0 480 * pin 27 - i2c4_sda_m0 481 * pin 28 - i2c4_scl_m0 481 * pin 28 - i2c4_scl_m0 482 */ 482 */ 483 &i2c4 { 483 &i2c4 { 484 status = "okay"; 484 status = "okay"; 485 }; 485 }; 486 486 487 /* 487 /* 488 * i2c5_m0 is exposed on PI40 488 * i2c5_m0 is exposed on PI40 489 * pin 29 - i2c5_scl_m0 489 * pin 29 - i2c5_scl_m0 490 * pin 31 - i2c5_sda_m0 490 * pin 31 - i2c5_sda_m0 491 */ 491 */ 492 &i2c5 { 492 &i2c5 { 493 status = "disabled"; 493 status = "disabled"; 494 }; 494 }; 495 495 496 &i2s0_8ch { 496 &i2s0_8ch { 497 status = "okay"; 497 status = "okay"; 498 }; 498 }; 499 499 500 &i2s1_8ch { 500 &i2s1_8ch { 501 pinctrl-names = "default"; 501 pinctrl-names = "default"; 502 pinctrl-0 = <&i2s1m0_sclktx 502 pinctrl-0 = <&i2s1m0_sclktx 503 &i2s1m0_lrcktx 503 &i2s1m0_lrcktx 504 &i2s1m0_sdi0 504 &i2s1m0_sdi0 505 &i2s1m0_sdo0>; 505 &i2s1m0_sdo0>; 506 rockchip,trcm-sync-tx-only; 506 rockchip,trcm-sync-tx-only; 507 status = "okay"; 507 status = "okay"; 508 }; 508 }; 509 509 510 &mdio1 { 510 &mdio1 { 511 rgmii_phy1: ethernet-phy@1 { 511 rgmii_phy1: ethernet-phy@1 { 512 compatible = "ethernet-phy-iee 512 compatible = "ethernet-phy-ieee802.3-c22"; 513 reg = <0x1>; 513 reg = <0x1>; 514 }; 514 }; 515 }; 515 }; 516 516 517 &pcie2x1 { 517 &pcie2x1 { 518 pinctrl-names = "default"; 518 pinctrl-names = "default"; 519 pinctrl-0 = <&pcie_reset_h>; 519 pinctrl-0 = <&pcie_reset_h>; 520 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTI 520 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; 521 vpcie3v3-supply = <&vcc3v3_pcie_p>; 521 vpcie3v3-supply = <&vcc3v3_pcie_p>; 522 status = "okay"; 522 status = "okay"; 523 }; 523 }; 524 524 525 &pinctrl { 525 &pinctrl { 526 bt { 526 bt { 527 bt_enable_h: bt-enable-h { 527 bt_enable_h: bt-enable-h { 528 rockchip,pins = <0 RK_ 528 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 529 }; 529 }; 530 530 531 bt_host_wake_l: bt-host-wake-l 531 bt_host_wake_l: bt-host-wake-l { 532 rockchip,pins = <0 RK_ 532 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>; 533 }; 533 }; 534 534 535 bt_wake_l: bt-wake-l { 535 bt_wake_l: bt-wake-l { 536 rockchip,pins = <0 RK_ 536 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 537 }; 537 }; 538 }; 538 }; 539 539 540 leds { 540 leds { 541 user_led_enable_h: user-led-en 541 user_led_enable_h: user-led-enable-h { 542 rockchip,pins = <0 RK_ 542 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 543 }; 543 }; 544 }; 544 }; 545 545 546 pcie { 546 pcie { 547 pcie_enable_h: pcie-enable-h { 547 pcie_enable_h: pcie-enable-h { 548 rockchip,pins = <0 RK_ 548 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 549 }; 549 }; 550 550 551 pcie_reset_h: pcie-reset-h { 551 pcie_reset_h: pcie-reset-h { 552 rockchip,pins = <1 RK_ 552 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 553 }; 553 }; 554 }; 554 }; 555 555 556 pmic { 556 pmic { 557 pmic_int: pmic_int { 557 pmic_int: pmic_int { 558 rockchip,pins = 558 rockchip,pins = 559 <0 RK_PA3 RK_F 559 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 560 }; 560 }; 561 }; 561 }; 562 562 563 sdio-pwrseq { 563 sdio-pwrseq { 564 wifi_enable_h: wifi-enable-h { 564 wifi_enable_h: wifi-enable-h { 565 rockchip,pins = <0 RK_ 565 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 566 }; 566 }; 567 }; 567 }; 568 568 569 usb { 569 usb { 570 vcc5v0_usb30_host_en_h: vcc5v0 570 vcc5v0_usb30_host_en_h: vcc5v0-usb30-host-en_h { 571 rockchip,pins = <0 RK_ 571 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; 572 }; 572 }; 573 573 574 vcc5v0_usb_otg_en_h: vcc5v0-us 574 vcc5v0_usb_otg_en_h: vcc5v0-usb-otg-en_h { 575 rockchip,pins = <0 RK_ 575 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 576 }; 576 }; 577 }; 577 }; 578 }; 578 }; 579 579 580 &pmu_io_domains { 580 &pmu_io_domains { 581 status = "okay"; 581 status = "okay"; 582 pmuio1-supply = <&vcc3v3_pmu>; 582 pmuio1-supply = <&vcc3v3_pmu>; 583 pmuio2-supply = <&vcca1v8_pmu>; 583 pmuio2-supply = <&vcca1v8_pmu>; 584 vccio1-supply = <&vccio_acodec>; 584 vccio1-supply = <&vccio_acodec>; 585 vccio2-supply = <&vcc_1v8>; 585 vccio2-supply = <&vcc_1v8>; 586 vccio3-supply = <&vccio_sd>; 586 vccio3-supply = <&vccio_sd>; 587 vccio4-supply = <&vcca1v8_pmu>; 587 vccio4-supply = <&vcca1v8_pmu>; 588 vccio5-supply = <&vcc_3v3>; 588 vccio5-supply = <&vcc_3v3>; 589 vccio6-supply = <&vcc_3v3>; 589 vccio6-supply = <&vcc_3v3>; 590 vccio7-supply = <&vcc_3v3>; 590 vccio7-supply = <&vcc_3v3>; 591 }; 591 }; 592 592 593 &saradc { 593 &saradc { 594 vref-supply = <&vcca_1v8>; 594 vref-supply = <&vcca_1v8>; 595 status = "okay"; 595 status = "okay"; 596 }; 596 }; 597 597 598 &sdhci { 598 &sdhci { 599 bus-width = <8>; 599 bus-width = <8>; 600 mmc-hs200-1_8v; 600 mmc-hs200-1_8v; 601 non-removable; 601 non-removable; 602 vmmc-supply = <&vcc_3v3>; 602 vmmc-supply = <&vcc_3v3>; 603 vqmmc-supply = <&vcc_1v8>; 603 vqmmc-supply = <&vcc_1v8>; 604 status = "okay"; 604 status = "okay"; 605 }; 605 }; 606 606 607 &sdmmc0 { 607 &sdmmc0 { 608 bus-width = <4>; 608 bus-width = <4>; 609 cap-sd-highspeed; 609 cap-sd-highspeed; 610 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_ 610 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 611 disable-wp; 611 disable-wp; 612 pinctrl-names = "default"; 612 pinctrl-names = "default"; 613 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 613 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 614 sd-uhs-sdr50; 614 sd-uhs-sdr50; 615 vmmc-supply = <&vcc3v3_sd>; 615 vmmc-supply = <&vcc3v3_sd>; 616 vqmmc-supply = <&vccio_sd>; 616 vqmmc-supply = <&vccio_sd>; 617 status = "okay"; 617 status = "okay"; 618 }; 618 }; 619 619 620 &sdmmc1 { 620 &sdmmc1 { 621 bus-width = <4>; 621 bus-width = <4>; 622 cap-sd-highspeed; 622 cap-sd-highspeed; 623 cap-sdio-irq; 623 cap-sdio-irq; 624 keep-power-in-suspend; 624 keep-power-in-suspend; 625 mmc-pwrseq = <&sdio_pwrseq>; 625 mmc-pwrseq = <&sdio_pwrseq>; 626 non-removable; 626 non-removable; 627 pinctrl-names = "default"; 627 pinctrl-names = "default"; 628 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd 628 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; 629 vmmc-supply = <&vcc3v3_sys>; 629 vmmc-supply = <&vcc3v3_sys>; 630 vqmmc-supply = <&vcca1v8_pmu>; 630 vqmmc-supply = <&vcca1v8_pmu>; 631 status = "okay"; 631 status = "okay"; 632 }; 632 }; 633 633 634 &sfc { 634 &sfc { 635 pinctrl-0 = <&fspi_pins>; 635 pinctrl-0 = <&fspi_pins>; 636 pinctrl-names = "default"; 636 pinctrl-names = "default"; 637 #address-cells = <1>; 637 #address-cells = <1>; 638 #size-cells = <0>; 638 #size-cells = <0>; 639 status = "okay"; 639 status = "okay"; 640 640 641 flash@0 { 641 flash@0 { 642 compatible = "jedec,spi-nor"; 642 compatible = "jedec,spi-nor"; 643 reg = <0>; 643 reg = <0>; 644 spi-max-frequency = <24000000> 644 spi-max-frequency = <24000000>; 645 spi-rx-bus-width = <4>; 645 spi-rx-bus-width = <4>; 646 spi-tx-bus-width = <1>; 646 spi-tx-bus-width = <1>; 647 }; 647 }; 648 }; 648 }; 649 649 650 &tsadc { 650 &tsadc { 651 rockchip,hw-tshut-mode = <1>; << 652 rockchip,hw-tshut-polarity = <0>; << 653 status = "okay"; 651 status = "okay"; 654 }; 652 }; 655 653 656 &uart1 { 654 &uart1 { 657 dma-names = "tx", "rx"; 655 dma-names = "tx", "rx"; 658 pinctrl-names = "default"; 656 pinctrl-names = "default"; 659 pinctrl-0 = <&uart1m0_xfer &uart1m0_ct 657 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; 660 status = "okay"; 658 status = "okay"; 661 uart-has-rtscts; 659 uart-has-rtscts; 662 660 663 bluetooth { 661 bluetooth { 664 compatible = "brcm,bcm4345c5"; 662 compatible = "brcm,bcm4345c5"; 665 clocks = <&rk809 1>; 663 clocks = <&rk809 1>; 666 clock-names = "lpo"; 664 clock-names = "lpo"; 667 device-wakeup-gpios = <&gpio0 665 device-wakeup-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 668 host-wakeup-gpios = <&gpio0 RK 666 host-wakeup-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; 669 shutdown-gpios = <&gpio0 RK_PC 667 shutdown-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; 670 pinctrl-names = "default"; 668 pinctrl-names = "default"; 671 pinctrl-0 = <&bt_host_wake_l & 669 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 672 vbat-supply = <&vcc3v3_sys>; 670 vbat-supply = <&vcc3v3_sys>; 673 vddio-supply = <&vcca1v8_pmu>; 671 vddio-supply = <&vcca1v8_pmu>; 674 }; 672 }; 675 }; 673 }; 676 674 677 /* 675 /* 678 * uart2_m0 is exposed on PI40 676 * uart2_m0 is exposed on PI40 679 * pin 8 - uart2_tx_m0 677 * pin 8 - uart2_tx_m0 680 * pin 10 - uart2_rx_m0 678 * pin 10 - uart2_rx_m0 681 */ 679 */ 682 &uart2 { 680 &uart2 { 683 status = "okay"; 681 status = "okay"; 684 }; 682 }; 685 683 686 &usb2phy0_host { 684 &usb2phy0_host { 687 phy-supply = <&vcc5v0_usb30_host>; 685 phy-supply = <&vcc5v0_usb30_host>; 688 status = "okay"; 686 status = "okay"; 689 }; 687 }; 690 688 691 &usb2phy0_otg { 689 &usb2phy0_otg { 692 phy-supply = <&vcc5v0_usb_otg>; 690 phy-supply = <&vcc5v0_usb_otg>; 693 status = "okay"; 691 status = "okay"; 694 }; 692 }; 695 693 696 &usb2phy1_otg { 694 &usb2phy1_otg { 697 phy-supply = <&vcc5v0_usb30_host>; 695 phy-supply = <&vcc5v0_usb30_host>; 698 status = "okay"; 696 status = "okay"; 699 }; 697 }; 700 698 701 &usb2phy0 { 699 &usb2phy0 { 702 status = "okay"; 700 status = "okay"; 703 }; 701 }; 704 702 705 &usb2phy1 { 703 &usb2phy1 { 706 status = "okay"; 704 status = "okay"; 707 }; 705 }; 708 706 709 &usb_host0_xhci { 707 &usb_host0_xhci { 710 status = "okay"; 708 status = "okay"; 711 }; 709 }; 712 710 713 &usb_host1_xhci { 711 &usb_host1_xhci { 714 status = "okay"; 712 status = "okay"; 715 }; 713 }; 716 714 717 &usb_host0_ehci { 715 &usb_host0_ehci { 718 status = "okay"; 716 status = "okay"; 719 }; 717 }; 720 718 721 &usb_host0_ohci { 719 &usb_host0_ohci { 722 status = "okay"; 720 status = "okay"; 723 }; 721 }; 724 722 725 &vop { 723 &vop { 726 assigned-clocks = <&cru DCLK_VOP0>, <& 724 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 727 assigned-clock-parents = <&pmucru PLL_ 725 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 728 status = "okay"; 726 status = "okay"; 729 }; 727 }; 730 728 731 &vop_mmu { 729 &vop_mmu { 732 status = "okay"; 730 status = "okay"; 733 }; 731 }; 734 732 735 &vp0 { 733 &vp0 { 736 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 734 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 737 reg = <ROCKCHIP_VOP2_EP_HDMI0> 735 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 738 remote-endpoint = <&hdmi_in_vp 736 remote-endpoint = <&hdmi_in_vp0>; 739 }; 737 }; 740 }; 738 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.