mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
ARM: dts: at91: sama5d3: add i2c gpio pinctrl
Add the i2c gpio pinctrls to support the i2c bus recovery Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> [codrin.ciubotariu@microchip.com: removed gpio pull-ups] Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Link: https://lore.kernel.org/r/20200225155012.22764-2-codrin.ciubotariu@microchip.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
761f6ed854
commit
a4bd8da893
@ -159,8 +159,11 @@
|
||||
dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(7)>,
|
||||
<&dma0 2 AT91_DMA_CFG_PER_ID(8)>;
|
||||
dma-names = "tx", "rx";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-names = "default", "gpio";
|
||||
pinctrl-0 = <&pinctrl_i2c0>;
|
||||
pinctrl-1 = <&pinctrl_i2c0_gpio>;
|
||||
sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
|
||||
scl-gpios = <&pioA 31 GPIO_ACTIVE_HIGH>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&twi0_clk>;
|
||||
@ -174,8 +177,11 @@
|
||||
dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(9)>,
|
||||
<&dma0 2 AT91_DMA_CFG_PER_ID(10)>;
|
||||
dma-names = "tx", "rx";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-names = "default", "gpio";
|
||||
pinctrl-0 = <&pinctrl_i2c1>;
|
||||
pinctrl-1 = <&pinctrl_i2c1_gpio>;
|
||||
sda-gpios = <&pioC 26 GPIO_ACTIVE_HIGH>;
|
||||
scl-gpios = <&pioC 27 GPIO_ACTIVE_HIGH>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&twi1_clk>;
|
||||
@ -357,8 +363,11 @@
|
||||
dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(11)>,
|
||||
<&dma1 2 AT91_DMA_CFG_PER_ID(12)>;
|
||||
dma-names = "tx", "rx";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-names = "default", "gpio";
|
||||
pinctrl-0 = <&pinctrl_i2c2>;
|
||||
pinctrl-1 = <&pinctrl_i2c2_gpio>;
|
||||
sda-gpios = <&pioA 18 GPIO_ACTIVE_HIGH>;
|
||||
scl-gpios = <&pioA 19 GPIO_ACTIVE_HIGH>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&twi2_clk>;
|
||||
@ -639,6 +648,12 @@
|
||||
<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA30 periph A TWD0 pin, conflicts with URXD1, ISI_VSYNC */
|
||||
AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */
|
||||
};
|
||||
|
||||
pinctrl_i2c0_gpio: i2c0-gpio {
|
||||
atmel,pins =
|
||||
<AT91_PIOA 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||
AT91_PIOA 31 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1 {
|
||||
@ -647,6 +662,12 @@
|
||||
<AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC26 periph B TWD1 pin, conflicts with SPI1_NPCS1, ISI_D11 */
|
||||
AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */
|
||||
};
|
||||
|
||||
pinctrl_i2c1_gpio: i2c1-gpio {
|
||||
atmel,pins =
|
||||
<AT91_PIOC 26 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||
AT91_PIOC 27 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c2 {
|
||||
@ -655,6 +676,12 @@
|
||||
<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE /* TWD2 pin, conflicts with LCDDAT18, ISI_D2 */
|
||||
AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* TWCK2 pin, conflicts with LCDDAT19, ISI_D3 */
|
||||
};
|
||||
|
||||
pinctrl_i2c2_gpio: i2c2-gpio {
|
||||
atmel,pins =
|
||||
<AT91_PIOA 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||
AT91_PIOA 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||
};
|
||||
};
|
||||
|
||||
isi {
|
||||
|
Loading…
Reference in New Issue
Block a user