lkml.org 
[lkml]   [2016]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 4/4] ARM: STi: DT: STiH407: Add DT node for at24c256 eeprom
Date
More accurately describe the i2c bus hardware by including a dt
node for the eeprom device.

Now that at24c256 can be accessed via the nvmem framework it
allows for example the stmmac driver to be extended to get
the MAC address from the at24c256 eeprom.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
Changes in v2:
- Add more verbose patch description
---
arch/arm/boot/dts/stihxxx-b2120.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi
index 133375b..0d7c6dd 100644
--- a/arch/arm/boot/dts/stihxxx-b2120.dtsi
+++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi
@@ -58,6 +58,15 @@

i2c@9845000 {
status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ eeprom@50 {
+ compatible = "at,24c256";
+ pagesize = <64>;
+ reg = <0x50>;
+ };
};

i2c@9540000 {
--
1.9.1
\
 
 \ /
  Last update: 2016-04-12 16:01    [W:0.038 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site