All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>
Cc: u-boot@lists.denx.de, Tim Harvey <tharvey@gateworks.com>
Subject: [RESEND PATCH 15/16] imx: ventana: add support for GW53xx-G revision
Date: Sat, 24 Jul 2021 10:40:45 -0700	[thread overview]
Message-ID: <20210724174046.20589-15-tharvey@gateworks.com> (raw)
In-Reply-To: <20210724174046.20589-1-tharvey@gateworks.com>

The GW53xx-G revision has the foolowing changes:
 - replaces the EOL GbE PHY with an updated part (requires an enable pin)
 - replaces the EOL analog video decoder with an updated part
   (requires dt prop)
 - add power control to miniPCIe socket

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/common.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index a4c2f5549f..65e4de1dee 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -229,6 +229,10 @@ static iomux_v3_cfg_t const gw53xx_gpio_pads[] = {
 	IOMUX_PADS(PAD_SD3_DAT4__GPIO7_IO01 | DIO_PAD_CFG),
 	/* PCIESKT_WDIS# */
 	IOMUX_PADS(PAD_GPIO_17__GPIO7_IO12 | DIO_PAD_CFG),
+	/* J6_PWREN */
+	IOMUX_PADS(PAD_EIM_DA15__GPIO3_IO15 | DIO_PAD_CFG),
+	/* PCIEGBE_EN */
+	IOMUX_PADS(PAD_EIM_DA14__GPIO3_IO14 | DIO_PAD_CFG),
 };
 
 static iomux_v3_cfg_t const gw54xx_gpio_pads[] = {
@@ -1226,6 +1230,12 @@ void setup_iomux_gpio(int board, struct ventana_board_info *info)
 
 	/* Anything else board specific */
 	switch(board) {
+	case GW53xx:
+		gpio_request(IMX_GPIO_NR(3, 15), "j6_pwren");
+		gpio_direction_output(IMX_GPIO_NR(3, 15), 1);
+		gpio_request(IMX_GPIO_NR(3, 14), "gbe_en");
+		gpio_direction_output(IMX_GPIO_NR(3, 14), 1);
+		break;
 	case GW560x:
 		gpio_request(IMX_GPIO_NR(4, 26), "12p0_en");
 		gpio_direction_output(IMX_GPIO_NR(4, 26), 1);
@@ -1645,6 +1655,15 @@ void ft_early_fixup(void *blob, int board_type)
 		/* GW53xx-E adds WDOG1_B external reset */
 		if (rev < 'E')
 			ft_board_wdog_fixup(blob, WDOG1_ADDR);
+
+		/* GW53xx-G has an adv7280 instead of an adv7180 */
+		else if (rev > 'F') {
+			i = fdt_node_offset_by_compatible(blob, -1, "adi,adv7180");
+			if (i) {
+				fdt_setprop_string(blob, i, "compatible", "adi,adv7280");
+				fdt_setprop_empty(blob, i, "adv,force-bt656-4");
+			}
+		}
 		break;
 
 	case GW54xx:
-- 
2.17.1


  parent reply	other threads:[~2021-07-24 18:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-24 17:40 [RESEND PATCH 01/16] imx: ventana: ignore EEPROM config when checking for NAND support Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 02/16] imx: ventana: move wdog/uhs-i board/revision dt fixups Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 03/16] imx: ventana: remove nand field from common ventana struct Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 04/16] imx: ventana: replace hard-coded LED config with dt based config Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 05/16] imx: ventana: remove hard-coded USB HUBRST# gpio config Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 06/16] imx: ventana: fix UMS support Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 07/16] imx: ventana: remove hard-coded PCI reset Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 08/16] imx: ventana: remove hard-coded USB OTG pinmux Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 09/16] imx: ventana: remove hard-coded analog video codec enable Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 10/16] imx: ventana: remove hard-coded flexcan standby pin Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 11/16] imx: ventana: use dt for hwmon Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 12/16] imx: ventana: add GW5910 support Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 13/16] imx: ventana: add GW5912 support Tim Harvey
2021-07-24 17:40 ` [RESEND PATCH 14/16] imx: ventana: add GW5913 support Tim Harvey
2021-07-24 17:40 ` Tim Harvey [this message]
2021-07-24 17:40 ` [RESEND PATCH 16/16] imx: ventana: add support for GW54xx-G revision Tim Harvey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210724174046.20589-15-tharvey@gateworks.com \
    --to=tharvey@gateworks.com \
    --cc=festevam@gmail.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.