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 4/7] ARM: dts: vf610-zii-cfu1: Expose fiber optic module EEPROM
Date: Sat,  7 Sep 2019 17:06:12 -0700	[thread overview]
Message-ID: <20190908000615.28868-4-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20190908000615.28868-1-andrew.smirnov@gmail.com>

EEPROM on a fiber optic module present on CFU1 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-cfu1.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/dts/vf610-zii-cfu1.dts b/arch/arm/dts/vf610-zii-cfu1.dts
index aace448e76..70cd9d1ba9 100644
--- a/arch/arm/dts/vf610-zii-cfu1.dts
+++ b/arch/arm/dts/vf610-zii-cfu1.dts
@@ -16,6 +16,7 @@
 		 * fact to create a desirable naming
 		 */
 		switch-eeprom = &switch0;
+		fiber-eeprom0 = &fiber_eeprom0;
 	};
 
 	gpio-leds {
@@ -24,3 +25,11 @@
 		};
 	};
 };
+
+&i2c0 {
+	fiber_eeprom0: eeprom@50 {
+		compatible = "atmel,24c04";
+		reg = <0x50>;
+		label = "fiber0";
+	};
+};
-- 
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 ` Andrey Smirnov [this message]
2019-09-08  0:06 ` [PATCH 5/7] ARM: dts: vf610-zii-scu4-aib: Expose fiber EEPROM modules Andrey Smirnov
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-4-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