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>
This commit is contained in:
parent
201d7dd0da
commit
a3b8a7c7f9
@ -43,6 +43,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
i2c0: i2c@f0014000 {
|
i2c0: i2c@f0014000 {
|
||||||
|
pinctrl-0 = <&pinctrl_i2c0_pu>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -102,6 +103,7 @@
|
|||||||
|
|
||||||
i2c2: i2c@f801c000 {
|
i2c2: i2c@f801c000 {
|
||||||
dmas = <0>, <0>; /* Do not use DMA for i2c2 */
|
dmas = <0>, <0>; /* Do not use DMA for i2c2 */
|
||||||
|
pinctrl-0 = <&pinctrl_i2c2_pu>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -116,6 +118,18 @@
|
|||||||
|
|
||||||
pinctrl@fffff200 {
|
pinctrl@fffff200 {
|
||||||
board {
|
board {
|
||||||
|
pinctrl_i2c0_pu: i2c0_pu {
|
||||||
|
atmel,pins =
|
||||||
|
<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
|
||||||
|
<AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pinctrl_i2c2_pu: i2c2_pu {
|
||||||
|
atmel,pins =
|
||||||
|
<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
|
||||||
|
<AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl_mmc0_cd: mmc0_cd {
|
pinctrl_mmc0_cd: mmc0_cd {
|
||||||
atmel,pins =
|
atmel,pins =
|
||||||
<AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
|
<AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
|
||||||
|
Loading…
Reference in New Issue
Block a user