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