blob: b07d1d92c9748a166fb834de02fca64d686244cd [file] [log] [blame]
Tony Lindgren687c2762015-05-20 09:23:43 -07001/*
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";
Tony Lindgren57df5382015-10-16 12:23:33 -070015 compatible = "logicpd,dm3730-torpedo-devkit", "ti,omap3630", "ti,omap3";
Tony Lindgren687c2762015-05-20 09:23:43 -070016
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
Adam Fordf81902e2015-10-23 07:20:23 -050051 sound {
52 compatible = "ti,omap-twl4030";
53 ti,model = "omap3logic";
54 ti,mcbsp = <&mcbsp2>;
55 };
56
Tony Lindgren687c2762015-05-20 09:23:43 -070057 leds {
58 compatible = "gpio-leds";
59 pinctrl-names = "default";
60 pinctrl-0 = <&led_pins>;
61
62 led1 {
63 label = "led1";
64 gpios = <&gpio6 20 GPIO_ACTIVE_HIGH>; /* gpio180 */
65 linux,default-trigger = "cpu0";
66 };
67
68 led2 {
69 label = "led2";
70 gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>; /* gpio179 */
71 linux,default-trigger = "none";
72 };
73 };
74};
75
Adam Ford2d119612015-10-23 07:27:33 -050076&vaux1 {
77 regulator-min-microvolt = <3000000>;
78 regulator-max-microvolt = <3000000>;
79};
80
81&vaux4 {
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <1800000>;
84};
85
Adam Fordf81902e2015-10-23 07:20:23 -050086&mcbsp2 {
87 status = "okay";
88};
89
Tony Lindgren687c2762015-05-20 09:23:43 -070090&charger {
91 ti,bb-uvolt = <3200000>;
92 ti,bb-uamp = <150>;
93};
94
95&gpmc {
96 ranges = <1 0 0x08000000 0x1000000>; /* CS1: 16MB for LAN9221 */
97
98 ethernet@gpmc {
99 pinctrl-names = "default";
100 pinctrl-0 = <&lan9221_pins>;
101 interrupt-parent = <&gpio5>;
102 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; /* gpio129 */
103 reg = <1 0 0xff>;
104 };
105};
106
107&mmc1 {
108 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&mmc1_pins &mmc1_cd>;
111 cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */
112 vmmc-supply = <&vmmc1>;
113 bus-width = <4>;
114 cap-power-off-card;
115};
116
117&omap3_pmx_core {
118 gpio_key_pins: pinmux_gpio_key_pins {
119 pinctrl-single,pins = <
120 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_clk.gpio_178 */
121 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_cs0.gpio_181 */
122 >;
123 };
124
125 led_pins: pinmux_led_pins {
126 pinctrl-single,pins = <
127 OMAP3_CORE1_IOPAD(0x21d8, PIN_OUTPUT | MUX_MODE4) /* gpio_179 */
128 OMAP3_CORE1_IOPAD(0x21da, PIN_OUTPUT | MUX_MODE4) /* gpio_180 */
129 >;
130 };
131
132 mmc1_pins: pinmux_mmc1_pins {
133 pinctrl-single,pins = <
134 OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
135 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
136 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
137 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
138 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
139 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
140 >;
141 };
142};
143
144&omap3_pmx_wkup {
145 gpio_key_pins_wkup: pinmux_gpio_key_pins_wkup {
146 pinctrl-single,pins = <
147 OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot0.gpio_2 */
148 OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot5.gpio_7 */
149 >;
150 };
151
152 lan9221_pins: pinmux_lan9221_pins {
153 pinctrl-single,pins = <
154 OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4) /* reserved.gpio_129 */
155 >;
156 };
157
158 mmc1_cd: pinmux_mmc1_cd {
159 pinctrl-single,pins = <
160 OMAP3_WKUP_IOPAD(0x2a54, PIN_INPUT_PULLUP | MUX_MODE4) /* reserved.gpio_127 */
161 >;
162 };
163};
164
165&uart1 {
166 interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
167};
168
169/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
170&usb_otg_hs {
171 interface-type = <0>;
172 usb-phy = <&usb2_phy>;
173 phys = <&usb2_phy>;
174 phy-names = "usb2-phy";
175 mode = <3>;
176 power = <50>;
177};