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:
parent
3b354bfc57
commit
4f9e2c4a7a
|
@ -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
|
||||
|
|
|
@ -20,4 +20,11 @@
|
|||
drive-strength = "low";
|
||||
};
|
||||
};
|
||||
|
||||
lpi2c0_default: lpi2c0_default {
|
||||
group1 {
|
||||
pinmux = <LPI2C0_SDA_PTA2>, <LPI2C0_SCL_PTA3>;
|
||||
drive-strength = "low";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -15,3 +15,4 @@ supported:
|
|||
- gpio
|
||||
- uart
|
||||
- pinctrl
|
||||
- i2c
|
||||
|
|
Loading…
Reference in a new issue