diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-23 09:50:32 -0500 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-03-15 11:29:48 -0400 |
commit | 10f71c28b66e6b22e46386c265147eff76e3d7a5 (patch) | |
tree | caee6e979e51b93989ce39d40915572b03bb2e06 | |
parent | 8f24bdaac9547b40f94824bd63c44ead9ea5a211 (diff) |
ARM: at91: sam9x5 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 <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5.dtsi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index c294657a1f7e..f0104f4e6ab4 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi | |||
@@ -188,4 +188,43 @@ | |||
188 | status = "disabled"; | 188 | status = "disabled"; |
189 | }; | 189 | }; |
190 | }; | 190 | }; |
191 | |||
192 | i2c@0 { | ||
193 | compatible = "i2c-gpio"; | ||
194 | gpios = <&pioA 30 0 /* sda */ | ||
195 | &pioA 31 0 /* scl */ | ||
196 | >; | ||
197 | i2c-gpio,sda-open-drain; | ||
198 | i2c-gpio,scl-open-drain; | ||
199 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ | ||
200 | #address-cells = <1>; | ||
201 | #size-cells = <0>; | ||
202 | status = "disabled"; | ||
203 | }; | ||
204 | |||
205 | i2c@1 { | ||
206 | compatible = "i2c-gpio"; | ||
207 | gpios = <&pioC 0 0 /* sda */ | ||
208 | &pioC 1 0 /* scl */ | ||
209 | >; | ||
210 | i2c-gpio,sda-open-drain; | ||
211 | i2c-gpio,scl-open-drain; | ||
212 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ | ||
213 | #address-cells = <1>; | ||
214 | #size-cells = <0>; | ||
215 | status = "disabled"; | ||
216 | }; | ||
217 | |||
218 | i2c@2 { | ||
219 | compatible = "i2c-gpio"; | ||
220 | gpios = <&pioB 4 0 /* sda */ | ||
221 | &pioB 5 0 /* scl */ | ||
222 | >; | ||
223 | i2c-gpio,sda-open-drain; | ||
224 | i2c-gpio,scl-open-drain; | ||
225 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ | ||
226 | #address-cells = <1>; | ||
227 | #size-cells = <0>; | ||
228 | status = "disabled"; | ||
229 | }; | ||
191 | }; | 230 | }; |