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