Skip to contentSkip to conversation

arm: baltos: add environment node

PATCH Applied [email protected] 2 participants 2 messages Jul 17, 2020 – Aug 10, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm: baltos: add environment node

From: Yegor Yefremov <[email protected]>

Use the fourth SPL partition in NAND for environment storage.

---
Changes:
v2: use the fourth SPL partition and a partition phandle

 arch/arm/dts/am335x-baltos-minimal.dts | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
arch/arm/dts/am335x-baltos-minimal.dts +8 -3
index 137c177b2..a57bb6c80 100644
@@ -22,6 +22,11 @@
 
 	chosen {
 		stdout-path = &uart0;
+
+		environment-nand {
+			compatible = "barebox,environment";
+			device-path = &environment_nand;
+		};
 	};
 
 	cpus {
@@ -179,7 +184,7 @@
 	ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
 	status = "okay";
 
-	nand@0,0 {
+	nand: nand@0,0 {
 		reg = <0 0 0>; /* CS0, offset 0 */
 		nand-bus-width = <8>;
 		ti,nand-ecc-opt = "bch8";
@@ -226,8 +231,8 @@
 		       label = "SPL.backup2";
 		       reg = <0x40000 0x20000>;
 		};
-		boot@60000 {
-		       label = "SPL.backup3";
+		environment_nand: boot@60000 {
+		       label = "bareboxenv";
 		       reg = <0x60000 0x20000>;
 		};
 		boot@80000 {
Signature · 7 lines
2.17.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 8 lines · On Fri, Jul 17, 2020 at 07:45:45PM +0200, [email protected] wrote:

From: Yegor Yefremov <[email protected]>

Use the fourth SPL partition in NAND for environment storage.

---
Changes:
v2: use the fourth SPL partition and a partition phandle

Applied, thanks

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox