Skip to content

Commit

Permalink
imx: ventana: add GW5913 support
Browse files Browse the repository at this point in the history
The GW5913 is a Single Board Computer based on the NXP i.MX6Q/DL SoC
with the following features:
 - DDR3 DRAM
 - NAND FLASH (256MiB or 2048MiB)
 - Gateworks System Periperhal Controller
 - front panel LED's
 - front panel pushbutton
 - Digital I/O connector (I2C/GPIO/UART)
 - u-blox Zoe-M8Q GPS
 - 1x RJ45 GbE
 - 1x MiniPCIe socket with PCIe USB 2.0 and nanoSIM socket
 - Passive PoE and wide-range DC power supply

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
  • Loading branch information
Gateworks authored and sbabic committed Aug 9, 2021
1 parent 744d21c commit 3ef59ac
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
54 changes: 54 additions & 0 deletions board/gateworks/gw_ventana/common.c
Expand Up @@ -843,6 +843,51 @@ struct dio_cfg gw5906_dio[] = {
},
};

struct dio_cfg gw5913_dio[] = {
{
{ IOMUX_PADS(PAD_SD1_DAT0__GPIO1_IO16) },
IMX_GPIO_NR(1, 16),
{ 0, 0 },
0
},
{
{ IOMUX_PADS(PAD_SD1_DAT2__GPIO1_IO19) },
IMX_GPIO_NR(1, 19),
{ IOMUX_PADS(PAD_SD1_DAT2__PWM2_OUT) },
2
},
{
{ IOMUX_PADS(PAD_SD1_DAT1__GPIO1_IO17) },
IMX_GPIO_NR(1, 17),
{ IOMUX_PADS(PAD_SD1_DAT1__PWM3_OUT) },
3
},
{
{ IOMUX_PADS(PAD_SD1_CMD__GPIO1_IO18) },
IMX_GPIO_NR(1, 18),
{ IOMUX_PADS(PAD_SD1_CMD__PWM4_OUT) },
4
},
{
{ IOMUX_PADS(PAD_SD2_DAT0__GPIO1_IO15) },
IMX_GPIO_NR(1, 15),
{ 0, 0 },
0
},
{
{ IOMUX_PADS(PAD_SD2_DAT1__GPIO1_IO14) },
IMX_GPIO_NR(1, 14),
{ 0, 0 },
0
},
{
{ IOMUX_PADS(PAD_GPIO_19__GPIO4_IO05) },
IMX_GPIO_NR(4, 5),
{ 0, 0 },
0
},
};

/*
* Board Specific GPIO
*/
Expand Down Expand Up @@ -1082,6 +1127,15 @@ struct ventana gpio_cfg[GW_UNKNOWN] = {
.vsel_pin = IMX_GPIO_NR(6, 14),
.mmc_cd = IMX_GPIO_NR(7, 0),
},

/* GW5913 */
{
.gpio_pads = gw5912_gpio_pads,
.num_pads = ARRAY_SIZE(gw5912_gpio_pads) / 2,
.dio_cfg = gw5913_dio,
.dio_num = ARRAY_SIZE(gw5913_dio),
.wdis = IMX_GPIO_NR(1, 0),
},
};

#define SETUP_GPIO_OUTPUT(gpio, name, level) \
Expand Down
2 changes: 2 additions & 0 deletions board/gateworks/gw_ventana/eeprom.c
Expand Up @@ -128,6 +128,8 @@ read_eeprom(int bus, struct ventana_board_info *info)
type = GW5910;
else if (info->model[4] == '1' && info->model[5] == '2')
type = GW5912;
else if (info->model[4] == '1' && info->model[5] == '3')
type = GW5913;
break;
default:
printf("EEPROM: Unknown model in EEPROM: %s\n", info->model);
Expand Down
1 change: 1 addition & 0 deletions board/gateworks/gw_ventana/ventana_eeprom.h
Expand Up @@ -123,6 +123,7 @@ enum {
GW5909,
GW5910,
GW5912,
GW5913,
GW_UNKNOWN,
GW_BADCRC,
};
Expand Down

0 comments on commit 3ef59ac

Please sign in to comment.