boards: nxp: frdm_ke17z512: enable lpi2c0 and lpi2c1 driver

Added lpi2c support to test i2c samples

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-06-12 14:15:57 +08:00 committed by Alberto Escolar
commit fdf39a7ab7
4 changed files with 36 additions and 0 deletions

View file

@ -59,6 +59,9 @@ features:
| UART | on-chip | uart polling; |
| | | uart interrupt |
+-----------+------------+-------------------------------------+
| I2C | on-chip | I2C |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
``boards/nxp/frdm_ke17z512/frdm_ke17z512_defconfig``.

View file

@ -18,4 +18,24 @@
slew-rate = "slow";
};
};
lpi2c0_default: lpi2c0_default {
group0 {
pinmux = <LPI2C0_SDA_PTA2>,
<LPI2C0_SCL_PTA3>;
bias-pull-up;
drive-strength = "low";
slew-rate = "slow";
};
};
lpi2c1_default: lpi2c1_default {
group0 {
pinmux = <LPI2C1_SDA_PTE0>,
<LPI2C1_SCL_PTE1>;
bias-pull-up;
drive-strength = "low";
slew-rate = "slow";
};
};
};

View file

@ -74,3 +74,15 @@
&gpioe {
status = "okay";
};
&lpi2c0 {
status = "okay";
pinctrl-0 = <&lpi2c0_default>;
pinctrl-names = "default";
};
&lpi2c1 {
status = "okay";
pinctrl-0 = <&lpi2c1_default>;
pinctrl-names = "default";
};

View file

@ -17,4 +17,5 @@ toolchain:
supported:
- gpio
- uart
- i2c
vendor: nxp