1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naob 4 */ 5 6 /dts-v1/; 7 #include <dt-bindings/input/input.h> 8 #include "rk3066a.dtsi" 9 10 / { 11 model = "Rayeager PX2"; 12 compatible = "chipspark,rayeager-px2", 13 14 aliases { 15 mmc0 = &mmc0; 16 mmc1 = &mmc1; 17 mmc2 = &emmc; 18 }; 19 20 memory@60000000 { 21 device_type = "memory"; 22 reg = <0x60000000 0x40000000>; 23 }; 24 25 ir: ir-receiver { 26 compatible = "gpio-ir-receiver 27 gpios = <&gpio6 RK_PA1 GPIO_AC 28 pinctrl-names = "default"; 29 pinctrl-0 = <&ir_int>; 30 }; 31 32 keys: gpio-keys { 33 compatible = "gpio-keys"; 34 35 key-power { 36 wakeup-source; 37 gpios = <&gpio6 RK_PA2 38 label = "GPIO Power"; 39 linux,code = <KEY_POWE 40 pinctrl-names = "defau 41 pinctrl-0 = <&pwr_key> 42 }; 43 }; 44 45 vdd_log: vdd-log { 46 compatible = "pwm-regulator"; 47 pwms = <&pwm3 0 1000>; 48 regulator-name = "vdd_log"; 49 regulator-min-microvolt = <120 50 regulator-max-microvolt = <120 51 regulator-always-on; 52 voltage-table = <1000000 100>, 53 <1200000 42>; 54 status = "okay"; 55 }; 56 57 vsys: vsys-regulator { 58 compatible = "regulator-fixed" 59 regulator-name = "vsys"; 60 regulator-min-microvolt = <500 61 regulator-max-microvolt = <500 62 regulator-always-on; 63 regulator-boot-on; 64 }; 65 66 /* input for 5V_STDBY is VSYS or DC5V, 67 vcc_stdby: stdby-regulator { 68 compatible = "regulator-fixed" 69 regulator-name = "5v_stdby"; 70 regulator-min-microvolt = <500 71 regulator-max-microvolt = <500 72 regulator-always-on; 73 regulator-boot-on; 74 }; 75 76 vcc_emmc: emmc-regulator { 77 compatible = "regulator-fixed" 78 regulator-name = "emmc_vccq"; 79 regulator-min-microvolt = <300 80 regulator-max-microvolt = <300 81 vin-supply = <&vsys>; 82 }; 83 84 vcc_sata: sata-regulator { 85 compatible = "regulator-fixed" 86 enable-active-high; 87 gpio = <&gpio4 RK_PC6 GPIO_ACT 88 pinctrl-names = "default"; 89 pinctrl-0 = <&sata_pwr>; 90 regulator-name = "usb_5v"; 91 regulator-min-microvolt = <500 92 regulator-max-microvolt = <500 93 regulator-always-on; 94 vin-supply = <&vcc_stdby>; 95 }; 96 97 vcc_sd: sdmmc-regulator { 98 compatible = "regulator-fixed" 99 gpio = <&gpio3 RK_PA7 GPIO_ACT 100 pinctrl-names = "default"; 101 pinctrl-0 = <&sdmmc_pwr>; 102 regulator-name = "vcc_sd"; 103 regulator-min-microvolt = <330 104 regulator-max-microvolt = <330 105 startup-delay-us = <100000>; 106 vin-supply = <&vcc_io>; 107 }; 108 109 vcc_host: usb-host-regulator { 110 compatible = "regulator-fixed" 111 enable-active-high; 112 gpio = <&gpio0 RK_PA6 GPIO_ACT 113 pinctrl-names = "default"; 114 pinctrl-0 = <&host_drv>; 115 regulator-name = "host-pwr"; 116 regulator-min-microvolt = <500 117 regulator-max-microvolt = <500 118 regulator-always-on; 119 vin-supply = <&vcc_stdby>; 120 }; 121 122 vcc_otg: usb-otg-regulator { 123 compatible = "regulator-fixed" 124 enable-active-high; 125 gpio = <&gpio0 RK_PA5 GPIO_ACT 126 pinctrl-names = "default"; 127 pinctrl-0 = <&otg_drv>; 128 regulator-name = "vcc_otg"; 129 regulator-min-microvolt = <500 130 regulator-max-microvolt = <500 131 regulator-always-on; 132 vin-supply = <&vcc_stdby>; 133 }; 134 }; 135 136 &cpu0 { 137 cpu-supply = <&vdd_arm>; 138 }; 139 140 &cpu1 { 141 cpu-supply = <&vdd_arm>; 142 }; 143 144 &emac { 145 phy = <&phy0>; 146 phy-supply = <&vcc_rmii>; 147 pinctrl-names = "default"; 148 pinctrl-0 = <&emac_xfer>, <&emac_mdio> 149 status = "okay"; 150 151 mdio { 152 #address-cells = <1>; 153 #size-cells = <0>; 154 155 phy0: ethernet-phy@0 { 156 reg = <0>; 157 reset-gpios = <&gpio1 158 }; 159 }; 160 }; 161 162 &emmc { 163 bus-width = <8>; 164 cap-mmc-highspeed; 165 non-removable; 166 pinctrl-names = "default"; 167 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, 168 vmmc-supply = <&vcc_emmc>; 169 vqmmc-supply = <&vcc_emmc>; 170 status = "okay"; 171 }; 172 173 &i2c0 { 174 clock-frequency = <400000>; 175 status = "okay"; 176 177 ak8963: ak8963@d { 178 compatible = "asahi-kasei,ak89 179 reg = <0x0d>; 180 interrupt-parent = <&gpio4>; 181 interrupts = <RK_PC1 IRQ_TYPE_ 182 pinctrl-names = "default"; 183 pinctrl-0 = <&comp_int>; 184 }; 185 186 mma8452: mma8452@1d { 187 compatible = "fsl,mma8452"; 188 reg = <0x1d>; 189 interrupt-parent = <&gpio4>; 190 interrupts = <RK_PC0 IRQ_TYPE_ 191 pinctrl-names = "default"; 192 pinctrl-0 = <&gsensor_int>; 193 }; 194 }; 195 196 &i2c1 { 197 clock-frequency = <400000>; 198 status = "okay"; 199 200 tps: tps@2d { 201 reg = <0x2d>; 202 interrupt-parent = <&gpio6>; 203 interrupts = <RK_PA4 IRQ_TYPE_ 204 pinctrl-names = "default"; 205 pinctrl-0 = <&pmic_int>, <&pwr 206 207 vcc1-supply = <&vsys>; 208 vcc2-supply = <&vsys>; 209 vcc3-supply = <&vsys>; 210 vcc4-supply = <&vsys>; 211 vcc5-supply = <&vcc_io>; 212 vcc6-supply = <&vcc_io>; 213 vcc7-supply = <&vsys>; 214 vccio-supply = <&vsys>; 215 216 regulators { 217 vcc_rtc: regulator@0 { 218 regulator-name 219 regulator-alwa 220 }; 221 222 vcc_io: regulator@1 { 223 regulator-name 224 regulator-min- 225 regulator-max- 226 regulator-alwa 227 }; 228 229 vdd_arm: regulator@2 { 230 regulator-name 231 regulator-min- 232 regulator-max- 233 regulator-alwa 234 regulator-boot 235 }; 236 237 vcc_ddr: regulator@3 { 238 regulator-name 239 regulator-min- 240 regulator-max- 241 regulator-alwa 242 regulator-boot 243 }; 244 245 vcc18: regulator@5 { 246 regulator-name 247 regulator-min- 248 regulator-max- 249 regulator-alwa 250 }; 251 252 vdd_11: regulator@6 { 253 regulator-name 254 regulator-min- 255 regulator-max- 256 regulator-alwa 257 }; 258 259 vcc_25: regulator@7 { 260 regulator-name 261 regulator-min- 262 regulator-max- 263 regulator-alwa 264 }; 265 266 vccio_wl: regulator@8 267 regulator-name 268 regulator-min- 269 regulator-max- 270 }; 271 272 vcc25_hdmi: regulator@ 273 regulator-name 274 regulator-min- 275 regulator-max- 276 }; 277 278 vcca_33: regulator@10 279 regulator-name 280 regulator-min- 281 regulator-max- 282 }; 283 284 vcc_rmii: regulator@11 285 regulator-name 286 regulator-min- 287 regulator-max- 288 }; 289 290 vcc28_cif: regulator@1 291 regulator-name 292 regulator-min- 293 regulator-max- 294 }; 295 }; 296 }; 297 }; 298 299 #include "../tps65910.dtsi" 300 301 &i2c2 { 302 status = "okay"; 303 }; 304 305 &i2c3 { 306 status = "okay"; 307 }; 308 309 &i2c4 { 310 status = "okay"; 311 }; 312 313 &mmc0 { 314 bus-width = <4>; 315 disable-wp; 316 pinctrl-names = "default"; 317 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <& 318 vmmc-supply = <&vcc_sd>; 319 cap-mmc-highspeed; 320 cap-sd-highspeed; 321 status = "okay"; 322 }; 323 324 &mmc1 { 325 bus-width = <4>; 326 non-removable; 327 pinctrl-names = "default"; 328 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <& 329 vmmc-supply = <&vccio_wl>; 330 status = "okay"; 331 }; 332 333 &pinctrl { 334 pcfg_output_high: pcfg-output-high { 335 output-high; 336 }; 337 338 ak8963 { 339 comp_int: comp-int { 340 rockchip,pins = <4 RK_ 341 }; 342 }; 343 344 emac { 345 rmii_rst: rmii-rst { 346 rockchip,pins = <1 RK_ 347 }; 348 }; 349 350 ir { 351 ir_int: ir-int { 352 rockchip,pins = <6 RK_ 353 }; 354 }; 355 356 keys { 357 pwr_key: pwr-key { 358 rockchip,pins = <6 RK_ 359 }; 360 }; 361 362 mma8452 { 363 gsensor_int: gsensor-int { 364 rockchip,pins = <4 RK_ 365 }; 366 }; 367 368 mmc { 369 sdmmc_pwr: sdmmc-pwr { 370 rockchip,pins = <3 RK_ 371 }; 372 }; 373 374 usb_host { 375 host_drv: host-drv { 376 rockchip,pins = <0 RK_ 377 }; 378 379 hub_rst: hub-rst { 380 rockchip,pins = <1 RK_ 381 }; 382 383 sata_pwr: sata-pwr { 384 rockchip,pins = <4 RK_ 385 }; 386 387 sata_reset: sata-reset { 388 rockchip,pins = <0 RK_ 389 }; 390 }; 391 392 usb_otg { 393 otg_drv: otg-drv { 394 rockchip,pins = <0 RK_ 395 }; 396 }; 397 398 tps { 399 pmic_int: pmic-int { 400 rockchip,pins = <6 RK_ 401 }; 402 403 pwr_hold: pwr-hold { 404 rockchip,pins = <6 RK_ 405 }; 406 }; 407 }; 408 409 &pwm1 { 410 status = "okay"; 411 }; 412 413 &pwm2 { 414 status = "okay"; 415 }; 416 417 &pwm3 { 418 status = "okay"; 419 }; 420 421 &saradc { 422 vref-supply = <&vcc_25>; 423 status = "okay"; 424 }; 425 426 &spi0 { 427 status = "okay"; 428 }; 429 430 &uart0 { 431 pinctrl-names = "default"; 432 pinctrl-0 = <&uart0_xfer>, <&uart0_cts 433 status = "okay"; 434 }; 435 436 &uart2 { 437 status = "okay"; 438 }; 439 440 &uart3 { 441 pinctrl-names = "default"; 442 pinctrl-0 = <&uart3_xfer>, <&uart3_cts 443 status = "okay"; 444 }; 445 446 &usb_host { 447 pinctrl-names = "default"; 448 pinctrl-0 = <&hub_rst>, <&sata_reset>; 449 status = "okay"; 450 }; 451 452 &usbphy { 453 status = "okay"; 454 }; 455 456 &usb_otg { 457 status = "okay"; 458 }; 459 460 &wdt { 461 status = "okay"; 462 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.