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