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@qq.com>
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2025-01-01 16:06:38 +08:00 committed by Hauke Mehrtens
parent 05ec3b50a8
commit cea4aae0a9
3 changed files with 38 additions and 3 deletions

View File

@ -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";
};
};

View File

@ -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";
};
};

View File

@ -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