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:
parent
ab7580046a
commit
402aa08b86
4 changed files with 23 additions and 0 deletions
|
@ -43,6 +43,9 @@ Supported Features
|
|||
+-----------+------------+-----------------------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+-----------------------------------+
|
||||
| I2C | on-chip | i2c |
|
||||
+-----------+------------+-----------------------------------+
|
||||
|
||||
|
||||
The default configuration can be found in the defconfig 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -18,3 +18,4 @@ supported:
|
|||
- dma
|
||||
- gpio
|
||||
- spi
|
||||
- i2c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue