Skip to content

Commit 13ba531

Browse files
CkovMkcarlescufi
authored andcommitted
boards: mimx93_evk_a55: enable lpi2c
- Enable LPI2C 1,2,4 in i.MX93 EVK board dts. Signed-off-by: Chekhov Ma <[email protected]>
1 parent 4a82128 commit 13ba531

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

boards/arm64/mimx93_evk/mimx93_evk-pinctrl.dtsi

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,49 @@
2626
drive-strength = "x5";
2727
};
2828
};
29+
30+
i2c1_default: i2c1_default {
31+
group0 {
32+
pinmux = <&iomuxc1_i2c1_scl_lpi2c_scl_lpi2c1_scl>,
33+
<&iomuxc1_i2c1_sda_lpi2c_sda_lpi2c1_sda>;
34+
drive-strength = "x5";
35+
drive-open-drain;
36+
slew-rate = "fast";
37+
input-enable;
38+
};
39+
};
40+
41+
i2c2_default: i2c2_default {
42+
group0 {
43+
pinmux = <&iomuxc1_i2c2_scl_lpi2c_scl_lpi2c2_scl>,
44+
<&iomuxc1_i2c2_sda_lpi2c_sda_lpi2c2_sda>;
45+
drive-strength = "x5";
46+
drive-open-drain;
47+
slew-rate = "fast";
48+
input-enable;
49+
};
50+
};
51+
52+
i2c3_default: i2c3_default {
53+
group0 {
54+
pinmux = <&iomuxc1_gpio_io01_lpi2c_scl_lpi2c3_scl>,
55+
<&iomuxc1_gpio_io00_lpi2c_sda_lpi2c3_sda>;
56+
drive-strength = "x5";
57+
drive-open-drain;
58+
slew-rate = "fast";
59+
input-enable;
60+
};
61+
};
62+
63+
i2c4_default: i2c4_default {
64+
group0 {
65+
pinmux = <&iomuxc1_gpio_io03_lpi2c_scl_lpi2c4_scl>,
66+
<&iomuxc1_gpio_io02_lpi2c_sda_lpi2c4_sda>;
67+
drive-strength = "x5";
68+
drive-open-drain;
69+
slew-rate = "fast";
70+
input-enable;
71+
};
72+
};
73+
2974
};

boards/arm64/mimx93_evk/mimx93_evk_a55.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,18 @@
4545
pinctrl-0 = <&uart2_default>;
4646
pinctrl-names = "default";
4747
};
48+
49+
50+
&lpi2c1{
51+
status = "disabled";
52+
clock-frequency = <I2C_BITRATE_FAST>;
53+
pinctrl-0 = <&i2c1_default>;
54+
pinctrl-names = "default";
55+
};
56+
57+
&lpi2c2{
58+
status = "disabled";
59+
clock-frequency = <I2C_BITRATE_FAST>;
60+
pinctrl-0 = <&i2c2_default>;
61+
pinctrl-names = "default";
62+
};

boards/arm64/mimx93_evk/mimx93_evk_a55.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ toolchain:
66
- zephyr
77
- cross-compile
88
ram: 1024
9+
supported:
10+
- uart
11+
- i2c
912
testing:
1013
ignore_tags:
1114
- net

0 commit comments

Comments
 (0)