diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-03-27 06:44:11 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-05-12 10:48:52 -0400 |
commit | a3b8a7c7f9513bc57fd3e6f1a7b6098f0ff39d14 (patch) | |
tree | 9aeca4c5890a40c691211d4d6a936ad963504dc9 /arch/arm/boot/dts/at91-sama5d3_xplained.dts | |
parent | 201d7dd0da91e19db48536b3569c2792062ef598 (diff) |
ARM: at91: add pull-up to i2c[02] on SAMA5D3 Xplained
As there are no pull-up resistors on the board itself it can be useful to
use the SoC pad pull-up to be able to easily connect usual i2c devices.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/boot/dts/at91-sama5d3_xplained.dts')
-rw-r--r-- | arch/arm/boot/dts/at91-sama5d3_xplained.dts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91-sama5d3_xplained.dts index ce1375595e5f..ff8a159bb600 100644 --- a/arch/arm/boot/dts/at91-sama5d3_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d3_xplained.dts | |||
@@ -43,6 +43,7 @@ | |||
43 | }; | 43 | }; |
44 | 44 | ||
45 | i2c0: i2c@f0014000 { | 45 | i2c0: i2c@f0014000 { |
46 | pinctrl-0 = <&pinctrl_i2c0_pu>; | ||
46 | status = "okay"; | 47 | status = "okay"; |
47 | }; | 48 | }; |
48 | 49 | ||
@@ -102,6 +103,7 @@ | |||
102 | 103 | ||
103 | i2c2: i2c@f801c000 { | 104 | i2c2: i2c@f801c000 { |
104 | dmas = <0>, <0>; /* Do not use DMA for i2c2 */ | 105 | dmas = <0>, <0>; /* Do not use DMA for i2c2 */ |
106 | pinctrl-0 = <&pinctrl_i2c2_pu>; | ||
105 | status = "okay"; | 107 | status = "okay"; |
106 | }; | 108 | }; |
107 | 109 | ||
@@ -116,6 +118,18 @@ | |||
116 | 118 | ||
117 | pinctrl@fffff200 { | 119 | pinctrl@fffff200 { |
118 | board { | 120 | board { |
121 | pinctrl_i2c0_pu: i2c0_pu { | ||
122 | atmel,pins = | ||
123 | <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>, | ||
124 | <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; | ||
125 | }; | ||
126 | |||
127 | pinctrl_i2c2_pu: i2c2_pu { | ||
128 | atmel,pins = | ||
129 | <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>, | ||
130 | <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; | ||
131 | }; | ||
132 | |||
119 | pinctrl_mmc0_cd: mmc0_cd { | 133 | pinctrl_mmc0_cd: mmc0_cd { |
120 | atmel,pins = | 134 | atmel,pins = |
121 | <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | 135 | <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |