diff mbox

[U-Boot,2/2] ARM: UniPhier: set I2C offset length of on-board EEPROM in DTS

Message ID 1422940391-10051-3-git-send-email-yamada.m@jp.panasonic.com
State Superseded
Delegated to: Masahiro Yamada
Headers show

Commit Message

Masahiro Yamada Feb. 3, 2015, 5:13 a.m. UTC
The EEPROM chip on the UniPhier reference daughter board expects
2-byte offset address.

Since 7132b9fd68a1 (dm: i2c: dts: Support an offset-len device tree
property), I2C sub-nodes can have "u-boot,i2c-offset-len" property.

It is convenient to set the default I2C offset address length in
Device Tree, so that we do not have to set it on the command line.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 arch/arm/dts/uniphier-ref-daughter.dtsi | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/arch/arm/dts/uniphier-ref-daughter.dtsi b/arch/arm/dts/uniphier-ref-daughter.dtsi
index 7b681c6..2bb7697 100644
--- a/arch/arm/dts/uniphier-ref-daughter.dtsi
+++ b/arch/arm/dts/uniphier-ref-daughter.dtsi
@@ -11,5 +11,6 @@ 
 	eeprom {
 		compatible = "i2c-eeprom";
 		reg = <0x50>;
+		u-boot,i2c-offset-len = <2>;
 	};
 };