mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM
@ 2018-06-30  3:47 Andrey Smirnov
  2018-06-30  3:47 ` [PATCH 2/3] ARM: dts: rdu1: Specify "boot-source" NVMEM cell Andrey Smirnov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrey Smirnov @ 2018-06-30  3:47 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 arch/arm/dts/imx51-zii-rdu1.dts | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-zii-rdu1.dts
index 7984e5b32..b0e1d0276 100644
--- a/arch/arm/dts/imx51-zii-rdu1.dts
+++ b/arch/arm/dts/imx51-zii-rdu1.dts
@@ -24,6 +24,13 @@
 			device-path = &spinor, "partname:barebox-environment";
 		};
 	};
+	aliases {
+		/*
+		 * Aliases to match Linux kernel naming in /dev/
+		 */
+		main-eeprom = &main_eeprom;
+		dds-eeprom = &dds_eeprom;
+	};
 };
 
 &ecspi1 {
@@ -50,3 +57,24 @@
 		};
 	};
 };
+
+&uart3 {
+	rave-sp {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		dds_eeprom: eeprom@a3 {
+			compatible = "zii,rave-sp-eeprom";
+			reg = <0xa3 0x4000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+		};
+
+		main_eeprom: eeprom@a4 {
+			compatible = "zii,rave-sp-eeprom";
+			reg = <0xa4 0x4000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+		};
+	};
+};
-- 
2.17.1


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

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

* [PATCH 2/3] ARM: dts: rdu1: Specify "boot-source" NVMEM cell
  2018-06-30  3:47 [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Andrey Smirnov
@ 2018-06-30  3:47 ` Andrey Smirnov
  2018-06-30  3:47 ` [PATCH 3/3] ARM: dts: rdu1: Add node for backlight device Andrey Smirnov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Andrey Smirnov @ 2018-06-30  3:47 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 arch/arm/dts/imx51-zii-rdu1.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-zii-rdu1.dts
index b0e1d0276..731565c0d 100644
--- a/arch/arm/dts/imx51-zii-rdu1.dts
+++ b/arch/arm/dts/imx51-zii-rdu1.dts
@@ -63,6 +63,11 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		watchdog {
+			nvmem-cells = <&boot_source>;
+			nvmem-cell-names = "boot-source";
+		};
+
 		dds_eeprom: eeprom@a3 {
 			compatible = "zii,rave-sp-eeprom";
 			reg = <0xa3 0x4000>;
@@ -75,6 +80,10 @@
 			reg = <0xa4 0x4000>;
 			#address-cells = <1>;
 			#size-cells = <1>;
+
+			boot_source: boot-source@83 {
+				reg = <0x83 1>;
+			};
 		};
 	};
 };
-- 
2.17.1


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

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

* [PATCH 3/3] ARM: dts: rdu1: Add node for backlight device
  2018-06-30  3:47 [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Andrey Smirnov
  2018-06-30  3:47 ` [PATCH 2/3] ARM: dts: rdu1: Specify "boot-source" NVMEM cell Andrey Smirnov
