1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 Fuzhou Rockchip Electron 4 * Copyright (c) 2019 Vamrs Limited 5 * Copyright (c) 2019 Amarula Solutions(India) 6 */ 7 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/rockchip.h> 10 11 / { 12 compatible = "vamrs,rk3288-vmarc-som", 13 14 vccio_flash: vccio-flash-regulator { 15 compatible = "regulator-fixed" 16 regulator-name = "vccio_flash" 17 regulator-min-microvolt = <180 18 regulator-max-microvolt = <180 19 vin-supply = <&vcc_io>; 20 }; 21 }; 22 23 &emmc { 24 bus-width = <8>; 25 cap-mmc-highspeed; 26 disable-wp; 27 non-removable; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc 30 vmmc-supply = <&vcc_io>; 31 vqmmc-supply = <&vccio_flash>; 32 status = "okay"; 33 }; 34 35 &gmac { 36 assigned-clocks = <&cru SCLK_MAC>; 37 phy-supply = <&vcc_io>; 38 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ 39 }; 40 41 &hdmi { 42 ddc-i2c-bus = <&i2c5>; 43 pinctrl-names = "default"; 44 pinctrl-0 = <&hdmi_cec_c0>; 45 }; 46 47 &i2c0 { 48 clock-frequency = <400000>; 49 status = "okay"; 50 51 rk808: pmic@1b { 52 compatible = "rockchip,rk808"; 53 reg = <0x1b>; 54 interrupt-parent = <&gpio0>; 55 interrupts = <RK_PA4 IRQ_TYPE_ 56 pinctrl-names = "default"; 57 pinctrl-0 = <&pmic_int &global 58 rockchip,system-power-controll 59 wakeup-source; 60 #clock-cells = <1>; 61 clock-output-names = "rk808-cl 62 63 vcc1-supply = <&vcc5v0_sys>; 64 vcc2-supply = <&vcc5v0_sys>; 65 vcc3-supply = <&vcc5v0_sys>; 66 vcc4-supply = <&vcc5v0_sys>; 67 vcc6-supply = <&vcc5v0_sys>; 68 vcc7-supply = <&vcc5v0_sys>; 69 vcc8-supply = <&vcc_io>; 70 vcc9-supply = <&vcc_io>; 71 vcc10-supply = <&vcc5v0_sys>; 72 vcc11-supply = <&vcc5v0_sys>; 73 vcc12-supply = <&vcc_io>; 74 vddio-supply = <&vcc_io>; 75 76 regulators { 77 vdd_cpu: DCDC_REG1 { 78 regulator-name 79 regulator-alwa 80 regulator-boot 81 regulator-min- 82 regulator-max- 83 regulator-stat 84 regula 85 }; 86 }; 87 88 vdd_gpu: DCDC_REG2 { 89 regulator-name 90 regulator-alwa 91 regulator-boot 92 regulator-min- 93 regulator-max- 94 regulator-ramp 95 regulator-stat 96 regula 97 }; 98 }; 99 100 vcc_ddr: DCDC_REG3 { 101 regulator-name 102 regulator-alwa 103 regulator-boot 104 regulator-stat 105 regula 106 }; 107 }; 108 109 vcc_io: DCDC_REG4 { 110 regulator-name 111 regulator-alwa 112 regulator-boot 113 regulator-min- 114 regulator-max- 115 regulator-stat 116 regula 117 regula 118 }; 119 }; 120 121 vcc_tp: LDO_REG1 { 122 regulator-name 123 regulator-alwa 124 regulator-boot 125 regulator-min- 126 regulator-max- 127 regulator-stat 128 regula 129 }; 130 }; 131 132 vcca_codec: LDO_REG2 { 133 regulator-name 134 regulator-alwa 135 regulator-boot 136 regulator-min- 137 regulator-max- 138 regulator-stat 139 regula 140 regula 141 }; 142 }; 143 144 vdd_10: LDO_REG3 { 145 regulator-name 146 regulator-alwa 147 regulator-boot 148 regulator-min- 149 regulator-max- 150 regulator-stat 151 regula 152 regula 153 }; 154 }; 155 156 vcc_wl: LDO_REG4 { 157 regulator-name 158 regulator-alwa 159 regulator-boot 160 regulator-min- 161 regulator-max- 162 regulator-stat 163 regula 164 }; 165 }; 166 167 vccio_sd: LDO_REG5 { 168 regulator-name 169 regulator-alwa 170 regulator-boot 171 regulator-min- 172 regulator-max- 173 regulator-stat 174 regula 175 regula 176 }; 177 }; 178 179 vdd10_lcd: LDO_REG6 { 180 regulator-name 181 regulator-alwa 182 regulator-boot 183 regulator-min- 184 regulator-max- 185 regulator-stat 186 regula 187 }; 188 }; 189 190 vcc_18: LDO_REG7 { 191 regulator-name 192 regulator-alwa 193 regulator-boot 194 regulator-min- 195 regulator-max- 196 regulator-stat 197 regula 198 regula 199 }; 200 }; 201 202 vcc18_lcd: LDO_REG8 { 203 regulator-name 204 regulator-alwa 205 regulator-boot 206 regulator-min- 207 regulator-max- 208 regulator-stat 209 regula 210 }; 211 }; 212 213 vcc_sd: SWITCH_REG1 { 214 regulator-name 215 regulator-alwa 216 regulator-boot 217 regulator-stat 218 regula 219 }; 220 }; 221 222 vcc_lcd: SWITCH_REG2 { 223 regulator-name 224 regulator-alwa 225 regulator-boot 226 regulator-stat 227 regula 228 }; 229 }; 230 }; 231 }; 232 }; 233 234 &i2c1 { 235 clock-frequency = <400000>; 236 status = "okay"; 237 238 hym8563: rtc@51 { 239 compatible = "haoyu,hym8563"; 240 reg = <0x51>; 241 interrupt-parent = <&gpio5>; 242 interrupts = <RK_PC3 IRQ_TYPE_ 243 #clock-cells = <0>; 244 clock-output-names = "hym8563" 245 pinctrl-names = "default"; 246 pinctrl-0 = <&hym8563_int>; 247 }; 248 }; 249 250 &i2c5 { 251 status = "okay"; 252 }; 253 254 &io_domains { 255 bb-supply = <&vcc_io>; 256 flash0-supply = <&vccio_flash>; 257 gpio1830-supply = <&vcc_18>; 258 gpio30-supply = <&vcc_io>; 259 sdcard-supply = <&vccio_sd>; 260 wifi-supply = <&vcc_wl>; 261 status = "okay"; 262 }; 263 264 &pinctrl { 265 hym8563 { 266 hym8563_int: hym8563-int { 267 rockchip,pins = <5 RK_ 268 }; 269 }; 270 271 pcfg_pull_none_drv_8ma: pcfg-pull-none 272 drive-strength = <8>; 273 }; 274 275 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv 276 bias-pull-up; 277 drive-strength = <8>; 278 }; 279 280 pmic { 281 pmic_int: pmic-int { 282 rockchip,pins = <0 RK_ 283 }; 284 }; 285 286 sdio-pwrseq { 287 wifi_enable_h: wifi-enable-h { 288 rockchip,pins = <4 RK_ 289 }; 290 }; 291 292 sdmmc { 293 sdmmc_bus4: sdmmc-bus4 { 294 rockchip,pins = 295 <6 RK_PC0 1 &p 296 <6 RK_PC1 1 &p 297 <6 RK_PC2 1 &p 298 <6 RK_PC3 1 &p 299 }; 300 301 sdmmc_clk: sdmmc-clk { 302 rockchip,pins = <6 RK_ 303 }; 304 305 sdmmc_cmd: sdmmc-cmd { 306 rockchip,pins = <6 RK_ 307 }; 308 }; 309 310 vbus_host { 311 usb1_en_oc: usb1-en-oc { 312 rockchip,pins = <0 RK_ 313 }; 314 }; 315 316 vbus_typec { 317 usb0_en_oc: usb0-en-oc { 318 rockchip,pins = <0 RK_ 319 }; 320 }; 321 }; 322 323 &sdio_pwrseq { 324 /* 325 * On the module itself this is one of 326 * on the actual card populated): 327 * - SDIO_RESET_L_WL_REG_ON 328 * - PDN (power down when low) 329 */ 330 reset-gpios = <&gpio4 RK_PD4 GPIO_ACTI 331 }; 332 333 &usbphy { 334 status = "okay"; 335 }; 336 337 &usb_host0_ehci { 338 status = "okay"; 339 }; 340 341 &usb_host0_ohci { 342 status = "okay"; 343 }; 344 345 &usb_host1 { 346 status = "okay"; 347 }; 348 349 &usb_otg { 350 status = "okay"; 351 }; 352 353 &vbus_host { 354 enable-active-high; 355 gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH 356 }; 357 358 &vbus_typec { 359 enable-active-high; 360 gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH 361 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.