Skip to content

Commit b259e39

Browse files
CkovMkkartben
authored andcommitted
board: frdm_imx93: enable pcal6408 gpio expander
Enable pcal6408 gpio expander on FRDM-IMX93 board. This expander has its reset pin controlled by another expander, and both expanders is driven by the same pca_series driver. To guarentee correct init order, pcal6408 is set to deferred init in a board init function. Signed-off-by: Chekhov Ma <[email protected]>
1 parent 9bdad1f commit b259e39

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

boards/nxp/frdm_imx93/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if BOARD_FRDM_IMX93_MIMX9352_A55
77

88
if GPIO
99

10-
# CAN Phy must be initialized after board mux
10+
# I2C must be initialized for onboard expanders
1111
config I2C
1212
default y
1313

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,28 @@
8888
status = "okay";
8989
};
9090

91-
&lpi2c2 {
91+
&lpi2c1 {
92+
clock-frequency = <I2C_BITRATE_FAST>;
93+
pinctrl-0 = <&i2c1_default>;
94+
pinctrl-names = "default";
9295
status = "okay";
96+
97+
gpio_exp1: pcal6408@20 {
98+
compatible = "nxp,pcal6408";
99+
reg = <0x20>;
100+
gpio-controller;
101+
#gpio-cells = <2>;
102+
ngpios = <8>;
103+
reset-gpios = <&gpio_exp0 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
104+
status = "okay";
105+
};
106+
};
107+
108+
&lpi2c2 {
93109
clock-frequency = <I2C_BITRATE_FAST>;
94110
pinctrl-0 = <&i2c2_default>;
95111
pinctrl-names = "default";
112+
status = "okay";
96113

97114
gpio_exp0: pcal6524@22 {
98115
compatible = "nxp,pcal6524";

0 commit comments

Comments
 (0)