boards: ucans32k1sic: enable LPI2C support

Enable LPI2C support on ucans32k1sic board.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-12-01 13:28:35 +07:00 committed by David Leach
parent 3b354bfc57
commit 4f9e2c4a7a
4 changed files with 18 additions and 0 deletions

View file

@ -47,6 +47,7 @@ SYSMPU on-chip mpu
PORT on-chip pinctrl
GPIO on-chip gpio
LPUART on-chip serial
LPI2C on-chip i2c
============ ========== ================================
The default configuration can be found in the Kconfig file

View file

@ -20,4 +20,11 @@
drive-strength = "low";
};
};
lpi2c0_default: lpi2c0_default {
group1 {
pinmux = <LPI2C0_SDA_PTA2>, <LPI2C0_SCL_PTA3>;
drive-strength = "low";
};
};
};

View file

@ -27,6 +27,7 @@
led1 = &led1_green;
led2 = &led1_blue;
sw0 = &button_3;
i2c-0 = &lpi2c0;
};
leds {
@ -89,3 +90,11 @@
current-speed = <115200>;
status = "okay";
};
&lpi2c0 {
pinctrl-0 = <&lpi2c0_default>;
pinctrl-names = "default";
scl-gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
status = "okay";
};

View file

@ -15,3 +15,4 @@ supported:
- gpio
- uart
- pinctrl
- i2c