mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
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: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20200514050301.147442-16-tudor.ambarus@microchip.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
dbe5bbdb28
commit
bd1f49e779
|
|
@ -18,6 +18,7 @@ / {
|
|||
|
||||
aliases {
|
||||
serial0 = &uart1; /* DBGU */
|
||||
i2c2 = &i2c2; /* XPRO EXT2 */
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -336,6 +337,20 @@ uart5: serial@200 {
|
|||
pinctrl-0 = <&pinctrl_flx0_default>;
|
||||
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 {
|
||||
|
|
@ -523,6 +538,12 @@ pinctrl_i2c1_gpio: i2c1_gpio {
|
|||
bias-disable;
|
||||
};
|
||||
|
||||
pinctrl_i2c2_gpio: i2c2_gpio {
|
||||
pinmux = <PIN_PB28__GPIO>,
|
||||
<PIN_PB29__GPIO>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
pinctrl_i2s0_default: i2s0_default {
|
||||
pinmux = <PIN_PC1__I2SC0_CK>,
|
||||
<PIN_PC2__I2SC0_MCK>,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user