0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright 2013 Gateworks Corporation
0004 */
0005
0006 /dts-v1/;
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include "imx6q.dtsi"
0009
0010 / {
0011 model = "Gateworks Ventana GW5400-A";
0012 compatible = "gw,imx6q-gw5400-a", "gw,ventana", "fsl,imx6q";
0013
0014 /* these are used by bootloader for disabling nodes */
0015 aliases {
0016 i2c0 = &i2c1;
0017 i2c1 = &i2c2;
0018 i2c2 = &i2c3;
0019 led0 = &led0;
0020 led1 = &led1;
0021 led2 = &led2;
0022 ssi0 = &ssi1;
0023 spi0 = &ecspi1;
0024 usb0 = &usbh1;
0025 usb1 = &usbotg;
0026 };
0027
0028 chosen {
0029 bootargs = "console=ttymxc1,115200";
0030 };
0031
0032 leds {
0033 compatible = "gpio-leds";
0034 pinctrl-names = "default";
0035 pinctrl-0 = <&pinctrl_gpio_leds>;
0036
0037 led0: user1 {
0038 label = "user1";
0039 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* 102 -> MX6_PANLEDG */
0040 default-state = "on";
0041 linux,default-trigger = "heartbeat";
0042 };
0043
0044 led1: user2 {
0045 label = "user2";
0046 gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; /* 106 -> MX6_PANLEDR */
0047 default-state = "off";
0048 };
0049
0050 led2: user3 {
0051 label = "user3";
0052 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* 111 -> MX6_LOCLED# */
0053 default-state = "off";
0054 };
0055 };
0056
0057 memory@10000000 {
0058 device_type = "memory";
0059 reg = <0x10000000 0x40000000>;
0060 };
0061
0062 pps {
0063 compatible = "pps-gpio";
0064 pinctrl-names = "default";
0065 pinctrl-0 = <&pinctrl_gpio_leds>;
0066 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
0067 status = "okay";
0068 };
0069
0070 regulators {
0071 compatible = "simple-bus";
0072 #address-cells = <1>;
0073 #size-cells = <0>;
0074
0075 reg_1p0v: regulator@0 {
0076 compatible = "regulator-fixed";
0077 reg = <0>;
0078 regulator-name = "1P0V";
0079 regulator-min-microvolt = <1000000>;
0080 regulator-max-microvolt = <1000000>;
0081 regulator-always-on;
0082 };
0083
0084 reg_3p3v: regulator@1 {
0085 compatible = "regulator-fixed";
0086 reg = <1>;
0087 regulator-name = "3P3V";
0088 regulator-min-microvolt = <3300000>;
0089 regulator-max-microvolt = <3300000>;
0090 regulator-always-on;
0091 };
0092
0093 reg_usb_h1_vbus: regulator@2 {
0094 compatible = "regulator-fixed";
0095 reg = <2>;
0096 regulator-name = "usb_h1_vbus";
0097 regulator-min-microvolt = <5000000>;
0098 regulator-max-microvolt = <5000000>;
0099 regulator-always-on;
0100 };
0101
0102 reg_usb_otg_vbus: regulator@3 {
0103 compatible = "regulator-fixed";
0104 reg = <3>;
0105 regulator-name = "usb_otg_vbus";
0106 regulator-min-microvolt = <5000000>;
0107 regulator-max-microvolt = <5000000>;
0108 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
0109 enable-active-high;
0110 };
0111 };
0112
0113 sound {
0114 compatible = "fsl,imx6q-ventana-sgtl5000",
0115 "fsl,imx-audio-sgtl5000";
0116 model = "sgtl5000-audio";
0117 ssi-controller = <&ssi1>;
0118 audio-codec = <&codec>;
0119 audio-routing =
0120 "MIC_IN", "Mic Jack",
0121 "Mic Jack", "Mic Bias",
0122 "Headphone Jack", "HP_OUT";
0123 mux-int-port = <1>;
0124 mux-ext-port = <4>;
0125 };
0126 };
0127
0128 &audmux {
0129 pinctrl-names = "default";
0130 pinctrl-0 = <&pinctrl_audmux>;
0131 status = "okay";
0132 };
0133
0134 &ecspi1 {
0135 cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
0136 pinctrl-names = "default";
0137 pinctrl-0 = <&pinctrl_ecspi1>;
0138 status = "okay";
0139
0140 flash: flash@0 {
0141 compatible = "sst,w25q256", "jedec,spi-nor";
0142 spi-max-frequency = <30000000>;
0143 reg = <0>;
0144 };
0145 };
0146
0147 &fec {
0148 pinctrl-names = "default";
0149 pinctrl-0 = <&pinctrl_enet>;
0150 phy-mode = "rgmii-id";
0151 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
0152 status = "okay";
0153 };
0154
0155 &hdmi {
0156 ddc-i2c-bus = <&i2c3>;
0157 status = "okay";
0158 };
0159
0160 &i2c1 {
0161 clock-frequency = <100000>;
0162 pinctrl-names = "default";
0163 pinctrl-0 = <&pinctrl_i2c1>;
0164 status = "okay";
0165
0166 eeprom1: eeprom@50 {
0167 compatible = "atmel,24c02";
0168 reg = <0x50>;
0169 pagesize = <16>;
0170 };
0171
0172 eeprom2: eeprom@51 {
0173 compatible = "atmel,24c02";
0174 reg = <0x51>;
0175 pagesize = <16>;
0176 };
0177
0178 eeprom3: eeprom@52 {
0179 compatible = "atmel,24c02";
0180 reg = <0x52>;
0181 pagesize = <16>;
0182 };
0183
0184 eeprom4: eeprom@53 {
0185 compatible = "atmel,24c02";
0186 reg = <0x53>;
0187 pagesize = <16>;
0188 };
0189
0190 gpio: pca9555@23 {
0191 compatible = "nxp,pca9555";
0192 reg = <0x23>;
0193 gpio-controller;
0194 #gpio-cells = <2>;
0195 };
0196
0197 rtc: ds1672@68 {
0198 compatible = "dallas,ds1672";
0199 reg = <0x68>;
0200 };
0201 };
0202
0203 &i2c2 {
0204 clock-frequency = <100000>;
0205 pinctrl-names = "default";
0206 pinctrl-0 = <&pinctrl_i2c2>;
0207 status = "okay";
0208
0209 pmic: pfuze100@8 {
0210 compatible = "fsl,pfuze100";
0211 reg = <0x08>;
0212
0213 regulators {
0214 sw1a_reg: sw1ab {
0215 regulator-min-microvolt = <300000>;
0216 regulator-max-microvolt = <1875000>;
0217 regulator-boot-on;
0218 regulator-always-on;
0219 regulator-ramp-delay = <6250>;
0220 };
0221
0222 sw1c_reg: sw1c {
0223 regulator-min-microvolt = <300000>;
0224 regulator-max-microvolt = <1875000>;
0225 regulator-boot-on;
0226 regulator-always-on;
0227 regulator-ramp-delay = <6250>;
0228 };
0229
0230 sw2_reg: sw2 {
0231 regulator-min-microvolt = <800000>;
0232 regulator-max-microvolt = <3950000>;
0233 regulator-boot-on;
0234 regulator-always-on;
0235 };
0236
0237 sw3a_reg: sw3a {
0238 regulator-min-microvolt = <400000>;
0239 regulator-max-microvolt = <1975000>;
0240 regulator-boot-on;
0241 regulator-always-on;
0242 };
0243
0244 sw3b_reg: sw3b {
0245 regulator-min-microvolt = <400000>;
0246 regulator-max-microvolt = <1975000>;
0247 regulator-boot-on;
0248 regulator-always-on;
0249 };
0250
0251 sw4_reg: sw4 {
0252 regulator-min-microvolt = <800000>;
0253 regulator-max-microvolt = <3300000>;
0254 };
0255
0256 swbst_reg: swbst {
0257 regulator-min-microvolt = <5000000>;
0258 regulator-max-microvolt = <5150000>;
0259 };
0260
0261 snvs_reg: vsnvs {
0262 regulator-min-microvolt = <1000000>;
0263 regulator-max-microvolt = <3000000>;
0264 regulator-boot-on;
0265 regulator-always-on;
0266 };
0267
0268 vref_reg: vrefddr {
0269 regulator-boot-on;
0270 regulator-always-on;
0271 };
0272
0273 vgen1_reg: vgen1 {
0274 regulator-min-microvolt = <800000>;
0275 regulator-max-microvolt = <1550000>;
0276 };
0277
0278 vgen2_reg: vgen2 {
0279 regulator-min-microvolt = <800000>;
0280 regulator-max-microvolt = <1550000>;
0281 };
0282
0283 vgen3_reg: vgen3 {
0284 regulator-min-microvolt = <1800000>;
0285 regulator-max-microvolt = <3300000>;
0286 };
0287
0288 vgen4_reg: vgen4 {
0289 regulator-min-microvolt = <1800000>;
0290 regulator-max-microvolt = <3300000>;
0291 regulator-always-on;
0292 };
0293
0294 vgen5_reg: vgen5 {
0295 regulator-min-microvolt = <1800000>;
0296 regulator-max-microvolt = <3300000>;
0297 regulator-always-on;
0298 };
0299
0300 vgen6_reg: vgen6 {
0301 regulator-min-microvolt = <1800000>;
0302 regulator-max-microvolt = <3300000>;
0303 regulator-always-on;
0304 };
0305 };
0306 };
0307 };
0308
0309 &i2c3 {
0310 clock-frequency = <100000>;
0311 pinctrl-names = "default";
0312 pinctrl-0 = <&pinctrl_i2c3>;
0313 status = "okay";
0314
0315 accelerometer: mma8450@1c {
0316 compatible = "fsl,mma8450";
0317 reg = <0x1c>;
0318 };
0319
0320 codec: sgtl5000@a {
0321 compatible = "fsl,sgtl5000";
0322 reg = <0x0a>;
0323 clocks = <&clks IMX6QDL_CLK_CKO>;
0324 VDDA-supply = <&sw4_reg>;
0325 VDDIO-supply = <®_3p3v>;
0326 };
0327
0328 touchscreen: egalax_ts@4 {
0329 compatible = "eeti,egalax_ts";
0330 reg = <0x04>;
0331 interrupt-parent = <&gpio7>;
0332 interrupts = <12 2>;
0333 wakeup-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
0334 };
0335 };
0336
0337 &ldb {
0338 status = "okay";
0339 };
0340
0341 &pcie {
0342 reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
0343 status = "okay";
0344 };
0345
0346 &ssi1 {
0347 status = "okay";
0348 };
0349
0350 &uart1 {
0351 pinctrl-names = "default";
0352 pinctrl-0 = <&pinctrl_uart1>;
0353 status = "okay";
0354 };
0355
0356 &uart2 {
0357 pinctrl-names = "default";
0358 pinctrl-0 = <&pinctrl_uart2>;
0359 status = "okay";
0360 };
0361
0362 &uart5 {
0363 pinctrl-names = "default";
0364 pinctrl-0 = <&pinctrl_uart5>;
0365 status = "okay";
0366 };
0367
0368 &usbotg {
0369 vbus-supply = <®_usb_otg_vbus>;
0370 pinctrl-names = "default";
0371 pinctrl-0 = <&pinctrl_usbotg>;
0372 disable-over-current;
0373 status = "okay";
0374 };
0375
0376 &usbh1 {
0377 vbus-supply = <®_usb_h1_vbus>;
0378 status = "okay";
0379 };
0380
0381 &usdhc3 {
0382 pinctrl-names = "default";
0383 pinctrl-0 = <&pinctrl_usdhc3>;
0384 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
0385 vmmc-supply = <®_3p3v>;
0386 status = "okay";
0387 };
0388
0389 &iomuxc {
0390 pinctrl_audmux: audmuxgrp {
0391 fsl,pins = <
0392 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
0393 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
0394 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
0395 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
0396 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* AUD4_MCK */
0397 >;
0398 };
0399
0400 pinctrl_ecspi1: ecspi1grp {
0401 fsl,pins = <
0402 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
0403 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
0404 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
0405 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x1b0b0 /* SPINOR_CS0# */
0406 >;
0407 };
0408
0409 pinctrl_enet: enetgrp {
0410 fsl,pins = <
0411 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
0412 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
0413 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
0414 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
0415 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
0416 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
0417 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
0418 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
0419 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
0420 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
0421 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
0422 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
0423 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
0424 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
0425 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
0426 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
0427 >;
0428 };
0429
0430 pinctrl_gpio_leds: gpioledsgrp {
0431 fsl,pins = <
0432 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0 /* user1 led */
0433 MX6QDL_PAD_KEY_COL2__GPIO4_IO10 0x1b0b0 /* user2 led */
0434 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0 /* user3 led */
0435 >;
0436 };
0437
0438 pinctrl_i2c1: i2c1grp {
0439 fsl,pins = <
0440 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
0441 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
0442 >;
0443 };
0444
0445 pinctrl_i2c2: i2c2grp {
0446 fsl,pins = <
0447 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
0448 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
0449 >;
0450 };
0451
0452 pinctrl_i2c3: i2c3grp {
0453 fsl,pins = <
0454 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
0455 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
0456 >;
0457 };
0458
0459 pinctrl_pcie: pciegrp {
0460 fsl,pins = <
0461 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0 /* PCIE IRQ */
0462 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PCIE RST */
0463 >;
0464 };
0465
0466 pinctrl_pps: ppsgrp {
0467 fsl,pins = <
0468 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b0 /* GPS_PPS */
0469 >;
0470 };
0471
0472 pinctrl_uart1: uart1grp {
0473 fsl,pins = <
0474 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
0475 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
0476 >;
0477 };
0478
0479 pinctrl_uart2: uart2grp {
0480 fsl,pins = <
0481 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
0482 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
0483 >;
0484 };
0485
0486 pinctrl_uart5: uart5grp {
0487 fsl,pins = <
0488 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
0489 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
0490 >;
0491 };
0492
0493 pinctrl_usbotg: usbotggrp {
0494 fsl,pins = <
0495 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
0496 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* OTG_PWR_EN */
0497 >;
0498 };
0499
0500 pinctrl_usdhc3: usdhc3grp {
0501 fsl,pins = <
0502 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
0503 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
0504 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
0505 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
0506 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
0507 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
0508 >;
0509 };
0510 };