Skip to content

Commit 53b87d6

Browse files
1715173329hauke
authored andcommitted
uboot-mediatek: update patch for Cudy TR3000-v1 and SNR SNR-CPE-AX2
Update the reference to gpio props. Fixes: 2a32d21 ("uboot-mediatek: bump to v2025.04") Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Link: openwrt/openwrt#18988 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 8d30e07 commit 53b87d6

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

package/boot/uboot-mediatek/patches/445-add-cudy_tr3000-v1.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@
140140
+ button-reset {
141141
+ label = "reset";
142142
+ linux,code = <KEY_RESTART>;
143-
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
143+
+ gpios = <&pio 1 GPIO_ACTIVE_LOW>;
144144
+ };
145145
+
146146
+ button-mode {
147147
+ label = "mode";
148148
+ linux,code = <EV_SW>;
149149
+ linux,input-type = <BTN_0>;
150-
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
150+
+ gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
151151
+ debounce-interval = <60>;
152152
+ };
153153
+ };
@@ -157,13 +157,13 @@
157157
+
158158
+ led_status: led-0 {
159159
+ label = "red:power";
160-
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
160+
+ gpios = <&pio 11 GPIO_ACTIVE_LOW>;
161161
+ default-state = "on";
162162
+ };
163163
+
164164
+ led-1 {
165165
+ label = "white:status";
166-
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
166+
+ gpios = <&pio 10 GPIO_ACTIVE_LOW>;
167167
+ default-state = "off";
168168
+ };
169169
+ };
@@ -184,7 +184,7 @@
184184
+ };
185185
+};
186186
+
187-
+&pinctrl {
187+
+&pio {
188188
+ spi_flash_pins: spi0-pins-func-1 {
189189
+ mux {
190190
+ function = "flash";

package/boot/uboot-mediatek/patches/463-add-snr-snr-cpe-ax2.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@
143143
+ button-0 {
144144
+ label = "mesh";
145145
+ linux,code = <BTN_0>;
146-
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
146+
+ gpios = <&pio 0 GPIO_ACTIVE_LOW>;
147147
+ };
148148
+
149149
+ button-1 {
150150
+ label = "reset";
151151
+ linux,code = <KEY_RESTART>;
152-
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
152+
+ gpios = <&pio 1 GPIO_ACTIVE_LOW>;
153153
+ };
154154
+ };
155155
+
@@ -158,37 +158,37 @@
158158
+
159159
+ led-0 {
160160
+ label = "red:status";
161-
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
161+
+ gpios = <&pio 4 GPIO_ACTIVE_LOW>;
162162
+ };
163163
+
164164
+ led-1 {
165165
+ label = "red:status_1";
166-
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
166+
+ gpios = <&pio 5 GPIO_ACTIVE_LOW>;
167167
+ };
168168
+
169169
+ led-2 {
170170
+ label = "blue:wlan_2ghz";
171-
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
171+
+ gpios = <&pio 6 GPIO_ACTIVE_LOW>;
172172
+ };
173173
+
174174
+ led-3 {
175175
+ label = "blue:wlan_5ghz";
176-
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
176+
+ gpios = <&pio 7 GPIO_ACTIVE_LOW>;
177177
+ };
178178
+
179179
+ led-4 {
180180
+ label = "blue:status";
181-
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
181+
+ gpios = <&pio 9 GPIO_ACTIVE_LOW>;
182182
+ };
183183
+
184184
+ led-5 {
185185
+ label = "blue:wan";
186-
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
186+
+ gpios = <&pio 10 GPIO_ACTIVE_LOW>;
187187
+ };
188188
+
189189
+ led-6 {
190190
+ label = "blue:status_1";
191-
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
191+
+ gpios = <&pio 11 GPIO_ACTIVE_LOW>;
192192
+ };
193193
+ };
194194
+};
@@ -203,15 +203,15 @@
203203
+ mediatek,gmac-id = <0>;
204204
+ phy-mode = "2500base-x";
205205
+ mediatek,switch = "mt7531";
206-
+ reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
206+
+ reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
207207
+
208208
+ fixed-link {
209209
+ speed = <2500>;
210210
+ full-duplex;
211211
+ };
212212
+};
213213
+
214-
+&pinctrl {
214+
+&pio {
215215
+ spi_flash_pins: spi0-pins-func-1 {
216216
+ mux {
217217
+ function = "flash";

0 commit comments

Comments
 (0)