forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts
....@@ -36,13 +36,13 @@
3636 leds {
3737 compatible = "gpio-leds";
3838
39
- blue {
39
+ led-blue {
4040 label = "rbox-pro:blue:on";
4141 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
4242 default-state = "on";
4343 };
4444
45
- red {
45
+ led-red {
4646 label = "rbox-pro:red:standby";
4747 gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
4848 default-state = "off";
....@@ -101,10 +101,6 @@
101101 /* Select external PHY by default */
102102 phy-handle = <&external_phy>;
103103
104
- snps,reset-gpio = <&gpio GPIOZ_14 0>;
105
- snps,reset-delays-us = <0 10000 1000000>;
106
- snps,reset-active-low;
107
-
108104 amlogic,tx-delay-ns = <2>;
109105
110106 /* External PHY is in RGMII */
....@@ -113,9 +109,13 @@
113109
114110 &external_mdio {
115111 external_phy: ethernet-phy@0 {
116
- compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
112
+ /* Realtek RTL8211F (0x001cc916) */
117113 reg = <0>;
118114 max-speed = <1000>;
115
+
116
+ reset-assert-us = <10000>;
117
+ reset-deassert-us = <80000>;
118
+ reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
119119 };
120120 };
121121
....@@ -143,10 +143,13 @@
143143
144144 bus-width = <4>;
145145 cap-sd-highspeed;
146
- max-frequency = <100000000>;
146
+ max-frequency = <50000000>;
147147
148148 non-removable;
149149 disable-wp;
150
+
151
+ /* WiFi firmware requires power to be kept while in suspend */
152
+ keep-power-in-suspend;
150153
151154 mmc-pwrseq = <&sdio_pwrseq>;
152155
....@@ -167,11 +170,10 @@
167170
168171 bus-width = <4>;
169172 cap-sd-highspeed;
170
- max-frequency = <100000000>;
173
+ max-frequency = <50000000>;
171174 disable-wp;
172175
173
- cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
174
- cd-inverted;
176
+ cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
175177
176178 vmmc-supply = <&vddao_3v3>;
177179 vqmmc-supply = <&vddio_boot>;