]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-mediatek: comfast cf-wr632ax: sync with the main DTS 22929/head
authorAndrii Kuiukoff <andros.ua@gmail.com>
Sun, 17 May 2026 10:50:06 +0000 (13:50 +0300)
committerRobert Marko <robimarko@gmail.com>
Sun, 17 May 2026 11:04:23 +0000 (13:04 +0200)
- Sync shared U-Boot DTS nodes with the main device DTS
- Remove duplicate strings

Signed-off-by: Andrii Kuiukoff <andros.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22929
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch

index cb5c5d86e613ed2b441243a9991fffa0ee87370c..d3f83fbcb0fc43441ec3ff6f9569e3c58d7d2235 100644 (file)
@@ -1,6 +1,6 @@
 --- /dev/null
 +++ b/arch/arm/dts/mt7981-comfast-cf-wr632ax.dts
-@@ -0,0 +1,153 @@
+@@ -0,0 +1,151 @@
 +// SPDX-License-Identifier: GPL-2.0-or-later
 +
 +/dts-v1/;
@@ -9,10 +9,8 @@
 +#include <dt-bindings/input/linux-event-codes.h>
 +
 +/ {
-+      #address-cells = <1>;
-+      #size-cells = <1>;
 +      model = "COMFAST CF-WR632AX";
-+      compatible = "mediatek,mt7981", "mediatek,mt7981-rfb";
++      compatible = "comfast,cf-wr632ax", "mediatek,mt7981";
 +
 +      chosen {
 +              stdout-path = &uart0;
 +              conf-pu {
 +                      pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
 +                      drive-strength = <MTK_DRIVE_4mA>;
-+                      bias-pull-up = <MTK_PUPD_SET_R1R0_00>;
++                      bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 +              };
 +
 +              conf-pd {
 +                      pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
 +                      drive-strength = <MTK_DRIVE_4mA>;
-+                      bias-pull-down = <MTK_PUPD_SET_R1R0_00>;
++                      bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 +              };
 +      };
 +};
 +                      #size-cells = <1>;
 +
 +                      partition@0 {
-+                              label = "bl2";
++                              label = "BL2";
 +                              reg = <0x0 0x100000>;
 +                      };
 +
 +                      };
 +
 +                      partition@180000 {
-+                              label = "factory";
++                              label = "Factory";
 +                              reg = <0x180000 0x200000>;
 +                      };
 +
 +                      partition@380000 {
-+                              label = "fip";
++                              label = "FIP";
 +                              reg = <0x380000 0x200000>;
 +                      };
 +
 +boot_tftp_write_fip=tftpboot $loadaddr $bootfile_fip && run mtd_write_fip && run reset_factory
 +boot_tftp_write_bl2=tftpboot $loadaddr $bootfile_bl2 && run mtd_write_bl2
 +reset_factory=ubi part ubi ; mw $loadaddr 0x0 0x800 ; ubi write $loadaddr ubootenv 0x800 ; ubi write $loadaddr ubootenv2 0x800
-+mtd_write_fip=mtd erase fip && mtd write fip $loadaddr
-+mtd_write_bl2=mtd erase bl2 && mtd write bl2 $loadaddr
++mtd_write_fip=mtd erase FIP && mtd write FIP $loadaddr
++mtd_write_bl2=mtd erase BL2 && mtd write BL2 $loadaddr
 +ubi_create_env=ubi check ubootenv || ubi create ubootenv 0x100000 dynamic || run ubi_format ; ubi check ubootenv2 || ubi create ubootenv2 0x100000 dynamic || run ubi_format
 +ubi_format=ubi detach ; mtd erase ubi && ubi part ubi ; reset
 +ubi_prepare_rootfs=if ubi check rootfs_data ; then else if env exists rootfs_data_max ; then ubi create rootfs_data $rootfs_data_max dynamic || ubi create rootfs_data - dynamic ; else ubi create rootfs_data - dynamic ; fi ; fi