• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6
7/dts-v1/;
8
9#include "omap36xx.dtsi"
10#include "logicpd-torpedo-som.dtsi"
11#include "omap-gpmc-smsc9221.dtsi"
12
13/ {
14	model = "LogicPD Zoom DM3730 Torpedo Development Kit";
15	compatible = "logicpd,dm3730-torpedo-devkit", "ti,omap3630", "ti,omap3";
16
17	gpio_keys {
18		compatible = "gpio-keys";
19		pinctrl-names = "default";
20		pinctrl-0 = <&gpio_key_pins &gpio_key_pins_wkup>;
21
22		sysboot2 {
23			label = "sysboot2";
24			gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;	/* gpio2 */
25			linux,code = <BTN_0>;
26			gpio-key,wakeup;
27		};
28
29		sysboot5 {
30			label = "sysboot5";
31			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;	/* gpio7 */
32			linux,code = <BTN_1>;
33			gpio-key,wakeup;
34		};
35
36		gpio1 {
37			label = "gpio1";
38			gpios = <&gpio6 21 GPIO_ACTIVE_LOW>;	/* gpio181 */
39			linux,code = <BTN_2>;
40			gpio-key,wakeup;
41		};
42
43		gpio2 {
44			label = "gpio2";
45			gpios = <&gpio6 18 GPIO_ACTIVE_LOW>;	/* gpio178 */
46			linux,code = <BTN_3>;
47			gpio-key,wakeup;
48		};
49	};
50
51	leds {
52		compatible = "gpio-leds";
53		pinctrl-names = "default";
54		pinctrl-0 = <&led_pins>;
55
56		led1 {
57			label = "led1";
58			gpios = <&gpio6 20 GPIO_ACTIVE_HIGH>;	/* gpio180 */
59			linux,default-trigger = "cpu0";
60		};
61
62		led2 {
63			label = "led2";
64			gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>;	/* gpio179 */
65			linux,default-trigger = "none";
66		};
67	};
68};
69
70&charger {
71	ti,bb-uvolt = <3200000>;
72	ti,bb-uamp = <150>;
73};
74
75&gpmc {
76	ranges = <1 0 0x08000000 0x1000000>;	/* CS1: 16MB for LAN9221 */
77
78	ethernet@gpmc {
79		pinctrl-names = "default";
80		pinctrl-0 = <&lan9221_pins>;
81		interrupt-parent = <&gpio5>;
82		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;		/* gpio129 */
83		reg = <1 0 0xff>;
84	};
85};
86
87&mmc1 {
88	interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
89	pinctrl-names = "default";
90	pinctrl-0 = <&mmc1_pins &mmc1_cd>;
91	cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>;		/* gpio127 */
92	vmmc-supply = <&vmmc1>;
93	bus-width = <4>;
94	cap-power-off-card;
95};
96
97&omap3_pmx_core {
98	gpio_key_pins: pinmux_gpio_key_pins {
99		pinctrl-single,pins = <
100			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLUP | MUX_MODE4)	/* mcspi2_clk.gpio_178 */
101			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLUP | MUX_MODE4)	/* mcspi2_cs0.gpio_181 */
102		>;
103	};
104
105	led_pins: pinmux_led_pins {
106		pinctrl-single,pins = <
107			OMAP3_CORE1_IOPAD(0x21d8, PIN_OUTPUT | MUX_MODE4)	/* gpio_179 */
108			OMAP3_CORE1_IOPAD(0x21da, PIN_OUTPUT | MUX_MODE4)	/* gpio_180 */
109		>;
110	};
111
112	mmc1_pins: pinmux_mmc1_pins {
113		pinctrl-single,pins = <
114			OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
115			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
116			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
117			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
118			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
119			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
120		>;
121	};
122};
123
124&omap3_pmx_wkup {
125	gpio_key_pins_wkup: pinmux_gpio_key_pins_wkup {
126		pinctrl-single,pins = <
127			OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT_PULLUP | MUX_MODE4)	/* sys_boot0.gpio_2 */
128			OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT_PULLUP | MUX_MODE4)	/* sys_boot5.gpio_7 */
129		>;
130	};
131
132	lan9221_pins: pinmux_lan9221_pins {
133		pinctrl-single,pins = <
134			OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4)		/* reserved.gpio_129 */
135		>;
136	};
137
138	mmc1_cd: pinmux_mmc1_cd {
139		pinctrl-single,pins = <
140			OMAP3_WKUP_IOPAD(0x2a54, PIN_INPUT_PULLUP | MUX_MODE4)	/* reserved.gpio_127 */
141		>;
142	};
143};
144
145&uart1 {
146	interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
147};
148
149/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
150&usb_otg_hs {
151	interface-type = <0>;
152	usb-phy = <&usb2_phy>;
153	phys = <&usb2_phy>;
154	phy-names = "usb2-phy";
155	mode = <3>;
156	power = <50>;
157};
158