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