From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 5 Feb 2012 10:25:33 +0000 (+0800) Subject: ARM: at91: sam9g20 add i2c DT support X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3b3f8280399c67c592e973193bf3f36a8cab75a0;p=mv-sheeva.git ARM: at91: sam9g20 add i2c DT support For now on use i2c-gpio driver on the same pin as the hardware IP. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Grant Likely Acked-by: Rob Herring Cc: Nicolas Ferre --- diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi index 4b0dc99b931..a885a30d1c8 100644 --- a/arch/arm/boot/dts/at91sam9g20.dtsi +++ b/arch/arm/boot/dts/at91sam9g20.dtsi @@ -189,4 +189,17 @@ status = "disabled"; }; }; + + i2c@0 { + compatible = "i2c-gpio"; + gpios = <&pioA 23 0 /* sda */ + &pioA 24 0 /* scl */ + >; + i2c-gpio,sda-open-drain; + i2c-gpio,scl-open-drain; + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; };