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