mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 06:45:03 +07:00
ARM: dts: at91: sama5d4: add i2c gpio pinctrl
Add the i2c gpio pinctrls so the i2c bus recovery option can be enabled 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-3-codrin.ciubotariu@microchip.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
a4bd8da893
commit
8fb82f050c
@ -458,8 +458,11 @@ i2c0: i2c@f8014000 {
|
|||||||
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
||||||
| AT91_XDMAC_DT_PERID(3))>;
|
| AT91_XDMAC_DT_PERID(3))>;
|
||||||
dma-names = "tx", "rx";
|
dma-names = "tx", "rx";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default", "gpio";
|
||||||
pinctrl-0 = <&pinctrl_i2c0>;
|
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>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
|
||||||
@ -477,8 +480,11 @@ i2c1: i2c@f8018000 {
|
|||||||
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
||||||
| AT91_XDMAC_DT_PERID(5))>;
|
| AT91_XDMAC_DT_PERID(5))>;
|
||||||
dma-names = "tx", "rx";
|
dma-names = "tx", "rx";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default", "gpio";
|
||||||
pinctrl-0 = <&pinctrl_i2c1>;
|
pinctrl-0 = <&pinctrl_i2c1>;
|
||||||
|
pinctrl-1 = <&pinctrl_i2c1_gpio>;
|
||||||
|
sda-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
|
||||||
|
scl-gpios = <&pioE 30 GPIO_ACTIVE_HIGH>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
|
||||||
@ -519,8 +525,11 @@ i2c2: i2c@f8024000 {
|
|||||||
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
|
||||||
| AT91_XDMAC_DT_PERID(7))>;
|
| AT91_XDMAC_DT_PERID(7))>;
|
||||||
dma-names = "tx", "rx";
|
dma-names = "tx", "rx";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default", "gpio";
|
||||||
pinctrl-0 = <&pinctrl_i2c2>;
|
pinctrl-0 = <&pinctrl_i2c2>;
|
||||||
|
pinctrl-1 = <&pinctrl_i2c2_gpio>;
|
||||||
|
sda-gpios = <&pioB 29 GPIO_ACTIVE_HIGH>;
|
||||||
|
scl-gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
clocks = <&pmc PMC_TYPE_PERIPHERAL 34>;
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 34>;
|
||||||
@ -1122,6 +1131,12 @@ pinctrl_i2c0: i2c0-0 {
|
|||||||
<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE
|
<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE
|
||||||
AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
|
AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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 {
|
i2c1 {
|
||||||
@ -1130,6 +1145,12 @@ pinctrl_i2c1: i2c1-0 {
|
|||||||
<AT91_PIOE 29 AT91_PERIPH_C AT91_PINCTRL_NONE /* TWD1, conflicts with UART0 RX and DIBP */
|
<AT91_PIOE 29 AT91_PERIPH_C AT91_PINCTRL_NONE /* TWD1, conflicts with UART0 RX and DIBP */
|
||||||
AT91_PIOE 30 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* TWCK1, conflicts with UART0 TX and DIBN */
|
AT91_PIOE 30 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* TWCK1, conflicts with UART0 TX and DIBN */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pinctrl_i2c1_gpio: i2c1-gpio {
|
||||||
|
atmel,pins =
|
||||||
|
<AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||||
|
AT91_PIOE 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c2 {
|
i2c2 {
|
||||||
@ -1138,6 +1159,12 @@ pinctrl_i2c2: i2c2-0 {
|
|||||||
<AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* TWD2, conflicts with RD0 and PWML1 */
|
<AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* TWD2, conflicts with RD0 and PWML1 */
|
||||||
AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* TWCK2, conflicts with RF0 */
|
AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* TWCK2, conflicts with RF0 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pinctrl_i2c2_gpio: i2c2-gpio {
|
||||||
|
atmel,pins =
|
||||||
|
<AT91_PIOB 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||||
|
AT91_PIOB 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
isi {
|
isi {
|
||||||
|
Loading…
Reference in New Issue
Block a user