Skip to contentSkip to conversation

dts: enable rtl8723ds on lichee pi 4a

PATCH In review MoeLeak 2 participants 2 messages Apr 25

Subsystems (3)
lore
Share & tools
lore

MoeLeak

author
#0 lore raw

PATCH 1/1 dts: enable rtl8723ds on lichee pi 4a

---
 .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +23 -0
index a5b00c48d..46d3f21e3 100644
@@ -29,6 +29,7 @@ aliases {
 		i2c2 = &i2c2;
 		i2c3 = &i2c3;
 		i2c4 = &i2c4;
+		wifi0 = &rtl8723ds;
 	};
 
 	chosen {
@@ -119,6 +120,12 @@ vcc5v_usb: regulator-vcc5v_usb {
 		enable-active-high;
 		regulator-always-on;
 	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&ioexp2 4 GPIO_ACTIVE_LOW>;
+		post-power-on-delay-ms = <200>;
+	};
 };
 
 &aogpio {
@@ -294,6 +301,22 @@ &uart0 {
 	status = "okay";
 };
 
+&sdio1 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	bus-width = <4>;
+	max-frequency = <198000000>;
+	cap-sdio-irq;
+	keep-power-in-suspend;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	non-removable;
+	status = "okay";
+
+	rtl8723ds: wifi@1 {
+		reg = <1>;
+	};
+};
+
 &usb {
 	status = "okay";
 };
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 3 lines · MoeLeak
---
 .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

Hello, thanks for sending this patch. Please resend with a full commit message including a Signed-off-by: tag [1].

What branch did you use to create this patch? It does not apply to mainline.

Quoted 14 lines
arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +1 -0
index a5b00c48d..46d3f21e3 100644
@@ -29,6 +29,7 @@ aliases {
 		i2c2 = &i2c2;
 		i2c3 = &i2c3;
 		i2c4 = &i2c4;
+		wifi0 = &rtl8723ds;
 	};
 
 	chosen {

arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts vcc5v_usb: regulator-vcc5v_usb { · line 126

Quoted 7 lines
arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +4 -0
@@ -119,6 +120,12 @@ vcc5v_usb: regulator-vcc5v_usb {
 		enable-active-high;
 		regulator-always-on;
 	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&ioexp2 4 GPIO_ACTIVE_LOW>;

This is not a valid phandle in the mainline dts for the th1520. Did you base this patch on the vendor kernel?

Thanks,
Drew

[1] https://www.kernel.org/doc/html/latest/process/submitting-patches.html