• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Common Device Tree Source for IGEP COM MODULE
3 *
4 * Copyright (C) 2014 Javier Martinez Canillas <javier@osg.samsung.com>
5 * Copyright (C) 2014 Enric Balletbo i Serra <eballetbo@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#include "omap3-igep.dtsi"
13
14/ {
15	leds: gpio_leds {
16		compatible = "gpio-leds";
17
18		user0 {
19			 label = "omap3:red:user0";
20			 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;	/* LEDA */
21			 default-state = "off";
22		};
23
24		user1 {
25			 label = "omap3:green:user1";
26			 gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>;	/* LEDB */
27			 default-state = "off";
28		};
29
30		user2 {
31			 label = "omap3:red:user1";
32			 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;		/* gpio_16 */
33			 default-state = "off";
34		};
35	};
36
37	hsusb2_phy: hsusb2_phy {
38		compatible = "usb-nop-xceiv";
39		reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;		/* gpio_54 */
40	};
41};
42
43&omap3_pmx_core {
44	pinctrl-names = "default";
45	pinctrl-0 = <&hsusb2_pins>;
46
47	hsusb2_pins: pinmux_hsusb2_pins {
48		pinctrl-single,pins = <
49			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi1_cs3.hsusb2_data2 */
50			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_clk.hsusb2_data7 */
51			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_simo.hsusb2_data4 */
52			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_somi.hsusb2_data5 */
53			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs0.hsusb2_data6 */
54			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs1.hsusb2_data3 */
55		>;
56	};
57
58	uart2_pins: pinmux_uart2_pins {
59		pinctrl-single,pins = <
60			OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1)	/* mcbsp3_dx.uart2_cts */
61			OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_dr.uart2_rts */
62			OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_clk.uart2_tx */
63			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1)	/* mcbsp3_fsx.uart2_rx */
64		>;
65	};
66};
67
68&omap3_pmx_core2 {
69	pinctrl-names = "default";
70	pinctrl-0 = <&hsusb2_core2_pins>;
71
72	hsusb2_core2_pins: pinmux_hsusb2_core2_pins {
73		pinctrl-single,pins = <
74			OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)		      /* etk_d10.hsusb2_clk */
75			OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)		      /* etk_d11.hsusb2_stp */
76			OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d12.hsusb2_dir */
77			OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d13.hsusb2_nxt */
78			OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d14.hsusb2_data0 */
79			OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d15.hsusb2_data1 */
80		>;
81	};
82
83	leds_core2_pins: pinmux_leds_core2_pins {
84		pinctrl-single,pins = <
85			OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4)	/* etk_d2.gpio_16 */
86		>;
87	};
88};
89
90&usbhshost {
91	port2-mode = "ehci-phy";
92};
93
94&usbhsehci {
95	phys = <0 &hsusb2_phy>;
96};
97
98&uart2 {
99	pinctrl-names = "default";
100	pinctrl-0 = <&uart2_pins>;
101};
102
103&gpmc {
104	ranges = <0 0 0x30000000 0x01000000>;   /* CS0: 16MB for NAND */
105};
106