1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020 Linumiz
4 * Author: Parthiban Nallathambi <parthiban@linumiz.com>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/pwm/pwm.h>
12 model = "MYiR MYS-6ULX Single Board Computer";
13 compatible = "fsl,imx6ull";
19 reg_vdd_5v: regulator-vdd-5v {
20 compatible = "regulator-fixed";
21 regulator-name = "VDD_5V";
22 regulator-min-microvolt = <5000000>;
23 regulator-max-microvolt = <5000000>;
28 reg_vdd_3v3: regulator-vdd-3v3 {
29 compatible = "regulator-fixed";
30 regulator-name = "VDD_3V3";
31 regulator-min-microvolt = <3300000>;
32 regulator-max-microvolt = <3300000>;
34 vin-supply = <®_vdd_5v>;
39 pinctrl-names = "default";
40 pinctrl-0 = <&pinctrl_enet1>;
42 phy-handle = <ðphy0>;
43 phy-supply = <®_vdd_3v3>;
50 ethphy0: ethernet-phy@0 {
52 interrupt-parent = <&gpio5>;
53 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
54 clocks = <&clks IMX6UL_CLK_ENET_REF>;
55 clock-names = "rmii-ref";
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_gpmi_nand>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_uart1>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_usb_otg1_id>;
87 pinctrl-names = "default", "state_100mhz", "state_200mhz";
88 pinctrl-0 = <&pinctrl_usdhc1>;
89 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
90 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
91 cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
93 keep-power-in-suspend;
95 vmmc-supply = <®_vdd_3v3>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_usdhc2>;
102 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
103 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
106 keep-power-in-suspend;
107 vmmc-supply = <®_vdd_3v3>;
111 pinctrl_enet1: enet1grp {
113 MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
114 MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
115 MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
116 MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
117 MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
118 MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
119 MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
120 MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
121 MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
122 MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
123 MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x1b0b0
127 pinctrl_gpmi_nand: gpminandgrp {
129 MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0x0b0b1
130 MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0x0b0b1
131 MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0x0b0b1
132 MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0x0b000
133 MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0x0b0b1
134 MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0x0b0b1
135 MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0x0b0b1
136 MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x0b0b1
137 MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0x0b0b1
138 MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0x0b0b1
139 MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0x0b0b1
140 MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0x0b0b1
141 MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0x0b0b1
142 MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0x0b0b1
143 MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0x0b0b1
147 pinctrl_uart1: uart1grp {
149 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
150 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
154 pinctrl_usb_otg1_id: usbotg1idgrp {
156 MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
160 pinctrl_usdhc1: usdhc1grp {
162 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
163 MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059
164 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
165 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
166 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
167 MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
168 MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059
172 pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
174 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170b9
175 MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100b9
176 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9
177 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9
178 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9
179 MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9
183 pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
185 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170f9
186 MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100f9
187 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9
188 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9
189 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9
190 MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9
194 pinctrl_usdhc2: usdhc2grp {
196 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10069
197 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059
198 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059
199 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059
200 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059
201 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059
202 MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059
203 MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059
204 MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059
205 MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059
209 pinctrl_usdhc2_100mhz: usdhc2grp100mhz {
211 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100b9
212 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170b9
213 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170b9
214 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170b9
215 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170b9
216 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170b9
217 MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170b9
218 MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170b9
219 MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170b9
220 MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170b9
224 pinctrl_usdhc2_200mhz: usdhc2grp200mhz {
226 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100f9
227 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170f9
228 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170f9
229 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170f9
230 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170f9
231 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9
232 MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170f9
233 MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170f9
234 MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170f9
235 MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170f9