All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07
@ 2019-06-04 13:49 Sjoerd Simons
  2019-06-04 13:49 ` [U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver Sjoerd Simons
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sjoerd Simons @ 2019-06-04 13:49 UTC (permalink / raw)
  To: u-boot

To make things easier i've split the `Enable usage of SDP for i.MX6
Sabre Auto Boards` patchset i sent yesterday up so it'll be hopefully
easier to merge.

The first two are the same as yesterday (Thanks Peng for the review).
The last one is new and fixes regressions in usb gadget usage of
various mx6 board that were converted to DM_USB.


Sjoerd Simons (3):
  mx6sabreauto: Select pinctrl driver
  mx6sabreauto: set SYS_MALLOC_F for video
  arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg

 arch/arm/dts/imx6qdl-u-boot.dtsi | 4 ++++
 configs/mx6sabreauto_defconfig   | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/3]  mx6sabreauto: Select pinctrl driver
  2019-06-04 13:49 [U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07 Sjoerd Simons
@ 2019-06-04 13:49 ` Sjoerd Simons
  2019-06-11  8:44   ` sbabic at denx.de
  2019-06-04 13:49 ` [U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video Sjoerd Simons
  2019-06-04 13:49 ` [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg Sjoerd Simons
  2 siblings, 1 reply; 7+ messages in thread
From: Sjoerd Simons @ 2019-06-04 13:49 UTC (permalink / raw)
  To: u-boot

With the conversion to DM we should select the pinctrl driver.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Peng Fan <peng.fan@nxp.com>

---

 configs/mx6sabreauto_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig
index d0f302e9d0..ef965a30e6 100644
--- a/configs/mx6sabreauto_defconfig
+++ b/configs/mx6sabreauto_defconfig
@@ -70,6 +70,8 @@ CONFIG_SF_DEFAULT_SPEED=20000000
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_PHYLIB=y
 CONFIG_MII=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_DM_REGULATOR=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video
  2019-06-04 13:49 [U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07 Sjoerd Simons
  2019-06-04 13:49 ` [U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver Sjoerd Simons
@ 2019-06-04 13:49 ` Sjoerd Simons
  2019-06-11  8:44   ` sbabic at denx.de
  2019-06-04 13:49 ` [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg Sjoerd Simons
  2 siblings, 1 reply; 7+ messages in thread
From: Sjoerd Simons @ 2019-06-04 13:49 UTC (permalink / raw)
  To: u-boot

Sabre Auto boards currently hang with:
```
U-Boot 2019.07-rc3-00057-gc41940c406 (Jun 03 2019 - 14:42:41 +0200)

CPU:   Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C)Reset cause: WDOG
Model: Freescale i.MX6 Quad Plus SABRE Automotive Board
Board: MX6Q-Sabreauto revA
I2C:   ready
DRAM:  2 GiB
Video device 'ipu at 2400000' cannot allocate frame buffer memory -ensure the device is set up before relocation
Error binding driver 'ipuv3_video': -28
Video device 'ipu at 2800000' cannot allocate frame buffer memory -ensure the device is set up before relocation
Error binding driver 'ipuv3_video': -28
Some drivers failed to bind
Error binding driver 'generic_simple_bus': -28
Some drivers failed to bind
initcall sequence 8ffe00b8 failed at call 1780e93b (err=-28)
```

Set SYS_MALLOC_F_LEN to reserve_video to work.

This is similar to the change Peng Fan did for mx6sabresd (9002e735e717)

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Peng Fan <peng.fan@nxp.com>

---

 configs/mx6sabreauto_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig
index ef965a30e6..dc758d7aaf 100644
--- a/configs/mx6sabreauto_defconfig
+++ b/configs/mx6sabreauto_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000
 CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_TARGET_MX6SABREAUTO=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
@@ -11,7 +12,6 @@ CONFIG_NR_DRAM_BANKS=1
 CONFIG_SPL=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_NXP_BOARD_REVISION=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_FIT=y
 CONFIG_SPL_FIT_PRINT=y
 CONFIG_SPL_LOAD_FIT=y
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg
  2019-06-04 13:49 [U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07 Sjoerd Simons
  2019-06-04 13:49 ` [U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver Sjoerd Simons
  2019-06-04 13:49 ` [U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video Sjoerd Simons
@ 2019-06-04 13:49 ` Sjoerd Simons
  2019-06-11  8:44   ` sbabic at denx.de
  2 siblings, 1 reply; 7+ messages in thread
From: Sjoerd Simons @ 2019-06-04 13:49 UTC (permalink / raw)
  To: u-boot

All i.mx6 boards seems to have moved to DM_USB, however gadget support
for mx6 is still pre-DM as CI_UDC isn't converted yet. To make this work
the usb otg controller used for gadgets needs to be usb number 0.
Add an alias for this directly in the main u-boot mx6qdl dtsi so it
doesn't need to be done for each board separately.

This fixes regressions wrt. usb gadget functionality in several boards
that have gadget functions enabled in their config, but no usb0 alias in
their device-tree.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
---

 arch/arm/dts/imx6qdl-u-boot.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx6qdl-u-boot.dtsi b/arch/arm/dts/imx6qdl-u-boot.dtsi
index 0aa29e38b8..e161ebb9af 100644
--- a/arch/arm/dts/imx6qdl-u-boot.dtsi
+++ b/arch/arm/dts/imx6qdl-u-boot.dtsi
@@ -4,6 +4,10 @@
  */
 
 / {
+	aliases {
+		usb0 = &usbotg;
+	};
+
 	soc {
 		u-boot,dm-spl;
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot]  [PATCH 1/3]  mx6sabreauto: Select pinctrl driver
  2019-06-04 13:49 ` [U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver Sjoerd Simons
@ 2019-06-11  8:44   ` sbabic at denx.de
  0 siblings, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2019-06-11  8:44 UTC (permalink / raw)
  To: u-boot

> With the conversion to DM we should select the pinctrl driver.
> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
> Reviewed-by: Peng Fan <peng.fan@nxp.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] 7+ messages in thread

* [U-Boot]  [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video
  2019-06-04 13:49 ` [U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video Sjoerd Simons
@ 2019-06-11  8:44   ` sbabic at denx.de
  0 siblings, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2019-06-11  8:44 UTC (permalink / raw)
  To: u-boot

> Sabre Auto boards currently hang with:
> ```
> U-Boot 2019.07-rc3-00057-gc41940c406 (Jun 03 2019 - 14:42:41 +0200)
> CPU:   Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)
> CPU:   Automotive temperature grade (-40C to 125C)Reset cause: WDOG
> Model: Freescale i.MX6 Quad Plus SABRE Automotive Board
> Board: MX6Q-Sabreauto revA
> I2C:   ready
> DRAM:  2 GiB
> Video device 'ipu at 2400000' cannot allocate frame buffer memory -ensure the device is set up before relocation
> Error binding driver 'ipuv3_video': -28
> Video device 'ipu at 2800000' cannot allocate frame buffer memory -ensure the device is set up before relocation
> Error binding driver 'ipuv3_video': -28
> Some drivers failed to bind
> Error binding driver 'generic_simple_bus': -28
> Some drivers failed to bind
> initcall sequence 8ffe00b8 failed at call 1780e93b (err=-28)
> ```
> Set SYS_MALLOC_F_LEN to reserve_video to work.
> This is similar to the change Peng Fan did for mx6sabresd (9002e735e717)
> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
> Reviewed-by: Peng Fan <peng.fan@nxp.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] 7+ messages in thread

* [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg
  2019-06-04 13:49 ` [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg Sjoerd Simons
@ 2019-06-11  8:44   ` sbabic at denx.de
  0 siblings, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2019-06-11  8:44 UTC (permalink / raw)
  To: u-boot

> All i.mx6 boards seems to have moved to DM_USB, however gadget support
> for mx6 is still pre-DM as CI_UDC isn't converted yet. To make this work
> the usb otg controller used for gadgets needs to be usb number 0.
> Add an alias for this directly in the main u-boot mx6qdl dtsi so it
> doesn't need to be done for each board separately.
> This fixes regressions wrt. usb gadget functionality in several boards
> that have gadget functions enabled in their config, but no usb0 alias in
> their device-tree.
> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>

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] 7+ messages in thread

end of thread, other threads:[~2019-06-11  8:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 13:49 [U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07 Sjoerd Simons
2019-06-04 13:49 ` [U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver Sjoerd Simons
2019-06-11  8:44   ` sbabic at denx.de
2019-06-04 13:49 ` [U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video Sjoerd Simons
2019-06-11  8:44   ` sbabic at denx.de
2019-06-04 13:49 ` [U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg Sjoerd Simons
2019-06-11  8:44   ` sbabic at denx.de

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.