[openwrt/openwrt] ramips: add back SDXC card reader support for HiWiFi HC5x61A
LEDE Commits
lede-commits at lists.infradead.org
Sat Jan 4 05:49:42 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/cea4aae0a921d71407d11957502f8cc3b652be21
commit cea4aae0a921d71407d11957502f8cc3b652be21
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Jan 1 16:06:38 2025 +0800
ramips: add back SDXC card reader support for HiWiFi HC5x61A
After adding the correct package and pin group configurations,
the SDXC card slot can now function properly.
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts | 20 +++++++++++++++++++-
target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts | 18 +++++++++++++++++-
target/linux/ramips/image/mt76x8.mk | 3 ++-
3 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts
index 9e4068ce8c..52cd3afac8 100644
--- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts
+++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
#include "mt7628an_hiwifi_hc5x61a.dtsi"
/ {
@@ -25,9 +27,25 @@
};
};
+&pinctrl {
+ ephy-analog;
+
+ sdxc_router_mode: sdxc_router_mode {
+ groups = "esd", "gpio", "i2c", "sdmode", "uart1";
+ function = "gpio";
+ };
+};
+
+&sdhci {
+ status = "okay";
+
+ pinctrl-0 = <&sdxc_router_mode>;
+ pinctrl-1 = <&sdxc_router_mode>;
+};
+
&state_default {
gpio {
- groups = "i2c", "refclk", "wdt", "wled_an";
+ groups = "i2s", "refclk", "wdt", "wled_an";
function = "gpio";
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts
index 5ec041c804..940df6e19a 100644
--- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts
+++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts
@@ -44,9 +44,25 @@
};
};
+&pinctrl {
+ ephy-analog;
+
+ sdxc_router_mode: sdxc_router_mode {
+ groups = "esd", "gpio", "i2c", "sdmode", "uart1";
+ function = "gpio";
+ };
+};
+
+&sdhci {
+ status = "okay";
+
+ pinctrl-0 = <&sdxc_router_mode>;
+ pinctrl-1 = <&sdxc_router_mode>;
+};
+
&state_default {
gpio {
- groups = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an";
+ groups = "i2s", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an";
function = "gpio";
};
};
diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
index 25a7344afb..da44b0005c 100644
--- a/target/linux/ramips/image/mt76x8.mk
+++ b/target/linux/ramips/image/mt76x8.mk
@@ -289,6 +289,7 @@ define Device/hiwifi_hc5661a
IMAGE_SIZE := 15808k
DEVICE_VENDOR := HiWiFi
DEVICE_MODEL := HC5661A
+ DEVICE_PACKAGES := kmod-mmc-mtk
SUPPORTED_DEVICES += hc5661a
endef
TARGET_DEVICES += hiwifi_hc5661a
@@ -297,7 +298,7 @@ define Device/hiwifi_hc5761a
IMAGE_SIZE := 15808k
DEVICE_VENDOR := HiWiFi
DEVICE_MODEL := HC5761A
- DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
+ DEVICE_PACKAGES := kmod-mmc-mtk kmod-mt76x0e kmod-usb2 kmod-usb-ohci
endef
TARGET_DEVICES += hiwifi_hc5761a
More information about the lede-commits
mailing list