1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Christoph Fritz <chf.fritz@googlemail.com>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include "imx6sx.dtsi"
13 model = "Softing VIN|ING 2000";
14 compatible = "samtec,imx6sx-vining-2000", "fsl,imx6sx";
21 device_type = "memory";
22 reg = <0x80000000 0x40000000>;
25 reg_usb_otg1_vbus: regulator-usb_otg1_vbus {
26 compatible = "regulator-fixed";
27 regulator-name = "usb_otg1_vbus";
28 pinctrl-names = "default";
29 pinctrl-0 = <&pinctrl_usb_otg1>;
30 regulator-min-microvolt = <5000000>;
31 regulator-max-microvolt = <5000000>;
32 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
36 reg_peri_3v3: regulator-peri_3v3 {
37 compatible = "regulator-fixed";
38 regulator-name = "peri_3v3";
39 regulator-min-microvolt = <3300000>;
40 regulator-max-microvolt = <3300000>;
44 compatible = "pwm-leds";
48 max-brightness = <255>;
49 pwms = <&pwm6 0 50000>;
54 max-brightness = <255>;
55 pwms = <&pwm2 0 50000>;
60 max-brightness = <255>;
61 pwms = <&pwm1 0 50000>;
67 vref-supply = <®_peri_3v3>;
73 * This board has a shared rail of reg_arm and reg_soc (supplied by
74 * sw1a_reg) which is modeled below, but still this module behaves
75 * unstable without higher voltages. Hence, set higher voltages here.
84 fsl,soc-operating-points = <
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_ecspi4>;
96 cs-gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_enet1>;
103 phy-supply = <®_peri_3v3>;
104 phy-reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
105 phy-reset-duration = <5>;
107 phy-handle = <ðphy0>;
111 #address-cells = <1>;
114 ethphy0: ethernet0-phy@0 {
117 interrupt-parent = <&gpio2>;
118 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_enet2>;
126 phy-supply = <®_peri_3v3>;
127 phy-reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
128 phy-reset-duration = <5>;
130 phy-handle = <ðphy1>;
134 #address-cells = <1>;
137 ethphy1: ethernet1-phy@0 {
140 interrupt-parent = <&gpio2>;
141 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_flexcan1>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_flexcan2>;
159 clock-frequency = <100000>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&pinctrl_i2c1>;
164 proximity: sx9500@28 {
165 compatible = "semtech,sx9500";
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_sx9500>;
169 interrupt-parent = <&gpio2>;
170 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
171 reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
175 compatible = "fsl,pfuze200";
180 regulator-min-microvolt = <300000>;
181 regulator-max-microvolt = <1875000>;
184 regulator-ramp-delay = <6250>;
188 regulator-min-microvolt = <800000>;
189 regulator-max-microvolt = <3300000>;
195 regulator-min-microvolt = <400000>;
196 regulator-max-microvolt = <1975000>;
202 regulator-min-microvolt = <400000>;
203 regulator-max-microvolt = <1975000>;
209 regulator-min-microvolt = <1000000>;
210 regulator-max-microvolt = <3000000>;
221 regulator-min-microvolt = <800000>;
222 regulator-max-microvolt = <1550000>;
227 regulator-min-microvolt = <800000>;
228 regulator-max-microvolt = <1550000>;
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <3300000>;
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <3300000>;
244 regulator-min-microvolt = <1800000>;
245 regulator-max-microvolt = <3300000>;
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <3300000>;
259 clock-frequency = <100000>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&pinctrl_i2c3>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_gpios>;
269 pinctrl_ecspi4: ecspi4grp {
271 MX6SX_PAD_SD3_CLK__ECSPI4_SCLK 0x130b1
272 MX6SX_PAD_SD3_DATA3__ECSPI4_MISO 0x130b1
273 MX6SX_PAD_SD3_CMD__ECSPI4_MOSI 0x130b1
274 MX6SX_PAD_SD3_DATA2__GPIO7_IO_4 0x30b0
278 pinctrl_enet1: enet1grp {
280 MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x30c1
281 MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x30c1
282 MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0xa0f9
283 MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0xa0f9
284 MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x30c1
285 MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0xa0f9
286 MX6SX_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4000a038
287 /* LAN8720 PHY Reset */
288 MX6SX_PAD_RGMII1_TD3__GPIO5_IO_9 0x10b0
290 MX6SX_PAD_ENET1_MDC__ENET1_MDC 0xa0f9
291 MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0xa0f9
293 MX6SX_PAD_KEY_ROW2__GPIO2_IO_17 0x10b0
297 pinctrl_enet2: enet2grp {
299 MX6SX_PAD_RGMII2_TD0__ENET2_TX_DATA_0 0x1b0b0
300 MX6SX_PAD_RGMII2_TD1__ENET2_TX_DATA_1 0x1b0b0
301 MX6SX_PAD_RGMII2_RD0__ENET2_RX_DATA_0 0x1b0b0
302 MX6SX_PAD_RGMII2_RD1__ENET2_RX_DATA_1 0x1b0b0
303 MX6SX_PAD_RGMII2_RX_CTL__ENET2_RX_EN 0x1b0b0
304 MX6SX_PAD_RGMII2_TX_CTL__ENET2_TX_EN 0x1b0b0
305 MX6SX_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4000a038
306 /* LAN8720 PHY Reset */
307 MX6SX_PAD_RGMII2_TD3__GPIO5_IO_21 0x10b0
309 MX6SX_PAD_ENET1_COL__ENET2_MDC 0xa0f9
310 MX6SX_PAD_ENET1_CRS__ENET2_MDIO 0xa0f9
312 MX6SX_PAD_KEY_ROW4__GPIO2_IO_19 0x10b0
316 pinctrl_flexcan1: flexcan1grp {
318 MX6SX_PAD_QSPI1B_DQS__CAN1_TX 0x1b0b0
319 MX6SX_PAD_QSPI1A_SS1_B__CAN1_RX 0x1b0b0
323 pinctrl_flexcan2: flexcan2grp {
325 MX6SX_PAD_QSPI1B_SS1_B__CAN2_RX 0x1b0b0
326 MX6SX_PAD_QSPI1A_DQS__CAN2_TX 0x1b0b0
330 pinctrl_gpios: gpiosgrp {
332 /* reset external uC */
333 MX6SX_PAD_QSPI1A_DATA3__GPIO4_IO_19 0x10b0
334 /* IRQ from external uC */
335 MX6SX_PAD_KEY_ROW0__GPIO2_IO_15 0x10b0
336 /* overcurrent detection */
337 MX6SX_PAD_GPIO1_IO08__GPIO1_IO_8 0x10b0
341 pinctrl_i2c1: i2c1grp {
343 MX6SX_PAD_GPIO1_IO01__I2C1_SDA 0x4001b8b1
344 MX6SX_PAD_GPIO1_IO00__I2C1_SCL 0x4001b8b1
348 pinctrl_i2c3: i2c3grp {
350 MX6SX_PAD_NAND_ALE__I2C3_SDA 0x4001b8b1
351 MX6SX_PAD_NAND_CLE__I2C3_SCL 0x4001b8b1
355 pinctrl_pcie: pciegrp {
357 MX6SX_PAD_NAND_DATA02__GPIO4_IO_6 0x10b0
361 pinctrl_pwm1: pwm1grp-1 {
364 MX6SX_PAD_RGMII2_RD3__PWM1_OUT 0x1b0b1
368 pinctrl_pwm2: pwm2grp-1 {
371 MX6SX_PAD_RGMII2_RD2__PWM2_OUT 0x1b0b1
375 pinctrl_pwm6: pwm6grp-1 {
378 MX6SX_PAD_RGMII2_TD2__PWM6_OUT 0x1b0b1
382 pinctrl_sx9500: sx9500grp {
385 MX6SX_PAD_KEY_COL0__GPIO2_IO_10 0x838
387 MX6SX_PAD_KEY_ROW1__GPIO2_IO_16 0x70e0
391 pinctrl_uart1: uart1grp {
393 MX6SX_PAD_GPIO1_IO04__UART1_DCE_TX 0x1b0b1
394 MX6SX_PAD_GPIO1_IO05__UART1_DCE_RX 0x1b0b1
398 pinctrl_uart2: uart2grp {
400 MX6SX_PAD_GPIO1_IO06__UART2_DCE_TX 0x1b0b1
401 MX6SX_PAD_GPIO1_IO07__UART2_DCE_RX 0x1b0b1
405 pinctrl_usb_otg1: usbotg1grp {
407 MX6SX_PAD_GPIO1_IO09__GPIO1_IO_9 0x10b0
411 pinctrl_usb_otg1_id: usbotg1idgrp {
413 MX6SX_PAD_GPIO1_IO10__ANATOP_OTG1_ID 0x17059
417 pinctrl_usdhc2_50mhz: usdhc2grp-50mhz {
419 MX6SX_PAD_SD2_CLK__USDHC2_CLK 0x10059
420 MX6SX_PAD_SD2_CMD__USDHC2_CMD 0x17059
421 MX6SX_PAD_SD2_DATA0__USDHC2_DATA0 0x17059
422 MX6SX_PAD_SD2_DATA1__USDHC2_DATA1 0x17059
423 MX6SX_PAD_SD2_DATA2__USDHC2_DATA2 0x17059
424 MX6SX_PAD_SD2_DATA3__USDHC2_DATA3 0x17059
425 MX6SX_PAD_LCD1_VSYNC__GPIO3_IO_28 0x1b000
426 MX6SX_PAD_LCD1_HSYNC__GPIO3_IO_26 0x10b0
430 pinctrl_usdhc2_100mhz: usdhc2grp-100mhz {
432 MX6SX_PAD_SD2_CLK__USDHC2_CLK 0x100b9
433 MX6SX_PAD_SD2_CMD__USDHC2_CMD 0x170b9
434 MX6SX_PAD_SD2_DATA0__USDHC2_DATA0 0x170b9
435 MX6SX_PAD_SD2_DATA1__USDHC2_DATA1 0x170b9
436 MX6SX_PAD_SD2_DATA2__USDHC2_DATA2 0x170b9
437 MX6SX_PAD_SD2_DATA3__USDHC2_DATA3 0x170b9
441 pinctrl_usdhc2_200mhz: usdhc2grp-200mhz {
443 MX6SX_PAD_SD2_CLK__USDHC2_CLK 0x100f9
444 MX6SX_PAD_SD2_CMD__USDHC2_CMD 0x170f9
445 MX6SX_PAD_SD2_DATA0__USDHC2_DATA0 0x170f9
446 MX6SX_PAD_SD2_DATA1__USDHC2_DATA1 0x170f9
447 MX6SX_PAD_SD2_DATA2__USDHC2_DATA2 0x170f9
448 MX6SX_PAD_SD2_DATA3__USDHC2_DATA3 0x170f9
452 pinctrl_usdhc4_50mhz: usdhc4grp-50mhz {
454 MX6SX_PAD_SD4_CLK__USDHC4_CLK 0x10059
455 MX6SX_PAD_SD4_CMD__USDHC4_CMD 0x17059
456 MX6SX_PAD_SD4_DATA0__USDHC4_DATA0 0x17059
457 MX6SX_PAD_SD4_DATA1__USDHC4_DATA1 0x17059
458 MX6SX_PAD_SD4_DATA2__USDHC4_DATA2 0x17059
459 MX6SX_PAD_SD4_DATA3__USDHC4_DATA3 0x17059
460 MX6SX_PAD_SD4_DATA4__USDHC4_DATA4 0x17059
461 MX6SX_PAD_SD4_DATA5__USDHC4_DATA5 0x17059
462 MX6SX_PAD_SD4_DATA6__USDHC4_DATA6 0x17059
463 MX6SX_PAD_SD4_DATA7__USDHC4_DATA7 0x17059
464 MX6SX_PAD_SD4_RESET_B__USDHC4_RESET_B 0x17068
468 pinctrl_usdhc4_100mhz: usdhc4-100mhz {
470 MX6SX_PAD_SD4_CLK__USDHC4_CLK 0x100b9
471 MX6SX_PAD_SD4_CMD__USDHC4_CMD 0x170b9
472 MX6SX_PAD_SD4_DATA0__USDHC4_DATA0 0x170b9
473 MX6SX_PAD_SD4_DATA1__USDHC4_DATA1 0x170b9
474 MX6SX_PAD_SD4_DATA2__USDHC4_DATA2 0x170b9
475 MX6SX_PAD_SD4_DATA3__USDHC4_DATA3 0x170b9
476 MX6SX_PAD_SD4_DATA4__USDHC4_DATA4 0x170b9
477 MX6SX_PAD_SD4_DATA5__USDHC4_DATA5 0x170b9
478 MX6SX_PAD_SD4_DATA6__USDHC4_DATA6 0x170b9
479 MX6SX_PAD_SD4_DATA7__USDHC4_DATA7 0x170b9
483 pinctrl_usdhc4_200mhz: usdhc4-200mhz {
485 MX6SX_PAD_SD4_CLK__USDHC4_CLK 0x100f9
486 MX6SX_PAD_SD4_CMD__USDHC4_CMD 0x170f9
487 MX6SX_PAD_SD4_DATA0__USDHC4_DATA0 0x170f9
488 MX6SX_PAD_SD4_DATA1__USDHC4_DATA1 0x170f9
489 MX6SX_PAD_SD4_DATA2__USDHC4_DATA2 0x170f9
490 MX6SX_PAD_SD4_DATA3__USDHC4_DATA3 0x170f9
491 MX6SX_PAD_SD4_DATA4__USDHC4_DATA4 0x170f9
492 MX6SX_PAD_SD4_DATA5__USDHC4_DATA5 0x170f9
493 MX6SX_PAD_SD4_DATA6__USDHC4_DATA6 0x170f9
494 MX6SX_PAD_SD4_DATA7__USDHC4_DATA7 0x170f9
500 pinctrl-names = "default";
501 pinctrl-0 = <&pinctrl_pcie>;
502 reset-gpio = <&gpio4 6 GPIO_ACTIVE_HIGH>;
503 reset-gpio-active-high;
509 pinctrl-names = "default";
510 pinctrl-0 = <&pinctrl_pwm1>;
516 pinctrl-names = "default";
517 pinctrl-0 = <&pinctrl_pwm2>;
523 pinctrl-names = "default";
524 pinctrl-0 = <&pinctrl_pwm6>;
529 vin-supply = <&sw1a_reg>;
533 vin-supply = <&sw1a_reg>;
541 pinctrl-names = "default";
542 pinctrl-0 = <&pinctrl_uart1>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&pinctrl_uart2>;
553 vbus-supply = <®_usb_otg1_vbus>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&pinctrl_usb_otg1_id>;
565 pinctrl-names = "default", "state_100mhz", "state_200mhz";
566 pinctrl-0 = <&pinctrl_usdhc2_50mhz>;
567 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
568 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
569 cd-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
570 keep-power-in-suspend;
575 /* hs200-mode is currently unsupported because Vccq is on 3.1V, but
576 * not on necessary 1.8V.
578 pinctrl-names = "default", "state_100mhz", "state_200mhz";
579 pinctrl-0 = <&pinctrl_usdhc4_50mhz>;
580 pinctrl-1 = <&pinctrl_usdhc4_100mhz>;
581 pinctrl-2 = <&pinctrl_usdhc4_200mhz>;
583 keep-power-in-suspend;