mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] RDU2: add support to boot from SD card autonomosly
@ 2019-12-17 11:28 Lucas Stach
  2019-12-17 11:28 ` [PATCH 2/3] ARM: rdu2: don't reduce i2c frequency for eGalax touch Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2019-12-17 11:28 UTC (permalink / raw)
  To: barebox

From: "Ruslan V. Sushko" <ruslan.sushko@zii.aero>

Signed-off-by: Ruslan Sushko <Ruslan.Sushko@zii.aero>
---
 .../boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default b/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
index f391d91eba4c..e3406d554373 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
+++ b/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
@@ -2,6 +2,10 @@
 
 backlight0.brightness=0
 if [ "$bootsource" = "spi-nor" ]; then
+	echo Boot source is SPI NOR, booting SD card firmware with rootfs on SD card
+	boot mmc1
+elif [ "$bootsource" = "mmc" ] && [ "$bootsource_instance" = "1" ]; then
+	echo Boot source is SD card, booting SD card firmware with rootfs on SD card
 	boot mmc1
 else
 	detect mmc3
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/3] ARM: rdu2: don't reduce i2c frequency for eGalax touch
  2019-12-17 11:28 [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Lucas Stach
@ 2019-12-17 11:28 ` Lucas Stach
  2019-12-17 11:28 ` [PATCH 3/3] ARM: rdu2: fixup touchscreen alias Lucas Stach
  2019-12-18  7:31 ` [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2019-12-17 11:28 UTC (permalink / raw)
  To: barebox

The electrical issues that caused the i2c bus to lock up at higher frequencies
has been tracked down and solved by a improved i2c pin configuration, so it's
no longer required to reduce the bus frequency.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm/boards/zii-imx6q-rdu2/board.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boards/zii-imx6q-rdu2/board.c b/arch/arm/boards/zii-imx6q-rdu2/board.c
index 63367a419af0..c06c5ebd9a7c 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/board.c
+++ b/arch/arm/boards/zii-imx6q-rdu2/board.c
@@ -180,8 +180,6 @@ static int rdu2_fixup_egalax_ts(struct device_node *root, void *context)
 		return -ENODEV;
 
 	of_device_enable(np);
-	of_property_write_u32(np->parent, "clock-frequency", 200000);
-
 
 	return 0;
 }
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 3/3] ARM: rdu2: fixup touchscreen alias
  2019-12-17 11:28 [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Lucas Stach
  2019-12-17 11:28 ` [PATCH 2/3] ARM: rdu2: don't reduce i2c frequency for eGalax touch Lucas Stach
@ 2019-12-17 11:28 ` Lucas Stach
  2019-12-18  7:31 ` [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2019-12-17 11:28 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm/boards/zii-imx6q-rdu2/board.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/zii-imx6q-rdu2/board.c b/arch/arm/boards/zii-imx6q-rdu2/board.c
index c06c5ebd9a7c..d41609bfae8a 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/board.c
+++ b/arch/arm/boards/zii-imx6q-rdu2/board.c
@@ -1,3 +1,4 @@
+
 /*
  * Copyright (C) 2016 Zodiac Inflight Innovation
  * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
@@ -161,7 +162,7 @@ device_initcall(rdu2_devices_init);
 
 static int rdu2_fixup_egalax_ts(struct device_node *root, void *context)
 {
-	struct device_node *np;
+	struct device_node *np, *aliases;
 
 	/*
 	 * The 32" unit has a EETI eGalax touchscreen instead of the
@@ -181,6 +182,12 @@ static int rdu2_fixup_egalax_ts(struct device_node *root, void *context)
 
 	of_device_enable(np);
 
+	aliases = of_find_node_by_path_from(root, "/aliases");
+	if (!aliases)
+		return -ENODEV;
+
+	of_property_write_string(aliases, "touchscreen0", np->full_name);
+
 	return 0;
 }
 
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/3] RDU2: add support to boot from SD card autonomosly
  2019-12-17 11:28 [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Lucas Stach
  2019-12-17 11:28 ` [PATCH 2/3] ARM: rdu2: don't reduce i2c frequency for eGalax touch Lucas Stach
  2019-12-17 11:28 ` [PATCH 3/3] ARM: rdu2: fixup touchscreen alias Lucas Stach
@ 2019-12-18  7:31 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2019-12-18  7:31 UTC (permalink / raw)
  To: Lucas Stach; +Cc: barebox

On Tue, Dec 17, 2019 at 12:28:14PM +0100, Lucas Stach wrote:
> From: "Ruslan V. Sushko" <ruslan.sushko@zii.aero>
> 
> Signed-off-by: Ruslan Sushko <Ruslan.Sushko@zii.aero>
> ---
>  .../boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default    | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-12-18  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 11:28 [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Lucas Stach
2019-12-17 11:28 ` [PATCH 2/3] ARM: rdu2: don't reduce i2c frequency for eGalax touch Lucas Stach
2019-12-17 11:28 ` [PATCH 3/3] ARM: rdu2: fixup touchscreen alias Lucas Stach
2019-12-18  7:31 ` [PATCH 1/3] RDU2: add support to boot from SD card autonomosly Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox