boards: nxp: frdm_ke17z: enable i2c driver
Added lpi2c support for NXP FRDM-KE17Z board, which has only one instance of lpi2c0. Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
parent
eebc998a5a
commit
08799ada6a
4 changed files with 19 additions and 0 deletions
|
@ -59,6 +59,8 @@ features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | uart |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| I2C | on-chip | i2c |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
:zephyr_file:`boards/nxp/frdm_ke17z/frdm_ke17z_defconfig`.
|
||||
|
|
|
@ -17,4 +17,14 @@
|
|||
slew-rate = "slow";
|
||||
};
|
||||
};
|
||||
|
||||
lpi2c0_default: lpi2c0_default {
|
||||
group0 {
|
||||
pinmux = <LPI2C0_SDA_PTA16>,
|
||||
<LPI2C0_SCL_PTB8>;
|
||||
bias-pull-up;
|
||||
drive-strength = "low";
|
||||
slew-rate = "slow";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -67,6 +67,12 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&lpi2c0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&lpi2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&gpiod {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -11,4 +11,5 @@ toolchain:
|
|||
supported:
|
||||
- gpio
|
||||
- uart
|
||||
- i2c
|
||||
vendor: nxp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue