xref: /openbmc/u-boot/arch/arm/dts/imx6q-logicpd.dts (revision e3963c09)
1/*
2 * Copyright 2017 Logic PD, Inc.
3 * Based on SabreSD, Copyright 2016 Freescale Semiconductor, Inc.
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 *  a) This file is free software; you can redistribute it and/or
11 *     modify it under the terms of the GNU General Public License as
12 *     published by the Free Software Foundation; either version 2 of the
13 *     License, or (at your option) any later version.
14 *
15 *     This file is distributed in the hope that it will be useful,
16 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *     GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 *  b) Permission is hereby granted, free of charge, to any person
23 *     obtaining a copy of this software and associated documentation
24 *     files (the "Software"), to deal in the Software without
25 *     restriction, including without limitation the rights to use,
26 *     copy, modify, merge, publish, distribute, sublicense, and/or
27 *     sell copies of the Software, and to permit persons to whom the
28 *     Software is furnished to do so, subject to the following
29 *     conditions:
30 *
31 *     The above copyright notice and this permission notice shall be
32 *     included in all copies or substantial portions of the Software.
33 *
34 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 *     OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44/dts-v1/;
45
46#include "imx6qdl-logicpd.dtsi"
47
48/ {
49	model = "Logic PD i.MX6QDL SOM";
50	compatible = "fsl,imx6q";
51
52	reg_usb_otg_vbus: regulator-otg-vbus@0 {
53		compatible = "regulator-fixed";
54		regulator-name = "usb_otg_vbus";
55		regulator-min-microvolt = <5000000>;
56		regulator-max-microvolt = <5000000>;
57		gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
58		enable-active-high;
59	};
60
61	reg_usb_h1_vbus: regulator-usbh1vbus@1 {
62		compatible = "regulator-fixed";
63		regulator-name = "usb_h1_vbus";
64		regulator-min-microvolt = <5000000>;
65		regulator-max-microvolt = <5000000>;
66		enable-active-high;
67		regulator-always-on;
68		gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
69	};
70
71	reg_3v3: regulator-3v3@2 {
72		compatible = "regulator-fixed";
73		regulator-name = "reg_3v3";
74		regulator-min-microvolt = <3300000>;
75		regulator-max-microvolt = <3300000>;
76	};
77};
78
79&uart3 {
80	pinctrl-names = "default";
81	pinctrl-0 = <&pinctrl_uart3>;
82	status = "okay";
83};
84
85&usbh1 {
86	pinctrl-names = "default";
87	pinctrl-0 = <&pinctrl_usbh1>;
88	vbus-supply = <&reg_usb_h1_vbus>;
89	status = "okay";
90};
91
92&usbh2 {
93	pinctrl-names = "default";
94	pinctrl-0 = <&pinctrl_usbh2>;
95	phy_type = "hsic";
96	disable-over-current;
97	status = "okay";
98};
99
100&usbotg {
101	vbus-supply = <&reg_usb_otg_vbus>;
102	pinctrl-names = "default";
103	pinctrl-0 = <&pinctrl_usbotg>;
104	disable-over-current;
105	status = "okay";
106};
107
108&fec {
109	pinctrl-names = "default";
110	pinctrl-0 = <&pinctrl_enet>;
111	phy-mode = "rmii";
112	phy-speed = <10>;
113	status = "okay";
114};
115
116&usdhc2 {
117	pinctrl-names = "default";
118	pinctrl-0 = <&pinctrl_usdhc2>;
119	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
120	no-1-8-v;
121	keep-power-in-suspend;
122	status = "okay";
123};
124
125&iomuxc {
126	pinctrl_enet: enetgrp {
127		fsl,pins = <
128			MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN	0x1b0b0
129			MX6QDL_PAD_ENET_MDIO__ENET_MDIO		0x1b0b0
130			MX6QDL_PAD_ENET_MDC__ENET_MDC		0x1b0b0
131			MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0	0x1b0b0
132			MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1	0x1b0b0
133			MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER	0x1b0b0
134			MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0	0x1b0b0
135			MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1	0x1b0b0
136			MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN	0x1b0b0
137			MX6QDL_PAD_GPIO_16__ENET_REF_CLK	0x4001b0a8
138			MX6QDL_PAD_KEY_ROW0__GPIO4_IO07		0x1b0b0 /* nINT */
139			MX6QDL_PAD_KEY_ROW1__GPIO4_IO09		0x1b0b0 /* Ethernet Reset */
140		>;
141	};
142
143	pinctrl_gpio_leds: gpioledsgrp {
144		fsl,pins = <
145			MX6QDL_PAD_EIM_D19__GPIO3_IO19	0x130b0
146			MX6QDL_PAD_EIM_D20__GPIO3_IO20	0x130b0
147			MX6QDL_PAD_EIM_D21__GPIO3_IO21	0x130b0
148			MX6QDL_PAD_EIM_D22__GPIO3_IO22	0x130b0
149		>;
150	};
151	pinctrl_uart3: uart3grp {
152		fsl,pins = <
153			MX6QDL_PAD_EIM_D23__UART3_CTS_B	0x1b0b1
154			MX6QDL_PAD_EIM_D24__UART3_TX_DATA	0x1b0b1
155			MX6QDL_PAD_EIM_D25__UART3_RX_DATA	0x1b0b1
156			MX6QDL_PAD_EIM_EB3__UART3_RTS_B	0x1b0b1
157		>;
158	};
159
160	pinctrl_usbh1: usbh1grp {
161		fsl,pins = <
162			MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0	/* USB_H1_PWR_EN */
163		>;
164	};
165
166	pinctrl_usbh2: usbh2grp {
167		fsl,pins = <
168			MX6QDL_PAD_RGMII_TX_CTL__USB_H2_STROBE 0x17030
169			MX6QDL_PAD_RGMII_TXC__USB_H2_DATA      0x13030
170		>;
171	};
172
173	pinctrl_usbotg: usbotggrp {
174	fsl,pins = <
175		MX6QDL_PAD_GPIO_1__USB_OTG_ID	0x17059
176		MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x130b0	/* USB_OTG_PWR_EN */
177		>;
178	};
179
180	pinctrl_usdhc2: usdhc2grp {
181		fsl,pins = <
182			MX6QDL_PAD_SD2_CLK__SD2_CLK    0x10059
183			MX6QDL_PAD_SD2_CMD__SD2_CMD    0x17059
184			MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
185			MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
186			MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
187			MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
188		>;
189	};
190};
191