Commit bd1f49e7 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Alexandre Belloni

ARM: dts: at91: sama5d2_xplained: Describe the flx0 I2C function

Users can choose which flexcom function to use. Describe the I2C
Flexcom0 function. Add alias for the i2c2 node in order to not rely
on probe order for the i2c device numbering. The sama5d2 SoC has
two dedicated i2c buses and five flexcoms that can function as i2c.
The i2c0 and i2c1 aliases are kept for the dedicated i2c buses,
the i2c flexcom functions can be numbered in order starting from i2c2.
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200514050301.147442-16-tudor.ambarus@microchip.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent dbe5bbdb
...@@ -18,6 +18,7 @@ / { ...@@ -18,6 +18,7 @@ / {
aliases { aliases {
serial0 = &uart1; /* DBGU */ serial0 = &uart1; /* DBGU */
i2c2 = &i2c2; /* XPRO EXT2 */
}; };
chosen { chosen {
...@@ -336,6 +337,20 @@ uart5: serial@200 { ...@@ -336,6 +337,20 @@ uart5: serial@200 {
pinctrl-0 = <&pinctrl_flx0_default>; pinctrl-0 = <&pinctrl_flx0_default>;
status = "okay"; status = "okay";
}; };
i2c2: i2c@600 {
dmas = <0>, <0>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_flx0_default>;
pinctrl-1 = <&pinctrl_i2c2_gpio>;
sda-gpios = <&pioA PIN_PB28 GPIO_ACTIVE_HIGH>;
scl-gpios = <&pioA PIN_PB29 GPIO_ACTIVE_HIGH>;
i2c-sda-hold-time-ns = <350>;
i2c-analog-filter;
i2c-digital-filter;
i2c-digital-filter-width-ns = <35>;
status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
};
}; };
shdwc@f8048010 { shdwc@f8048010 {
...@@ -523,6 +538,12 @@ pinctrl_i2c1_gpio: i2c1_gpio { ...@@ -523,6 +538,12 @@ pinctrl_i2c1_gpio: i2c1_gpio {
bias-disable; bias-disable;
}; };
pinctrl_i2c2_gpio: i2c2_gpio {
pinmux = <PIN_PB28__GPIO>,
<PIN_PB29__GPIO>;
bias-disable;
};
pinctrl_i2s0_default: i2s0_default { pinctrl_i2s0_default: i2s0_default {
pinmux = <PIN_PC1__I2SC0_CK>, pinmux = <PIN_PC1__I2SC0_CK>,
<PIN_PC2__I2SC0_MCK>, <PIN_PC2__I2SC0_MCK>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment