mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: MoeLeak <i@leak.moe>
To: fustini@kernel.org
Cc: linux-kernel@vger.kernel.org, MoeLeak <i@leak.moe>
Subject: [PATCH] dts: enable rtl8723ds on lichee pi 4a
Date: Sat, 25 Apr 2026 15:04:50 +0800	[thread overview]
Message-ID: <20260425070450.43148-1-i@leak.moe> (raw)

---
 .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
index a5b00c48d..46d3f21e3 100644
--- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
+++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
@@ -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";
 };
-- 
2.53.0


             reply	other threads:[~2026-04-25  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-25  7:04 MoeLeak [this message]
2026-04-25 23:46 ` Drew Fustini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260425070450.43148-1-i@leak.moe \
    --to=i@leak.moe \
    --cc=fustini@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®