@ 2018-06-30  3:47 ` Andrey Smirnov
  2018-07-02  4:44 ` [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Sascha Hauer
  2018-07-02  8:39 ` Lucas Stach
  3 siblings, 0 replies; 6+ messages in thread
From: Andrey Smirnov @ 2018-06-30  3:47 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 arch/arm/dts/imx51-zii-rdu1.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-zii-rdu1.dts
index 731565c0d..f0a279bf0 100644
--- a/arch/arm/dts/imx51-zii-rdu1.dts
+++ b/arch/arm/dts/imx51-zii-rdu1.dts
@@ -85,5 +85,9 @@
 				reg = <0x83 1>;
 			};
 		};
+
+		backlight {
+			compatible = "zii,rave-sp-backlight";
+		};
 	};
 };
-- 
2.17.1


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

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

* Re: [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM
  2018-06-30  3:47 [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Andrey Smirnov
  2018-06-30  3:47 ` [PATCH 2/3] ARM: dts: rdu1: Specify "boot-source" NVMEM cell Andrey Smirnov
  2018-06-30  3:47 ` [PATCH 3/3] ARM: dts: rdu1: Add node for backlight device Andrey Smirnov
@ 2018-07-02  4:44 ` Sascha Hauer
  2018-07-02  8:39 ` Lucas Stach
  3 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-07-02  4:44 UTC (permalink / raw)
  To: Andrey Smirnov; +Cc: barebox

On Fri, Jun 29, 2018 at 08:47:35PM -0700, Andrey Smirnov wrote:
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  arch/arm/dts/imx51-zii-rdu1.dts | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-zii-rdu1.dts
> index 7984e5b32..b0e1d0276 100644
> --- a/arch/arm/dts/imx51-zii-rdu1.dts
> +++ b/arch/arm/dts/imx51-zii-rdu1.dts
> @@ -24,6 +24,13 @@
>  			device-path = &spinor, "partname:barebox-environment";
>  		};
>  	};
> +	aliases {
> +		/*
> +		 * Aliases to match Linux kernel naming in /dev/
> +		 */
> +		main-eeprom = &main_eeprom;
> +		dds-eeprom = &dds_eeprom;
> +	};
>  };
>  
>  &ecspi1 {
> @@ -50,3 +57,24 @@
>  		};
>  	};
>  };
> +
> +&uart3 {
> +	rave-sp {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +
> +		dds_eeprom: eeprom@a3 {
> +			compatible = "zii,rave-sp-eeprom";
> +			reg = <0xa3 0x4000>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +		};
> +
> +		main_eeprom: eeprom@a4 {
> +			compatible = "zii,rave-sp-eeprom";
> +			reg = <0xa4 0x4000>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +		};
> +	};
> +};
> -- 
> 2.17.1
> 
> 
> _______________________________________________
> 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] 6+ messages in thread

* Re: [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM
  2018-06-30  3:47 [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Andrey Smirnov
                   ` (2 preceding siblings ...)
  2018-07-02  4:44 ` [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Sascha Hauer
@ 2018-07-02  8:39 ` Lucas Stach
  2018-07-03 17:39   ` Andrey Smirnov
  3 siblings, 1 reply; 6+ messages in thread
From: Lucas Stach @ 2018-07-02  8:39 UTC (permalink / raw)
  To: Andrey Smirnov, barebox

Hi Andrey,

Am Freitag, den 29.06.2018, 20:47 -0700 schrieb Andrey Smirnov:
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  arch/arm/dts/imx51-zii-rdu1.dts | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-
> zii-rdu1.dts
> index 7984e5b32..b0e1d0276 100644
> --- a/arch/arm/dts/imx51-zii-rdu1.dts
> +++ b/arch/arm/dts/imx51-zii-rdu1.dts
> @@ -24,6 +24,13 @@
>  			device-path = &spinor, "partname:barebox-
> environment";
>  		};
>  	};
> +	aliases {
> +		/*
> +		 * Aliases to match Linux kernel naming in /dev/
> +		 */
> +		main-eeprom = &main_eeprom;
> +		dds-eeprom = &dds_eeprom;
> +	};

In Linux we are using the "zii,eeprom-name" property for this purpose.
Can we use the same in in Barebox, please? I would like to keep the
differences in the two DTs to a minimum.

Regards,
Lucas

>  };
>  
>  &ecspi1 {
> @@ -50,3 +57,24 @@
>  		};
>  	};
>  };
> +
> +&uart3 {
> +	rave-sp {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +
> +		dds_eeprom: eeprom@a3 {
> +			compatible = "zii,rave-sp-eeprom";
> +			reg = <0xa3 0x4000>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +		};
> +
> +		main_eeprom: eeprom@a4 {
> +			compatible = "zii,rave-sp-eeprom";
> +			reg = <0xa4 0x4000>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +		};
> +	};
> +};

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

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

* Re: [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM
  2018-07-02  8:39 ` Lucas Stach
@ 2018-07-03 17:39   ` Andrey Smirnov
  0 siblings, 0 replies; 6+ messages in thread
From: Andrey Smirnov @ 2018-07-03 17:39 UTC (permalink / raw)
  To: Lucas Stach; +Cc: Barebox List

On Mon, Jul 2, 2018 at 1:39 AM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> Hi Andrey,
>
> Am Freitag, den 29.06.2018, 20:47 -0700 schrieb Andrey Smirnov:
> > Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> > ---
> >  arch/arm/dts/imx51-zii-rdu1.dts | 28 ++++++++++++++++++++++++++++
> >  1 file changed, 28 insertions(+)
> >
> > diff --git a/arch/arm/dts/imx51-zii-rdu1.dts b/arch/arm/dts/imx51-
> > zii-rdu1.dts
> > index 7984e5b32..b0e1d0276 100644
> > --- a/arch/arm/dts/imx51-zii-rdu1.dts
> > +++ b/arch/arm/dts/imx51-zii-rdu1.dts
> > @@ -24,6 +24,13 @@
> >                       device-path = &spinor, "partname:barebox-
> > environment";
> >               };
> >       };
> > +     aliases {
> > +             /*
> > +              * Aliases to match Linux kernel naming in /dev/
> > +              */
> > +             main-eeprom = &main_eeprom;
> > +             dds-eeprom = &dds_eeprom;
> > +     };
>
> In Linux we are using the "zii,eeprom-name" property for this purpose.
> Can we use the same in in Barebox, please? I would like to keep the
> differences in the two DTs to a minimum.
>

That's a good point, I haven't thought about doing that. I'll submit a
follow up series to fix that.

Thanks,
Andrey Smirnov

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

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

end of thread, other threads:[~2018-07-03 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-30  3:47 [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Andrey Smirnov
2018-06-30  3:47 ` [PATCH 2/3] ARM: dts: rdu1: Specify "boot-source" NVMEM cell Andrey Smirnov
2018-06-30  3:47 ` [PATCH 3/3] ARM: dts: rdu1: Add node for backlight device Andrey Smirnov
2018-07-02  4:44 ` [PATCH 1/3] ARM: dts: rdu1: Add nodes for RAVE SP EEPROM Sascha Hauer
2018-07-02  8:39 ` Lucas Stach
2018-07-03 17:39   ` Andrey Smirnov

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