xref: /openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6sl-warp.dts (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring/*
2*724ba675SRob Herring * Copyright 2014, 2015 O.S. Systems Software LTDA.
3*724ba675SRob Herring *
4*724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
5*724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
6*724ba675SRob Herring * licensing only applies to this file, and not this project as a
7*724ba675SRob Herring * whole.
8*724ba675SRob Herring *
9*724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
10*724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
11*724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of
12*724ba675SRob Herring *     the License, or (at your option) any later version.
13*724ba675SRob Herring *
14*724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
15*724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*724ba675SRob Herring *     GNU General Public License for more details.
18*724ba675SRob Herring *
19*724ba675SRob Herring *     You should have received a copy of the GNU General Public
20*724ba675SRob Herring *     License along with this file; if not, write to the Free
21*724ba675SRob Herring *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22*724ba675SRob Herring *     MA 02110-1301 USA
23*724ba675SRob Herring *
24*724ba675SRob Herring * Or, alternatively,
25*724ba675SRob Herring *
26*724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
27*724ba675SRob Herring *     obtaining a copy of this software and associated documentation
28*724ba675SRob Herring *     files (the "Software"), to deal in the Software without
29*724ba675SRob Herring *     restriction, including without limitation the rights to use,
30*724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
31*724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
32*724ba675SRob Herring *     Software is furnished to do so, subject to the following
33*724ba675SRob Herring *     conditions:
34*724ba675SRob Herring *
35*724ba675SRob Herring *     The above copyright notice and this permission notice shall be
36*724ba675SRob Herring *     included in all copies or substantial portions of the Software.
37*724ba675SRob Herring *
38*724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39*724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40*724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41*724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42*724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43*724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44*724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45*724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
46*724ba675SRob Herring */
47*724ba675SRob Herring
48*724ba675SRob Herring/dts-v1/;
49*724ba675SRob Herring
50*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
51*724ba675SRob Herring#include "imx6sl.dtsi"
52*724ba675SRob Herring
53*724ba675SRob Herring/ {
54*724ba675SRob Herring	model = "Revotics WaRP Board";
55*724ba675SRob Herring	compatible = "revotics,imx6sl-warp", "fsl,imx6sl";
56*724ba675SRob Herring
57*724ba675SRob Herring	memory@80000000 {
58*724ba675SRob Herring		device_type = "memory";
59*724ba675SRob Herring		reg = <0x80000000 0x20000000>;
60*724ba675SRob Herring	};
61*724ba675SRob Herring
62*724ba675SRob Herring	usdhc3_pwrseq: usdhc3_pwrseq {
63*724ba675SRob Herring		compatible = "mmc-pwrseq-simple";
64*724ba675SRob Herring		reset-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>, 	/* WL_REG_ON */
65*724ba675SRob Herring			      <&gpio4 7 GPIO_ACTIVE_LOW>, 	/* WL_HOSTWAKE */
66*724ba675SRob Herring			      <&gpio3 25 GPIO_ACTIVE_LOW>, 	/* BT_REG_ON */
67*724ba675SRob Herring			      <&gpio3 27 GPIO_ACTIVE_LOW>,	/* BT_HOSTWAKE */
68*724ba675SRob Herring			      <&gpio4 4 GPIO_ACTIVE_LOW>, 	/* BT_WAKE */
69*724ba675SRob Herring			      <&gpio4 6 GPIO_ACTIVE_LOW>; 	/* BT_RST_N */
70*724ba675SRob Herring	};
71*724ba675SRob Herring};
72*724ba675SRob Herring
73*724ba675SRob Herring&uart1 {
74*724ba675SRob Herring	pinctrl-names = "default";
75*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart1>;
76*724ba675SRob Herring	status = "okay";
77*724ba675SRob Herring};
78*724ba675SRob Herring
79*724ba675SRob Herring&uart3 {
80*724ba675SRob Herring	pinctrl-names = "default";
81*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart3>;
82*724ba675SRob Herring	status = "okay";
83*724ba675SRob Herring};
84*724ba675SRob Herring
85*724ba675SRob Herring&uart5 {
86*724ba675SRob Herring	pinctrl-names = "default";
87*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart5>;
88*724ba675SRob Herring	uart-has-rtscts;
89*724ba675SRob Herring	status = "okay";
90*724ba675SRob Herring};
91*724ba675SRob Herring
92*724ba675SRob Herring&usbotg1 {
93*724ba675SRob Herring	dr_mode = "peripheral";
94*724ba675SRob Herring	disable-over-current;
95*724ba675SRob Herring	status = "okay";
96*724ba675SRob Herring};
97*724ba675SRob Herring
98*724ba675SRob Herring&usbotg2 {
99*724ba675SRob Herring	dr_mode = "host";
100*724ba675SRob Herring	disable-over-current;
101*724ba675SRob Herring	status = "okay";
102*724ba675SRob Herring};
103*724ba675SRob Herring
104*724ba675SRob Herring&usdhc2 {
105*724ba675SRob Herring	pinctrl-names = "default", "state_100mhz", "state_200mhz";
106*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc2>;
107*724ba675SRob Herring	pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
108*724ba675SRob Herring	pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
109*724ba675SRob Herring	bus-width = <8>;
110*724ba675SRob Herring	non-removable;
111*724ba675SRob Herring	status = "okay";
112*724ba675SRob Herring};
113*724ba675SRob Herring
114*724ba675SRob Herring&usdhc3 {
115*724ba675SRob Herring	pinctrl-names = "default", "state_100mhz", "state_200mhz";
116*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc3>;
117*724ba675SRob Herring	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
118*724ba675SRob Herring	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
119*724ba675SRob Herring	bus-width = <4>;
120*724ba675SRob Herring	non-removable;
121*724ba675SRob Herring	keep-power-in-suspend;
122*724ba675SRob Herring	wakeup-source;
123*724ba675SRob Herring	mmc-pwrseq = <&usdhc3_pwrseq>;
124*724ba675SRob Herring	status = "okay";
125*724ba675SRob Herring};
126*724ba675SRob Herring
127*724ba675SRob Herring&iomuxc {
128*724ba675SRob Herring	imx6sl-warp {
129*724ba675SRob Herring		pinctrl_uart1: uart1grp {
130*724ba675SRob Herring			fsl,pins = <
131*724ba675SRob Herring				MX6SL_PAD_UART1_RXD__UART1_RX_DATA	0x41b0b1
132*724ba675SRob Herring				MX6SL_PAD_UART1_TXD__UART1_TX_DATA	0x41b0b1
133*724ba675SRob Herring			>;
134*724ba675SRob Herring		};
135*724ba675SRob Herring
136*724ba675SRob Herring
137*724ba675SRob Herring		pinctrl_uart3: uart3grp {
138*724ba675SRob Herring			fsl,pins = <
139*724ba675SRob Herring				MX6SL_PAD_AUD_RXC__UART3_RX_DATA	0x41b0b1
140*724ba675SRob Herring				MX6SL_PAD_AUD_RXC__UART3_TX_DATA	0x41b0b1
141*724ba675SRob Herring			>;
142*724ba675SRob Herring		};
143*724ba675SRob Herring
144*724ba675SRob Herring		pinctrl_uart5: uart5grp {
145*724ba675SRob Herring			fsl,pins = <
146*724ba675SRob Herring				MX6SL_PAD_ECSPI1_SCLK__UART5_RX_DATA	0x41b0b1
147*724ba675SRob Herring				MX6SL_PAD_ECSPI1_MOSI__UART5_TX_DATA	0x41b0b1
148*724ba675SRob Herring				MX6SL_PAD_ECSPI1_MISO__UART5_RTS_B	0x4130b1
149*724ba675SRob Herring				MX6SL_PAD_ECSPI1_SS0__UART5_CTS_B	0x4130b1
150*724ba675SRob Herring			>;
151*724ba675SRob Herring		};
152*724ba675SRob Herring
153*724ba675SRob Herring		pinctrl_usdhc2: usdhc2grp {
154*724ba675SRob Herring			fsl,pins = <
155*724ba675SRob Herring				MX6SL_PAD_SD2_CMD__SD2_CMD		0x417059
156*724ba675SRob Herring				MX6SL_PAD_SD2_CLK__SD2_CLK		0x410059
157*724ba675SRob Herring				MX6SL_PAD_SD2_DAT0__SD2_DATA0		0x417059
158*724ba675SRob Herring				MX6SL_PAD_SD2_DAT1__SD2_DATA1		0x417059
159*724ba675SRob Herring				MX6SL_PAD_SD2_DAT2__SD2_DATA2		0x417059
160*724ba675SRob Herring				MX6SL_PAD_SD2_DAT3__SD2_DATA3		0x417059
161*724ba675SRob Herring				MX6SL_PAD_SD2_DAT4__SD2_DATA4		0x417059
162*724ba675SRob Herring				MX6SL_PAD_SD2_DAT5__SD2_DATA5		0x417059
163*724ba675SRob Herring				MX6SL_PAD_SD2_DAT6__SD2_DATA6		0x417059
164*724ba675SRob Herring				MX6SL_PAD_SD2_DAT7__SD2_DATA7		0x417059
165*724ba675SRob Herring				MX6SL_PAD_SD2_RST__SD2_RESET		0x417059
166*724ba675SRob Herring			>;
167*724ba675SRob Herring		};
168*724ba675SRob Herring
169*724ba675SRob Herring		pinctrl_usdhc2_100mhz: usdhc2grp100mhz {
170*724ba675SRob Herring			fsl,pins = <
171*724ba675SRob Herring				MX6SL_PAD_SD2_CMD__SD2_CMD		0x4170b9
172*724ba675SRob Herring				MX6SL_PAD_SD2_CLK__SD2_CLK		0x4100b9
173*724ba675SRob Herring				MX6SL_PAD_SD2_DAT0__SD2_DATA0		0x4170b9
174*724ba675SRob Herring				MX6SL_PAD_SD2_DAT1__SD2_DATA1		0x4170b9
175*724ba675SRob Herring				MX6SL_PAD_SD2_DAT2__SD2_DATA2		0x4170b9
176*724ba675SRob Herring				MX6SL_PAD_SD2_DAT3__SD2_DATA3		0x4170b9
177*724ba675SRob Herring				MX6SL_PAD_SD2_DAT4__SD2_DATA4		0x4170b9
178*724ba675SRob Herring				MX6SL_PAD_SD2_DAT5__SD2_DATA5		0x4170b9
179*724ba675SRob Herring				MX6SL_PAD_SD2_DAT6__SD2_DATA6		0x4170b9
180*724ba675SRob Herring				MX6SL_PAD_SD2_DAT7__SD2_DATA7		0x4170b9
181*724ba675SRob Herring				MX6SL_PAD_SD2_RST__SD2_RESET		0x4170b9
182*724ba675SRob Herring			>;
183*724ba675SRob Herring		};
184*724ba675SRob Herring
185*724ba675SRob Herring		pinctrl_usdhc2_200mhz: usdhc2grp200mhz {
186*724ba675SRob Herring			fsl,pins = <
187*724ba675SRob Herring				MX6SL_PAD_SD2_CMD__SD2_CMD		0x4170f9
188*724ba675SRob Herring				MX6SL_PAD_SD2_CLK__SD2_CLK		0x4100f9
189*724ba675SRob Herring				MX6SL_PAD_SD2_DAT0__SD2_DATA0		0x4170f9
190*724ba675SRob Herring				MX6SL_PAD_SD2_DAT1__SD2_DATA1		0x4170f9
191*724ba675SRob Herring				MX6SL_PAD_SD2_DAT2__SD2_DATA2		0x4170f9
192*724ba675SRob Herring				MX6SL_PAD_SD2_DAT3__SD2_DATA3		0x4170f9
193*724ba675SRob Herring				MX6SL_PAD_SD2_DAT4__SD2_DATA4		0x4170f9
194*724ba675SRob Herring				MX6SL_PAD_SD2_DAT5__SD2_DATA5		0x4170f9
195*724ba675SRob Herring				MX6SL_PAD_SD2_DAT6__SD2_DATA6		0x4170f9
196*724ba675SRob Herring				MX6SL_PAD_SD2_DAT7__SD2_DATA7		0x4170f9
197*724ba675SRob Herring				MX6SL_PAD_SD2_RST__SD2_RESET		0x4170f9
198*724ba675SRob Herring			>;
199*724ba675SRob Herring		};
200*724ba675SRob Herring
201*724ba675SRob Herring		pinctrl_usdhc3: usdhc3grp {
202*724ba675SRob Herring			fsl,pins = <
203*724ba675SRob Herring				MX6SL_PAD_SD3_CMD__SD3_CMD		0x417059
204*724ba675SRob Herring				MX6SL_PAD_SD3_CLK__SD3_CLK		0x410059
205*724ba675SRob Herring				MX6SL_PAD_SD3_DAT0__SD3_DATA0		0x417059
206*724ba675SRob Herring				MX6SL_PAD_SD3_DAT1__SD3_DATA1		0x417059
207*724ba675SRob Herring				MX6SL_PAD_SD3_DAT2__SD3_DATA2		0x417059
208*724ba675SRob Herring				MX6SL_PAD_SD3_DAT3__SD3_DATA3		0x417059
209*724ba675SRob Herring			>;
210*724ba675SRob Herring		};
211*724ba675SRob Herring
212*724ba675SRob Herring		pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
213*724ba675SRob Herring			fsl,pins = <
214*724ba675SRob Herring				MX6SL_PAD_SD3_CMD__SD3_CMD		0x4170b9
215*724ba675SRob Herring				MX6SL_PAD_SD3_CLK__SD3_CLK		0x4100b9
216*724ba675SRob Herring				MX6SL_PAD_SD3_DAT0__SD3_DATA0		0x4170b9
217*724ba675SRob Herring				MX6SL_PAD_SD3_DAT1__SD3_DATA1		0x4170b9
218*724ba675SRob Herring				MX6SL_PAD_SD3_DAT2__SD3_DATA2		0x4170b9
219*724ba675SRob Herring				MX6SL_PAD_SD3_DAT3__SD3_DATA3		0x4170b9
220*724ba675SRob Herring			>;
221*724ba675SRob Herring		};
222*724ba675SRob Herring
223*724ba675SRob Herring		pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
224*724ba675SRob Herring			fsl,pins = <
225*724ba675SRob Herring				MX6SL_PAD_SD3_CMD__SD3_CMD		0x4170f9
226*724ba675SRob Herring				MX6SL_PAD_SD3_CLK__SD3_CLK		0x4100f9
227*724ba675SRob Herring				MX6SL_PAD_SD3_DAT0__SD3_DATA0		0x4170f9
228*724ba675SRob Herring				MX6SL_PAD_SD3_DAT1__SD3_DATA1		0x4170f9
229*724ba675SRob Herring				MX6SL_PAD_SD3_DAT2__SD3_DATA2		0x4170f9
230*724ba675SRob Herring				MX6SL_PAD_SD3_DAT3__SD3_DATA3		0x4170f9
231*724ba675SRob Herring			>;
232*724ba675SRob Herring		};
233*724ba675SRob Herring	};
234*724ba675SRob Herring};
235