mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 5/7] ARM: dts: vf610-zii-scu4-aib: Expose fiber EEPROM modules
Date: Sat,  7 Sep 2019 17:06:13 -0700	[thread overview]
Message-ID: <20190908000615.28868-5-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20190908000615.28868-1-andrew.smirnov@gmail.com>

EEPROM on a fiber optic modules present on SCU4 can be exposed as a
AT24 compatible device. Add corresponding DT node needed for that.

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

diff --git a/arch/arm/dts/vf610-zii-scu4-aib.dts b/arch/arm/dts/vf610-zii-scu4-aib.dts
index abe9e14fd7..43a13e243d 100644
--- a/arch/arm/dts/vf610-zii-scu4-aib.dts
+++ b/arch/arm/dts/vf610-zii-scu4-aib.dts
@@ -17,5 +17,95 @@
 		switch1-eeprom = &switch1;
 		switch2-eeprom = &switch2;
 		switch3-eeprom = &switch3;
+		fiber-eeprom0 = &fiber_eeprom0;
+		fiber-eeprom1 = &fiber_eeprom1;
+		fiber-eeprom2 = &fiber_eeprom2;
+		fiber-eeprom3 = &fiber_eeprom3;
+		fiber-eeprom4 = &fiber_eeprom4;
+		fiber-eeprom5 = &fiber_eeprom5;
+		fiber-eeprom6 = &fiber_eeprom6;
+		fiber-eeprom7 = &fiber_eeprom7;
+		fiber-eeprom8 = &fiber_eeprom8;
+		fiber-eeprom9 = &fiber_eeprom9;
+	};
+};
+
+&sff0_i2c {
+	fiber_eeprom0: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber0";
+	};
+};
+
+&sff1_i2c {
+	fiber_eeprom1: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber1";
+	};
+};
+
+&sff2_i2c {
+	fiber_eeprom2: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber2";
+	};
+};
+
+&sff3_i2c {
+	fiber_eeprom3: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber3";
+	};
+};
+
+&sff4_i2c {
+	fiber_eeprom4: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber4";
+	};
+};
+
+&sff5_i2c {
+	fiber_eeprom5: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber5";
+	};
+};
+
+&sff6_i2c {
+	fiber_eeprom6: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber6";
+	};
+};
+
+&sff7_i2c {
+	fiber_eeprom7: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber7";
+	};
+};
+
+&sff8_i2c {
+	fiber_eeprom8: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber8";
+	};
+};
+
+&sff9_i2c {
+	fiber_eeprom9: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber9";
 	};
 };
-- 
2.21.0


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

  parent reply	other threads:[~2019-09-08  0:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-08  0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
2019-09-08  0:06 ` [PATCH 2/7] ARM: dts: vf610-zii-dev-rev-c: Fix DSPI " Andrey Smirnov
2019-09-08  0:06 ` [PATCH 3/7] ARM: dts: vf610-zii-cfu1: Configure "STATUS" LED as heartbeat Andrey Smirnov
2019-09-08  0:06 ` [PATCH 4/7] ARM: dts: vf610-zii-cfu1: Expose fiber optic module EEPROM Andrey Smirnov
2019-09-08  0:06 ` Andrey Smirnov [this message]
2019-09-08  0:06 ` [PATCH 6/7] ARM: dts: imx8mq-zii-ultra: Add switch EEPROM alias Andrey Smirnov
2019-09-08  0:06 ` [PATCH 7/7] ARM: zii-vf610-dev: Re-align SCU4's hostname with upstream kernel Andrey Smirnov
2019-09-09  8:53 ` [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190908000615.28868-5-andrew.smirnov@gmail.com \
    --to=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox