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