mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: udoo-neo: add ocotp and environment nodes
@ 2019-06-05 15:13 Rouven Czerwinski
  2019-06-07  7:02 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Rouven Czerwinski @ 2019-06-05 15:13 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski

Add the ocotp node to retrieve the MAC address from the fuses and enable
environment storage on the SD-card.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 arch/arm/dts/imx6sx-udoo-neo-full.dts | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/imx6sx-udoo-neo-full.dts b/arch/arm/dts/imx6sx-udoo-neo-full.dts
index 9203d40207..1609781b7f 100644
--- a/arch/arm/dts/imx6sx-udoo-neo-full.dts
+++ b/arch/arm/dts/imx6sx-udoo-neo-full.dts
@@ -1,4 +1,29 @@
 #include <arm/imx6sx-udoo-neo-full.dts>
 
-/{
+/ {
+	chosen {
+		environment {
+			compatible = "barebox,environment";
+			device-path = &environment_usdhc2;
+		};
+	};
+};
+
+&usdhc2 {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	partition@0 {
+		label = "barebox";
+		reg = <0x0 0xe0000>;
+	};
+
+	environment_usdhc2: partition@e0000 {
+		label = "barebox-environment";
+		reg = <0xe0000 0x20000>;
+	};
+};
+
+&ocotp {
+	barebox,provide-mac-address = <&fec1 0x620>;
 };
-- 
2.21.0


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

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

* Re: [PATCH] ARM: udoo-neo: add ocotp and environment nodes
  2019-06-05 15:13 [PATCH] ARM: udoo-neo: add ocotp and environment nodes Rouven Czerwinski
@ 2019-06-07  7:02 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-06-07  7:02 UTC (permalink / raw)
  To: Rouven Czerwinski; +Cc: barebox

On Wed, Jun 05, 2019 at 05:13:28PM +0200, Rouven Czerwinski wrote:
> Add the ocotp node to retrieve the MAC address from the fuses and enable
> environment storage on the SD-card.
> 
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  arch/arm/dts/imx6sx-udoo-neo-full.dts | 27 ++++++++++++++++++++++++++-
>  1 file changed, 26 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/dts/imx6sx-udoo-neo-full.dts b/arch/arm/dts/imx6sx-udoo-neo-full.dts
> index 9203d40207..1609781b7f 100644
> --- a/arch/arm/dts/imx6sx-udoo-neo-full.dts
> +++ b/arch/arm/dts/imx6sx-udoo-neo-full.dts
> @@ -1,4 +1,29 @@
>  #include <arm/imx6sx-udoo-neo-full.dts>
>  
> -/{
> +/ {
> +	chosen {
> +		environment {
> +			compatible = "barebox,environment";
> +			device-path = &environment_usdhc2;
> +		};
> +	};
> +};
> +
> +&usdhc2 {
> +	#address-cells = <1>;
> +	#size-cells = <1>;
> +
> +	partition@0 {
> +		label = "barebox";
> +		reg = <0x0 0xe0000>;
> +	};
> +
> +	environment_usdhc2: partition@e0000 {
> +		label = "barebox-environment";
> +		reg = <0xe0000 0x20000>;
> +	};
> +};
> +
> +&ocotp {
> +	barebox,provide-mac-address = <&fec1 0x620>;
>  };
> -- 
> 2.21.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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] 2+ messages in thread

end of thread, other threads:[~2019-06-07  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 15:13 [PATCH] ARM: udoo-neo: add ocotp and environment nodes Rouven Czerwinski
2019-06-07  7:02 ` Sascha Hauer

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