boards: rd_rw612_bga: Enable I2C

Enable Flexcomm2 as I2C on RD_RW612_BGA

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-03-13 17:08:23 -05:00 committed by Henrik Brix Andersen
commit 402aa08b86
4 changed files with 23 additions and 0 deletions

View file

@ -43,6 +43,9 @@ Supported Features
+-----------+------------+-----------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-----------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-----------------------------------+
The default configuration can be found in the defconfig file:

View file

@ -23,4 +23,12 @@
slew-rate = "ultra";
};
};
pinmux_flexcomm2_i2c: pinmux_flexcomm2_i2c {
group0 {
pinmux = <IO_MUX_FC2_I2C_16_17>;
slew-rate = "normal";
bias-pull-up;
};
};
};

View file

@ -11,6 +11,7 @@
usart-0 = &flexcomm3;
led0 = &green_led;
sw0 = &sw_4;
i2c-0 = &flexcomm2;
};
chosen {
@ -48,6 +49,16 @@ arduino_spi: &flexcomm0 {
#size-cells = <0>;
};
arduino_i2c: &flexcomm2 {
compatible = "nxp,lpc-i2c";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
pinctrl-names = "default";
};
&flexcomm3 {
compatible = "nxp,lpc-usart";
status = "okay";

View file

@ -18,3 +18,4 @@ supported:
- dma
- gpio
- spi
- i2c