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