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