From aa233d26bdc3eee90146f0581f7b84a97cf9e729 Mon Sep 17 00:00:00 2001 From: Tim Harvey Date: Fri, 27 Dec 2024 10:50:51 -0800 Subject: board: gateworks: venice: rename GW7905 to GW7500 The GW7905 was renamed to GW7500 before release. Change the various names in the dt files and references. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw75xx-0x-u-boot.dtsi | 58 ++++++++++++++++++++++++ arch/arm/dts/imx8mm-venice-gw7905-0x-u-boot.dtsi | 58 ------------------------ arch/arm/dts/imx8mp-venice-gw75xx-2x-u-boot.dtsi | 51 +++++++++++++++++++++ arch/arm/dts/imx8mp-venice-gw7905-2x-u-boot.dtsi | 51 --------------------- board/gateworks/venice/spl.c | 2 +- 5 files changed, 110 insertions(+), 110 deletions(-) create mode 100644 arch/arm/dts/imx8mm-venice-gw75xx-0x-u-boot.dtsi delete mode 100644 arch/arm/dts/imx8mm-venice-gw7905-0x-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mp-venice-gw75xx-2x-u-boot.dtsi delete mode 100644 arch/arm/dts/imx8mp-venice-gw7905-2x-u-boot.dtsi diff --git a/arch/arm/dts/imx8mm-venice-gw75xx-0x-u-boot.dtsi b/arch/arm/dts/imx8mm-venice-gw75xx-0x-u-boot.dtsi new file mode 100644 index 00000000000..c259026d1a8 --- /dev/null +++ b/arch/arm/dts/imx8mm-venice-gw75xx-0x-u-boot.dtsi @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2023 Gateworks Corporation + */ +#include "imx8mm-venice-gw700x-u-boot.dtsi" + +&gpio1 { + app_gpioa { + gpio-hog; + input; + gpios = <13 GPIO_ACTIVE_HIGH>; + line-name = "gpioa"; + }; + + app_gpiob { + gpio-hog; + input; + gpios = <14 GPIO_ACTIVE_HIGH>; + line-name = "gpiob"; + }; +}; + +&gpio4 { + pci_usb_sel { + gpio-hog; + output-low; + gpios = <3 GPIO_ACTIVE_HIGH>; + line-name = "pci_usb_sel"; + }; + + pci_wdis { + gpio-hog; + output-high; + gpios = <7 GPIO_ACTIVE_HIGH>; + line-name = "pci_wdis#"; + }; +}; + +&gpio5 { + app_gpioc { + gpio-hog; + input; + gpios = <4 GPIO_ACTIVE_HIGH>; + line-name = "gpioc"; + }; + + app_gpiod { + gpio-hog; + input; + gpios = <5 GPIO_ACTIVE_HIGH>; + line-name = "gpiod"; + }; +}; + +/* Disable SOM interfaces not used on baseboard */ +&fec1 { + status = "disabled"; +}; diff --git a/arch/arm/dts/imx8mm-venice-gw7905-0x-u-boot.dtsi b/arch/arm/dts/imx8mm-venice-gw7905-0x-u-boot.dtsi deleted file mode 100644 index c259026d1a8..00000000000 --- a/arch/arm/dts/imx8mm-venice-gw7905-0x-u-boot.dtsi +++ /dev/null @@ -1,58 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright 2023 Gateworks Corporation - */ -#include "imx8mm-venice-gw700x-u-boot.dtsi" - -&gpio1 { - app_gpioa { - gpio-hog; - input; - gpios = <13 GPIO_ACTIVE_HIGH>; - line-name = "gpioa"; - }; - - app_gpiob { - gpio-hog; - input; - gpios = <14 GPIO_ACTIVE_HIGH>; - line-name = "gpiob"; - }; -}; - -&gpio4 { - pci_usb_sel { - gpio-hog; - output-low; - gpios = <3 GPIO_ACTIVE_HIGH>; - line-name = "pci_usb_sel"; - }; - - pci_wdis { - gpio-hog; - output-high; - gpios = <7 GPIO_ACTIVE_HIGH>; - line-name = "pci_wdis#"; - }; -}; - -&gpio5 { - app_gpioc { - gpio-hog; - input; - gpios = <4 GPIO_ACTIVE_HIGH>; - line-name = "gpioc"; - }; - - app_gpiod { - gpio-hog; - input; - gpios = <5 GPIO_ACTIVE_HIGH>; - line-name = "gpiod"; - }; -}; - -/* Disable SOM interfaces not used on baseboard */ -&fec1 { - status = "disabled"; -}; diff --git a/arch/arm/dts/imx8mp-venice-gw75xx-2x-u-boot.dtsi b/arch/arm/dts/imx8mp-venice-gw75xx-2x-u-boot.dtsi new file mode 100644 index 00000000000..981841cee0a --- /dev/null +++ b/arch/arm/dts/imx8mp-venice-gw75xx-2x-u-boot.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2023 Gateworks Corporation + */ +#include "imx8mp-venice-gw702x-u-boot.dtsi" + +&gpio1 { + app_gpioa { + gpio-hog; + input; + gpios = <13 GPIO_ACTIVE_HIGH>; + line-name = "gpioa"; + }; +}; + +&gpio4 { + app_gpiod { + gpio-hog; + input; + gpios = <1 GPIO_ACTIVE_HIGH>; + line-name = "gpiod"; + }; + + app_gpiob { + gpio-hog; + input; + gpios = <4 GPIO_ACTIVE_HIGH>; + line-name = "gpiob"; + }; + + app_gpioc { + gpio-hog; + input; + gpios = <5 GPIO_ACTIVE_HIGH>; + line-name = "gpioc"; + }; + + pci_usb_sel { + gpio-hog; + output-low; + gpios = <26 GPIO_ACTIVE_HIGH>; + line-name = "pci_usb_sel"; + }; + + pci_wdis { + gpio-hog; + output-high; + gpios = <28 GPIO_ACTIVE_HIGH>; + line-name = "pci_wdis#"; + }; +}; diff --git a/arch/arm/dts/imx8mp-venice-gw7905-2x-u-boot.dtsi b/arch/arm/dts/imx8mp-venice-gw7905-2x-u-boot.dtsi deleted file mode 100644 index 981841cee0a..00000000000 --- a/arch/arm/dts/imx8mp-venice-gw7905-2x-u-boot.dtsi +++ /dev/null @@ -1,51 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright 2023 Gateworks Corporation - */ -#include "imx8mp-venice-gw702x-u-boot.dtsi" - -&gpio1 { - app_gpioa { - gpio-hog; - input; - gpios = <13 GPIO_ACTIVE_HIGH>; - line-name = "gpioa"; - }; -}; - -&gpio4 { - app_gpiod { - gpio-hog; - input; - gpios = <1 GPIO_ACTIVE_HIGH>; - line-name = "gpiod"; - }; - - app_gpiob { - gpio-hog; - input; - gpios = <4 GPIO_ACTIVE_HIGH>; - line-name = "gpiob"; - }; - - app_gpioc { - gpio-hog; - input; - gpios = <5 GPIO_ACTIVE_HIGH>; - line-name = "gpioc"; - }; - - pci_usb_sel { - gpio-hog; - output-low; - gpios = <26 GPIO_ACTIVE_HIGH>; - line-name = "pci_usb_sel"; - }; - - pci_wdis { - gpio-hog; - output-high; - gpios = <28 GPIO_ACTIVE_HIGH>; - line-name = "pci_wdis#"; - }; -}; diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c index 002d7bbf864..bcdc1a2a468 100644 --- a/board/gateworks/venice/spl.c +++ b/board/gateworks/venice/spl.c @@ -144,7 +144,7 @@ static int power_init_board(struct udevice *gsc) if ((!strncmp(model, "GW71", 4)) || (!strncmp(model, "GW72", 4)) || (!strncmp(model, "GW73", 4)) || - (!strncmp(model, "GW7905", 6))) { + (!strncmp(model, "GW75", 4))) { ret = uclass_get_device_by_seq(UCLASS_I2C, 0, &bus); if (ret) { printf("PMIC : failed I2C1 probe: %d\n", ret); -- cgit v1.3.1