mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* ARM: dts: vf610-zii-dev-rev-c: Expose fiber EEPROM modules
@ 2020-06-29  1:32 Chris Healy
  2020-07-01  5:09 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Healy @ 2020-06-29  1:32 UTC (permalink / raw)
  To: Barebox List; +Cc: Andrey Smirnov

EEPROM on fiber optic modules present on Rev C ZII VF610 Dev board
can be exposed as AT24 compatible devices. Add corresponding DT nodes
needed for that.

Signed-off-by: Chris Healy <cphealy@gmail.com>
---
diff --git a/arch/arm/dts/vf610-zii-dev-rev-c.dts
b/arch/arm/dts/vf610-zii-dev-rev-c.dts
index 62c70c890..2b2ac6064 100644
--- a/arch/arm/dts/vf610-zii-dev-rev-c.dts
+++ b/arch/arm/dts/vf610-zii-dev-rev-c.dts
@@ -17,6 +17,8 @@
                 */
                switch0-eeprom = &switch0;
                switch1-eeprom = &switch1;
+               fiber-eeprom0 = &fiber_eeprom0;
+               fiber-eeprom1 = &fiber_eeprom1;
        };
 };

@@ -31,3 +33,19 @@
                };
        };
 };
+
+&sff2_i2c {
+       fiber_eeprom0: eeprom@50 {
+               compatible = "atmel,24c04";
+               reg = <0x50>;
+               label = "fiber0";
+       };
+};
+
+&sff3_i2c {
+       fiber_eeprom1: eeprom@50 {
+               compatible = "atmel,24c04";
+               reg = <0x50>;
+               label = "fiber1";
+       };
+};

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

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

* Re: ARM: dts: vf610-zii-dev-rev-c: Expose fiber EEPROM modules
  2020-06-29  1:32 ARM: dts: vf610-zii-dev-rev-c: Expose fiber EEPROM modules Chris Healy
@ 2020-07-01  5:09 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-07-01  5:09 UTC (permalink / raw)
  To: Chris Healy; +Cc: Andrey Smirnov, Barebox List

On Sun, Jun 28, 2020 at 06:32:11PM -0700, Chris Healy wrote:
> EEPROM on fiber optic modules present on Rev C ZII VF610 Dev board
> can be exposed as AT24 compatible devices. Add corresponding DT nodes
> needed for that.
> 
> Signed-off-by: Chris Healy <cphealy@gmail.com>
> ---

Applied, thanks

Sascha

> diff --git a/arch/arm/dts/vf610-zii-dev-rev-c.dts
> b/arch/arm/dts/vf610-zii-dev-rev-c.dts
> index 62c70c890..2b2ac6064 100644
> --- a/arch/arm/dts/vf610-zii-dev-rev-c.dts
> +++ b/arch/arm/dts/vf610-zii-dev-rev-c.dts
> @@ -17,6 +17,8 @@
>                  */
>                 switch0-eeprom = &switch0;
>                 switch1-eeprom = &switch1;
> +               fiber-eeprom0 = &fiber_eeprom0;
> +               fiber-eeprom1 = &fiber_eeprom1;
>         };
>  };
> 
> @@ -31,3 +33,19 @@
>                 };
>         };
>  };
> +
> +&sff2_i2c {
> +       fiber_eeprom0: eeprom@50 {
> +               compatible = "atmel,24c04";
> +               reg = <0x50>;
> +               label = "fiber0";
> +       };
> +};
> +
> +&sff3_i2c {
> +       fiber_eeprom1: eeprom@50 {
> +               compatible = "atmel,24c04";
> +               reg = <0x50>;
> +               label = "fiber1";
> +       };
> +};
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

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

end of thread, other threads:[~2020-07-01  5:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29  1:32 ARM: dts: vf610-zii-dev-rev-c: Expose fiber EEPROM modules Chris Healy
2020-07-01  5:09 ` Sascha Hauer

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