1/*
2 * Common Device Tree Source for IGEP COM MODULE
3 *
4 * Copyright (C) 2014 Javier Martinez Canillas <javier@collabora.co.uk>
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
38&omap3_pmx_core {
39	uart2_pins: pinmux_uart2_pins {
40		pinctrl-single,pins = <
41			OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1)	/* mcbsp3_dx.uart2_cts */
42			OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_dr.uart2_rts */
43			OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_clk.uart2_tx */
44			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1)	/* mcbsp3_fsx.uart2_rx */
45		>;
46	};
47};
48
49&omap3_pmx_core2 {
50	leds_core2_pins: pinmux_leds_core2_pins {
51		pinctrl-single,pins = <
52			OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4)	/* etk_d2.gpio_16 */
53		>;
54	};
55};
56
57&uart2 {
58	pinctrl-names = "default";
59	pinctrl-0 = <&uart2_pins>;
60};
61