* [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator
@ 2019-06-20 22:49 Marek Vasut
2019-06-24 11:27 ` Ludwig Zenz
2019-07-20 8:57 ` sbabic at denx.de
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2019-06-20 22:49 UTC (permalink / raw)
To: u-boot
Enable DM support for regulators and fixed regulator driver and
convert USB Vbus control over to the regulators defined in DT.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ludwig Zenz <lzenz@dh-electronics.com>
Cc: Stefano Babic <sbabic@denx.de>
---
V2: Fix subject, should read DM regulator instead of DM GPIO
---
board/dhelectronics/dh_imx6/dh_imx6.c | 17 -----------------
configs/dh_imx6_defconfig | 2 ++
2 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 50e3cb50a3..e5ff91248a 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -196,7 +196,6 @@ int board_eth_init(bd_t *bis)
#ifdef CONFIG_USB_EHCI_MX6
static void setup_usb(void)
{
- gpio_request(IMX_GPIO_NR(3, 31), "USB-VBUS");
/*
* Set daisy chain for otg_pin_id on MX6Q.
* For MX6DL, this bit is reserved.
@@ -211,22 +210,6 @@ int board_usb_phy_mode(int port)
else
return USB_INIT_DEVICE;
}
-
-int board_ehci_power(int port, int on)
-{
- switch (port) {
- case 0:
- break;
- case 1:
- gpio_direction_output(IMX_GPIO_NR(3, 31), !!on);
- break;
- default:
- printf("MXC USB port %d not yet supported\n", port);
- return -EINVAL;
- }
-
- return 0;
-}
#endif
static int setup_dhcom_mac_from_fuse(void)
diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig
index f98b93e6c0..8381c5d50f 100644
--- a/configs/dh_imx6_defconfig
+++ b/configs/dh_imx6_defconfig
@@ -64,6 +64,8 @@ CONFIG_FEC_MXC=y
CONFIG_MII=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
+CONFIG_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
CONFIG_DM_SCSI=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator
2019-06-20 22:49 [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator Marek Vasut
@ 2019-06-24 11:27 ` Ludwig Zenz
2019-07-20 8:57 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: Ludwig Zenz @ 2019-06-24 11:27 UTC (permalink / raw)
To: u-boot
Marek Vasut <marex@denx.de> Friday 21st June 2019 0:51:
> Enable DM support for regulators and fixed regulator driver and
> convert USB Vbus control over to the regulators defined in DT.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Ludwig Zenz <lzenz@dh-electronics.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> V2: Fix subject, should read DM regulator instead of DM GPIO
> ---
> board/dhelectronics/dh_imx6/dh_imx6.c | 17 -----------------
> configs/dh_imx6_defconfig | 2 ++
> 2 files changed, 2 insertions(+), 17 deletions(-)
>
> diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
> index 50e3cb50a3..e5ff91248a 100644
> --- a/board/dhelectronics/dh_imx6/dh_imx6.c
> +++ b/board/dhelectronics/dh_imx6/dh_imx6.c
> @@ -196,7 +196,6 @@ int board_eth_init(bd_t *bis)
> #ifdef CONFIG_USB_EHCI_MX6
> static void setup_usb(void)
> {
> - gpio_request(IMX_GPIO_NR(3, 31), "USB-VBUS");
> /*
> * Set daisy chain for otg_pin_id on MX6Q.
> * For MX6DL, this bit is reserved.
> @@ -211,22 +210,6 @@ int board_usb_phy_mode(int port)
> else
> return USB_INIT_DEVICE;
> }
> -
> -int board_ehci_power(int port, int on)
> -{
> - switch (port) {
> - case 0:
> - break;
> - case 1:
> - gpio_direction_output(IMX_GPIO_NR(3, 31), !!on);
> - break;
> - default:
> - printf("MXC USB port %d not yet supported\n", port);
> - return -EINVAL;
> - }
> -
> - return 0;
> -}
> #endif
>
> static int setup_dhcom_mac_from_fuse(void)
> diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig
> index f98b93e6c0..8381c5d50f 100644
> --- a/configs/dh_imx6_defconfig
> +++ b/configs/dh_imx6_defconfig
> @@ -64,6 +64,8 @@ CONFIG_FEC_MXC=y
> CONFIG_MII=y
> CONFIG_PINCTRL=y
> CONFIG_PINCTRL_IMX6=y
> +CONFIG_DM_REGULATOR=y
> +CONFIG_DM_REGULATOR_FIXED=y
> CONFIG_DM_SCSI=y
> CONFIG_SPI=y
> CONFIG_DM_SPI=y
> --
> 2.20.1
>
>
Tested-by: Ludwig Zenz <lzenz@dh-electronics.com>
Thanks,
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator
2019-06-20 22:49 [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator Marek Vasut
2019-06-24 11:27 ` Ludwig Zenz
@ 2019-07-20 8:57 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: sbabic at denx.de @ 2019-07-20 8:57 UTC (permalink / raw)
To: u-boot
> Enable DM support for regulators and fixed regulator driver and
> convert USB Vbus control over to the regulators defined in DT.
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Ludwig Zenz <lzenz@dh-electronics.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Tested-by: Ludwig Zenz <lzenz@dh-electronics.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-20 8:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-20 22:49 [U-Boot] [PATCH V2] ARM: imx: dh-imx6: Enable DM regulator Marek Vasut
2019-06-24 11:27 ` Ludwig Zenz
2019-07-20 8:57 ` sbabic at denx.de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox