1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /dts-v1/; 2 /dts-v1/; 3 #include <dt-bindings/pwm/pwm.h> 3 #include <dt-bindings/pwm/pwm.h> 4 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/interrupt-controller/irq << 6 #include "rk3399.dtsi" 5 #include "rk3399.dtsi" >> 6 #include "rk3399-opp.dtsi" 7 7 8 / { 8 / { 9 model = "Hugsun X99 TV BOX"; 9 model = "Hugsun X99 TV BOX"; 10 compatible = "hugsun,x99", "rockchip,r 10 compatible = "hugsun,x99", "rockchip,rk3399"; 11 11 12 aliases { 12 aliases { 13 ethernet0 = &gmac; << 14 mmc0 = &sdio0; 13 mmc0 = &sdio0; 15 mmc1 = &sdmmc; 14 mmc1 = &sdmmc; 16 mmc2 = &sdhci; 15 mmc2 = &sdhci; 17 }; 16 }; 18 17 19 chosen { 18 chosen { 20 stdout-path = "serial2:1500000 19 stdout-path = "serial2:1500000n8"; 21 }; 20 }; 22 21 23 clkin_gmac: external-gmac-clock { 22 clkin_gmac: external-gmac-clock { 24 compatible = "fixed-clock"; 23 compatible = "fixed-clock"; 25 clock-frequency = <125000000>; 24 clock-frequency = <125000000>; 26 clock-output-names = "clkin_gm 25 clock-output-names = "clkin_gmac"; 27 #clock-cells = <0>; 26 #clock-cells = <0>; 28 }; 27 }; 29 28 30 dc_5v: dc-5v { 29 dc_5v: dc-5v { 31 compatible = "regulator-fixed" 30 compatible = "regulator-fixed"; 32 regulator-name = "dc_5v"; 31 regulator-name = "dc_5v"; 33 regulator-always-on; 32 regulator-always-on; 34 regulator-boot-on; 33 regulator-boot-on; 35 regulator-min-microvolt = <500 34 regulator-min-microvolt = <5000000>; 36 regulator-max-microvolt = <500 35 regulator-max-microvolt = <5000000>; 37 }; 36 }; 38 37 39 ir-receiver { 38 ir-receiver { 40 compatible = "gpio-ir-receiver 39 compatible = "gpio-ir-receiver"; 41 gpios = <&gpio0 RK_PA6 GPIO_AC 40 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 42 pinctrl-names = "default"; 41 pinctrl-names = "default"; 43 pinctrl-0 = <&ir_rx>; 42 pinctrl-0 = <&ir_rx>; 44 }; 43 }; 45 44 46 leds { 45 leds { 47 compatible = "gpio-leds"; 46 compatible = "gpio-leds"; 48 pinctrl-names = "default"; 47 pinctrl-names = "default"; 49 pinctrl-0 = <&power_led_pin>; 48 pinctrl-0 = <&power_led_pin>; 50 49 51 power_led: led-0 { 50 power_led: led-0 { 52 label = "blue:power"; 51 label = "blue:power"; 53 gpios = <&gpio4 RK_PC2 52 gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; 54 default-state = "on"; 53 default-state = "on"; 55 linux,default-trigger 54 linux,default-trigger = "default-on"; 56 }; 55 }; 57 }; 56 }; 58 57 59 vcc_sys: vcc-sys { 58 vcc_sys: vcc-sys { 60 compatible = "regulator-fixed" 59 compatible = "regulator-fixed"; 61 regulator-name = "vcc_sys"; 60 regulator-name = "vcc_sys"; 62 regulator-min-microvolt = <500 61 regulator-min-microvolt = <5000000>; 63 regulator-max-microvolt = <500 62 regulator-max-microvolt = <5000000>; 64 regulator-always-on; 63 regulator-always-on; 65 vin-supply = <&dc_5v>; 64 vin-supply = <&dc_5v>; 66 }; 65 }; 67 66 68 vcc_phy: vcc-phy-regulator { 67 vcc_phy: vcc-phy-regulator { 69 compatible = "regulator-fixed" 68 compatible = "regulator-fixed"; 70 regulator-name = "vcc_phy"; 69 regulator-name = "vcc_phy"; 71 regulator-always-on; 70 regulator-always-on; 72 regulator-boot-on; 71 regulator-boot-on; 73 }; 72 }; 74 73 75 vcc1v8_s0: vcc1v8-s0 { 74 vcc1v8_s0: vcc1v8-s0 { 76 compatible = "regulator-fixed" 75 compatible = "regulator-fixed"; 77 regulator-name = "vcc1v8_s0"; 76 regulator-name = "vcc1v8_s0"; 78 regulator-min-microvolt = <180 77 regulator-min-microvolt = <1800000>; 79 regulator-max-microvolt = <180 78 regulator-max-microvolt = <1800000>; 80 regulator-always-on; 79 regulator-always-on; 81 }; 80 }; 82 81 83 vcc3v3_sys: vcc3v3-sys { 82 vcc3v3_sys: vcc3v3-sys { 84 compatible = "regulator-fixed" 83 compatible = "regulator-fixed"; 85 regulator-name = "vcc3v3_sys"; 84 regulator-name = "vcc3v3_sys"; 86 regulator-min-microvolt = <330 85 regulator-min-microvolt = <3300000>; 87 regulator-max-microvolt = <330 86 regulator-max-microvolt = <3300000>; 88 regulator-always-on; 87 regulator-always-on; 89 vin-supply = <&vcc_sys>; 88 vin-supply = <&vcc_sys>; 90 }; 89 }; 91 90 92 vcc5v0_host: vcc5v0-host-regulator { 91 vcc5v0_host: vcc5v0-host-regulator { 93 compatible = "regulator-fixed" 92 compatible = "regulator-fixed"; 94 enable-active-high; 93 enable-active-high; 95 gpio = <&gpio4 RK_PD2 GPIO_ACT 94 gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 96 pinctrl-names = "default"; 95 pinctrl-names = "default"; 97 pinctrl-0 = <&host_vbus_drv>; 96 pinctrl-0 = <&host_vbus_drv>; 98 regulator-name = "vcc5v0_host" 97 regulator-name = "vcc5v0_host"; 99 regulator-always-on; 98 regulator-always-on; 100 }; 99 }; 101 100 102 vcc5v0_typec: vcc5v0-typec-regulator { 101 vcc5v0_typec: vcc5v0-typec-regulator { 103 compatible = "regulator-fixed" 102 compatible = "regulator-fixed"; 104 enable-active-high; 103 enable-active-high; 105 gpio = <&gpio1 RK_PA3 GPIO_ACT 104 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 106 pinctrl-names = "default"; 105 pinctrl-names = "default"; 107 pinctrl-0 = <&vcc5v0_typec_en> 106 pinctrl-0 = <&vcc5v0_typec_en>; 108 regulator-name = "vcc5v0_typec 107 regulator-name = "vcc5v0_typec"; 109 regulator-always-on; 108 regulator-always-on; 110 vin-supply = <&vcc5v0_usb>; 109 vin-supply = <&vcc5v0_usb>; 111 }; 110 }; 112 111 113 vcc5v0_usb: vcc5v0-usb { 112 vcc5v0_usb: vcc5v0-usb { 114 compatible = "regulator-fixed" 113 compatible = "regulator-fixed"; 115 regulator-name = "vcc5v0_usb"; 114 regulator-name = "vcc5v0_usb"; 116 regulator-always-on; 115 regulator-always-on; 117 regulator-boot-on; 116 regulator-boot-on; 118 regulator-min-microvolt = <500 117 regulator-min-microvolt = <5000000>; 119 regulator-max-microvolt = <500 118 regulator-max-microvolt = <5000000>; 120 vin-supply = <&dc_5v>; 119 vin-supply = <&dc_5v>; 121 }; 120 }; 122 121 123 vdd_log: vdd-log { 122 vdd_log: vdd-log { 124 compatible = "pwm-regulator"; 123 compatible = "pwm-regulator"; 125 pwms = <&pwm2 0 25000 1>; 124 pwms = <&pwm2 0 25000 1>; 126 pwm-supply = <&vcc_sys>; 125 pwm-supply = <&vcc_sys>; 127 regulator-name = "vdd_log"; 126 regulator-name = "vdd_log"; 128 regulator-min-microvolt = <800 127 regulator-min-microvolt = <800000>; 129 regulator-max-microvolt = <140 128 regulator-max-microvolt = <1400000>; 130 regulator-always-on; 129 regulator-always-on; 131 regulator-boot-on; 130 regulator-boot-on; 132 }; 131 }; 133 132 134 sdio_pwrseq: sdio-pwrseq { 133 sdio_pwrseq: sdio-pwrseq { 135 compatible = "mmc-pwrseq-simpl 134 compatible = "mmc-pwrseq-simple"; 136 clocks = <&rk808 1>; 135 clocks = <&rk808 1>; 137 clock-names = "ext_clock"; 136 clock-names = "ext_clock"; 138 pinctrl-names = "default"; 137 pinctrl-names = "default"; 139 pinctrl-0 = <&wifi_reg_on_h>; 138 pinctrl-0 = <&wifi_reg_on_h>; 140 reset-gpios = <&gpio0 RK_PB2 G 139 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 141 }; 140 }; 142 141 143 }; 142 }; 144 143 145 &cpu_l0 { 144 &cpu_l0 { 146 cpu-supply = <&vdd_cpu_l>; 145 cpu-supply = <&vdd_cpu_l>; 147 }; 146 }; 148 147 149 &cpu_l1 { 148 &cpu_l1 { 150 cpu-supply = <&vdd_cpu_l>; 149 cpu-supply = <&vdd_cpu_l>; 151 }; 150 }; 152 151 153 &cpu_l2 { 152 &cpu_l2 { 154 cpu-supply = <&vdd_cpu_l>; 153 cpu-supply = <&vdd_cpu_l>; 155 }; 154 }; 156 155 157 &cpu_l3 { 156 &cpu_l3 { 158 cpu-supply = <&vdd_cpu_l>; 157 cpu-supply = <&vdd_cpu_l>; 159 }; 158 }; 160 159 161 &cpu_b0 { 160 &cpu_b0 { 162 cpu-supply = <&vdd_cpu_b>; 161 cpu-supply = <&vdd_cpu_b>; 163 }; 162 }; 164 163 165 &cpu_b1 { 164 &cpu_b1 { 166 cpu-supply = <&vdd_cpu_b>; 165 cpu-supply = <&vdd_cpu_b>; 167 }; 166 }; 168 167 169 &emmc_phy { 168 &emmc_phy { 170 status = "okay"; 169 status = "okay"; 171 }; 170 }; 172 171 173 &gmac { 172 &gmac { 174 assigned-clocks = <&cru SCLK_RMII_SRC> 173 assigned-clocks = <&cru SCLK_RMII_SRC>; 175 assigned-clock-parents = <&clkin_gmac> 174 assigned-clock-parents = <&clkin_gmac>; 176 clock_in_out = "input"; 175 clock_in_out = "input"; 177 phy-supply = <&vcc_phy>; 176 phy-supply = <&vcc_phy>; 178 phy-mode = "rgmii"; 177 phy-mode = "rgmii"; 179 pinctrl-names = "default"; 178 pinctrl-names = "default"; 180 pinctrl-0 = <&rgmii_pins>; 179 pinctrl-0 = <&rgmii_pins>; 181 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ 180 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 182 snps,reset-active-low; 181 snps,reset-active-low; 183 snps,reset-delays-us = <0 10000 50000> 182 snps,reset-delays-us = <0 10000 50000>; 184 tx_delay = <0x28>; 183 tx_delay = <0x28>; 185 rx_delay = <0x11>; 184 rx_delay = <0x11>; 186 status = "okay"; 185 status = "okay"; 187 }; 186 }; 188 187 189 &gpu { 188 &gpu { 190 status = "okay"; 189 status = "okay"; 191 mali-supply = <&vdd_gpu>; 190 mali-supply = <&vdd_gpu>; 192 }; 191 }; 193 192 194 &hdmi { 193 &hdmi { 195 ddc-i2c-bus = <&i2c3>; 194 ddc-i2c-bus = <&i2c3>; 196 pinctrl-names = "default"; 195 pinctrl-names = "default"; 197 pinctrl-0 = <&hdmi_cec>; 196 pinctrl-0 = <&hdmi_cec>; 198 status = "okay"; 197 status = "okay"; 199 }; 198 }; 200 199 201 &hdmi_sound { 200 &hdmi_sound { 202 status = "okay"; 201 status = "okay"; 203 }; 202 }; 204 203 205 &i2c0 { 204 &i2c0 { 206 status = "okay"; 205 status = "okay"; 207 i2c-scl-rising-time-ns = <180>; 206 i2c-scl-rising-time-ns = <180>; 208 i2c-scl-falling-time-ns = <30>; 207 i2c-scl-falling-time-ns = <30>; 209 clock-frequency = <400000>; 208 clock-frequency = <400000>; 210 209 211 vdd_cpu_b: syr827@40 { 210 vdd_cpu_b: syr827@40 { 212 compatible = "silergy,syr827"; 211 compatible = "silergy,syr827"; 213 reg = <0x40>; 212 reg = <0x40>; 214 regulator-compatible = "fan535 213 regulator-compatible = "fan53555-reg"; 215 pinctrl-0 = <&vsel1_pin>; 214 pinctrl-0 = <&vsel1_pin>; 216 regulator-name = "vdd_cpu_b"; 215 regulator-name = "vdd_cpu_b"; 217 regulator-min-microvolt = <712 216 regulator-min-microvolt = <712500>; 218 regulator-max-microvolt = <150 217 regulator-max-microvolt = <1500000>; 219 regulator-ramp-delay = <1000>; 218 regulator-ramp-delay = <1000>; 220 fcs,suspend-voltage-selector = 219 fcs,suspend-voltage-selector = <1>; 221 regulator-always-on; 220 regulator-always-on; 222 regulator-boot-on; 221 regulator-boot-on; 223 vin-supply = <&vcc_sys>; 222 vin-supply = <&vcc_sys>; 224 regulator-state-mem { 223 regulator-state-mem { 225 regulator-off-in-suspe 224 regulator-off-in-suspend; 226 }; 225 }; 227 }; 226 }; 228 227 229 vdd_gpu: syr828@41 { 228 vdd_gpu: syr828@41 { 230 compatible = "silergy,syr828"; 229 compatible = "silergy,syr828"; 231 reg = <0x41>; 230 reg = <0x41>; 232 regulator-compatible = "fan535 231 regulator-compatible = "fan53555-reg"; 233 pinctrl-0 = <&vsel2_pin>; 232 pinctrl-0 = <&vsel2_pin>; 234 regulator-name = "vdd_gpu"; 233 regulator-name = "vdd_gpu"; 235 regulator-min-microvolt = <712 234 regulator-min-microvolt = <712500>; 236 regulator-max-microvolt = <150 235 regulator-max-microvolt = <1500000>; 237 regulator-ramp-delay = <1000>; 236 regulator-ramp-delay = <1000>; 238 fcs,suspend-voltage-selector = 237 fcs,suspend-voltage-selector = <1>; 239 regulator-always-on; 238 regulator-always-on; 240 regulator-boot-on; 239 regulator-boot-on; 241 vin-supply = <&vcc_sys>; 240 vin-supply = <&vcc_sys>; 242 regulator-initial-mode = <1>; 241 regulator-initial-mode = <1>; 243 regulator-state-mem { 242 regulator-state-mem { 244 regulator-off-in-suspe 243 regulator-off-in-suspend; 245 }; 244 }; 246 }; 245 }; 247 246 248 rk808: pmic@1b { 247 rk808: pmic@1b { 249 compatible = "rockchip,rk808"; 248 compatible = "rockchip,rk808"; 250 reg = <0x1b>; 249 reg = <0x1b>; 251 interrupt-parent = <&gpio1>; 250 interrupt-parent = <&gpio1>; 252 interrupts = <21 IRQ_TYPE_LEVE 251 interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 253 pinctrl-names = "default"; 252 pinctrl-names = "default"; 254 pinctrl-0 = <&pmic_int_l>; 253 pinctrl-0 = <&pmic_int_l>; 255 rockchip,system-power-controll 254 rockchip,system-power-controller; 256 wakeup-source; 255 wakeup-source; 257 #clock-cells = <1>; 256 #clock-cells = <1>; 258 clock-output-names = "xin32k", 257 clock-output-names = "xin32k", "rtc_clko_wifi"; 259 258 260 vcc1-supply = <&vcc_sys>; 259 vcc1-supply = <&vcc_sys>; 261 vcc2-supply = <&vcc_sys>; 260 vcc2-supply = <&vcc_sys>; 262 vcc3-supply = <&vcc_sys>; 261 vcc3-supply = <&vcc_sys>; 263 vcc4-supply = <&vcc_sys>; 262 vcc4-supply = <&vcc_sys>; 264 vcc6-supply = <&vcc_sys>; 263 vcc6-supply = <&vcc_sys>; 265 vcc7-supply = <&vcc_sys>; 264 vcc7-supply = <&vcc_sys>; 266 vcc8-supply = <&vcc3v3_sys>; 265 vcc8-supply = <&vcc3v3_sys>; 267 vcc9-supply = <&vcc_sys>; 266 vcc9-supply = <&vcc_sys>; 268 vcc10-supply = <&vcc_sys>; 267 vcc10-supply = <&vcc_sys>; 269 vcc11-supply = <&vcc_sys>; 268 vcc11-supply = <&vcc_sys>; 270 vcc12-supply = <&vcc3v3_sys>; 269 vcc12-supply = <&vcc3v3_sys>; 271 vddio-supply = <&vcc_1v8>; 270 vddio-supply = <&vcc_1v8>; 272 271 273 regulators { 272 regulators { 274 vdd_center: DCDC_REG1 273 vdd_center: DCDC_REG1 { 275 regulator-name 274 regulator-name = "vdd_center"; 276 regulator-min- 275 regulator-min-microvolt = <900000>; 277 regulator-max- 276 regulator-max-microvolt = <900000>; 278 regulator-ramp 277 regulator-ramp-delay = <6001>; 279 regulator-alwa 278 regulator-always-on; 280 regulator-boot 279 regulator-boot-on; 281 regulator-stat 280 regulator-state-mem { 282 regula 281 regulator-off-in-suspend; 283 }; 282 }; 284 }; 283 }; 285 284 286 vdd_cpu_l: DCDC_REG2 { 285 vdd_cpu_l: DCDC_REG2 { 287 regulator-name 286 regulator-name = "vdd_cpu_l"; 288 regulator-min- 287 regulator-min-microvolt = <750000>; 289 regulator-max- 288 regulator-max-microvolt = <1350000>; 290 regulator-ramp 289 regulator-ramp-delay = <6001>; 291 regulator-alwa 290 regulator-always-on; 292 regulator-boot 291 regulator-boot-on; 293 regulator-stat 292 regulator-state-mem { 294 regula 293 regulator-off-in-suspend; 295 }; 294 }; 296 }; 295 }; 297 296 298 vcc_ddr: DCDC_REG3 { 297 vcc_ddr: DCDC_REG3 { 299 regulator-name 298 regulator-name = "vcc_ddr"; 300 regulator-alwa 299 regulator-always-on; 301 regulator-boot 300 regulator-boot-on; 302 regulator-stat 301 regulator-state-mem { 303 regula 302 regulator-on-in-suspend; 304 }; 303 }; 305 }; 304 }; 306 305 307 vcc_1v8: DCDC_REG4 { 306 vcc_1v8: DCDC_REG4 { 308 regulator-name 307 regulator-name = "vcc_1v8"; 309 regulator-min- 308 regulator-min-microvolt = <1800000>; 310 regulator-max- 309 regulator-max-microvolt = <1800000>; 311 regulator-alwa 310 regulator-always-on; 312 regulator-boot 311 regulator-boot-on; 313 regulator-stat 312 regulator-state-mem { 314 regula 313 regulator-on-in-suspend; 315 regula 314 regulator-suspend-microvolt = <1800000>; 316 }; 315 }; 317 }; 316 }; 318 317 319 vcc1v8_dvp: LDO_REG1 { 318 vcc1v8_dvp: LDO_REG1 { 320 regulator-name 319 regulator-name = "vcc1v8_dvp"; 321 regulator-min- 320 regulator-min-microvolt = <1800000>; 322 regulator-max- 321 regulator-max-microvolt = <1800000>; 323 regulator-alwa 322 regulator-always-on; 324 regulator-boot 323 regulator-boot-on; 325 regulator-stat 324 regulator-state-mem { 326 regula 325 regulator-on-in-suspend; 327 regula 326 regulator-suspend-microvolt = <1800000>; 328 }; 327 }; 329 }; 328 }; 330 329 331 vcca1v8_hdmi: LDO_REG2 330 vcca1v8_hdmi: LDO_REG2 { 332 regulator-name 331 regulator-name = "vcca1v8_hdmi"; 333 regulator-min- 332 regulator-min-microvolt = <1800000>; 334 regulator-max- 333 regulator-max-microvolt = <1800000>; 335 regulator-alwa 334 regulator-always-on; 336 regulator-boot 335 regulator-boot-on; 337 regulator-stat 336 regulator-state-mem { 338 regula 337 regulator-on-in-suspend; 339 regula 338 regulator-suspend-microvolt = <1800000>; 340 }; 339 }; 341 }; 340 }; 342 341 343 vcca_1v8: LDO_REG3 { 342 vcca_1v8: LDO_REG3 { 344 regulator-name 343 regulator-name = "vcca_1v8"; 345 regulator-min- 344 regulator-min-microvolt = <1800000>; 346 regulator-max- 345 regulator-max-microvolt = <1800000>; 347 regulator-alwa 346 regulator-always-on; 348 regulator-boot 347 regulator-boot-on; 349 regulator-stat 348 regulator-state-mem { 350 regula 349 regulator-on-in-suspend; 351 regula 350 regulator-suspend-microvolt = <1800000>; 352 }; 351 }; 353 }; 352 }; 354 353 355 vcc_sd: LDO_REG4 { 354 vcc_sd: LDO_REG4 { 356 regulator-name 355 regulator-name = "vcc_sd"; 357 regulator-min- 356 regulator-min-microvolt = <1800000>; 358 regulator-max- 357 regulator-max-microvolt = <3300000>; 359 regulator-alwa 358 regulator-always-on; 360 regulator-boot 359 regulator-boot-on; 361 regulator-stat 360 regulator-state-mem { 362 regula 361 regulator-on-in-suspend; 363 regula 362 regulator-suspend-microvolt = <3300000>; 364 }; 363 }; 365 }; 364 }; 366 365 367 vcc3v0_sd: LDO_REG5 { 366 vcc3v0_sd: LDO_REG5 { 368 regulator-name 367 regulator-name = "vcc3v0_sd"; 369 regulator-min- 368 regulator-min-microvolt = <3000000>; 370 regulator-max- 369 regulator-max-microvolt = <3000000>; 371 regulator-alwa 370 regulator-always-on; 372 regulator-boot 371 regulator-boot-on; 373 regulator-stat 372 regulator-state-mem { 374 regula 373 regulator-on-in-suspend; 375 regula 374 regulator-suspend-microvolt = <3000000>; 376 }; 375 }; 377 }; 376 }; 378 377 379 vcc_1v5: LDO_REG6 { 378 vcc_1v5: LDO_REG6 { 380 regulator-name 379 regulator-name = "vcc_1v5"; 381 regulator-min- 380 regulator-min-microvolt = <1500000>; 382 regulator-max- 381 regulator-max-microvolt = <1500000>; 383 regulator-alwa 382 regulator-always-on; 384 regulator-boot 383 regulator-boot-on; 385 regulator-stat 384 regulator-state-mem { 386 regula 385 regulator-on-in-suspend; 387 regula 386 regulator-suspend-microvolt = <1500000>; 388 }; 387 }; 389 }; 388 }; 390 389 391 vcca0v9_hdmi: LDO_REG7 390 vcca0v9_hdmi: LDO_REG7 { 392 regulator-name 391 regulator-name = "vcca0v9_hdmi"; 393 regulator-min- 392 regulator-min-microvolt = <900000>; 394 regulator-max- 393 regulator-max-microvolt = <900000>; 395 regulator-alwa 394 regulator-always-on; 396 regulator-boot 395 regulator-boot-on; 397 regulator-stat 396 regulator-state-mem { 398 regula 397 regulator-on-in-suspend; 399 regula 398 regulator-suspend-microvolt = <900000>; 400 }; 399 }; 401 }; 400 }; 402 401 403 vcc_3v0: LDO_REG8 { 402 vcc_3v0: LDO_REG8 { 404 regulator-name 403 regulator-name = "vcc_3v0"; 405 regulator-min- 404 regulator-min-microvolt = <3000000>; 406 regulator-max- 405 regulator-max-microvolt = <3000000>; 407 regulator-alwa 406 regulator-always-on; 408 regulator-boot 407 regulator-boot-on; 409 regulator-stat 408 regulator-state-mem { 410 regula 409 regulator-on-in-suspend; 411 regula 410 regulator-suspend-microvolt = <3000000>; 412 }; 411 }; 413 }; 412 }; 414 413 415 vcc3v3_s3: SWITCH_REG1 414 vcc3v3_s3: SWITCH_REG1 { 416 regulator-name 415 regulator-name = "vcc3v3_s3"; 417 regulator-alwa 416 regulator-always-on; 418 regulator-boot 417 regulator-boot-on; 419 regulator-stat 418 regulator-state-mem { 420 regula 419 regulator-on-in-suspend; 421 }; 420 }; 422 }; 421 }; 423 422 424 vcc3v3_s0: SWITCH_REG2 423 vcc3v3_s0: SWITCH_REG2 { 425 regulator-name 424 regulator-name = "vcc3v3_s0"; 426 regulator-alwa 425 regulator-always-on; 427 regulator-boot 426 regulator-boot-on; 428 regulator-stat 427 regulator-state-mem { 429 regula 428 regulator-on-in-suspend; 430 }; 429 }; 431 }; 430 }; 432 }; 431 }; 433 }; 432 }; 434 }; 433 }; 435 434 436 &i2c1 { 435 &i2c1 { 437 i2c-scl-rising-time-ns = <300>; 436 i2c-scl-rising-time-ns = <300>; 438 i2c-scl-falling-time-ns = <15>; 437 i2c-scl-falling-time-ns = <15>; 439 status = "okay"; 438 status = "okay"; 440 }; 439 }; 441 440 442 &i2c3 { 441 &i2c3 { 443 i2c-scl-rising-time-ns = <450>; 442 i2c-scl-rising-time-ns = <450>; 444 i2c-scl-falling-time-ns = <15>; 443 i2c-scl-falling-time-ns = <15>; 445 status = "okay"; 444 status = "okay"; 446 }; 445 }; 447 446 448 &i2c4 { 447 &i2c4 { 449 i2c-scl-rising-time-ns = <600>; 448 i2c-scl-rising-time-ns = <600>; 450 i2c-scl-falling-time-ns = <40>; 449 i2c-scl-falling-time-ns = <40>; 451 status = "okay"; 450 status = "okay"; 452 451 453 fusb0: typec-portc@22 { 452 fusb0: typec-portc@22 { 454 compatible = "fcs,fusb302"; 453 compatible = "fcs,fusb302"; 455 reg = <0x22>; 454 reg = <0x22>; 456 interrupt-parent = <&gpio1>; 455 interrupt-parent = <&gpio1>; 457 interrupts = <RK_PA2 IRQ_TYPE_ 456 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 458 pinctrl-names = "default"; 457 pinctrl-names = "default"; 459 pinctrl-0 = <&fusb0_int>; 458 pinctrl-0 = <&fusb0_int>; 460 vbus-supply = <&vcc5v0_typec>; 459 vbus-supply = <&vcc5v0_typec>; 461 status = "okay"; 460 status = "okay"; 462 }; 461 }; 463 }; 462 }; 464 463 465 &i2c7 { 464 &i2c7 { 466 status = "okay"; 465 status = "okay"; 467 }; 466 }; 468 467 469 &i2s0 { 468 &i2s0 { 470 rockchip,playback-channels = <8>; 469 rockchip,playback-channels = <8>; 471 rockchip,capture-channels = <8>; 470 rockchip,capture-channels = <8>; 472 status = "okay"; 471 status = "okay"; 473 }; 472 }; 474 473 475 &i2s1 { 474 &i2s1 { 476 rockchip,playback-channels = <2>; 475 rockchip,playback-channels = <2>; 477 rockchip,capture-channels = <2>; 476 rockchip,capture-channels = <2>; 478 status = "okay"; 477 status = "okay"; 479 }; 478 }; 480 479 481 &i2s2 { 480 &i2s2 { 482 status = "okay"; 481 status = "okay"; 483 }; 482 }; 484 483 485 &io_domains { 484 &io_domains { 486 status = "okay"; 485 status = "okay"; 487 audio-supply = <&vcc1v8_s0>; 486 audio-supply = <&vcc1v8_s0>; 488 bt656-supply = <&vcc1v8_s0>; 487 bt656-supply = <&vcc1v8_s0>; 489 gpio1830-supply = <&vcc_3v0>; 488 gpio1830-supply = <&vcc_3v0>; 490 sdmmc-supply = <&vcc_sd>; 489 sdmmc-supply = <&vcc_sd>; 491 }; 490 }; 492 491 493 &pmu_io_domains { 492 &pmu_io_domains { 494 status = "okay"; 493 status = "okay"; 495 pmu1830-supply = <&vcc_1v8>; 494 pmu1830-supply = <&vcc_1v8>; 496 }; 495 }; 497 496 498 &pinctrl { 497 &pinctrl { 499 fusb30x { 498 fusb30x { 500 fusb0_int: fusb0-int { 499 fusb0_int: fusb0-int { 501 rockchip,pins = 500 rockchip,pins = 502 <1 RK_PA2 RK_F 501 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 503 }; 502 }; 504 }; 503 }; 505 504 506 gmac { 505 gmac { 507 rgmii_sleep_pins: rgmii-sleep- 506 rgmii_sleep_pins: rgmii-sleep-pins { 508 rockchip,pins = 507 rockchip,pins = 509 <3 RK_PB7 RK_F 508 <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>; 510 }; 509 }; 511 }; 510 }; 512 511 513 ir { 512 ir { 514 ir_rx: ir-rx { 513 ir_rx: ir-rx { 515 rockchip,pins = <0 RK_ 514 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>; 516 }; 515 }; 517 }; 516 }; 518 517 519 leds { 518 leds { 520 power_led_pin: power-led-pin { 519 power_led_pin: power-led-pin { 521 rockchip,pins = <4 RK_ 520 rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 522 }; 521 }; 523 }; 522 }; 524 523 525 pmic { 524 pmic { 526 pmic_int_l: pmic-int-l { 525 pmic_int_l: pmic-int-l { 527 rockchip,pins = 526 rockchip,pins = 528 <1 RK_PC5 RK_F 527 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 529 }; 528 }; 530 529 531 vsel1_pin: vsel1-pin { 530 vsel1_pin: vsel1-pin { 532 rockchip,pins = 531 rockchip,pins = 533 <1 RK_PC1 RK_F 532 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 534 }; 533 }; 535 534 536 vsel2_pin: vsel2-pin { 535 vsel2_pin: vsel2-pin { 537 rockchip,pins = 536 rockchip,pins = 538 <1 RK_PB6 RK_F 537 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 539 }; 538 }; 540 }; 539 }; 541 540 542 sdio { 541 sdio { 543 bt_host_wake_l: bt-host-wake-l 542 bt_host_wake_l: bt-host-wake-l { 544 rockchip,pins = <0 RK_ 543 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 545 }; 544 }; 546 545 547 bt_reg_on_h: bt-reg-on-h { 546 bt_reg_on_h: bt-reg-on-h { 548 /* external pullup to 547 /* external pullup to VCC1V8_PMUPLL */ 549 rockchip,pins = <0 RK_ 548 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 550 }; 549 }; 551 550 552 bt_wake_l: bt-wake-l { 551 bt_wake_l: bt-wake-l { 553 rockchip,pins = <2 RK_ 552 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 554 }; 553 }; 555 554 556 wifi_reg_on_h: wifi-reg_on-h { 555 wifi_reg_on_h: wifi-reg_on-h { 557 rockchip,pins = <0 RK_ 556 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 558 }; 557 }; 559 }; 558 }; 560 559 561 wifi { 560 wifi { 562 wifi_host_wake_l: wifi-host-wa 561 wifi_host_wake_l: wifi-host-wake-l { 563 rockchip,pins = <0 RK_ 562 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 564 }; 563 }; 565 }; 564 }; 566 565 567 usb-typec { 566 usb-typec { 568 vcc5v0_typec_en: vcc5v0_typec_ 567 vcc5v0_typec_en: vcc5v0_typec_en { 569 rockchip,pins = <1 RK_ 568 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 570 }; 569 }; 571 }; 570 }; 572 571 573 usb2 { 572 usb2 { 574 host_vbus_drv: host-vbus-drv { 573 host_vbus_drv: host-vbus-drv { 575 rockchip,pins = 574 rockchip,pins = 576 <4 RK_PD2 RK_F 575 <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 577 }; 576 }; 578 }; 577 }; 579 }; 578 }; 580 579 581 &pwm2 { 580 &pwm2 { 582 status = "okay"; 581 status = "okay"; 583 pinctrl-0 = <&pwm2_pin_pull_down>; 582 pinctrl-0 = <&pwm2_pin_pull_down>; 584 }; 583 }; 585 584 586 &saradc { 585 &saradc { 587 vref-supply = <&vcc1v8_s0>; 586 vref-supply = <&vcc1v8_s0>; 588 status = "okay"; 587 status = "okay"; 589 }; 588 }; 590 589 591 &sdmmc { 590 &sdmmc { 592 clock-frequency = <150000000>; 591 clock-frequency = <150000000>; 593 max-frequency = <150000000>; 592 max-frequency = <150000000>; 594 bus-width = <4>; 593 bus-width = <4>; 595 cap-mmc-highspeed; 594 cap-mmc-highspeed; 596 cap-sd-highspeed; 595 cap-sd-highspeed; 597 disable-wp; 596 disable-wp; 598 vqmmc-supply = <&vcc_sd>; 597 vqmmc-supply = <&vcc_sd>; 599 pinctrl-names = "default"; 598 pinctrl-names = "default"; 600 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sd 599 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 601 card-detect-delay = <800>; 600 card-detect-delay = <800>; 602 status = "okay"; 601 status = "okay"; 603 }; 602 }; 604 603 605 &sdhci { 604 &sdhci { 606 bus-width = <8>; 605 bus-width = <8>; 607 mmc-hs400-1_8v; 606 mmc-hs400-1_8v; 608 mmc-hs400-enhanced-strobe; 607 mmc-hs400-enhanced-strobe; 609 non-removable; 608 non-removable; 610 keep-power-in-suspend; 609 keep-power-in-suspend; 611 status = "okay"; 610 status = "okay"; 612 }; 611 }; 613 612 614 &sdio0 { 613 &sdio0 { 615 bus-width = <4>; 614 bus-width = <4>; 616 clock-frequency = <50000000>; 615 clock-frequency = <50000000>; 617 cap-sdio-irq; 616 cap-sdio-irq; 618 cap-sd-highspeed; 617 cap-sd-highspeed; 619 keep-power-in-suspend; 618 keep-power-in-suspend; 620 mmc-pwrseq = <&sdio_pwrseq>; 619 mmc-pwrseq = <&sdio_pwrseq>; 621 non-removable; 620 non-removable; 622 pinctrl-names = "default"; 621 pinctrl-names = "default"; 623 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &s 622 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 624 sd-uhs-sdr104; 623 sd-uhs-sdr104; 625 #address-cells = <1>; 624 #address-cells = <1>; 626 #size-cells = <0>; 625 #size-cells = <0>; 627 status = "okay"; 626 status = "okay"; 628 627 629 brcmf: wifi@1 { 628 brcmf: wifi@1 { 630 compatible = "brcm,bcm4329-fma 629 compatible = "brcm,bcm4329-fmac"; 631 reg = <1>; 630 reg = <1>; 632 interrupt-parent = <&gpio0>; 631 interrupt-parent = <&gpio0>; 633 interrupts = <RK_PA3 IRQ_TYPE_ !! 632 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>; 634 interrupt-names = "host-wake"; 633 interrupt-names = "host-wake"; 635 pinctrl-names = "default"; 634 pinctrl-names = "default"; 636 pinctrl-0 = <&wifi_host_wake_l 635 pinctrl-0 = <&wifi_host_wake_l>; 637 }; 636 }; 638 }; 637 }; 639 638 640 &spdif { 639 &spdif { 641 status = "okay"; 640 status = "okay"; 642 pinctrl-0 = <&spdif_bus_1>; 641 pinctrl-0 = <&spdif_bus_1>; 643 }; 642 }; 644 643 645 &spi1 { 644 &spi1 { 646 status = "okay"; 645 status = "okay"; 647 646 648 flash@0 { 647 flash@0 { 649 compatible = "jedec,spi-nor"; 648 compatible = "jedec,spi-nor"; 650 #address-cells = <1>; 649 #address-cells = <1>; 651 #size-cells = <1>; 650 #size-cells = <1>; 652 reg = <0>; 651 reg = <0>; 653 spi-max-frequency = <10000000> 652 spi-max-frequency = <10000000>; 654 }; 653 }; 655 }; 654 }; 656 655 657 &tcphy0 { 656 &tcphy0 { 658 status = "okay"; 657 status = "okay"; 659 }; 658 }; 660 659 661 &tcphy1 { 660 &tcphy1 { 662 status = "okay"; 661 status = "okay"; 663 }; 662 }; 664 663 665 &tsadc { 664 &tsadc { 666 /* tshut mode 0:CRU 1:GPIO */ 665 /* tshut mode 0:CRU 1:GPIO */ 667 rockchip,hw-tshut-mode = <1>; 666 rockchip,hw-tshut-mode = <1>; 668 /* tshut polarity 0:LOW 1:HIGH */ 667 /* tshut polarity 0:LOW 1:HIGH */ 669 rockchip,hw-tshut-polarity = <1>; 668 rockchip,hw-tshut-polarity = <1>; 670 rockchip,hw-tshut-temp = <110000>; 669 rockchip,hw-tshut-temp = <110000>; 671 status = "okay"; 670 status = "okay"; 672 }; 671 }; 673 672 674 &u2phy0 { 673 &u2phy0 { 675 status = "okay"; 674 status = "okay"; 676 675 677 u2phy0_host: host-port { 676 u2phy0_host: host-port { 678 phy-supply = <&vcc5v0_typec>; 677 phy-supply = <&vcc5v0_typec>; 679 status = "okay"; 678 status = "okay"; 680 }; 679 }; 681 680 682 u2phy0_otg: otg-port { 681 u2phy0_otg: otg-port { 683 status = "okay"; 682 status = "okay"; 684 }; 683 }; 685 }; 684 }; 686 685 687 &u2phy1 { 686 &u2phy1 { 688 status = "okay"; 687 status = "okay"; 689 688 690 u2phy1_host: host-port { 689 u2phy1_host: host-port { 691 phy-supply = <&vcc5v0_host>; 690 phy-supply = <&vcc5v0_host>; 692 status = "okay"; 691 status = "okay"; 693 }; 692 }; 694 693 695 u2phy1_otg: otg-port { 694 u2phy1_otg: otg-port { 696 status = "okay"; 695 status = "okay"; 697 }; 696 }; 698 }; 697 }; 699 698 700 &uart0 { 699 &uart0 { 701 pinctrl-names = "default"; 700 pinctrl-names = "default"; 702 pinctrl-0 = <&uart0_xfer &uart0_rts &u 701 pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>; 703 status = "okay"; 702 status = "okay"; 704 703 705 bluetooth { 704 bluetooth { 706 compatible = "brcm,bcm43438-bt 705 compatible = "brcm,bcm43438-bt"; 707 clocks = <&rk808 1>; 706 clocks = <&rk808 1>; 708 clock-names = "ext_clock"; 707 clock-names = "ext_clock"; 709 device-wakeup-gpios = <&gpio2 708 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; 710 host-wakeup-gpios = <&gpio0 RK 709 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 711 shutdown-gpios = <&gpio0 RK_PB 710 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 712 max-speed = <4000000>; 711 max-speed = <4000000>; 713 pinctrl-names = "default"; 712 pinctrl-names = "default"; 714 pinctrl-0 = <&bt_reg_on_h &bt_ 713 pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>; 715 vbat-supply = <&vcc3v3_sys>; 714 vbat-supply = <&vcc3v3_sys>; 716 vddio-supply = <&vcc_1v8>; 715 vddio-supply = <&vcc_1v8>; 717 }; 716 }; 718 }; 717 }; 719 718 720 &uart2 { 719 &uart2 { 721 status = "okay"; 720 status = "okay"; 722 }; 721 }; 723 722 724 &usb_host0_ehci { 723 &usb_host0_ehci { 725 status = "okay"; 724 status = "okay"; 726 }; 725 }; 727 726 728 &usb_host0_ohci { 727 &usb_host0_ohci { 729 status = "okay"; 728 status = "okay"; 730 }; 729 }; 731 730 732 &usb_host1_ehci { 731 &usb_host1_ehci { 733 status = "okay"; 732 status = "okay"; 734 }; 733 }; 735 734 736 &usb_host1_ohci { 735 &usb_host1_ohci { 737 status = "okay"; 736 status = "okay"; 738 }; 737 }; 739 738 740 &usbdrd3_0 { 739 &usbdrd3_0 { 741 status = "okay"; 740 status = "okay"; 742 }; 741 }; 743 742 744 &usbdrd_dwc3_0 { 743 &usbdrd_dwc3_0 { 745 status = "okay"; 744 status = "okay"; 746 dr_mode = "host"; 745 dr_mode = "host"; 747 }; 746 }; 748 747 749 &usbdrd3_1 { 748 &usbdrd3_1 { 750 status = "okay"; 749 status = "okay"; 751 }; 750 }; 752 751 753 &usbdrd_dwc3_1 { 752 &usbdrd_dwc3_1 { 754 status = "okay"; 753 status = "okay"; 755 dr_mode = "host"; 754 dr_mode = "host"; 756 }; 755 }; 757 756 758 &vopb { 757 &vopb { 759 status = "okay"; 758 status = "okay"; 760 }; 759 }; 761 760 762 &vopb_mmu { 761 &vopb_mmu { 763 status = "okay"; 762 status = "okay"; 764 }; 763 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.