1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2017 exceet electronics GmbH
4 * Copyright (C) 2018 Kontron Electronics GmbH
5 * Copyright (c) 2019 Krzysztof Kozlowski <krzk@kernel.org>
8 #include <dt-bindings/gpio/gpio.h>
12 compatible = "gpio-leds";
13 pinctrl-names = "default";
14 pinctrl-0 = <&pinctrl_gpio_leds>;
18 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
19 default-state = "off";
20 linux,default-trigger = "heartbeat";
25 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
26 default-state = "off";
31 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
32 default-state = "off";
37 compatible = "pwm-beeper";
38 pwms = <&pwm8 0 5000>;
41 reg_3v3: regulator-3v3 {
42 compatible = "regulator-fixed";
43 regulator-name = "3v3";
44 regulator-min-microvolt = <3300000>;
45 regulator-max-microvolt = <3300000>;
48 reg_5v: regulator-5v {
49 compatible = "regulator-fixed";
50 regulator-name = "5v";
51 regulator-min-microvolt = <5000000>;
52 regulator-max-microvolt = <5000000>;
55 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
56 compatible = "regulator-fixed";
57 regulator-name = "usb_otg1_vbus";
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
60 gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
64 reg_vref_adc: regulator-vref-adc {
65 compatible = "regulator-fixed";
66 regulator-name = "vref-adc";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&pinctrl_adc1>;
76 vref-supply = <®_vref_adc>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_flexcan2>;
87 cs-gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_ecspi1>;
93 compatible = "anvo,anv32e61w", "atmel,at25";
95 spi-max-frequency = <20000000>;
100 address-width = <16>;
105 pinctrl-0 = <&pinctrl_enet1>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_enet2 &pinctrl_enet2_mdio>;
113 phy-handle = <ðphy2>;
117 #address-cells = <1>;
120 ethphy1: ethernet-phy@1 {
122 micrel,led-mode = <0>;
123 clocks = <&clks IMX6UL_CLK_ENET_REF>;
124 clock-names = "rmii-ref";
127 ethphy2: ethernet-phy@2 {
129 micrel,led-mode = <0>;
130 clocks = <&clks IMX6UL_CLK_ENET2_REF>;
131 clock-names = "rmii-ref";
137 clock-frequency = <100000>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_i2c1>;
144 clock-frequency = <100000>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_i2c4>;
150 compatible = "epson,rx8900";
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_pwm8>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&pinctrl_uart1>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&pinctrl_uart2>;
170 linux,rs485-enabled-at-boot-time;
172 rs485-rts-active-low;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_uart3>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_uart4>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&pinctrl_usbotg1>;
197 over-current-active-low;
198 vbus-supply = <®_usb_otg1_vbus>;
204 disable-over-current;
205 vbus-supply = <®_5v>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_usdhc1>;
212 cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
213 keep-power-in-suspend;
215 vmmc-supply = <®_3v3>;
216 voltage-ranges = <3300 3300>;
222 pinctrl-names = "default", "state_100mhz", "state_200mhz";
223 pinctrl-0 = <&pinctrl_usdhc2>;
224 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
225 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
227 keep-power-in-suspend;
229 vmmc-supply = <®_3v3>;
230 voltage-ranges = <3300 3300>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&pinctrl_wdog>;
238 fsl,ext-reset-output;
243 pinctrl-0 = <&pinctrl_reset_out &pinctrl_gpio>;
245 pinctrl_adc1: adc1grp {
247 MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0xb0
248 MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0xb0
249 MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0xb0
253 pinctrl_ecspi1: ecspi1grp {
255 MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x100b1
256 MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x100b1
257 MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x100b1
258 MX6UL_PAD_CSI_DATA05__GPIO4_IO26 0x100b1 /* ECSPI1-CS1 */
262 pinctrl_enet2: enet2grp {
264 MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN 0x1b0b0
265 MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER 0x1b0b0
266 MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x1b0b0
267 MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x1b0b0
268 MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN 0x1b0b0
269 MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0
270 MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0
271 MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b009
275 pinctrl_enet2_mdio: enet2mdiogrp {
277 MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0
278 MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0
282 pinctrl_flexcan2: flexcan2grp{
284 MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX 0x1b020
285 MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX 0x1b020
289 pinctrl_gpio: gpiogrp {
291 MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x1b0b0 /* DOUT1 */
292 MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO04 0x1b0b0 /* DIN1 */
293 MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x1b0b0 /* DOUT2 */
294 MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x1b0b0 /* DIN2 */
298 pinctrl_gpio_leds: gpioledsgrp {
300 MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30 0x1b0b0 /* LED H14 */
301 MX6UL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x1b0b0 /* LED H15 */
302 MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 /* LED H16 */
306 pinctrl_i2c1: i2c1grp {
308 MX6UL_PAD_CSI_PIXCLK__I2C1_SCL 0x4001b8b0
309 MX6UL_PAD_CSI_MCLK__I2C1_SDA 0x4001b8b0
313 pinctrl_i2c4: i2c4grp {
315 MX6UL_PAD_UART2_TX_DATA__I2C4_SCL 0x4001f8b0
316 MX6UL_PAD_UART2_RX_DATA__I2C4_SDA 0x4001f8b0
320 pinctrl_pwm8: pwm8grp {
322 MX6UL_PAD_CSI_HSYNC__PWM8_OUT 0x110b0
326 pinctrl_uart1: uart1grp {
328 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
329 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
333 pinctrl_uart2: uart2grp {
335 MX6UL_PAD_NAND_DATA04__UART2_DCE_TX 0x1b0b1
336 MX6UL_PAD_NAND_DATA05__UART2_DCE_RX 0x1b0b1
337 MX6UL_PAD_NAND_DATA06__UART2_DCE_CTS 0x1b0b1
339 * mux unused RTS to make sure it doesn't cause
340 * any interrupts when it is undefined
342 MX6UL_PAD_NAND_DATA07__UART2_DCE_RTS 0x1b0b1
346 pinctrl_uart3: uart3grp {
348 MX6UL_PAD_UART3_TX_DATA__UART3_DCE_TX 0x1b0b1
349 MX6UL_PAD_UART3_RX_DATA__UART3_DCE_RX 0x1b0b1
350 MX6UL_PAD_UART3_CTS_B__UART3_DCE_CTS 0x1b0b1
351 MX6UL_PAD_UART3_RTS_B__UART3_DCE_RTS 0x1b0b1
355 pinctrl_uart4: uart4grp {
357 MX6UL_PAD_UART4_TX_DATA__UART4_DCE_TX 0x1b0b1
358 MX6UL_PAD_UART4_RX_DATA__UART4_DCE_RX 0x1b0b1
362 pinctrl_usbotg1: usbotg1 {
364 MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1b0b0
368 pinctrl_usdhc1: usdhc1grp {
370 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
371 MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059
372 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
373 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
374 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
375 MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
376 MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x100b1 /* SD1_CD */
380 pinctrl_usdhc2: usdhc2grp {
382 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10059
383 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059
384 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059
385 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059
386 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059
387 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059
391 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
393 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100b9
394 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170b9
395 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170b9
396 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170b9
397 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170b9
398 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170b9
402 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
404 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100f9
405 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170f9
406 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170f9
407 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170f9
408 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170f9
409 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9
413 pinctrl_wdog: wdoggrp {
415 MX6UL_PAD_GPIO1_IO09__WDOG1_WDOG_ANY 0x30b0