mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: marc@cpdesign.com.au
To: barebox@lists.infradead.org
Subject: [PATCH] arm: dts: am335x-bone-common.dtsi: add eeprom device to DT
Date: Fri, 27 Jul 2018 20:02:08 +1000	[thread overview]
Message-ID: <20180727100208.20922-1-marc@cpdesign.com.au> (raw)

From: Marc Reilly <marc@cpdesign.com.au>

This adds a device node to provide support for the onboard eeprom of
beaglebone products. The eeprom contents can be used to determine the
type of beaglebone running. For example this can be used to
differentiate between the original Beaglebone Black and the wireless
version.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
---
 arch/arm/dts/am335x-bone-common.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/dts/am335x-bone-common.dtsi b/arch/arm/dts/am335x-bone-common.dtsi
index e03ae2a8d..a5db15197 100644
--- a/arch/arm/dts/am335x-bone-common.dtsi
+++ b/arch/arm/dts/am335x-bone-common.dtsi
@@ -217,6 +217,16 @@
 		reg = <0x24>;
 	};
 
+	baseboard_eeprom: baseboard_eeprom@50 {
+		compatible = "atmel,24c256";
+		reg = <0x50>;
+
+		#address-cells = <1>;
+		#size-cells = <1>;
+		baseboard_data: baseboard_data@0 {
+			reg = <0 0x100>;
+		};
+	};
 };
 
 /include/ "tps65217.dtsi"
-- 
2.16.4


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

             reply	other threads:[~2018-07-27 10:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 10:02 marc [this message]
2018-08-08  7:06 ` 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=20180727100208.20922-1-marc@cpdesign.com.au \
    --to=marc@cpdesign.com.au \
    --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