2 * support for the bosch am335x based shc c3 board
4 * Copyright, C) 2015 Heiko Schocher <hs@denx.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 #include "am33xx.dtsi"
13 #include <dt-bindings/input/input.h>
17 compatible = "ti,am335x-shc", "ti,am335x-bone", "ti,am33xx";
27 * To consider voltage drop between PMIC and SoC,
28 * tolerance value is reduced to 2% from 4% and
29 * voltage value is increased as a precaution.
36 voltage-tolerance = <2>; /* 2 percentage */
37 cpu0-supply = <&dcdc2_reg>;
42 compatible = "gpio-keys";
45 label = "Back Button";
46 gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
47 linux,code = <KEY_BACK>;
48 debounce-interval = <1000>;
53 label = "Front Button";
54 gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>;
55 linux,code = <KEY_FRONT>;
56 debounce-interval = <1000>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&user_leds_s0>;
65 compatible = "gpio-leds";
68 label = "shc:power:red";
69 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
70 default-state = "off";
74 label = "shc:power:bl";
75 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
76 linux,default-trigger = "timer";
81 label = "shc:lan:red";
82 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
88 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
93 label = "shc:cloud:red";
94 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
99 label = "shc:cloud:bl";
100 gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
101 default-state = "off";
106 device_type = "memory";
107 reg = <0x80000000 0x20000000>; /* 512 MB */
110 vmmcsd_fixed: fixedregulator0 {
111 compatible = "regulator-fixed";
112 regulator-name = "vmmcsd_fixed";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
127 pinctrl-names = "default", "sleep";
128 pinctrl-0 = <&davinci_mdio_default>;
129 pinctrl-1 = <&davinci_mdio_sleep>;
132 ethernetphy0: ethernet-phy@0 {
134 smsc,disable-energy-detect;
141 ehrpwm1: pwm@48302200 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&ehrpwm1_pins>;
151 gpios = <24 GPIO_ACTIVE_LOW>;
153 line-name = "homematic_reset";
158 gpios = <27 GPIO_ACTIVE_LOW>;
160 line-name = "homematic_program";
167 gpios = <18 GPIO_ACTIVE_LOW>;
169 line-name = "zigbee_reset";
174 gpios = <19 GPIO_ACTIVE_HIGH>;
176 line-name = "zigbee_boot";
181 pinctrl-names = "default";
182 pinctrl-0 = <&i2c0_pins>;
184 clock-frequency = <400000>;
191 compatible = "atmel,24c32";
197 compatible = "nxp,pcf8563";
203 pinctrl-names = "default", "sleep";
204 pinctrl-0 = <&cpsw_default>;
205 pinctrl-1 = <&cpsw_sleep>;
208 cpsw_emac0: slave@4a100200 {
209 phy_id = <&davinci_mdio>, <0>;
211 phy-handle = <ðernetphy0>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&mmc1_pins>;
219 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
221 max-frequency = <26000000>;
222 vmmc-supply = <&vmmcsd_fixed>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&emmc_pins>;
230 max-frequency = <26000000>;
232 vmmc-supply = <&vmmcsd_fixed>;
237 pinctrl-names = "default";
238 pinctrl-0 = <&mmc3_pins>;
241 max-frequency = <26000000>;
243 vmmc-supply = <&vmmcsd_fixed>;
256 compatible = "ti,tps65217";
257 ti,pmic-shutdown-controller;
260 #address-cells = <1>;
263 dcdc1_reg: regulator@0 {
265 regulator-name = "vdds_dpr";
266 regulator-compatible = "dcdc1";
267 regulator-min-microvolt = <1300000>;
268 regulator-max-microvolt = <1450000>;
273 dcdc2_reg: regulator@1 {
276 * VDD_MPU voltage limits 0.95V - 1.26V with
279 regulator-compatible = "dcdc2";
280 regulator-name = "vdd_mpu";
281 regulator-min-microvolt = <925000>;
282 regulator-max-microvolt = <1375000>;
285 regulator-ramp-delay = <70000>;
288 dcdc3_reg: regulator@2 {
291 * VDD_CORE voltage limits 0.95V - 1.1V with
294 regulator-name = "vdd_core";
295 regulator-compatible = "dcdc3";
296 regulator-min-microvolt = <925000>;
297 regulator-max-microvolt = <1125000>;
302 ldo1_reg: regulator@3 {
304 regulator-name = "vio,vrtc,vdds";
305 regulator-compatible = "ldo1";
306 regulator-min-microvolt = <1000000>;
307 regulator-max-microvolt = <1800000>;
311 ldo2_reg: regulator@4 {
313 regulator-name = "vdd_3v3aux";
314 regulator-compatible = "ldo2";
315 regulator-min-microvolt = <900000>;
316 regulator-max-microvolt = <3300000>;
320 ldo3_reg: regulator@5 {
322 regulator-name = "vdd_1v8";
323 regulator-compatible = "ldo3";
324 regulator-min-microvolt = <900000>;
325 regulator-max-microvolt = <1800000>;
329 ldo4_reg: regulator@6 {
331 regulator-name = "vdd_3v3a";
332 regulator-compatible = "ldo4";
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <3300000>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&uart0_pins>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&uart1_pins>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&uart2_pins>;
359 pinctrl-names = "default";
360 pinctrl-0 = <&uart4_pins>;
382 pinctrl-names = "default";
383 pinctrl-0 = <&clkout2_pin>;
385 clkout2_pin: pinmux_clkout2_pin {
386 pinctrl-single,pins = <
387 /* xdma_event_intr1.clkout2 */
388 AM33XX_IOPAD(0x9b4, PIN_INPUT | MUX_MODE6)
392 cpsw_default: cpsw_default {
393 pinctrl-single,pins = <
395 AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE0)
396 AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
397 AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE0)
398 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
399 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
400 AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE0)
401 AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE0)
402 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE0)
403 AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE0)
404 AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE0)
405 AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE0)
406 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE0)
407 AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE0)
411 cpsw_sleep: cpsw_sleep {
412 pinctrl-single,pins = <
413 /* Slave 1 reset value */
414 AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7)
415 AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
416 AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
417 AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
418 AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
419 AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
420 AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
421 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
422 AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
423 AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
424 AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
425 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
426 AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
430 davinci_mdio_default: davinci_mdio_default {
431 pinctrl-single,pins = <
432 /* mdio_data.mdio_data */
433 AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)
434 /* mdio_clk.mdio_clk */
435 AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)
439 davinci_mdio_sleep: davinci_mdio_sleep {
440 pinctrl-single,pins = <
441 /* MDIO reset value */
442 AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
443 AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
447 ehrpwm1_pins: pinmux_ehrpwm1 {
448 pinctrl-single,pins = <
449 AM33XX_IOPAD(0x84c, PIN_OUTPUT | MUX_MODE6) /* gpmc_a3.gpio1_19 */
453 emmc_pins: pinmux_emmc_pins {
454 pinctrl-single,pins = <
455 AM33XX_IOPAD(0x880, PIN_INPUT | MUX_MODE2)
456 AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2)
457 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1)
458 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1)
459 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1)
460 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1)
461 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1)
462 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1)
463 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1)
464 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1)
468 i2c0_pins: pinmux_i2c0_pins {
469 pinctrl-single,pins = <
470 AM33XX_IOPAD(0x988, PIN_INPUT | MUX_MODE0)
471 AM33XX_IOPAD(0x98c, PIN_INPUT | MUX_MODE0)
475 mmc1_pins: pinmux_mmc1_pins {
476 pinctrl-single,pins = <
477 AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE5)
481 mmc3_pins: pinmux_mmc3_pins {
482 pinctrl-single,pins = <
483 AM33XX_IOPAD(0x830, PIN_INPUT | MUX_MODE3)
484 AM33XX_IOPAD(0x834, PIN_INPUT | MUX_MODE3)
485 AM33XX_IOPAD(0x838, PIN_INPUT | MUX_MODE3)
486 AM33XX_IOPAD(0x83c, PIN_INPUT | MUX_MODE3)
487 AM33XX_IOPAD(0x888, PIN_INPUT | MUX_MODE3)
488 AM33XX_IOPAD(0x88c, PIN_INPUT | MUX_MODE3)
492 uart0_pins: pinmux_uart0_pins {
493 pinctrl-single,pins = <
494 AM33XX_IOPAD(0x968, PIN_INPUT_PULLDOWN | MUX_MODE0)
495 AM33XX_IOPAD(0x96c, PIN_OUTPUT | MUX_MODE0)
496 AM33XX_IOPAD(0x970, PIN_INPUT_PULLDOWN | MUX_MODE0)
497 AM33XX_IOPAD(0x974, PIN_OUTPUT | MUX_MODE0)
501 uart1_pins: pinmux_uart1 {
502 pinctrl-single,pins = <
503 AM33XX_IOPAD(0x978, PIN_INPUT_PULLDOWN | MUX_MODE0)
504 AM33XX_IOPAD(0x97C, PIN_OUTPUT | MUX_MODE0)
505 AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE0)
506 AM33XX_IOPAD(0x984, PIN_OUTPUT | MUX_MODE0)
510 uart2_pins: pinmux_uart2_pins {
511 pinctrl-single,pins = <
512 AM33XX_IOPAD(0x950, PIN_INPUT | MUX_MODE1)
513 AM33XX_IOPAD(0x954, PIN_OUTPUT | MUX_MODE1)
517 uart4_pins: pinmux_uart4_pins {
518 pinctrl-single,pins = <
519 AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE6)
520 AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE6)
524 user_leds_s0: user_leds_s0 {
525 pinctrl-single,pins = <
526 AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE7)
527 AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE7)
528 AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE7)
529 AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE7)
530 AM33XX_IOPAD(0x840, PIN_OUTPUT | MUX_MODE7)
531 AM33XX_IOPAD(0x844, PIN_OUTPUT | MUX_MODE7)
532 AM33XX_IOPAD(0x848, PIN_OUTPUT | MUX_MODE7)
533 AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7)
534 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7)
535 AM33XX_IOPAD(0x858, PIN_OUTPUT | MUX_MODE7)
536 AM33XX_IOPAD(0x85c, PIN_OUTPUT_PULLUP | MUX_MODE7)
537 AM33XX_IOPAD(0x860, PIN_INPUT | MUX_MODE7)
538 AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7)
539 AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7)
540 AM33XX_IOPAD(0x86c, PIN_INPUT | MUX_MODE7)
541 AM33XX_IOPAD(0x878, PIN_OUTPUT_PULLUP | MUX_MODE7)
542 AM33XX_IOPAD(0x87c, PIN_INPUT | MUX_MODE7)
543 AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE7)
544 AM33XX_IOPAD(0x894, PIN_INPUT | MUX_MODE7)
545 AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE7)
546 AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE7)
547 AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE7)
548 AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE7)
549 AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE7)
550 AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE7)
551 AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE7)
552 AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE7)
553 AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE7)
554 AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE7)
555 AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE7)
556 AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE7)
557 AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE7)
558 AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE7)
559 AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE7)
560 AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE7)
561 AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE7)
562 AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE7)
563 AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE7)
564 AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE7)
565 AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE7)
566 AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE7)
567 AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)
568 AM33XX_IOPAD(0x958, PIN_OUTPUT | MUX_MODE7)
569 AM33XX_IOPAD(0x95c, PIN_OUTPUT | MUX_MODE7)
570 AM33XX_IOPAD(0x964, PIN_OUTPUT_PULLUP | MUX_MODE7)
571 AM33XX_IOPAD(0x9a0, PIN_OUTPUT_PULLDOWN | MUX_MODE7)
572 AM33XX_IOPAD(0x9a4, PIN_OUTPUT_PULLDOWN | MUX_MODE7)
573 AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE7)
574 AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLUP | MUX_MODE7)