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:
parent
89a0ff8f61
commit
fdf39a7ab7
4 changed files with 36 additions and 0 deletions
|
@ -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``.
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -17,4 +17,5 @@ toolchain:
|
|||
supported:
|
||||
- gpio
|
||||
- uart
|
||||
- i2c
|
||||
vendor: nxp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue