]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts
ARM: dts: imx6: add new board RIoTboard
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / imx51-eukrea-mbimxsd51-baseboard.dts
CommitLineData
c19ba9f9
DC
1/*
2 * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 * MA 02110-1301, USA.
17 */
18
19/dts-v1/;
20#include "imx51-eukrea-cpuimx51.dtsi"
21#include <dt-bindings/gpio/gpio.h>
22
23/ {
24 model = "Eukrea CPUIMX51";
25 compatible = "eukrea,mbimxsd51","eukrea,cpuimx51", "fsl,imx51";
26
27 gpio_keys {
28 compatible = "gpio-keys";
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinctrl_gpiokeys_1>;
31
32 button-1 {
33 label = "BP1";
34 gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
35 linux,code = <256>;
36 gpio-key,wakeup;
37 linux,input-type = <1>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43 pinctrl-names = "default";
44 pinctrl-0 = <&pinctrl_gpioled>;
45
46 led1 {
47 label = "led1";
48 gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "heartbeat";
50 };
51 };
52
53 sound {
54 compatible = "eukrea,asoc-tlv320";
55 eukrea,model = "imx51-eukrea-tlv320aic23";
56 ssi-controller = <&ssi2>;
57 fsl,mux-int-port = <2>;
58 fsl,mux-ext-port = <3>;
59 };
9c72e2ad
DC
60
61 usbphy {
62 #address-cells = <1>;
63 #size-cells = <0>;
64 compatible = "simple-bus";
65
66 usbh1phy: usbh1phy@0 {
67 compatible = "usb-nop-xceiv";
68 reg = <0>;
69 clocks = <&clks IMX5_CLK_USB_PHY_GATE>;
70 clock-names = "main_clk";
71 clock-frequency = <19200000>;
72 };
73 };
c19ba9f9
DC
74};
75
76&audmux {
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_audmux>;
79 status = "okay";
80};
81
82&esdhc1 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_esdhc1 &pinctrl_esdhc1_cd>;
85 fsl,cd-controller;
86 status = "okay";
87};
88
89&i2c1 {
90 tlv320aic23: codec@1a {
91 compatible = "ti,tlv320aic23";
92 reg = <0x1a>;
93 };
94};
95
96&iomuxc {
97 imx51-eukrea {
98 pinctrl_audmux: audmuxgrp {
99 fsl,pins = <
100 MX51_PAD_AUD3_BB_TXD__AUD3_TXD 0x80000000
101 MX51_PAD_AUD3_BB_RXD__AUD3_RXD 0x80000000
102 MX51_PAD_AUD3_BB_CK__AUD3_TXC 0x80000000
103 MX51_PAD_AUD3_BB_FS__AUD3_TXFS 0x80000000
104 >;
105 };
106
107 pinctrl_esdhc1: esdhc1grp {
108 fsl,pins = <
109 MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5
110 MX51_PAD_SD1_CLK__SD1_CLK 0x20d5
111 MX51_PAD_SD1_DATA0__SD1_DATA0 0x20d5
112 MX51_PAD_SD1_DATA1__SD1_DATA1 0x20d5
113 MX51_PAD_SD1_DATA2__SD1_DATA2 0x20d5
114 MX51_PAD_SD1_DATA3__SD1_DATA3 0x20d5
115 >;
116 };
117
118 pinctrl_uart1: uart1grp {
119 fsl,pins = <
120 MX51_PAD_UART1_RXD__UART1_RXD 0x1c5
121 MX51_PAD_UART1_TXD__UART1_TXD 0x1c5
122 >;
123 };
124
125 pinctrl_uart3: uart3grp {
126 fsl,pins = <
127 MX51_PAD_UART3_RXD__UART3_RXD 0x1c5
128 MX51_PAD_UART3_TXD__UART3_TXD 0x1c5
129 >;
130 };
131
132 pinctrl_uart3_rtscts: uart3rtsctsgrp {
133 fsl,pins = <
134 MX51_PAD_KEY_COL4__UART3_RTS 0x1c5
135 MX51_PAD_KEY_COL5__UART3_CTS 0x1c5
136 >;
137 };
138
139 pinctrl_backlight_1: backlightgrp-1 {
140 fsl,pins = <
141 MX51_PAD_DI1_D1_CS__GPIO3_4 0x1f5
142 >;
143 };
144
145 pinctrl_esdhc1_cd: esdhc1_cd {
146 fsl,pins = <
147 MX51_PAD_GPIO1_0__SD1_CD 0x20d5
148 >;
149 };
150
151 pinctrl_gpiokeys_1: gpiokeysgrp-1 {
152 fsl,pins = <
153 MX51_PAD_NANDF_D9__GPIO3_31 0x1f5
154 >;
155 };
156
157 pinctrl_gpioled: gpioledgrp-1 {
158 fsl,pins = <
159 MX51_PAD_NANDF_D10__GPIO3_30 0x80000000
160 >;
161 };
162
163 pinctrl_reg_lcd_3v3: reg_lcd_3v3 {
164 fsl,pins = <
165 MX51_PAD_CSI1_D9__GPIO3_13 0x1f5
166 >;
167 };
9c72e2ad
DC
168
169 pinctrl_usbh1: usbh1grp {
170 fsl,pins = <
171 MX51_PAD_USBH1_CLK__USBH1_CLK 0x1e5
172 MX51_PAD_USBH1_DIR__USBH1_DIR 0x1e5
173 MX51_PAD_USBH1_NXT__USBH1_NXT 0x1e5
174 MX51_PAD_USBH1_DATA0__USBH1_DATA0 0x1e5
175 MX51_PAD_USBH1_DATA1__USBH1_DATA1 0x1e5
176 MX51_PAD_USBH1_DATA2__USBH1_DATA2 0x1e5
177 MX51_PAD_USBH1_DATA3__USBH1_DATA3 0x1e5
178 MX51_PAD_USBH1_DATA4__USBH1_DATA4 0x1e5
179 MX51_PAD_USBH1_DATA5__USBH1_DATA5 0x1e5
180 MX51_PAD_USBH1_DATA6__USBH1_DATA6 0x1e5
181 MX51_PAD_USBH1_DATA7__USBH1_DATA7 0x1e5
182 MX51_PAD_USBH1_STP__USBH1_STP 0x1e5
183 >;
184 };
185
186 pinctrl_usbh1_vbus: usbh1-vbusgrp {
187 fsl,pins = <
188 MX51_PAD_EIM_CS3__GPIO2_28 0x1f5
189 >;
190 };
c19ba9f9
DC
191 };
192};
193
194&ssi2 {
195 codec-handle = <&tlv320aic23>;
196 fsl,mode = "i2s-slave";
197 status = "okay";
198};
199
200&uart1 {
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_uart1>;
203 fsl,uart-has-rtscts;
204 status = "okay";
205};
206
207&uart3 {
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_uart3 &pinctrl_uart3_rtscts>;
210 fsl,uart-has-rtscts;
211 status = "okay";
212};
9c72e2ad
DC
213
214&usbh1 {
215 pinctrl-names = "default";
216 pinctrl-0 = <&pinctrl_usbh1>;
217 fsl,usbphy = <&usbh1phy>;
218 dr_mode = "host";
219 phy_type = "ulpi";
220 status = "okay";
221};
222
223&usbotg {
224 dr_mode = "otg";
225 phy_type = "utmi_wide";
226 status = "okay";
227};
228
229&usbphy0 {
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_usbh1_vbus>;
232 reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
233};