ARM: dts: am335x: replace gpio-key,wakeup with wakeup-source property
[deliverable/linux.git] / arch / arm / boot / dts / logicpd-torpedo-37xx-devkit.dts
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 sound {
52 compatible = "ti,omap-twl4030";
53 ti,model = "omap3logic";
54 ti,mcbsp = <&mcbsp2>;
55 };
56
57 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
76 &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
86 &vaux1 {
87 regulator-min-microvolt = <3000000>;
88 regulator-max-microvolt = <3000000>;
89 };
90
91 &vaux4 {
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
94 };
95
96 &mcbsp2 {
97 status = "okay";
98 };
99
100 &charger {
101 ti,bb-uvolt = <3200000>;
102 ti,bb-uamp = <150>;
103 };
104
105 &gpmc {
106 ranges = <1 0 0x08000000 0x1000000>; /* CS1: 16MB for LAN9221 */
107
108 ethernet@gpmc {
109 pinctrl-names = "default";
110 pinctrl-0 = <&lan9221_pins>;
111 interrupt-parent = <&gpio5>;
112 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; /* gpio129 */
113 reg = <1 0 0xff>;
114 };
115 };
116
117 &mmc1 {
118 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&mmc1_pins &mmc1_cd>;
121 cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */
122 vmmc-supply = <&vmmc1>;
123 bus-width = <4>;
124 cap-power-off-card;
125 };
126
127 &omap3_pmx_core {
128 gpio_key_pins: pinmux_gpio_key_pins {
129 pinctrl-single,pins = <
130 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_clk.gpio_178 */
131 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_cs0.gpio_181 */
132 >;
133 };
134
135 led_pins: pinmux_led_pins {
136 pinctrl-single,pins = <
137 OMAP3_CORE1_IOPAD(0x21d8, PIN_OUTPUT | MUX_MODE4) /* gpio_179 */
138 OMAP3_CORE1_IOPAD(0x21da, PIN_OUTPUT | MUX_MODE4) /* gpio_180 */
139 >;
140 };
141
142 mmc1_pins: pinmux_mmc1_pins {
143 pinctrl-single,pins = <
144 OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
145 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
146 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
147 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
148 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
149 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
150 >;
151 };
152 };
153
154 &omap3_pmx_wkup {
155 gpio_key_pins_wkup: pinmux_gpio_key_pins_wkup {
156 pinctrl-single,pins = <
157 OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot0.gpio_2 */
158 OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot5.gpio_7 */
159 >;
160 };
161
162 lan9221_pins: pinmux_lan9221_pins {
163 pinctrl-single,pins = <
164 OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4) /* reserved.gpio_129 */
165 >;
166 };
167
168 mmc1_cd: pinmux_mmc1_cd {
169 pinctrl-single,pins = <
170 OMAP3_WKUP_IOPAD(0x2a54, PIN_INPUT_PULLUP | MUX_MODE4) /* reserved.gpio_127 */
171 >;
172 };
173 };
174
175 &uart1 {
176 interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
177 };
178
179 /* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
180 &usb_otg_hs {
181 interface-type = <0>;
182 usb-phy = <&usb2_phy>;
183 phys = <&usb2_phy>;
184 phy-names = "usb2-phy";
185 mode = <3>;
186 power = <50>;
187 };
This page took 0.039753 seconds and 5 git commands to generate.