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