]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-mediatek: update patch for Cudy TR3000-v1 and SNR SNR-CPE-AX2 18988/head
authorTianling Shen <cnsztl@immortalwrt.org>
Sun, 1 Jun 2025 08:01:52 +0000 (16:01 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 3 Jun 2025 21:24:07 +0000 (23:24 +0200)
Update the reference to gpio props.

Fixes: 2a32d215ba47 ("uboot-mediatek: bump to v2025.04")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/18988
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/uboot-mediatek/patches/445-add-cudy_tr3000-v1.patch
package/boot/uboot-mediatek/patches/463-add-snr-snr-cpe-ax2.patch

index d350a5ed027d1495acc679afe630ed55bb6918d8..e7e092614830014b4d964109a6222c810f91da20 100644 (file)
 +              button-reset {
 +                      label = "reset";
 +                      linux,code = <KEY_RESTART>;
-+                      gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 1 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              button-mode {
 +                      label = "mode";
 +                      linux,code = <EV_SW>;
 +                      linux,input-type = <BTN_0>;
-+                      gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
++                      gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
 +                      debounce-interval = <60>;
 +              };
 +      };
 +
 +              led_status: led-0 {
 +                      label = "red:power";
-+                      gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 11 GPIO_ACTIVE_LOW>;
 +                      default-state = "on";
 +              };
 +
 +              led-1 {
 +                      label = "white:status";
-+                      gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 10 GPIO_ACTIVE_LOW>;
 +                      default-state = "off";
 +              };
 +      };
 +      };
 +};
 +
-+&pinctrl {
++&pio {
 +      spi_flash_pins: spi0-pins-func-1 {
 +              mux {
 +                      function = "flash";
index 5602f46474e87654ed8ff1bbb4077e108139c412..a5f8873775ae894434349dfc044b29633ffe3e22 100644 (file)
 +              button-0 {
 +                      label = "mesh";
 +                      linux,code = <BTN_0>;
-+                      gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 0 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              button-1 {
 +                      label = "reset";
 +                      linux,code = <KEY_RESTART>;
-+                      gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 1 GPIO_ACTIVE_LOW>;
 +              };
 +      };
 +
 +
 +              led-0 {
 +                      label = "red:status";
-+                      gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 4 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-1 {
 +                      label = "red:status_1";
-+                      gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 5 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-2 {
 +                      label = "blue:wlan_2ghz";
-+                      gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 6 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-3 {
 +                      label = "blue:wlan_5ghz";
-+                      gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 7 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-4 {
 +                   label = "blue:status";
-+                   gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
++                   gpios = <&pio 9 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-5 {
 +                      label = "blue:wan";
-+                      gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 10 GPIO_ACTIVE_LOW>;
 +              };
 +
 +              led-6 {
 +                      label = "blue:status_1";
-+                      gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
++                      gpios = <&pio 11 GPIO_ACTIVE_LOW>;
 +              };
 +      };
 +};
 +      mediatek,gmac-id = <0>;
 +      phy-mode = "2500base-x";
 +      mediatek,switch = "mt7531";
-+      reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
++      reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
 +
 +      fixed-link {
 +              speed = <2500>;
 +      };
 +};
 +
-+&pinctrl {
++&pio {
 +      spi_flash_pins: spi0-pins-func-1 {
 +              mux {
 +                      function = "flash";