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