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 = "Pine64 Quartz64 Model A"; !! 10 model = "Pine64 RK3566 Quartz64-A Board"; 12 compatible = "pine64,quartz64-a", "roc 11 compatible = "pine64,quartz64-a", "rockchip,rk3566"; 13 12 14 aliases { 13 aliases { 15 ethernet0 = &gmac1; 14 ethernet0 = &gmac1; 16 mmc0 = &sdmmc0; 15 mmc0 = &sdmmc0; 17 mmc1 = &sdhci; 16 mmc1 = &sdhci; 18 }; 17 }; 19 18 20 chosen: chosen { 19 chosen: chosen { 21 stdout-path = "serial2:1500000 20 stdout-path = "serial2:1500000n8"; 22 }; 21 }; 23 22 24 gmac1_clkin: external-gmac1-clock { 23 gmac1_clkin: external-gmac1-clock { 25 compatible = "fixed-clock"; 24 compatible = "fixed-clock"; 26 clock-frequency = <125000000>; 25 clock-frequency = <125000000>; 27 clock-output-names = "gmac1_cl 26 clock-output-names = "gmac1_clkin"; 28 #clock-cells = <0>; 27 #clock-cells = <0>; 29 }; 28 }; 30 29 31 fan: gpio_fan { 30 fan: gpio_fan { 32 compatible = "gpio-fan"; 31 compatible = "gpio-fan"; 33 gpios = <&gpio0 RK_PD5 GPIO_AC 32 gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; 34 gpio-fan,speed-map = !! 33 gpio-fan,speed-map = <0 0 35 < 0 0>, !! 34 4500 1>; 36 <4500 1>; << 37 pinctrl-names = "default"; << 38 pinctrl-0 = <&fan_en_h>; << 39 #cooling-cells = <2>; 35 #cooling-cells = <2>; 40 }; 36 }; 41 37 42 hdmi-con { << 43 compatible = "hdmi-connector"; << 44 type = "a"; << 45 << 46 port { << 47 hdmi_con_in: endpoint << 48 remote-endpoin << 49 }; << 50 }; << 51 }; << 52 << 53 leds { 38 leds { 54 compatible = "gpio-leds"; 39 compatible = "gpio-leds"; 55 40 56 led-work { 41 led-work { 57 label = "work-led"; 42 label = "work-led"; 58 default-state = "off"; 43 default-state = "off"; 59 gpios = <&gpio0 RK_PD3 44 gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; 60 pinctrl-names = "defau 45 pinctrl-names = "default"; 61 pinctrl-0 = <&work_led 46 pinctrl-0 = <&work_led_enable_h>; 62 retain-state-suspended 47 retain-state-suspended; 63 }; 48 }; 64 49 65 led-diy { 50 led-diy { 66 label = "diy-led"; 51 label = "diy-led"; 67 default-state = "on"; 52 default-state = "on"; 68 gpios = <&gpio0 RK_PD4 53 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 69 linux,default-trigger 54 linux,default-trigger = "heartbeat"; 70 pinctrl-names = "defau 55 pinctrl-names = "default"; 71 pinctrl-0 = <&diy_led_ 56 pinctrl-0 = <&diy_led_enable_h>; 72 retain-state-suspended 57 retain-state-suspended; 73 }; 58 }; 74 }; 59 }; 75 60 76 rk817-sound { 61 rk817-sound { 77 compatible = "simple-audio-car 62 compatible = "simple-audio-card"; 78 simple-audio-card,format = "i2 63 simple-audio-card,format = "i2s"; 79 simple-audio-card,name = "Anal 64 simple-audio-card,name = "Analog RK817"; 80 simple-audio-card,mclk-fs = <2 65 simple-audio-card,mclk-fs = <256>; 81 66 82 simple-audio-card,cpu { 67 simple-audio-card,cpu { 83 sound-dai = <&i2s1_8ch 68 sound-dai = <&i2s1_8ch>; 84 }; 69 }; 85 70 86 simple-audio-card,codec { 71 simple-audio-card,codec { 87 sound-dai = <&rk817>; 72 sound-dai = <&rk817>; 88 }; 73 }; 89 }; 74 }; 90 75 91 sdio_pwrseq: sdio-pwrseq { 76 sdio_pwrseq: sdio-pwrseq { 92 compatible = "mmc-pwrseq-simpl 77 compatible = "mmc-pwrseq-simple"; 93 clocks = <&rk817 1>; 78 clocks = <&rk817 1>; 94 clock-names = "ext_clock"; 79 clock-names = "ext_clock"; 95 pinctrl-names = "default"; 80 pinctrl-names = "default"; 96 pinctrl-0 = <&wifi_enable_h>; 81 pinctrl-0 = <&wifi_enable_h>; 97 post-power-on-delay-ms = <100> 82 post-power-on-delay-ms = <100>; 98 power-off-delay-us = <5000000> 83 power-off-delay-us = <5000000>; 99 reset-gpios = <&gpio2 RK_PC2 G 84 reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>; 100 }; 85 }; 101 86 102 spdif_dit: spdif-dit { 87 spdif_dit: spdif-dit { 103 compatible = "linux,spdif-dit" 88 compatible = "linux,spdif-dit"; 104 #sound-dai-cells = <0>; 89 #sound-dai-cells = <0>; 105 }; 90 }; 106 91 107 spdif_sound: spdif-sound { 92 spdif_sound: spdif-sound { 108 compatible = "simple-audio-car 93 compatible = "simple-audio-card"; 109 simple-audio-card,name = "SPDI 94 simple-audio-card,name = "SPDIF"; 110 95 111 simple-audio-card,cpu { 96 simple-audio-card,cpu { 112 sound-dai = <&spdif>; 97 sound-dai = <&spdif>; 113 }; 98 }; 114 99 115 simple-audio-card,codec { 100 simple-audio-card,codec { 116 sound-dai = <&spdif_di 101 sound-dai = <&spdif_dit>; 117 }; 102 }; 118 }; 103 }; 119 104 120 vcc12v_dcin: vcc12v_dcin { 105 vcc12v_dcin: vcc12v_dcin { 121 compatible = "regulator-fixed" 106 compatible = "regulator-fixed"; 122 regulator-name = "vcc12v_dcin" 107 regulator-name = "vcc12v_dcin"; 123 regulator-always-on; 108 regulator-always-on; 124 regulator-boot-on; 109 regulator-boot-on; 125 regulator-min-microvolt = <120 110 regulator-min-microvolt = <12000000>; 126 regulator-max-microvolt = <120 111 regulator-max-microvolt = <12000000>; 127 }; 112 }; 128 113 129 /* vbus feeds the rk817 usb input. 114 /* vbus feeds the rk817 usb input. 130 * With no battery attached, also feed 115 * With no battery attached, also feeds vcc_bat+ 131 * via ON/OFF_BAT jumper 116 * via ON/OFF_BAT jumper 132 */ 117 */ 133 vbus: vbus { 118 vbus: vbus { 134 compatible = "regulator-fixed" 119 compatible = "regulator-fixed"; 135 regulator-name = "vbus"; 120 regulator-name = "vbus"; 136 regulator-always-on; 121 regulator-always-on; 137 regulator-boot-on; 122 regulator-boot-on; 138 regulator-min-microvolt = <500 123 regulator-min-microvolt = <5000000>; 139 regulator-max-microvolt = <500 124 regulator-max-microvolt = <5000000>; 140 vin-supply = <&vcc12v_dcin>; 125 vin-supply = <&vcc12v_dcin>; 141 }; 126 }; 142 127 143 vcc3v3_pcie_p: vcc3v3-pcie-p-regulator << 144 compatible = "regulator-fixed" << 145 enable-active-high; << 146 gpio = <&gpio0 RK_PC6 GPIO_ACT << 147 pinctrl-names = "default"; << 148 pinctrl-0 = <&pcie_enable_h>; << 149 regulator-name = "vcc3v3_pcie_ << 150 regulator-min-microvolt = <330 << 151 regulator-max-microvolt = <330 << 152 vin-supply = <&vcc_3v3>; << 153 }; << 154 << 155 vcc5v0_usb: vcc5v0_usb { 128 vcc5v0_usb: vcc5v0_usb { 156 compatible = "regulator-fixed" 129 compatible = "regulator-fixed"; 157 regulator-name = "vcc5v0_usb"; 130 regulator-name = "vcc5v0_usb"; 158 regulator-always-on; 131 regulator-always-on; 159 regulator-boot-on; 132 regulator-boot-on; 160 regulator-min-microvolt = <500 133 regulator-min-microvolt = <5000000>; 161 regulator-max-microvolt = <500 134 regulator-max-microvolt = <5000000>; 162 vin-supply = <&vcc12v_dcin>; 135 vin-supply = <&vcc12v_dcin>; 163 }; 136 }; 164 137 165 /* all four ports are controlled by on 138 /* all four ports are controlled by one gpio 166 * the host ports are sourced from vcc 139 * the host ports are sourced from vcc5v0_usb 167 * the otg port is sourced from vcc5v0 140 * the otg port is sourced from vcc5v0_midu 168 */ 141 */ 169 vcc5v0_usb20_host: vcc5v0_usb20_host { 142 vcc5v0_usb20_host: vcc5v0_usb20_host { 170 compatible = "regulator-fixed" 143 compatible = "regulator-fixed"; 171 enable-active-high; 144 enable-active-high; 172 gpio = <&gpio4 RK_PB5 GPIO_ACT 145 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; 173 pinctrl-names = "default"; 146 pinctrl-names = "default"; 174 pinctrl-0 = <&vcc5v0_usb20_hos 147 pinctrl-0 = <&vcc5v0_usb20_host_en>; 175 regulator-name = "vcc5v0_usb20 148 regulator-name = "vcc5v0_usb20_host"; 176 regulator-min-microvolt = <500 149 regulator-min-microvolt = <5000000>; 177 regulator-max-microvolt = <500 150 regulator-max-microvolt = <5000000>; 178 vin-supply = <&vcc5v0_usb>; 151 vin-supply = <&vcc5v0_usb>; 179 }; 152 }; 180 153 181 vcc5v0_usb20_otg: vcc5v0_usb20_otg { 154 vcc5v0_usb20_otg: vcc5v0_usb20_otg { 182 compatible = "regulator-fixed" 155 compatible = "regulator-fixed"; 183 enable-active-high; 156 enable-active-high; 184 gpio = <&gpio4 RK_PB5 GPIO_ACT 157 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; 185 regulator-name = "vcc5v0_usb20 158 regulator-name = "vcc5v0_usb20_otg"; 186 regulator-min-microvolt = <500 159 regulator-min-microvolt = <5000000>; 187 regulator-max-microvolt = <500 160 regulator-max-microvolt = <5000000>; 188 vin-supply = <&dcdc_boost>; 161 vin-supply = <&dcdc_boost>; 189 }; 162 }; 190 163 191 vcc3v3_sd: vcc3v3_sd { 164 vcc3v3_sd: vcc3v3_sd { 192 compatible = "regulator-fixed" 165 compatible = "regulator-fixed"; 193 gpio = <&gpio0 RK_PA5 GPIO_ACT 166 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 194 pinctrl-names = "default"; 167 pinctrl-names = "default"; 195 pinctrl-0 = <&vcc_sd_h>; 168 pinctrl-0 = <&vcc_sd_h>; 196 regulator-boot-on; 169 regulator-boot-on; 197 regulator-name = "vcc3v3_sd"; 170 regulator-name = "vcc3v3_sd"; 198 regulator-min-microvolt = <330 171 regulator-min-microvolt = <3300000>; 199 regulator-max-microvolt = <330 172 regulator-max-microvolt = <3300000>; 200 vin-supply = <&vcc_3v3>; 173 vin-supply = <&vcc_3v3>; 201 }; 174 }; 202 175 203 /* sourced from vbus and vcc_bat+ via 176 /* sourced from vbus and vcc_bat+ via rk817 sw5 */ 204 vcc_sys: vcc_sys { 177 vcc_sys: vcc_sys { 205 compatible = "regulator-fixed" 178 compatible = "regulator-fixed"; 206 regulator-name = "vcc_sys"; 179 regulator-name = "vcc_sys"; 207 regulator-always-on; 180 regulator-always-on; 208 regulator-boot-on; 181 regulator-boot-on; 209 regulator-min-microvolt = <440 182 regulator-min-microvolt = <4400000>; 210 regulator-max-microvolt = <440 183 regulator-max-microvolt = <4400000>; 211 vin-supply = <&vbus>; 184 vin-supply = <&vbus>; 212 }; 185 }; 213 186 214 /* sourced from vcc_sys, sdio module o 187 /* sourced from vcc_sys, sdio module operates internally at 3.3v */ 215 vcc_wl: vcc_wl { 188 vcc_wl: vcc_wl { 216 compatible = "regulator-fixed" 189 compatible = "regulator-fixed"; 217 regulator-name = "vcc_wl"; 190 regulator-name = "vcc_wl"; 218 regulator-always-on; 191 regulator-always-on; 219 regulator-boot-on; 192 regulator-boot-on; 220 regulator-min-microvolt = <330 193 regulator-min-microvolt = <3300000>; 221 regulator-max-microvolt = <330 194 regulator-max-microvolt = <3300000>; 222 vin-supply = <&vcc_sys>; 195 vin-supply = <&vcc_sys>; 223 }; 196 }; 224 }; 197 }; 225 198 226 &combphy1 { 199 &combphy1 { 227 status = "okay"; 200 status = "okay"; 228 }; 201 }; 229 202 230 &combphy2 { << 231 status = "okay"; << 232 }; << 233 << 234 &cpu0 { 203 &cpu0 { 235 cpu-supply = <&vdd_cpu>; 204 cpu-supply = <&vdd_cpu>; 236 }; 205 }; 237 206 238 &cpu1 { 207 &cpu1 { 239 cpu-supply = <&vdd_cpu>; 208 cpu-supply = <&vdd_cpu>; 240 }; 209 }; 241 210 242 &cpu2 { 211 &cpu2 { 243 cpu-supply = <&vdd_cpu>; 212 cpu-supply = <&vdd_cpu>; 244 }; 213 }; 245 214 246 &cpu3 { 215 &cpu3 { 247 cpu-supply = <&vdd_cpu>; 216 cpu-supply = <&vdd_cpu>; 248 }; 217 }; 249 218 250 &cpu_thermal { 219 &cpu_thermal { 251 trips { 220 trips { 252 cpu_hot: cpu_hot { 221 cpu_hot: cpu_hot { 253 temperature = <55000>; 222 temperature = <55000>; 254 hysteresis = <2000>; 223 hysteresis = <2000>; 255 type = "active"; 224 type = "active"; 256 }; 225 }; 257 }; 226 }; 258 227 259 cooling-maps { 228 cooling-maps { 260 map1 { 229 map1 { 261 trip = <&cpu_hot>; 230 trip = <&cpu_hot>; 262 cooling-device = <&fan 231 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 263 }; 232 }; 264 }; 233 }; 265 }; 234 }; 266 235 267 &gmac1 { 236 &gmac1 { 268 assigned-clocks = <&cru SCLK_GMAC1_RX_ 237 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>; 269 assigned-clock-parents = <&cru SCLK_GM 238 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>, <&gmac1_clkin>; 270 clock_in_out = "input"; 239 clock_in_out = "input"; 271 phy-supply = <&vcc_3v3>; 240 phy-supply = <&vcc_3v3>; 272 phy-mode = "rgmii"; 241 phy-mode = "rgmii"; 273 pinctrl-names = "default"; 242 pinctrl-names = "default"; 274 pinctrl-0 = <&gmac1m0_miim 243 pinctrl-0 = <&gmac1m0_miim 275 &gmac1m0_tx_bus2 244 &gmac1m0_tx_bus2 276 &gmac1m0_rx_bus2 245 &gmac1m0_rx_bus2 277 &gmac1m0_rgmii_clk 246 &gmac1m0_rgmii_clk 278 &gmac1m0_clkinout 247 &gmac1m0_clkinout 279 &gmac1m0_rgmii_bus>; 248 &gmac1m0_rgmii_bus>; 280 snps,reset-gpio = <&gpio0 RK_PC3 GPIO_ 249 snps,reset-gpio = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>; 281 snps,reset-active-low; 250 snps,reset-active-low; 282 /* Reset time is 20ms, 100ms for rtl82 251 /* Reset time is 20ms, 100ms for rtl8211f */ 283 snps,reset-delays-us = <0 20000 100000 252 snps,reset-delays-us = <0 20000 100000>; 284 tx_delay = <0x30>; 253 tx_delay = <0x30>; 285 rx_delay = <0x10>; 254 rx_delay = <0x10>; 286 phy-handle = <&rgmii_phy1>; 255 phy-handle = <&rgmii_phy1>; 287 status = "okay"; 256 status = "okay"; 288 }; 257 }; 289 258 290 &gpu { 259 &gpu { 291 mali-supply = <&vdd_gpu>; 260 mali-supply = <&vdd_gpu>; 292 status = "okay"; 261 status = "okay"; 293 }; 262 }; 294 263 295 &hdmi { << 296 avdd-0v9-supply = <&vdda_0v9>; << 297 avdd-1v8-supply = <&vcc_1v8>; << 298 status = "okay"; << 299 }; << 300 << 301 &hdmi_in { << 302 hdmi_in_vp0: endpoint { << 303 remote-endpoint = <&vp0_out_hd << 304 }; << 305 }; << 306 << 307 &hdmi_out { << 308 hdmi_out_con: endpoint { << 309 remote-endpoint = <&hdmi_con_i << 310 }; << 311 }; << 312 << 313 &hdmi_sound { << 314 status = "okay"; << 315 }; << 316 << 317 &i2c0 { 264 &i2c0 { 318 status = "okay"; 265 status = "okay"; 319 266 320 vdd_cpu: regulator@1c { 267 vdd_cpu: regulator@1c { 321 compatible = "tcs,tcs4525"; 268 compatible = "tcs,tcs4525"; 322 reg = <0x1c>; 269 reg = <0x1c>; 323 fcs,suspend-voltage-selector = 270 fcs,suspend-voltage-selector = <1>; 324 regulator-name = "vdd_cpu"; 271 regulator-name = "vdd_cpu"; 325 regulator-min-microvolt = <800 272 regulator-min-microvolt = <800000>; 326 regulator-max-microvolt = <115 273 regulator-max-microvolt = <1150000>; 327 regulator-ramp-delay = <2300>; 274 regulator-ramp-delay = <2300>; 328 regulator-always-on; 275 regulator-always-on; 329 regulator-boot-on; 276 regulator-boot-on; 330 vin-supply = <&vcc_sys>; 277 vin-supply = <&vcc_sys>; 331 278 332 regulator-state-mem { 279 regulator-state-mem { 333 regulator-off-in-suspe 280 regulator-off-in-suspend; 334 }; 281 }; 335 }; 282 }; 336 283 337 rk817: pmic@20 { 284 rk817: pmic@20 { 338 compatible = "rockchip,rk817"; 285 compatible = "rockchip,rk817"; 339 reg = <0x20>; 286 reg = <0x20>; 340 interrupt-parent = <&gpio0>; 287 interrupt-parent = <&gpio0>; 341 interrupts = <RK_PA3 IRQ_TYPE_ 288 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 342 assigned-clocks = <&cru I2S1_M 289 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 343 assigned-clock-parents = <&cru 290 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 344 clock-names = "mclk"; 291 clock-names = "mclk"; 345 clocks = <&cru I2S1_MCLKOUT_TX 292 clocks = <&cru I2S1_MCLKOUT_TX>; 346 clock-output-names = "rk808-cl 293 clock-output-names = "rk808-clkout1", "rk808-clkout2"; 347 #clock-cells = <1>; 294 #clock-cells = <1>; 348 pinctrl-names = "default"; 295 pinctrl-names = "default"; 349 pinctrl-0 = <&pmic_int_l>, <&i 296 pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>; 350 rockchip,system-power-controll 297 rockchip,system-power-controller; 351 #sound-dai-cells = <0>; 298 #sound-dai-cells = <0>; 352 wakeup-source; 299 wakeup-source; 353 300 354 vcc1-supply = <&vcc_sys>; 301 vcc1-supply = <&vcc_sys>; 355 vcc2-supply = <&vcc_sys>; 302 vcc2-supply = <&vcc_sys>; 356 vcc3-supply = <&vcc_sys>; 303 vcc3-supply = <&vcc_sys>; 357 vcc4-supply = <&vcc_sys>; 304 vcc4-supply = <&vcc_sys>; 358 vcc5-supply = <&vcc_sys>; 305 vcc5-supply = <&vcc_sys>; 359 vcc6-supply = <&vcc_sys>; 306 vcc6-supply = <&vcc_sys>; 360 vcc7-supply = <&vcc_sys>; 307 vcc7-supply = <&vcc_sys>; 361 vcc8-supply = <&vcc_sys>; 308 vcc8-supply = <&vcc_sys>; 362 vcc9-supply = <&dcdc_boost>; 309 vcc9-supply = <&dcdc_boost>; 363 310 364 regulators { 311 regulators { 365 vdd_logic: DCDC_REG1 { 312 vdd_logic: DCDC_REG1 { 366 regulator-alwa 313 regulator-always-on; 367 regulator-boot 314 regulator-boot-on; 368 regulator-min- 315 regulator-min-microvolt = <500000>; 369 regulator-max- 316 regulator-max-microvolt = <1350000>; >> 317 regulator-init-microvolt = <900000>; 370 regulator-ramp 318 regulator-ramp-delay = <6001>; 371 regulator-init 319 regulator-initial-mode = <0x2>; 372 regulator-name 320 regulator-name = "vdd_logic"; 373 regulator-stat 321 regulator-state-mem { 374 regula 322 regulator-on-in-suspend; 375 regula 323 regulator-suspend-microvolt = <900000>; 376 }; 324 }; 377 }; 325 }; 378 326 379 vdd_gpu: DCDC_REG2 { 327 vdd_gpu: DCDC_REG2 { 380 regulator-alwa 328 regulator-always-on; 381 regulator-boot 329 regulator-boot-on; 382 regulator-min- 330 regulator-min-microvolt = <500000>; 383 regulator-max- 331 regulator-max-microvolt = <1350000>; >> 332 regulator-init-microvolt = <900000>; 384 regulator-ramp 333 regulator-ramp-delay = <6001>; 385 regulator-init 334 regulator-initial-mode = <0x2>; 386 regulator-name 335 regulator-name = "vdd_gpu"; 387 regula 336 regulator-state-mem { 388 regula 337 regulator-off-in-suspend; 389 }; 338 }; 390 }; 339 }; 391 340 392 vcc_ddr: DCDC_REG3 { 341 vcc_ddr: DCDC_REG3 { 393 regulator-alwa 342 regulator-always-on; 394 regulator-boot 343 regulator-boot-on; 395 regulator-init 344 regulator-initial-mode = <0x2>; 396 regulator-name 345 regulator-name = "vcc_ddr"; 397 regulator-stat 346 regulator-state-mem { 398 regula 347 regulator-on-in-suspend; 399 }; 348 }; 400 }; 349 }; 401 350 402 vcc_3v3: DCDC_REG4 { 351 vcc_3v3: DCDC_REG4 { 403 regulator-alwa 352 regulator-always-on; 404 regulator-boot 353 regulator-boot-on; 405 regulator-min- 354 regulator-min-microvolt = <3300000>; 406 regulator-max- 355 regulator-max-microvolt = <3300000>; 407 regulator-init 356 regulator-initial-mode = <0x2>; 408 regulator-name 357 regulator-name = "vcc_3v3"; 409 regulator-stat 358 regulator-state-mem { 410 regula 359 regulator-off-in-suspend; 411 }; 360 }; 412 }; 361 }; 413 362 414 vcca1v8_pmu: LDO_REG1 363 vcca1v8_pmu: LDO_REG1 { 415 regulator-alwa 364 regulator-always-on; 416 regulator-boot 365 regulator-boot-on; 417 regulator-min- 366 regulator-min-microvolt = <1800000>; 418 regulator-max- 367 regulator-max-microvolt = <1800000>; 419 regulator-name 368 regulator-name = "vcca1v8_pmu"; 420 regulator-stat 369 regulator-state-mem { 421 regula 370 regulator-on-in-suspend; 422 regula 371 regulator-suspend-microvolt = <1800000>; 423 }; 372 }; 424 }; 373 }; 425 374 426 vdda_0v9: LDO_REG2 { 375 vdda_0v9: LDO_REG2 { 427 regulator-alwa 376 regulator-always-on; 428 regulator-boot 377 regulator-boot-on; 429 regulator-min- 378 regulator-min-microvolt = <900000>; 430 regulator-max- 379 regulator-max-microvolt = <900000>; 431 regulator-name 380 regulator-name = "vdda_0v9"; 432 regulator-stat 381 regulator-state-mem { 433 regula 382 regulator-off-in-suspend; 434 }; 383 }; 435 }; 384 }; 436 385 437 vdda0v9_pmu: LDO_REG3 386 vdda0v9_pmu: LDO_REG3 { 438 regulator-alwa 387 regulator-always-on; 439 regulator-boot 388 regulator-boot-on; 440 regulator-min- 389 regulator-min-microvolt = <900000>; 441 regulator-max- 390 regulator-max-microvolt = <900000>; 442 regulator-name 391 regulator-name = "vdda0v9_pmu"; 443 regulator-stat 392 regulator-state-mem { 444 regula 393 regulator-on-in-suspend; 445 regula 394 regulator-suspend-microvolt = <900000>; 446 }; 395 }; 447 }; 396 }; 448 397 449 vccio_acodec: LDO_REG4 398 vccio_acodec: LDO_REG4 { 450 regulator-alwa 399 regulator-always-on; 451 regulator-boot 400 regulator-boot-on; 452 regulator-min- 401 regulator-min-microvolt = <3300000>; 453 regulator-max- 402 regulator-max-microvolt = <3300000>; 454 regulator-name 403 regulator-name = "vccio_acodec"; 455 regulator-stat 404 regulator-state-mem { 456 regula 405 regulator-off-in-suspend; 457 }; 406 }; 458 }; 407 }; 459 408 460 vccio_sd: LDO_REG5 { 409 vccio_sd: LDO_REG5 { 461 regulator-alwa 410 regulator-always-on; 462 regulator-boot 411 regulator-boot-on; 463 regulator-min- 412 regulator-min-microvolt = <1800000>; 464 regulator-max- 413 regulator-max-microvolt = <3300000>; 465 regulator-name 414 regulator-name = "vccio_sd"; 466 regulator-stat 415 regulator-state-mem { 467 regula 416 regulator-off-in-suspend; 468 }; 417 }; 469 }; 418 }; 470 419 471 vcc3v3_pmu: LDO_REG6 { 420 vcc3v3_pmu: LDO_REG6 { 472 regulator-alwa 421 regulator-always-on; 473 regulator-boot 422 regulator-boot-on; 474 regulator-min- 423 regulator-min-microvolt = <3300000>; 475 regulator-max- 424 regulator-max-microvolt = <3300000>; 476 regulator-name 425 regulator-name = "vcc3v3_pmu"; 477 regulator-stat 426 regulator-state-mem { 478 regula 427 regulator-on-in-suspend; 479 regula 428 regulator-suspend-microvolt = <3300000>; 480 }; 429 }; 481 }; 430 }; 482 431 483 vcc_1v8: LDO_REG7 { 432 vcc_1v8: LDO_REG7 { 484 regulator-alwa 433 regulator-always-on; 485 regulator-boot 434 regulator-boot-on; 486 regulator-min- 435 regulator-min-microvolt = <1800000>; 487 regulator-max- 436 regulator-max-microvolt = <1800000>; 488 regulator-name 437 regulator-name = "vcc_1v8"; 489 regulator-stat 438 regulator-state-mem { 490 regula 439 regulator-off-in-suspend; 491 }; 440 }; 492 }; 441 }; 493 442 494 vcc1v8_dvp: LDO_REG8 { 443 vcc1v8_dvp: LDO_REG8 { 495 regulator-alwa 444 regulator-always-on; 496 regulator-boot 445 regulator-boot-on; 497 regulator-min- 446 regulator-min-microvolt = <1800000>; 498 regulator-max- 447 regulator-max-microvolt = <1800000>; 499 regulator-name 448 regulator-name = "vcc1v8_dvp"; 500 regulator-stat 449 regulator-state-mem { 501 regula 450 regulator-off-in-suspend; 502 }; 451 }; 503 }; 452 }; 504 453 505 vcc2v8_dvp: LDO_REG9 { 454 vcc2v8_dvp: LDO_REG9 { 506 regulator-alwa 455 regulator-always-on; 507 regulator-boot 456 regulator-boot-on; 508 regulator-min- 457 regulator-min-microvolt = <2800000>; 509 regulator-max- 458 regulator-max-microvolt = <2800000>; 510 regulator-name 459 regulator-name = "vcc2v8_dvp"; 511 regulator-stat 460 regulator-state-mem { 512 regula 461 regulator-off-in-suspend; 513 }; 462 }; 514 }; 463 }; 515 464 516 dcdc_boost: BOOST { 465 dcdc_boost: BOOST { 517 regulator-alwa 466 regulator-always-on; 518 regulator-boot 467 regulator-boot-on; 519 regulator-min- 468 regulator-min-microvolt = <5000000>; 520 regulator-max- 469 regulator-max-microvolt = <5000000>; 521 regulator-name 470 regulator-name = "boost"; 522 regulator-stat 471 regulator-state-mem { 523 regula 472 regulator-off-in-suspend; 524 }; 473 }; 525 }; 474 }; 526 475 527 otg_switch: OTG_SWITCH 476 otg_switch: OTG_SWITCH { 528 regulator-name 477 regulator-name = "otg_switch"; 529 regulator-stat 478 regulator-state-mem { 530 regula 479 regulator-off-in-suspend; 531 }; 480 }; 532 }; 481 }; 533 }; 482 }; 534 }; 483 }; 535 }; 484 }; 536 485 537 /* i2c3 is exposed on con40 486 /* i2c3 is exposed on con40 538 * pin 3 - i2c3_sda_m0, pullup to vcc_3v3 487 * pin 3 - i2c3_sda_m0, pullup to vcc_3v3 539 * pin 5 - i2c3_scl_m0, pullup to vcc_3v3 488 * pin 5 - i2c3_scl_m0, pullup to vcc_3v3 540 */ 489 */ 541 &i2c3 { 490 &i2c3 { 542 status = "okay"; 491 status = "okay"; 543 }; 492 }; 544 493 545 &i2s0_8ch { << 546 status = "okay"; << 547 }; << 548 << 549 &i2s1_8ch { 494 &i2s1_8ch { 550 pinctrl-names = "default"; 495 pinctrl-names = "default"; 551 pinctrl-0 = <&i2s1m0_sclktx 496 pinctrl-0 = <&i2s1m0_sclktx 552 &i2s1m0_lrcktx 497 &i2s1m0_lrcktx 553 &i2s1m0_sdi0 498 &i2s1m0_sdi0 554 &i2s1m0_sdo0>; 499 &i2s1m0_sdo0>; 555 rockchip,trcm-sync-tx-only; 500 rockchip,trcm-sync-tx-only; 556 status = "okay"; 501 status = "okay"; 557 }; 502 }; 558 503 559 &mdio1 { 504 &mdio1 { 560 rgmii_phy1: ethernet-phy@0 { 505 rgmii_phy1: ethernet-phy@0 { 561 compatible = "ethernet-phy-iee 506 compatible = "ethernet-phy-ieee802.3-c22"; 562 reg = <0>; 507 reg = <0>; 563 }; 508 }; 564 }; 509 }; 565 510 566 &pcie2x1 { << 567 pinctrl-names = "default"; << 568 pinctrl-0 = <&pcie_reset_h>; << 569 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTI << 570 vpcie3v3-supply = <&vcc3v3_pcie_p>; << 571 status = "okay"; << 572 }; << 573 << 574 &pinctrl { 511 &pinctrl { 575 bt { 512 bt { 576 bt_enable_h: bt-enable-h { 513 bt_enable_h: bt-enable-h { 577 rockchip,pins = <2 RK_ 514 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 578 }; 515 }; 579 516 580 bt_host_wake_l: bt-host-wake-l 517 bt_host_wake_l: bt-host-wake-l { 581 rockchip,pins = <2 RK_ 518 rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>; 582 }; 519 }; 583 520 584 bt_wake_l: bt-wake-l { 521 bt_wake_l: bt-wake-l { 585 rockchip,pins = <2 RK_ 522 rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 586 }; 523 }; 587 }; 524 }; 588 525 589 fan { << 590 fan_en_h: fan-en-h { << 591 rockchip,pins = <0 RK_ << 592 }; << 593 }; << 594 << 595 leds { 526 leds { 596 work_led_enable_h: work-led-en 527 work_led_enable_h: work-led-enable-h { 597 rockchip,pins = <0 RK_ 528 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 598 }; 529 }; 599 530 600 diy_led_enable_h: diy-led-enab 531 diy_led_enable_h: diy-led-enable-h { 601 rockchip,pins = <0 RK_ 532 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 602 }; 533 }; 603 }; 534 }; 604 535 605 pcie { << 606 pcie_enable_h: pcie-enable-h { << 607 rockchip,pins = <0 RK_ << 608 }; << 609 << 610 pcie_reset_h: pcie-reset-h { << 611 rockchip,pins = <1 RK_ << 612 }; << 613 }; << 614 << 615 pmic { 536 pmic { 616 pmic_int_l: pmic-int-l { 537 pmic_int_l: pmic-int-l { 617 rockchip,pins = <0 RK_ 538 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 618 }; 539 }; 619 }; 540 }; 620 541 621 usb2 { 542 usb2 { 622 vcc5v0_usb20_host_en: vcc5v0-u 543 vcc5v0_usb20_host_en: vcc5v0-usb20-host-en { 623 rockchip,pins = <4 RK_ 544 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 624 }; 545 }; 625 }; 546 }; 626 547 627 sdio-pwrseq { 548 sdio-pwrseq { 628 wifi_enable_h: wifi-enable-h { 549 wifi_enable_h: wifi-enable-h { 629 rockchip,pins = <2 RK_ 550 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 630 }; 551 }; 631 }; 552 }; 632 553 633 vcc_sd { 554 vcc_sd { 634 vcc_sd_h: vcc-sd-h { 555 vcc_sd_h: vcc-sd-h { 635 rockchip,pins = <0 RK_ 556 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 636 }; 557 }; 637 }; 558 }; 638 }; 559 }; 639 560 640 &pmu_io_domains { 561 &pmu_io_domains { 641 pmuio1-supply = <&vcc3v3_pmu>; 562 pmuio1-supply = <&vcc3v3_pmu>; 642 pmuio2-supply = <&vcc3v3_pmu>; 563 pmuio2-supply = <&vcc3v3_pmu>; 643 vccio1-supply = <&vccio_acodec>; 564 vccio1-supply = <&vccio_acodec>; 644 vccio2-supply = <&vcc_1v8>; 565 vccio2-supply = <&vcc_1v8>; 645 vccio3-supply = <&vccio_sd>; 566 vccio3-supply = <&vccio_sd>; 646 vccio4-supply = <&vcc_1v8>; 567 vccio4-supply = <&vcc_1v8>; 647 vccio5-supply = <&vcc_3v3>; 568 vccio5-supply = <&vcc_3v3>; 648 vccio6-supply = <&vcc1v8_dvp>; 569 vccio6-supply = <&vcc1v8_dvp>; 649 vccio7-supply = <&vcc_3v3>; 570 vccio7-supply = <&vcc_3v3>; 650 status = "okay"; 571 status = "okay"; 651 }; 572 }; 652 573 653 &sdhci { 574 &sdhci { 654 bus-width = <8>; 575 bus-width = <8>; 655 mmc-hs200-1_8v; 576 mmc-hs200-1_8v; 656 non-removable; 577 non-removable; 657 vmmc-supply = <&vcc_3v3>; 578 vmmc-supply = <&vcc_3v3>; 658 vqmmc-supply = <&vcc_1v8>; 579 vqmmc-supply = <&vcc_1v8>; 659 status = "okay"; 580 status = "okay"; 660 }; 581 }; 661 582 662 &sdmmc0 { 583 &sdmmc0 { 663 bus-width = <4>; 584 bus-width = <4>; 664 cap-sd-highspeed; 585 cap-sd-highspeed; 665 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_ 586 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 666 disable-wp; 587 disable-wp; 667 pinctrl-names = "default"; 588 pinctrl-names = "default"; 668 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 589 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 669 sd-uhs-sdr104; << 670 vmmc-supply = <&vcc3v3_sd>; 590 vmmc-supply = <&vcc3v3_sd>; 671 vqmmc-supply = <&vccio_sd>; 591 vqmmc-supply = <&vccio_sd>; 672 status = "okay"; 592 status = "okay"; 673 }; 593 }; 674 594 675 &sdmmc1 { 595 &sdmmc1 { 676 bus-width = <4>; 596 bus-width = <4>; 677 cap-sd-highspeed; 597 cap-sd-highspeed; 678 cap-sdio-irq; 598 cap-sdio-irq; 679 keep-power-in-suspend; 599 keep-power-in-suspend; 680 mmc-pwrseq = <&sdio_pwrseq>; 600 mmc-pwrseq = <&sdio_pwrseq>; 681 non-removable; 601 non-removable; 682 pinctrl-names = "default"; 602 pinctrl-names = "default"; 683 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd 603 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; 684 sd-uhs-sdr104; 604 sd-uhs-sdr104; 685 vmmc-supply = <&vcc_wl>; 605 vmmc-supply = <&vcc_wl>; 686 vqmmc-supply = <&vcc_1v8>; 606 vqmmc-supply = <&vcc_1v8>; 687 status = "okay"; 607 status = "okay"; 688 }; 608 }; 689 609 690 &sfc { << 691 pinctrl-0 = <&fspi_pins>; << 692 pinctrl-names = "default"; << 693 #address-cells = <1>; << 694 #size-cells = <0>; << 695 status = "disabled"; << 696 << 697 flash@0 { << 698 compatible = "jedec,spi-nor"; << 699 reg = <0>; << 700 spi-max-frequency = <24000000> << 701 spi-rx-bus-width = <4>; << 702 spi-tx-bus-width = <1>; << 703 }; << 704 }; << 705 << 706 /* spdif is exposed on con40 pin 18 */ 610 /* spdif is exposed on con40 pin 18 */ 707 &spdif { 611 &spdif { 708 status = "okay"; 612 status = "okay"; 709 }; 613 }; 710 614 711 /* spi1 is exposed on con40 615 /* spi1 is exposed on con40 712 * pin 11 - spi1_mosi_m1 616 * pin 11 - spi1_mosi_m1 713 * pin 13 - spi1_miso_m1 617 * pin 13 - spi1_miso_m1 714 * pin 15 - spi1_clk_m1 618 * pin 15 - spi1_clk_m1 715 * pin 17 - spi1_cs0_m1 619 * pin 17 - spi1_cs0_m1 716 */ 620 */ 717 &spi1 { 621 &spi1 { 718 pinctrl-names = "default"; 622 pinctrl-names = "default"; 719 pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins> 623 pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>; 720 }; 624 }; 721 625 722 &tsadc { 626 &tsadc { 723 /* tshut mode 0:CRU 1:GPIO */ 627 /* tshut mode 0:CRU 1:GPIO */ 724 rockchip,hw-tshut-mode = <1>; 628 rockchip,hw-tshut-mode = <1>; 725 /* tshut polarity 0:LOW 1:HIGH */ 629 /* tshut polarity 0:LOW 1:HIGH */ 726 rockchip,hw-tshut-polarity = <0>; 630 rockchip,hw-tshut-polarity = <0>; 727 status = "okay"; 631 status = "okay"; 728 }; 632 }; 729 633 730 /* uart0 is exposed on con40 634 /* uart0 is exposed on con40 731 * pin 12 - uart0_tx 635 * pin 12 - uart0_tx 732 * pin 14 - uart0_rx 636 * pin 14 - uart0_rx 733 */ 637 */ 734 &uart0 { 638 &uart0 { 735 pinctrl-names = "default"; 639 pinctrl-names = "default"; 736 pinctrl-0 = <&uart0_xfer>; 640 pinctrl-0 = <&uart0_xfer>; 737 status = "okay"; 641 status = "okay"; 738 }; 642 }; 739 643 740 &uart1 { 644 &uart1 { 741 dma-names = "tx", "rx"; << 742 pinctrl-names = "default"; 645 pinctrl-names = "default"; 743 pinctrl-0 = <&uart1m0_xfer &uart1m0_ct !! 646 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; 744 status = "okay"; 647 status = "okay"; 745 uart-has-rtscts; 648 uart-has-rtscts; 746 649 747 bluetooth { 650 bluetooth { 748 compatible = "brcm,bcm43438-bt 651 compatible = "brcm,bcm43438-bt"; 749 clocks = <&rk817 1>; 652 clocks = <&rk817 1>; 750 clock-names = "lpo"; 653 clock-names = "lpo"; 751 host-wakeup-gpios = <&gpio2 RK !! 654 device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; 752 device-wakeup-gpios = <&gpio2 !! 655 host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; 753 shutdown-gpios = <&gpio2 RK_PB 656 shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; 754 pinctrl-names = "default"; 657 pinctrl-names = "default"; 755 pinctrl-0 = <&bt_host_wake_l & 658 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 756 vbat-supply = <&vcc_sys>; 659 vbat-supply = <&vcc_sys>; 757 vddio-supply = <&vcca1v8_pmu>; 660 vddio-supply = <&vcca1v8_pmu>; 758 max-speed = <3000000>; << 759 }; 661 }; 760 }; 662 }; 761 663 762 /* uart2 is exposed on con40 664 /* uart2 is exposed on con40 763 * pin 8 - uart2_tx_m0_debug 665 * pin 8 - uart2_tx_m0_debug 764 * pin 10 - uart2_rx_m0_debug 666 * pin 10 - uart2_rx_m0_debug 765 */ 667 */ 766 &uart2 { 668 &uart2 { 767 status = "okay"; 669 status = "okay"; 768 }; 670 }; 769 671 770 &usb_host0_ehci { 672 &usb_host0_ehci { 771 status = "okay"; 673 status = "okay"; 772 }; 674 }; 773 675 774 &usb_host0_ohci { 676 &usb_host0_ohci { 775 status = "okay"; 677 status = "okay"; 776 }; 678 }; 777 679 778 &usb_host1_ehci { 680 &usb_host1_ehci { 779 status = "okay"; 681 status = "okay"; 780 }; 682 }; 781 683 782 &usb_host1_ohci { 684 &usb_host1_ohci { 783 status = "okay"; 685 status = "okay"; 784 }; 686 }; 785 687 786 &usb_host0_xhci { 688 &usb_host0_xhci { 787 dr_mode = "host"; 689 dr_mode = "host"; 788 status = "okay"; 690 status = "okay"; 789 }; 691 }; 790 692 791 /* usb3 controller is muxed with sata1 */ 693 /* usb3 controller is muxed with sata1 */ 792 &usb_host1_xhci { 694 &usb_host1_xhci { 793 status = "okay"; 695 status = "okay"; 794 }; 696 }; 795 697 796 &usb2phy0 { 698 &usb2phy0 { 797 status = "okay"; 699 status = "okay"; 798 }; 700 }; 799 701 800 &usb2phy0_host { 702 &usb2phy0_host { 801 phy-supply = <&vcc5v0_usb20_host>; 703 phy-supply = <&vcc5v0_usb20_host>; 802 status = "okay"; 704 status = "okay"; 803 }; 705 }; 804 706 805 &usb2phy0_otg { 707 &usb2phy0_otg { 806 phy-supply = <&vcc5v0_usb20_otg>; 708 phy-supply = <&vcc5v0_usb20_otg>; 807 status = "okay"; 709 status = "okay"; 808 }; 710 }; 809 711 810 &usb2phy1 { 712 &usb2phy1 { 811 status = "okay"; 713 status = "okay"; 812 }; 714 }; 813 715 814 &usb2phy1_host { 716 &usb2phy1_host { 815 phy-supply = <&vcc5v0_usb20_host>; 717 phy-supply = <&vcc5v0_usb20_host>; 816 status = "okay"; 718 status = "okay"; 817 }; 719 }; 818 720 819 &usb2phy1_otg { 721 &usb2phy1_otg { 820 phy-supply = <&vcc5v0_usb20_host>; 722 phy-supply = <&vcc5v0_usb20_host>; 821 status = "okay"; 723 status = "okay"; 822 }; << 823 << 824 &vop { << 825 assigned-clocks = <&cru DCLK_VOP0>, <& << 826 assigned-clock-parents = <&pmucru PLL_ << 827 status = "okay"; << 828 }; << 829 << 830 &vop_mmu { << 831 status = "okay"; << 832 }; << 833 << 834 &vp0 { << 835 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E << 836 reg = <ROCKCHIP_VOP2_EP_HDMI0> << 837 remote-endpoint = <&hdmi_in_vp << 838 }; << 839 }; 724 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.