1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2022 Radxa Limited 4 * Copyright (c) 2022 Amarula Solutions(India) 5 */ 6 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/leds/common.h> 9 10 / { 11 compatible = "radxa,cm3", "rockchip,rk 12 13 aliases { 14 mmc0 = &sdhci; 15 }; 16 17 leds { 18 compatible = "gpio-leds"; 19 20 led-0 { 21 gpios = <&gpio0 RK_PA6 22 color = <LED_COLOR_ID_ 23 function = LED_FUNCTIO 24 linux,default-trigger 25 default-state = "on"; 26 pinctrl-names = "defau 27 pinctrl-0 = <&user_led 28 }; 29 }; 30 31 vcc_sys: vcc-sys-regulator { 32 compatible = "regulator-fixed" 33 regulator-name = "vcc_sys"; 34 regulator-always-on; 35 regulator-boot-on; 36 regulator-min-microvolt = <500 37 regulator-max-microvolt = <500 38 }; 39 40 vcc_1v8: vcc-1v8-regulator { 41 compatible = "regulator-fixed" 42 regulator-name = "vcc_1v8"; 43 regulator-always-on; 44 regulator-boot-on; 45 regulator-min-microvolt = <180 46 regulator-max-microvolt = <180 47 vin-supply = <&vcc_1v8_p>; 48 }; 49 50 vcc_3v3: vcc-3v3-regulator { 51 compatible = "regulator-fixed" 52 regulator-name = "vcc_3v3"; 53 regulator-always-on; 54 regulator-boot-on; 55 regulator-min-microvolt = <330 56 regulator-max-microvolt = <330 57 vin-supply = <&vcc3v3_sys>; 58 }; 59 60 vcca_1v8: vcca-1v8-regulator { 61 compatible = "regulator-fixed" 62 regulator-name = "vcca_1v8"; 63 regulator-always-on; 64 regulator-boot-on; 65 regulator-min-microvolt = <180 66 regulator-max-microvolt = <180 67 vin-supply = <&vcc_1v8_p>; 68 }; 69 70 sdio_pwrseq: pwrseq-sdio { 71 compatible = "mmc-pwrseq-simpl 72 clocks = <&rk817 1>; 73 clock-names = "ext_clock"; 74 pinctrl-names = "default"; 75 pinctrl-0 = <&wifi_reg_on_h>; 76 reset-gpios = <&gpio2 RK_PB7 G 77 }; 78 }; 79 80 &cpu0 { 81 cpu-supply = <&vdd_cpu>; 82 }; 83 84 &cpu1 { 85 cpu-supply = <&vdd_cpu>; 86 }; 87 88 &cpu2 { 89 cpu-supply = <&vdd_cpu>; 90 }; 91 92 &cpu3 { 93 cpu-supply = <&vdd_cpu>; 94 }; 95 96 &gpu { 97 mali-supply = <&vdd_gpu_npu>; 98 status = "okay"; 99 }; 100 101 &i2c0 { 102 status = "okay"; 103 104 vdd_cpu: regulator@1c { 105 compatible = "tcs,tcs4525"; 106 reg = <0x1c>; 107 fcs,suspend-voltage-selector = 108 regulator-name = "vdd_cpu"; 109 regulator-always-on; 110 regulator-boot-on; 111 regulator-min-microvolt = <712 112 regulator-max-microvolt = <139 113 regulator-ramp-delay = <2300>; 114 vin-supply = <&vcc_sys>; 115 116 regulator-state-mem { 117 regulator-off-in-suspe 118 }; 119 }; 120 121 rk817: pmic@20 { 122 compatible = "rockchip,rk817"; 123 reg = <0x20>; 124 #clock-cells = <1>; 125 clock-output-names = "rk817-cl 126 interrupt-parent = <&gpio0>; 127 interrupts = <RK_PA3 IRQ_TYPE_ 128 pinctrl-names = "default"; 129 pinctrl-0 = <&pmic_int_l>; 130 rockchip,system-power-controll 131 wakeup-source; 132 133 vcc1-supply = <&vcc_sys>; 134 vcc2-supply = <&vcc_sys>; 135 vcc3-supply = <&vcc_sys>; 136 vcc4-supply = <&vcc_sys>; 137 vcc5-supply = <&vcc_sys>; 138 vcc6-supply = <&vcc_sys>; 139 vcc7-supply = <&vcc_sys>; 140 141 regulators { 142 vdd_logic: DCDC_REG1 { 143 regulator-name 144 regulator-alwa 145 regulator-boot 146 regulator-init 147 regulator-min- 148 regulator-max- 149 regulator-ramp 150 regulator-stat 151 regula 152 regula 153 }; 154 }; 155 156 vdd_gpu_npu: DCDC_REG2 157 regulator-name 158 regulator-alwa 159 regulator-boot 160 regulator-init 161 regulator-min- 162 regulator-max- 163 regulator-ramp 164 regulator-stat 165 regula 166 }; 167 }; 168 169 vcc_ddr: DCDC_REG3 { 170 regulator-name 171 regulator-alwa 172 regulator-boot 173 regulator-init 174 regulator-stat 175 regula 176 }; 177 }; 178 179 vcc3v3_sys: DCDC_REG4 180 regulator-name 181 regulator-alwa 182 regulator-boot 183 regulator-init 184 regulator-min- 185 regulator-max- 186 regulator-stat 187 regula 188 regula 189 }; 190 }; 191 192 vcca1v8_pmu: LDO_REG1 193 regulator-name 194 regulator-alwa 195 regulator-boot 196 regulator-min- 197 regulator-max- 198 regulator-stat 199 regula 200 regula 201 }; 202 }; 203 204 vdda_0v9: LDO_REG2 { 205 regulator-name 206 regulator-alwa 207 regulator-boot 208 regulator-min- 209 regulator-max- 210 regulator-stat 211 regula 212 }; 213 }; 214 215 vdda0v9_pmu: LDO_REG3 216 regulator-name 217 regulator-alwa 218 regulator-boot 219 regulator-min- 220 regulator-max- 221 regulator-stat 222 regula 223 regula 224 }; 225 }; 226 227 vccio_acodec: LDO_REG4 228 regulator-name 229 regulator-alwa 230 regulator-boot 231 regulator-min- 232 regulator-max- 233 regulator-stat 234 regula 235 }; 236 }; 237 238 vccio_sd: LDO_REG5 { 239 regulator-name 240 regulator-alwa 241 regulator-boot 242 regulator-min- 243 regulator-max- 244 regulator-stat 245 regula 246 }; 247 }; 248 249 vcc3v3_pmu: LDO_REG6 { 250 regulator-name 251 regulator-alwa 252 regulator-boot 253 regulator-min- 254 regulator-max- 255 regulator-stat 256 regula 257 regula 258 }; 259 }; 260 261 vcc_1v8_p: LDO_REG7 { 262 regulator-name 263 regulator-alwa 264 regulator-boot 265 regulator-min- 266 regulator-max- 267 regulator-stat 268 regula 269 }; 270 }; 271 272 vcc1v8_dvp: LDO_REG8 { 273 regulator-name 274 regulator-alwa 275 regulator-boot 276 regulator-min- 277 regulator-max- 278 regulator-stat 279 regula 280 }; 281 }; 282 283 vcc2v8_dvp: LDO_REG9 { 284 regulator-name 285 regulator-alwa 286 regulator-boot 287 regulator-min- 288 regulator-max- 289 regulator-stat 290 regula 291 }; 292 }; 293 294 }; 295 }; 296 }; 297 298 &pinctrl { 299 bluetooth { 300 bt_host_wake_h: bt-host-wake-h 301 rockchip,pins = <2 RK_ 302 }; 303 304 bt_reg_on_h: bt-reg-on-h { 305 rockchip,pins = <2 RK_ 306 }; 307 308 bt_wake_host_h: bt-wake-host-h 309 rockchip,pins = <2 RK_ 310 }; 311 }; 312 313 pmic { 314 pmic_int_l: pmic-int-l { 315 rockchip,pins = <0 RK_ 316 }; 317 }; 318 319 leds { 320 user_led2: user-led2 { 321 rockchip,pins = <0 RK_ 322 }; 323 }; 324 325 wifi { 326 wifi_reg_on_h: wifi-reg-on-h { 327 rockchip,pins = <2 RK_ 328 }; 329 330 wifi_host_wake_h: wifi-host-wa 331 rockchip,pins = <2 RK_ 332 }; 333 }; 334 }; 335 336 &pmu_io_domains { 337 pmuio1-supply = <&vcc3v3_pmu>; 338 pmuio2-supply = <&vcc_3v3>; 339 vccio1-supply = <&vccio_acodec>; 340 vccio2-supply = <&vcc_1v8>; 341 vccio3-supply = <&vccio_sd>; 342 vccio4-supply = <&vcc_1v8>; 343 vccio5-supply = <&vcc_3v3>; 344 vccio6-supply = <&vcc_3v3>; 345 vccio7-supply = <&vcc_3v3>; 346 status = "okay"; 347 }; 348 349 &saradc { 350 vref-supply = <&vcca_1v8>; 351 status = "okay"; 352 }; 353 354 &sdmmc1 { 355 #address-cells = <1>; 356 #size-cells = <0>; 357 bus-width = <4>; 358 disable-wp; 359 cap-sd-highspeed; 360 cap-sdio-irq; 361 keep-power-in-suspend; 362 mmc-pwrseq = <&sdio_pwrseq>; 363 non-removable; 364 pinctrl-names = "default"; 365 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk 366 sd-uhs-sdr104; 367 vmmc-supply = <&vcc_3v3>; 368 vqmmc-supply = <&vcc_1v8>; 369 status = "okay"; 370 371 wifi@1 { 372 compatible = "brcm,bcm43455-fm 373 reg = <1>; 374 interrupt-parent = <&gpio2>; 375 interrupts = <RK_PC1 IRQ_TYPE_ 376 interrupt-names = "host-wake"; 377 pinctrl-names = "default"; 378 pinctrl-0 = <&wifi_host_wake_h 379 }; 380 }; 381 382 &sdhci { 383 bus-width = <8>; 384 max-frequency = <200000000>; 385 mmc-hs200-1_8v; 386 non-removable; 387 pinctrl-names = "default"; 388 pinctrl-0 = <&emmc_bus8 &emmc_clk &emm 389 vmmc-supply = <&vcc_3v3>; 390 vqmmc-supply = <&vcc_1v8>; 391 status = "okay"; 392 }; 393 394 &uart1 { 395 pinctrl-names = "default"; 396 pinctrl-0 = <&uart1m0_ctsn &uart1m0_rt 397 status = "okay"; 398 399 bluetooth { 400 compatible = "brcm,bcm4345c5"; 401 clocks = <&rk817 1>; 402 clock-names = "lpo"; 403 device-wakeup-gpios = <&gpio2 404 host-wakeup-gpios = <&gpio2 RK 405 pinctrl-names = "default"; 406 pinctrl-0 = <&bt_host_wake_h & 407 shutdown-gpios = <&gpio2 RK_PC 408 vbat-supply = <&vcc_3v3>; 409 vddio-supply = <&vcc_1v8>; 410 }; 411 }; 412 413 &usb2phy0 { 414 status = "okay"; 415 }; 416 417 &usb2phy1 { 418 status = "okay"; 419 }; 420 421 &tsadc { 422 rockchip,hw-tshut-mode = <1>; 423 rockchip,hw-tshut-polarity = <0>; 424 status = "okay"; 425 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.