aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2016-03-25 15:24:48 +0000
committerPeter Griffin <peter.griffin@linaro.org>2016-04-12 14:31:51 +0100
commit23e67dca958fac06e866375ea2c2f28228e5119e (patch)
treeff1a28267ee62848c1a2aa9c666d9e35dcfa5ee0
parentb19db9c96bd49a48d03929a4565c70dc8b96d6a3 (diff)
ARM: STi: DT: STiH407: Add DT node for at24c256 eepromv4.6-rc3-sti-dt-fixups
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
-rw-r--r--arch/arm/boot/dts/stihxxx-b2120.dtsi9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi
index 133375bc8aa5..0d7c6ddc304d 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 {