summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Kuiukoff2026-05-17 10:50:06 +0000
committerRobert Marko2026-05-20 12:48:50 +0000
commitc01dc9c0fea3c45b734eccf214bfcd1a102aff00 (patch)
treed78078d79f33b929103108248268e4f77b8299fb
parent13ff2256e5dd9bc070f9a9c6a673bff4a9191837 (diff)
downloadopenwrt-c01dc9c0fea3c45b734eccf214bfcd1a102aff00.tar.gz
uboot-mediatek: comfast cf-wr632ax: sync with the main DTS
- 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 (cherry picked from commit eeaafc5ae2293bcced0b6ed9955bceac6a484d87) Link: https://github.com/openwrt/openwrt/pull/23416 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch20
1 files changed, 9 insertions, 11 deletions
diff --git a/package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch b/package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch
index e277410564..bd2812ec23 100644
--- a/package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch
+++ b/package/boot/uboot-mediatek/patches/448-add-comfast_cf-wr632ax.patch
@@ -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;
@@ -82,13 +80,13 @@
+ 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>;
+ };
+ };
+};
@@ -118,7 +116,7 @@
+ #size-cells = <1>;
+
+ partition@0 {
-+ label = "bl2";
++ label = "BL2";
+ reg = <0x0 0x100000>;
+ };
+
@@ -128,12 +126,12 @@
+ };
+
+ partition@180000 {
-+ label = "factory";
++ label = "Factory";
+ reg = <0x180000 0x200000>;
+ };
+
+ partition@380000 {
-+ label = "fip";
++ label = "FIP";
+ reg = <0x380000 0x200000>;
+ };
+
@@ -307,8 +305,8 @@
+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