1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/leds/common.h> 5 #include <dt-bindings/pinctrl/rockchip.h> 6 #include "rk3568.dtsi" 7 8 / { 9 compatible = "radxa,cm3i", "rockchip,rk3568"; 10 11 aliases { 12 mmc0 = &sdhci; 13 }; 14 15 chosen { 16 stdout-path = "serial2:115200n8"; 17 }; 18 19 gpio-leds { 20 compatible = "gpio-leds"; 21 22 led_user: led-0 { 23 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 24 function = LED_FUNCTION_HEARTBEAT; 25 color = <LED_COLOR_ID_GREEN>; 26 linux,default-trigger = "heartbeat"; 27 pinctrl-names = "default"; 28 pinctrl-0 = <&led_user_en>; 29 }; 30 }; 31 32 pcie30_avdd0v9: pcie30-avdd0v9-regulator { 33 compatible = "regulator-fixed"; 34 regulator-name = "pcie30_avdd0v9"; 35 regulator-always-on; 36 regulator-boot-on; 37 regulator-min-microvolt = <900000>; 38 regulator-max-microvolt = <900000>; 39 vin-supply = <&vcc3v3_sys>; 40 }; 41 42 pcie30_avdd1v8: pcie30-avdd1v8-regulator { 43 compatible = "regulator-fixed"; 44 regulator-name = "pcie30_avdd1v8"; 45 regulator-always-on; 46 regulator-boot-on; 47 regulator-min-microvolt = <1800000>; 48 regulator-max-microvolt = <1800000>; 49 vin-supply = <&vcc3v3_sys>; 50 }; 51 52 vcc3v3_sys: vcc3v3-sys-regulator { 53 compatible = "regulator-fixed"; 54 regulator-name = "vcc3v3_sys"; 55 regulator-always-on; 56 regulator-boot-on; 57 regulator-min-microvolt = <3300000>; 58 regulator-max-microvolt = <3300000>; 59 vin-supply = <&vcc5v_input>; 60 }; 61 62 vcc5v0_sys: vcc5v0-sys-regulator { 63 compatible = "regulator-fixed"; 64 regulator-name = "vcc5v0_sys"; 65 regulator-always-on; 66 regulator-boot-on; 67 regulator-min-microvolt = <5000000>; 68 regulator-max-microvolt = <5000000>; 69 vin-supply = <&vcc5v_input>; 70 }; 71 72 /* labeled +5v_input in schematic */ 73 vcc5v_input: vcc5v-input-regulator { 74 compatible = "regulator-fixed"; 75 regulator-name = "vcc5v_input"; 76 regulator-always-on; 77 regulator-boot-on; 78 regulator-min-microvolt = <5000000>; 79 regulator-max-microvolt = <5000000>; 80 }; 81 }; 82 83 &combphy0 { 84 status = "okay"; 85 }; 86 87 &combphy1 { 88 status = "okay"; 89 }; 90 91 &combphy2 { 92 status = "okay"; 93 }; 94 95 &cpu0 { 96 cpu-supply = <&vdd_cpu>; 97 }; 98 99 &cpu1 { 100 cpu-supply = <&vdd_cpu>; 101 }; 102 103 &cpu2 { 104 cpu-supply = <&vdd_cpu>; 105 }; 106 107 &cpu3 { 108 cpu-supply = <&vdd_cpu>; 109 }; 110 111 &gpu { 112 mali-supply = <&vdd_gpu>; 113 status = "okay"; 114 }; 115 116 &i2c0 { 117 status = "okay"; 118 119 vdd_cpu: regulator@1c { 120 compatible = "tcs,tcs4525"; 121 reg = <0x1c>; 122 fcs,suspend-voltage-selector = <1>; 123 regulator-name = "vdd_cpu"; 124 regulator-always-on; 125 regulator-boot-on; 126 regulator-min-microvolt = <800000>; 127 regulator-max-microvolt = <1150000>; 128 regulator-ramp-delay = <2300>; 129 vin-supply = <&vcc5v_input>; 130 131 regulator-state-mem { 132 regulator-off-in-suspend; 133 }; 134 }; 135 136 rk809: pmic@20 { 137 compatible = "rockchip,rk809"; 138 reg = <0x20>; 139 interrupt-parent = <&gpio0>; 140 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 141 #clock-cells = <1>; 142 pinctrl-names = "default"; 143 pinctrl-0 = <&pmic_int>; 144 rockchip,system-power-controller; 145 wakeup-source; 146 147 vcc1-supply = <&vcc3v3_sys>; 148 vcc2-supply = <&vcc3v3_sys>; 149 vcc3-supply = <&vcc3v3_sys>; 150 vcc4-supply = <&vcc3v3_sys>; 151 vcc5-supply = <&vcc3v3_sys>; 152 vcc6-supply = <&vcc3v3_sys>; 153 vcc7-supply = <&vcc3v3_sys>; 154 vcc8-supply = <&vcc3v3_sys>; 155 vcc9-supply = <&vcc3v3_sys>; 156 157 regulators { 158 vdd_logic: DCDC_REG1 { 159 regulator-name = "vdd_logic"; 160 regulator-always-on; 161 regulator-boot-on; 162 regulator-initial-mode = <0x2>; 163 regulator-min-microvolt = <500000>; 164 regulator-max-microvolt = <1350000>; 165 regulator-ramp-delay = <6001>; 166 167 regulator-state-mem { 168 regulator-off-in-suspend; 169 }; 170 }; 171 172 vdd_gpu: DCDC_REG2 { 173 regulator-name = "vdd_gpu"; 174 regulator-always-on; 175 regulator-initial-mode = <0x2>; 176 regulator-min-microvolt = <500000>; 177 regulator-max-microvolt = <1350000>; 178 regulator-ramp-delay = <6001>; 179 180 regulator-state-mem { 181 regulator-off-in-suspend; 182 }; 183 }; 184 185 vcc_ddr: DCDC_REG3 { 186 regulator-name = "vcc_ddr"; 187 regulator-always-on; 188 regulator-boot-on; 189 regulator-initial-mode = <0x2>; 190 191 regulator-state-mem { 192 regulator-on-in-suspend; 193 }; 194 }; 195 196 vdd_npu: DCDC_REG4 { 197 regulator-name = "vdd_npu"; 198 regulator-initial-mode = <0x2>; 199 regulator-min-microvolt = <500000>; 200 regulator-max-microvolt = <1350000>; 201 regulator-ramp-delay = <6001>; 202 203 regulator-state-mem { 204 regulator-off-in-suspend; 205 }; 206 }; 207 208 vcc_1v8: DCDC_REG5 { 209 regulator-name = "vcc_1v8"; 210 regulator-always-on; 211 regulator-boot-on; 212 regulator-min-microvolt = <1800000>; 213 regulator-max-microvolt = <1800000>; 214 215 regulator-state-mem { 216 regulator-off-in-suspend; 217 }; 218 }; 219 220 vdda0v9_image: LDO_REG1 { 221 regulator-name = "vdda0v9_image"; 222 regulator-min-microvolt = <900000>; 223 regulator-max-microvolt = <900000>; 224 225 regulator-state-mem { 226 regulator-off-in-suspend; 227 }; 228 }; 229 230 vdda_0v9: LDO_REG2 { 231 regulator-name = "vdda_0v9"; 232 regulator-always-on; 233 regulator-boot-on; 234 regulator-min-microvolt = <900000>; 235 regulator-max-microvolt = <900000>; 236 237 regulator-state-mem { 238 regulator-off-in-suspend; 239 }; 240 }; 241 242 vdda0v9_pmu: LDO_REG3 { 243 regulator-name = "vdda0v9_pmu"; 244 regulator-always-on; 245 regulator-boot-on; 246 regulator-min-microvolt = <900000>; 247 regulator-max-microvolt = <900000>; 248 249 regulator-state-mem { 250 regulator-on-in-suspend; 251 regulator-suspend-microvolt = <900000>; 252 }; 253 }; 254 255 vccio_acodec: LDO_REG4 { 256 regulator-name = "vccio_acodec"; 257 regulator-always-on; 258 regulator-min-microvolt = <3300000>; 259 regulator-max-microvolt = <3300000>; 260 261 regulator-state-mem { 262 regulator-off-in-suspend; 263 }; 264 }; 265 266 vccio_sd: LDO_REG5 { 267 regulator-name = "vccio_sd"; 268 regulator-min-microvolt = <1800000>; 269 regulator-max-microvolt = <3300000>; 270 271 regulator-state-mem { 272 regulator-off-in-suspend; 273 }; 274 }; 275 276 vcc3v3_pmu: LDO_REG6 { 277 regulator-name = "vcc3v3_pmu"; 278 regulator-always-on; 279 regulator-boot-on; 280 regulator-min-microvolt = <3300000>; 281 regulator-max-microvolt = <3300000>; 282 283 regulator-state-mem { 284 regulator-on-in-suspend; 285 regulator-suspend-microvolt = <3300000>; 286 }; 287 }; 288 289 vcca_1v8: LDO_REG7 { 290 regulator-name = "vcca_1v8"; 291 regulator-always-on; 292 regulator-boot-on; 293 regulator-min-microvolt = <1800000>; 294 regulator-max-microvolt = <1800000>; 295 296 regulator-state-mem { 297 regulator-off-in-suspend; 298 }; 299 }; 300 301 vcca1v8_pmu: LDO_REG8 { 302 regulator-name = "vcca1v8_pmu"; 303 regulator-always-on; 304 regulator-boot-on; 305 regulator-min-microvolt = <1800000>; 306 regulator-max-microvolt = <1800000>; 307 308 regulator-state-mem { 309 regulator-on-in-suspend; 310 regulator-suspend-microvolt = <1800000>; 311 }; 312 }; 313 314 vcca1v8_image: LDO_REG9 { 315 regulator-name = "vcca1v8_image"; 316 regulator-min-microvolt = <1800000>; 317 regulator-max-microvolt = <1800000>; 318 319 regulator-state-mem { 320 regulator-off-in-suspend; 321 }; 322 }; 323 324 vcc_3v3: SWITCH_REG1 { 325 regulator-name = "vcc_3v3"; 326 regulator-always-on; 327 regulator-boot-on; 328 329 regulator-state-mem { 330 regulator-off-in-suspend; 331 }; 332 }; 333 334 vcc3v3_sd: SWITCH_REG2 { 335 regulator-name = "vcc3v3_sd"; 336 337 regulator-state-mem { 338 regulator-off-in-suspend; 339 }; 340 }; 341 }; 342 }; 343 }; 344 345 &pinctrl { 346 leds { 347 led_user_en: led_user_en { 348 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 349 }; 350 }; 351 352 pmic { 353 pmic_int: pmic_int { 354 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 355 }; 356 }; 357 }; 358 359 &pmu_io_domains { 360 pmuio1-supply = <&vcc3v3_pmu>; 361 pmuio2-supply = <&vcc3v3_pmu>; 362 vccio1-supply = <&vccio_acodec>; 363 vccio2-supply = <&vcc_1v8>; 364 vccio3-supply = <&vccio_sd>; 365 vccio4-supply = <&vcc_1v8>; 366 vccio5-supply = <&vcc_3v3>; 367 vccio6-supply = <&vcc_1v8>; 368 vccio7-supply = <&vcc_3v3>; 369 status = "okay"; 370 }; 371 372 &saradc { 373 vref-supply = <&vcca_1v8>; 374 status = "okay"; 375 }; 376 377 &sdhci { 378 bus-width = <8>; 379 max-frequency = <200000000>; 380 non-removable; 381 pinctrl-names = "default"; 382 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 383 vmmc-supply = <&vcc_3v3>; 384 vqmmc-supply = <&vcc_1v8>; 385 status = "okay"; 386 }; 387 388 &tsadc { 389 rockchip,hw-tshut-mode = <1>; 390 rockchip,hw-tshut-polarity = <0>; 391 status = "okay"; 392 }; 393 394 &uart2 { 395 status = "okay"; 396 }; 397 398 &usb2phy0 { 399 status = "okay"; 400 }; 401 402 &usb2phy1 { 403 status = "okay"; 404 }; 405 406 &usb_host0_xhci { 407 extcon = <&usb2phy0>; 408 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.