riscv: dts: thead: Add remaining Lichee Pi 4A IO expansions

Lichee Pi 4A has 3 I2C IO expansion chips onboard, connected to the
I2C0/1/3 busses. The I2C1 one is already added to the device tree, but
the I2C0/3 ones are not yet added.

Add device tree nodes for them.

Link: https://lore.kernel.org/r/20260714074515.1959352-6-zhengxingda@iscas.ac.cn
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
[Icenowy: added commit description, enable SoC pull-up, remove I2C1 and
 aliases]
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Signed-off-by: Drew Fustini <fustini@kernel.org>
This commit is contained in:
Emil Renner Berthing 2026-07-14 15:45:15 +08:00 committed by Drew Fustini
parent 01ba55917c
commit 15d32aaf63

View File

@ -117,6 +117,23 @@ hdmi_out_con: endpoint {
};
};
&i2c0 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;
status = "okay";
ioexp1: gpio@18 {
compatible = "nxp,pca9557";
reg = <0x18>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "cam0_dvdd12",
"cam0_avdd28",
"cam0_dovdd18";
};
};
&i2c1 {
clock-frequency = <400000>;
pinctrl-names = "default";
@ -139,6 +156,28 @@ ioexp2: gpio@18 {
};
};
&i2c3 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pins>;
status = "okay";
ioexp3: gpio@18 {
compatible = "nxp,pca9557";
reg = <0x18>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "tp0_rst",
"",
"",
"vcc5v_usb",
"vdd28_tp0",
"vdd33_lcd0",
"vdd18_lcd0",
"lcd0_reset";
};
};
&padctrl0_apsys {
fan_pins: fan-0 {
pwm1-pins {
@ -152,6 +191,18 @@ pwm1-pins {
};
};
i2c3_pins: i2c3-0 {
i2c-pins {
pins = "I2C3_SCL", "I2C3_SDA";
function = "i2c";
bias-pull-up = <2100>;
drive-strength = <7>;
input-enable;
input-schmitt-enable;
slew-rate = <0>;
};
};
uart0_pins: uart0-0 {
tx-pins {
pins = "UART0_TXD";
@ -176,6 +227,18 @@ rx-pins {
};
&padctrl1_apsys {
i2c0_pins: i2c0-0 {
i2c-pins {
pins = "I2C0_SCL", "I2C0_SDA";
function = "i2c";
bias-pull-up = <2100>;
drive-strength = <7>;
input-enable;
input-schmitt-enable;
slew-rate = <0>;
};
};
i2c1_pins: i2c1-0 {
i2c-pins {
pins = "I2C1_SCL", "I2C1_SDA";