diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2013-11-22 08:49:53 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-12-09 05:10:13 -0500 |
commit | cd127e1d99c9453d3a877a6f109b58615ac491ab (patch) | |
tree | 9298e5a5cf4df7c8072b0f528df0c687f1529729 | |
parent | 0645b93f6c223b594c0dca348e2ae0a23bccf6e3 (diff) |
ARM: at91: at91sam9g45: add i2c pinctrl
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/boot/dts/at91sam9g45.dtsi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index 4e20b447f3d9..d7af9ecb85d2 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi | |||
@@ -143,6 +143,22 @@ | |||
143 | }; | 143 | }; |
144 | }; | 144 | }; |
145 | 145 | ||
146 | i2c0 { | ||
147 | pinctrl_i2c0: i2c0-0 { | ||
148 | atmel,pins = | ||
149 | <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA21 periph A TWCK0 */ | ||
150 | AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA20 periph A TWD0 */ | ||
151 | }; | ||
152 | }; | ||
153 | |||
154 | i2c1 { | ||
155 | pinctrl_i2c1: i2c1-0 { | ||
156 | atmel,pins = | ||
157 | <AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB11 periph A TWCK1 */ | ||
158 | AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A TWD1 */ | ||
159 | }; | ||
160 | }; | ||
161 | |||
146 | usart0 { | 162 | usart0 { |
147 | pinctrl_usart0: usart0-0 { | 163 | pinctrl_usart0: usart0-0 { |
148 | atmel,pins = | 164 | atmel,pins = |
@@ -578,6 +594,8 @@ | |||
578 | compatible = "atmel,at91sam9g10-i2c"; | 594 | compatible = "atmel,at91sam9g10-i2c"; |
579 | reg = <0xfff84000 0x100>; | 595 | reg = <0xfff84000 0x100>; |
580 | interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; | 596 | interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; |
597 | pinctrl-names = "default"; | ||
598 | pinctrl-0 = <&pinctrl_i2c0>; | ||
581 | #address-cells = <1>; | 599 | #address-cells = <1>; |
582 | #size-cells = <0>; | 600 | #size-cells = <0>; |
583 | status = "disabled"; | 601 | status = "disabled"; |
@@ -587,6 +605,8 @@ | |||
587 | compatible = "atmel,at91sam9g10-i2c"; | 605 | compatible = "atmel,at91sam9g10-i2c"; |
588 | reg = <0xfff88000 0x100>; | 606 | reg = <0xfff88000 0x100>; |
589 | interrupts = <13 IRQ_TYPE_LEVEL_HIGH 6>; | 607 | interrupts = <13 IRQ_TYPE_LEVEL_HIGH 6>; |
608 | pinctrl-names = "default"; | ||
609 | pinctrl-0 = <&pinctrl_i2c1>; | ||
590 | #address-cells = <1>; | 610 | #address-cells = <1>; |
591 | #size-cells = <0>; | 611 | #size-cells = <0>; |
592 | status = "disabled"; | 612 | status = "disabled"; |