boards: mimxrt11xx_evk: enable I2C

Enables LPI2C output on RT1160 and RT1170 EVK.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2021-11-02 17:31:03 -05:00 committed by Maureen Helm
commit cb8c995235
11 changed files with 42 additions and 0 deletions

View file

@ -101,6 +101,8 @@ features:
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| SPI | on-chip | spi | | SPI | on-chip | spi |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc | | ADC | on-chip | adc |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| CAN | on-chip | flexcan | | CAN | on-chip | flexcan |
@ -142,6 +144,10 @@ The MIMXRT1160 SoC has six pairs of pinmux/gpio controllers.
+---------------+-----------------+---------------------------+ +---------------+-----------------+---------------------------+
| GPIO_AD_31 | SPI1_SDI | spi | | GPIO_AD_31 | SPI1_SDI | spi |
+---------------+-----------------+---------------------------+ +---------------+-----------------+---------------------------+
| GPIO_AD_08 | LPI2C1_SCL | i2c |
+---------------+-----------------+---------------------------+
| GPIO_AD_09 | LPI2C1_SDA | i2c |
+---------------+-----------------+---------------------------+
System Clock System Clock
============ ============

View file

@ -32,3 +32,7 @@
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
}; };
&lpi2c1 {
status = "okay";
};

View file

@ -17,3 +17,4 @@ flash: 128
supported: supported:
- gpio - gpio
- uart - uart
- i2c

View file

@ -38,6 +38,10 @@
bus-speed = <125000>; bus-speed = <125000>;
}; };
&lpi2c1 {
status = "okay";
};
&lpspi1 { &lpspi1 {
status = "okay"; status = "okay";
}; };

View file

@ -20,3 +20,4 @@ supported:
- can - can
- spi - spi
- watchdog - watchdog
- i2c

View file

@ -48,6 +48,16 @@ static int mimxrt1160_evk_init(const struct device *dev)
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_30_LPSPI1_SOUT, 0x02U); IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_30_LPSPI1_SOUT, 0x02U);
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_31_LPSPI1_SIN, 0x02U); IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_31_LPSPI1_SIN, 0x02U);
#endif #endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay) && CONFIG_I2C
/* LPI2C1 SDA, SCL */
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_08_LPI2C1_SCL, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_09_LPI2C1_SDA, 1U);
/* Open drain, with software input on */
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_08_LPI2C1_SCL, 0x10U);
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_09_LPI2C1_SDA, 0x10U);
#endif
return 0; return 0;
} }

View file

@ -102,6 +102,8 @@ features:
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| SPI | on-chip | spi | | SPI | on-chip | spi |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc | | ADC | on-chip | adc |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; | | UART | on-chip | serial port-polling; |
@ -141,6 +143,10 @@ The MIMXRT1170 SoC has six pairs of pinmux/gpio controllers.
+---------------+-----------------+---------------------------+ +---------------+-----------------+---------------------------+
| GPIO_AD_31 | SPI1_SDI | spi | | GPIO_AD_31 | SPI1_SDI | spi |
+---------------+-----------------+---------------------------+ +---------------+-----------------+---------------------------+
| GPIO_AD_08 | LPI2C1_SCL | i2c |
+---------------+-----------------+---------------------------+
| GPIO_AD_09 | LPI2C1_SDA | i2c |
+---------------+-----------------+---------------------------+
System Clock System Clock

View file

@ -32,3 +32,7 @@
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
}; };
&lpi2c1 {
status = "okay";
};

View file

@ -16,3 +16,4 @@ ram: 128
flash: 128 flash: 128
supported: supported:
- gpio - gpio
- i2c

View file

@ -42,6 +42,10 @@
status = "okay"; status = "okay";
}; };
&lpi2c1 {
status = "okay";
};
&flexspi1 { &flexspi1 {
reg = <0x400cc000 0x4000>, <0x30000000 DT_SIZE_M(16)>; reg = <0x400cc000 0x4000>, <0x30000000 DT_SIZE_M(16)>;
is25wp128: is25wp128@0 { is25wp128: is25wp128@0 {

View file

@ -20,3 +20,4 @@ supported:
- can - can
- spi - spi
- adc - adc
- i2c