1 // SPDX-License-Identifier: GPL-2.0
3 * support for the bosch am335x based shc c3 board
10 #include "am33xx.dtsi"
11 #include <dt-bindings/input/input.h>
15 compatible = "ti,am335x-shc", "ti,am335x-bone", "ti,am33xx";
25 * To consider voltage drop between PMIC and SoC,
26 * tolerance value is reduced to 2% from 4% and
27 * voltage value is increased as a precaution.
34 voltage-tolerance = <2>; /* 2 percentage */
35 cpu0-supply = <&dcdc2_reg>;
40 compatible = "gpio-keys";
43 label = "Back Button";
44 gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
45 linux,code = <KEY_BACK>;
46 debounce-interval = <1000>;
51 label = "Front Button";
52 gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>;
53 linux,code = <KEY_FRONT>;
54 debounce-interval = <1000>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&user_leds_s0>;
63 compatible = "gpio-leds";
66 label = "shc:power:red";
67 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
68 default-state = "off";
72 label = "shc:power:bl";
73 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
74 linux,default-trigger = "timer";
79 label = "shc:lan:red";
80 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
81 default-state = "off";
86 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
87 default-state = "off";
91 label = "shc:cloud:red";
92 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
93 default-state = "off";
97 label = "shc:cloud:bl";
98 gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
99 default-state = "off";
104 device_type = "memory";
105 reg = <0x80000000 0x20000000>; /* 512 MB */
108 vmmcsd_fixed: fixedregulator0 {
109 compatible = "regulator-fixed";
110 regulator-name = "vmmcsd_fixed";
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&ehrpwm1_pins>;
133 gpios = <24 GPIO_ACTIVE_LOW>;
135 line-name = "homematic_reset";
140 gpios = <27 GPIO_ACTIVE_LOW>;
142 line-name = "homematic_program";
149 gpios = <18 GPIO_ACTIVE_LOW>;
151 line-name = "zigbee_reset";
156 gpios = <19 GPIO_ACTIVE_HIGH>;
158 line-name = "zigbee_boot";
163 pinctrl-names = "default";
164 pinctrl-0 = <&i2c0_pins>;
166 clock-frequency = <400000>;
173 compatible = "atmel,24c32";
179 compatible = "nxp,pcf8563";
185 pinctrl-names = "default", "sleep";
186 pinctrl-0 = <&cpsw_default>;
187 pinctrl-1 = <&cpsw_sleep>;
193 phy-handle = <ðernetphy0>;
194 ti,dual-emac-pvid = <1>;
202 pinctrl-names = "default", "sleep";
203 pinctrl-0 = <&davinci_mdio_default>;
204 pinctrl-1 = <&davinci_mdio_sleep>;
206 ethernetphy0: ethernet-phy@0 {
208 smsc,disable-energy-detect;
213 pinctrl-names = "default";
214 pinctrl-0 = <&mmc1_pins>;
216 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
218 max-frequency = <26000000>;
219 vmmc-supply = <&vmmcsd_fixed>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&emmc_pins>;
227 max-frequency = <26000000>;
229 vmmc-supply = <&vmmcsd_fixed>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&mmc3_pins>;
238 max-frequency = <26000000>;
240 vmmc-supply = <&vmmcsd_fixed>;
253 compatible = "ti,tps65217";
254 ti,pmic-shutdown-controller;
257 #address-cells = <1>;
260 dcdc1_reg: regulator@0 {
262 regulator-name = "vdds_dpr";
263 regulator-compatible = "dcdc1";
264 regulator-min-microvolt = <1300000>;
265 regulator-max-microvolt = <1450000>;
270 dcdc2_reg: regulator@1 {
273 * VDD_MPU voltage limits 0.95V - 1.26V with
276 regulator-compatible = "dcdc2";
277 regulator-name = "vdd_mpu";
278 regulator-min-microvolt = <925000>;
279 regulator-max-microvolt = <1375000>;
282 regulator-ramp-delay = <70000>;
285 dcdc3_reg: regulator@2 {
288 * VDD_CORE voltage limits 0.95V - 1.1V with
291 regulator-name = "vdd_core";
292 regulator-compatible = "dcdc3";
293 regulator-min-microvolt = <925000>;
294 regulator-max-microvolt = <1125000>;
299 ldo1_reg: regulator@3 {
301 regulator-name = "vio,vrtc,vdds";
302 regulator-compatible = "ldo1";
303 regulator-min-microvolt = <1000000>;
304 regulator-max-microvolt = <1800000>;
308 ldo2_reg: regulator@4 {
310 regulator-name = "vdd_3v3aux";
311 regulator-compatible = "ldo2";
312 regulator-min-microvolt = <900000>;
313 regulator-max-microvolt = <3300000>;
317 ldo3_reg: regulator@5 {
319 regulator-name = "vdd_1v8";
320 regulator-compatible = "ldo3";
321 regulator-min-microvolt = <900000>;
322 regulator-max-microvolt = <1800000>;
326 ldo4_reg: regulator@6 {
328 regulator-name = "vdd_3v3a";
329 regulator-compatible = "ldo4";
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <3300000>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&uart0_pins>;
344 pinctrl-names = "default";
345 pinctrl-0 = <&uart1_pins>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&uart2_pins>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&uart4_pins>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&clkout2_pin>;
369 clkout2_pin: clkout2-pins {
370 pinctrl-single,pins = <
371 /* xdma_event_intr1.clkout2 */
372 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_INPUT, MUX_MODE6)
376 cpsw_default: cpsw-default-pins {
377 pinctrl-single,pins = <
379 AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE0)
380 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
381 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE0)
382 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
383 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
384 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE0)
385 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE0)
386 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
387 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE0)
388 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE0)
389 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE0)
390 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE0)
391 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE0)
395 cpsw_sleep: cpsw-sleep-pins {
396 pinctrl-single,pins = <
397 /* Slave 1 reset value */
398 AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE7)
399 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)
400 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE7)
401 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
402 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
403 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
404 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
405 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
406 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
407 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
408 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
409 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
410 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
414 davinci_mdio_default: davinci-mdio-default-pins {
415 pinctrl-single,pins = <
416 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0)
417 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0)
421 davinci_mdio_sleep: davinci-mdio-sleep-pins {
422 pinctrl-single,pins = <
423 /* MDIO reset value */
424 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7)
425 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7)
429 ehrpwm1_pins: ehrpwm1-pins {
430 pinctrl-single,pins = <
431 AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE6) /* gpmc_a3.gpio1_19 */
435 emmc_pins: emmc-pins {
436 pinctrl-single,pins = <
437 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT, MUX_MODE2)
438 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2)
439 AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1)
440 AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1)
441 AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1)
442 AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1)
443 AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1)
444 AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1)
445 AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1)
446 AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1)
450 i2c0_pins: i2c0-pins {
451 pinctrl-single,pins = <
452 AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT, MUX_MODE0)
453 AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT, MUX_MODE0)
457 mmc1_pins: mmc1-pins {
458 pinctrl-single,pins = <
459 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE5)
463 mmc3_pins: mmc3-pins {
464 pinctrl-single,pins = <
465 AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT, MUX_MODE3)
466 AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT, MUX_MODE3)
467 AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT, MUX_MODE3)
468 AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT, MUX_MODE3)
469 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_INPUT, MUX_MODE3)
470 AM33XX_PADCONF(AM335X_PIN_GPMC_CLK, PIN_INPUT, MUX_MODE3)
474 uart0_pins: uart0-pins {
475 pinctrl-single,pins = <
476 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0)
477 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_OUTPUT, MUX_MODE0)
478 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLDOWN, MUX_MODE0)
479 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT, MUX_MODE0)
483 uart1_pins: uart1-pins {
484 pinctrl-single,pins = <
485 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0)
486 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT, MUX_MODE0)
487 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0)
488 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT, MUX_MODE0)
492 uart2_pins: uart2-pins {
493 pinctrl-single,pins = <
494 AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE1)
495 AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE1)
499 uart4_pins: uart4-pins {
500 pinctrl-single,pins = <
501 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE6)
502 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_OUTPUT_PULLUP, MUX_MODE6)
506 user_leds_s0: user-leds-s0-pins {
507 pinctrl-single,pins = <
508 AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_OUTPUT, MUX_MODE7)
509 AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_OUTPUT, MUX_MODE7)
510 AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE7)
511 AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, MUX_MODE7)
512 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE7)
513 AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_OUTPUT, MUX_MODE7)
514 AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE7)
515 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT_PULLDOWN, MUX_MODE7)
516 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE7)
517 AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT, MUX_MODE7)
518 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT_PULLUP, MUX_MODE7)
519 AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT, MUX_MODE7)
520 AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT, MUX_MODE7)
521 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7)
522 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT, MUX_MODE7)
523 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_OUTPUT_PULLUP, MUX_MODE7)
524 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_INPUT, MUX_MODE7)
525 AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT, MUX_MODE7)
526 AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_INPUT, MUX_MODE7)
527 AM33XX_PADCONF(AM335X_PIN_GPMC_WEN, PIN_OUTPUT, MUX_MODE7)
528 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN0_CLE, PIN_OUTPUT, MUX_MODE7)
529 AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE7)
530 AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE7)
531 AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE7)
532 AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE7)
533 AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE7)
534 AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE7)
535 AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE7)
536 AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE7)
537 AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE7)
538 AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE7)
539 AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE7)
540 AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE7)
541 AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE7)
542 AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE7)
543 AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE7)
544 AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE7)
545 AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT, MUX_MODE7)
546 AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT, MUX_MODE7)
547 AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT, MUX_MODE7)
548 AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT, MUX_MODE7)
549 AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
550 AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_OUTPUT, MUX_MODE7)
551 AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT, MUX_MODE7)
552 AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT_PULLUP, MUX_MODE7)
553 AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKR, PIN_OUTPUT_PULLDOWN, MUX_MODE7)
554 AM33XX_PADCONF(AM335X_PIN_MCASP0_FSR, PIN_OUTPUT_PULLDOWN, MUX_MODE7)
555 AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR1, PIN_INPUT_PULLDOWN, MUX_MODE7)
556 AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_INPUT_PULLUP, MUX_MODE7)