Skip to content

Commit 03d7673

Browse files
pefechkartben
authored andcommitted
boards: phytec: phyboard_pollux: Add i2C config
Adds I2C Devicetree node configuration for phyBOARD Pollux on the Coretex-M7 including the boards standard pinmuxing. Signed-off-by: Peter Fecher <p.fecher@phytec.de>
1 parent f559f58 commit 03d7673

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

boards/phytec/phyboard_pollux/phyboard_pollux-pinctrl.dtsi

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,52 @@
3636
drive-strength = "x1";
3737
};
3838
};
39+
40+
i2c1_default: i2c1_default {
41+
group0 {
42+
pinmux = <&iomuxc_i2c1_scl_i2c_scl_i2c1_scl>,
43+
<&iomuxc_i2c1_sda_i2c_sda_i2c1_sda>;
44+
bias-pull-up;
45+
input-schmitt-enable;
46+
slew-rate = "slow";
47+
drive-strength = "x4";
48+
input-enable;
49+
};
50+
};
51+
52+
i2c2_default: i2c2_default {
53+
group0 {
54+
pinmux = <&iomuxc_i2c2_scl_i2c_scl_i2c2_scl>,
55+
<&iomuxc_i2c2_sda_i2c_sda_i2c2_sda>;
56+
bias-pull-up;
57+
input-schmitt-enable;
58+
slew-rate = "slow";
59+
drive-strength = "x4";
60+
input-enable;
61+
};
62+
};
63+
64+
i2c3_default: i2c3_default {
65+
group0 {
66+
pinmux = <&iomuxc_i2c3_scl_i2c_scl_i2c3_scl>,
67+
<&iomuxc_i2c3_sda_i2c_sda_i2c3_sda>;
68+
bias-pull-up;
69+
input-schmitt-enable;
70+
slew-rate = "slow";
71+
drive-strength = "x4";
72+
input-enable;
73+
};
74+
};
75+
76+
i2c4_default: i2c4_default {
77+
group0 {
78+
pinmux = <&iomuxc_i2c4_scl_i2c_scl_i2c4_scl>,
79+
<&iomuxc_i2c4_sda_i2c_sda_i2c4_sda>;
80+
bias-pull-up;
81+
input-schmitt-enable;
82+
slew-rate = "slow";
83+
drive-strength = "x4";
84+
input-enable;
85+
};
86+
};
3987
};

boards/phytec/phyboard_pollux/phyboard_pollux_mimx8ml8_m7.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88

99
#include <nxp/nxp_imx8ml_m7.dtsi>
10+
#include <zephyr/dt-bindings/i2c/i2c.h>
1011
#include "phyboard_pollux-pinctrl.dtsi"
1112

1213
/ {
@@ -63,6 +64,47 @@
6364
pinctrl-names = "default";
6465
};
6566

67+
/*
68+
* Has PMIC and EEPROM connected to it.
69+
* Used by u-boot and Linux.
70+
*/
71+
&i2c1 {
72+
clock-frequency = <I2C_BITRATE_STANDARD>;
73+
pinctrl-0 = <&i2c1_default>;
74+
pinctrl-names = "default";
75+
};
76+
77+
/*
78+
* Has PCA9533 I2C expander and a EEPROM connected.
79+
* There is no driver for the PCA9533 in zephyr yet.
80+
* Accessible via X6(Expansion header) and X10(mini PCIe).
81+
*/
82+
&i2c2 {
83+
clock-frequency = <I2C_BITRATE_STANDARD>;
84+
pinctrl-0 = <&i2c2_default>;
85+
pinctrl-names = "default";
86+
};
87+
88+
/*
89+
* Nothing connected.
90+
* Accessible via connector X11 (phyCAM-M).
91+
*/
92+
&i2c3 {
93+
clock-frequency = <I2C_BITRATE_STANDARD>;
94+
pinctrl-0 = <&i2c3_default>;
95+
pinctrl-names = "default";
96+
};
97+
98+
/*
99+
* Nothing connected.
100+
* Accessible via connector X15(A/V), X24(Display) and X21(MIPI-DSI).
101+
*/
102+
&i2c4 {
103+
clock-frequency = <I2C_BITRATE_STANDARD>;
104+
pinctrl-0 = <&i2c4_default>;
105+
pinctrl-names = "default";
106+
};
107+
66108
&mailbox0 {
67109
status = "okay";
68110
};

0 commit comments

Comments
 (0)