mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 06:52:53 +00:00
ramips: fix SDXC function for mt76x8 one eth port devices
There are only 5 devices in mt76x8 sub-target selected the MTK SDXC
driver package. And they are all single ethernet port routers or dev
boards:
* LinkIt Smart 7688
* Onion Omega2+
* RAVPower RP-WD009
* VoCore VoCore2
* VoCore VoCore2-Lite
For these devices, they are using the ephy p1 - p4 as the SDXC IO
pins. Therefore, these GPIO pads must be configured in "digital"
IO mode.
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>
(cherry picked from commit f5996ae947
)
This commit is contained in:
parent
f81f707c05
commit
f311c9754c
@ -168,8 +168,27 @@
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
ephy-digital;
|
||||
|
||||
sdxc_iot_mode: sdxc_iot_mode {
|
||||
esd {
|
||||
groups = "esd";
|
||||
function = "iot";
|
||||
};
|
||||
|
||||
sdxc {
|
||||
groups = "sdmode";
|
||||
function = "sdxc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&sdxc_iot_mode>;
|
||||
pinctrl-1 = <&sdxc_iot_mode>;
|
||||
cd-inverted;
|
||||
};
|
||||
|
||||
|
@ -170,8 +170,27 @@
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
ephy-digital;
|
||||
|
||||
sdxc_iot_mode: sdxc_iot_mode {
|
||||
esd {
|
||||
groups = "esd";
|
||||
function = "iot";
|
||||
};
|
||||
|
||||
sdxc {
|
||||
groups = "sdmode";
|
||||
function = "sdxc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&sdxc_iot_mode>;
|
||||
pinctrl-1 = <&sdxc_iot_mode>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -84,6 +84,22 @@
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
ephy-digital;
|
||||
|
||||
sdxc_iot_mode: sdxc_iot_mode {
|
||||
esd {
|
||||
groups = "esd";
|
||||
function = "iot";
|
||||
};
|
||||
|
||||
sdxc {
|
||||
groups = "sdmode";
|
||||
function = "sdxc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
|
||||
@ -94,6 +110,9 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&sdxc_iot_mode>;
|
||||
pinctrl-1 = <&sdxc_iot_mode>;
|
||||
};
|
||||
|
||||
&i2c {
|
||||
|
@ -68,6 +68,22 @@
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
ephy-digital;
|
||||
|
||||
sdxc_iot_mode: sdxc_iot_mode {
|
||||
esd {
|
||||
groups = "esd";
|
||||
function = "iot";
|
||||
};
|
||||
|
||||
sdxc {
|
||||
groups = "sdmode";
|
||||
function = "sdxc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "wled_an", "refclk", "wdt";
|
||||
@ -75,6 +91,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&sdxc_iot_mode>;
|
||||
pinctrl-1 = <&sdxc_iot_mode>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user