From patchwork Sun Jan 4 15:58:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Snapped All X-Patchwork-Id: 2179665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vqTL0m4A; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.a=rsa-sha256 header.s=selector1 header.b=b7gmSl+C; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4dkzZv1Ryzz1xqj for ; Mon, 05 Jan 2026 14:01:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:To:From:Reply-To:Cc:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q8cf3Tzqbub4Ib66zmcCDnIAYDopYtKy6KlmUdIgWEI=; b=vqTL0m4A1KcNs3 XG3LwyUcThvYgQ9i97fe7FwcE9CXOrdqxkYBEfwSXLTBUCQctcOsScHjic5zb+LvzN+agzV26xOye T953gy3k740R2pb3iHQRz5z+U++qxplWX2QQbfxy/k3vW8GxBBNiOXFNzKL850zXIy+O17pqK94lx eyCCtXV6sDdmwIifE4Fc2saItX4sAafLRNi90R2O36sH6IgBwgyhvyfXNJq6OyLaileL2Y1a5F6Q5 E3fL1tLl+DI++k4SHb/sWbtFeLTlbndt8MUNLGW1d7cpG0fPLueZOhVfOtV5a9MSEFZA+JACwAO49 1HHCJrizePXwnDdYpD0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vcao5-0000000Aehw-2akR; Mon, 05 Jan 2026 02:58:57 +0000 Received: from mail-northcentralusazolkn190130003.outbound.protection.outlook.com ([2a01:111:f403:d111::3] helo=CH4PR04CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vcao3-0000000Aeha-25Ym for openwrt-devel@lists.openwrt.org; Mon, 05 Jan 2026 02:58:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=E5MV/h6NAAbyNulukZwZs6evHDeIRiJBHn6UU4j/3kLJBupcbhlKgjtUDH8/j6enDaOQKaCwP27upRIeKIs1UZnz6balf/dqY0vrlx7C0bIzS0wWWNwlS11JtYKgUx94jk7rncJJFhto9as6xuI2DKb31SjNH8qgpg28uvck8KM7G7p9skQ65egFdaiQYalAxDAZu2WplZ1HbV07X3cZUnzwnatY02L1v0tK1pN/xbMgp1Rf7kXN0Ovr45JpdRKBFUExNHtUWs+FaMC2gKX9scgbDD+mBMzodcZafuPRhzgOUCndCx4Y3wZkZhIe5Q7iGQRpOTK/RbXu5V/Gs9R+UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i1cMgyk7IbUmTFb0WIu5BO56LnPwPcDT2iO+FKe/MK4=; b=d15QpakZz/BmtAonxWsiqityO2SaG+rhcYJnWW7EhwB+v8BEI96SgykU9/UZIYUTYSzmmrwAAfjKquTx4Mn5ATER7Z33FWTqgOsJ/PxTabtaNwp5XIcHmsEb4hBDLHzaL8yfwT+4gIkAF5JzkG9XnFfTPYqCVp7lm/bm4PWjiVjAN5VdqYHQcfMTwlA7pOgnmaD7tVd6G5CrJG88ZQmhNGJp+Cqfgd2ZcEJIkMV6Q7bkjcvnTuL0m5tqv2R30CmjTKWCE8tYfCl7kpy4e8XaPbI3xTnS+vbb7uCxeZmed5abxZJsLghYI8hh3yfBonHihmVllJCxDmsnkVsVZDiA6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i1cMgyk7IbUmTFb0WIu5BO56LnPwPcDT2iO+FKe/MK4=; b=b7gmSl+CKkNgdB9dlnuDh1hWpKVUaq7iteWDrO7pIGBVWtkaaA3SPafrPoKI7erRjQSNBTt+neFhGiWtzFuKPat+RSfEd6QwTVZSVxQYokRP/YnLgDTs554Kdvv447j/F/hY4asYF2Z5iOdhOeAZ+wIv1bNo0v4Vf1oWPiLlamvmCyGmbSnrv35jJ99nK/gXAiPDiXMh3O0MMHu9gSPbeYJXL90lSm+zWxBVQsigf1esYlzbeXuWUagj7tGlcaHrzH//vwc/+JYI6GqgTgRO8CPjCqPVTBPkI8jzSL4sb2gU77h9Ig32ilSIIWDgfOvrad0imOyLhnfWMWG8dndQyA== Received: from SJ1PR20MB4785.namprd20.prod.outlook.com (2603:10b6:a03:45c::11) by MW5PR20MB4353.namprd20.prod.outlook.com (2603:10b6:303:19d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9478.4; Mon, 5 Jan 2026 02:58:47 +0000 Received: from SJ1PR20MB4785.namprd20.prod.outlook.com ([fe80::390d:25dc:a833:c267]) by SJ1PR20MB4785.namprd20.prod.outlook.com ([fe80::390d:25dc:a833:c267%6]) with mapi id 15.20.9478.004; Mon, 5 Jan 2026 02:58:47 +0000 From: Snapped All To: "openwrt-devel@lists.openwrt.org" Subject: ramips: mt7620a: add support for LCX LCX-ZJ1200-03 Thread-Topic: ramips: mt7620a: add support for LCX LCX-ZJ1200-03 Thread-Index: AQHbrj1CfHdF/oywM0qanR9UJn3NVw== Date: Mon, 5 Jan 2026 02:58:44 +0000 Message-ID: <35a94825-8007-4e00-ba55-fa663be8a761@hotmail.com> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-imapappendstamp: SJ1PR20MB4785.namprd20.prod.outlook.com (15.20.8632.034) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR20MB4785:EE_|MW5PR20MB4353:EE_ x-ms-office365-filtering-correlation-id: 61d082f9-73c3-4268-f97b-08de4c065728 x-microsoft-antispam: BCL:0;ARA:14566002|31061999003|15030799006|20031999003|55001999003|15080799012|461199028|19110799012|39105399006|41001999006|10092599007|8062599012|8060799015|3412199025|440099028|40105399003|102099032; x-microsoft-antispam-message-info: =?iso-8859-1?q?QBMr94Rqs0A8XFnpxmuNiKV92I?= =?iso-8859-1?q?KuOs3KrJ0lF4jpIxWAWD4XASUmQgbpQYsurqVg9djOmCh/r/ozNmcHT1D7Rl?= =?iso-8859-1?q?iYgiK9HzS/OS1fW1NwDH044FoPPBvH7P7ft8GnsDnykABy7HsjQUkBIH5zgS?= =?iso-8859-1?q?GY8A0jOgoT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si0HQj3hVNaZVrQryFTZvTKwQBP6OBu?= =?iso-8859-1?q?oRIX5vkrOQ+xO05LCuHMCPfKxlcYqRRX6PP0h9+rKT4Pj+x5usy6BaGDgpAS?= =?iso-8859-1?q?F62w+amuEHhsCJLurZPyerEA5xqgkDFwahaaaP0lXIKXYd9bav5jHa9z7v1L?= =?iso-8859-1?q?tOHVtbG3vocM6UHpodXxlAIdJZvby8c1JCObowpc8B0kVG8iovynGoAUK43D?= =?iso-8859-1?q?28YCEOBtVKzrKaOL9NIan+9lvQpp5ipkFBTMRdCiiuDQO7/+qZt/eR78xXJ4?= =?iso-8859-1?q?Im1bITPhiSSY5Fo5GZT8LocI/GKhd5VF7tuyD1HXEVDtvYT5qhsxEeOQvqiB?= =?iso-8859-1?q?pL4qw8jC4ZcIW55nw+Qw=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?zHijFqgLqD/BQh3ZrJl7wi3?= =?iso-8859-1?q?D4lN71bJPHaSdnWv6KgJrSS5OHCCgDAEUmoE6jucwMsIk0jIkqiy4CSedaJ7?= =?iso-8859-1?q?v+ixOJmgCQ7d4Mf4m2jEMELiGojGwTXtt82rJ0MTv4AGVPvzSEv18v93Zwo4?= =?iso-8859-1?q?Dm2x6latN4pENBZtZYWVv/jS37rioir2aZrX7JBmq+KeK1HHaGC5mOAlROUU?= =?iso-8859-1?q?+G2fttsiThdK1Zkz2aU8KtAOhXG4RoI8NKknOScVGESXE/hEodj0SmD2SrTZ?= =?iso-8859-1?q?Xd90hZH8ek5jzVbFxgJQxh84YMpzilqoRgSho77acBO9n3zvnHqUuwcdK8C9?= =?iso-8859-1?q?BKaUTGXCDjszpBfW8d3W3wZs+fCoFYQKGwLQVmPLjoa+7Qc79GR2TdIAA4zI?= =?iso-8859-1?q?zf79uNkr7p1cEyHLGhWT30znRDENYd6Dg7mUmfIsPgR/wRiVhqUyw90JeGbs?= =?iso-8859-1?q?nK9Kf6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CAZxlFPf5fcv4wugjuR+uBALeC939UU/ouHZ?= =?iso-8859-1?q?KEg6GQnD+9mntGM2l5XwCwJx7HfWMOSg1H2kDC2nxlUg=3D?= Content-ID: <3492E0EC5D6BF6499945265801229A3F@sct-15-20-7719-20-msonline-outlook-0b924.templateTenant> MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-9412-4-msonline-outlook-038ce.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR20MB4785.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 61d082f9-73c3-4268-f97b-08de4c065728 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2026 02:58:44.8735 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR20MB4353 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260104_185855_635937_CFBE5452 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Original date: Tue, 15 Apr 2025 11:32:36 -0400 This is a cheap (25$) WiFi repeater made by a company called Shenzen-LinChuangXun (LCX) Mine's from Edtiske, but it's likely not a real company and simply a trademark for their amazon (an identical de [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 ARC_VALID Message has a valid ARC signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 ARC_SIGNED Message has a ARC signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [snappedall(at)hotmail.com] X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Original date: Tue, 15 Apr 2025 11:32:36 -0400 This is a cheap (25$) WiFi repeater made by a company called Shenzen-LinChuangXun (LCX) Mine's from Edtiske, but it's likely not a real company and simply a trademark for their amazon (an identical device is listed as "NeaLia"). Therefore, it's branded after the actual OEM (which specializes in networking equipment). ** SPECS: ** - MT7620a SoC w/2.4Ghz 802.11b/g/n - MT7612e WLAN for 5Ghz 802.11ac (WiFi5) - 128MB RAM - 8MB MX25L6406E SPI NOR - UART TXD/RXD, 57600 - 4 antennas (2 FAKE) ** Installation: ** This device ships with CleanWRT (u-boot_mt7620), a fork of pepe2k's ath79 u-boot_mod. Very bizarre. However, this means that it's compatible with OpenWRT sysupgrade. - Hold WPS/Reset button right after connecting to power - Set static IP to 192.168.1.2, netmask 255.255.255.0, gateway 192.168.1.1 - Access CleanWRT page at 192.168.1.1 - Upload sysupgrade.bin file and flash ** TFTP recovery: ** You shouldn't ever need this since CleanWRT's httpd is built into u-boot. However, if for whatever reason (eg. different bootloader) this doesn't work, you'll need the serial console. (57600 baudrate) - Rename the initramfs-kernel.bin to test.bin and serve it via tftp (eg. using tftpd-hpa, serving at /srv/tftp, file in /srv/tftp/test.bin) - Repeat static IP steps from regular CleanWRT method. - Then hold "4" while booting until you dropdown to a console. - Run the command "tftpboot" and then you'll boot into OpenWRT. Now you can run sysupgrade from OpenWRT. ** Extra: ** Stock firmware is unknown and seems to redirect to some suspicious chinese websites. No interaction with it is required to flash OpenWRT, though it may be a future venue for firmware flashing on certain firmwares. Signed-off-by: Rayan Farzaneh ---  .../ramips/dts/mt7620a_lcx_lcx-zj1200-03.dts  | 159 ++++++++++++++++++  target/linux/ramips/image/mt7620.mk           |   9 +  .../mt7620/base-files/etc/board.d/02_network  |   1 +  3 files changed, 169 insertions(+)  create mode 100644 target/linux/ramips/dts/mt7620a_lcx_lcx-zj1200-03.dts +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -171,6 +171,7 @@ ramips_setup_interfaces()                         "5:lan" "6@eth0"                 ucidef_add_switch_attr "switch1" "enable" "false"                 ;; +       lcx,lcx-zj1200-03|\         fon,fon2601|\         vonets,var11n-300)                 ucidef_add_switch "switch0" \ -- 2.43.0 diff --git a/target/linux/ramips/dts/mt7620a_lcx_lcx-zj1200-03.dts b/target/linux/ramips/dts/mt7620a_lcx_lcx-zj1200-03.dts new file mode 100644 index 0000000000..3c7afb892e --- /dev/null +++ b/target/linux/ramips/dts/mt7620a_lcx_lcx-zj1200-03.dts @@ -0,0 +1,159 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "mt7620a.dtsi" +#include +#include +#include + +/ { +    compatible = "lcx,lcx-zj1200-03", "ralink,mt7620a-soc"; +    model = "LCX LCX-ZJ1200-03"; + +    aliases { +        led-boot = &led_power; +        led-failsafe = &led_power; +        led-running = &led_power; +        led-upgrade = &led_power; +    }; + +    keys { +        compatible = "gpio-keys"; + +        wps { +            label = "wps"; +            gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; +            linux,code = ; +        }; +    }; + +    leds { +        compatible = "gpio-leds"; + +        led_power: led_internet { +            function = LED_FUNCTION_POWER; +            label = "green:internet"; +            gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; +        }; + +        led_wlan1 { +            function = LED_FUNCTION_WLAN_5GHZ; +            label = "green:wlan1"; +            gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; +            linux,default-trigger = "phy0tpt"; +        }; + +        led_wlan2 { +            function = LED_FUNCTION_WLAN_2GHZ; +            label = "green:wlan2"; +            gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; +            linux,default-trigger = "phy1tpt"; +        }; + +    }; +}; + +&spi0 { +    status = "okay"; + +    mx25l6406e@0 { +        compatible = "jedec,spi-nor"; +        reg = <0>; +        spi-max-frequency = <50000000>; + +        partitions { +            compatible = "fixed-partitions"; +            #address-cells = <1>; +            #size-cells = <1>; + +            partition@0 { +                label = "u-boot"; +                reg = <0x0 0x30000>; +                read-only; +            }; + +            partition@30000 { +                label = "u-boot-env"; +                reg = <0x30000 0x10000>; +                read-only; +            }; + +            factory: partition@40000 { +                label = "factory"; +                reg = <0x40000 0x10000>; +                read-only; + +                nvmem-layout { +                    compatible = "fixed-layout"; +                    #address-cells = <1>; +                    #size-cells = <1>; + +                    macaddr_factory_4: macaddr@4 { +                        reg = <0x4 0x6>; +                    }; + +                    macaddr_factory_2e: macaddr@2e { +                        reg = <0x2e 0x6>; +                    }; + +                    eeprom_radio_0: eeprom@0 { +                        reg = <0x0 0x200>; +                    }; + +                    eeprom_radio_8000: eeprom@8000 { +                        reg = <0x8000 0x200>; +                    }; +                }; +            }; + +            partition@50000 { +                compatible = "denx,uimage"; +                label = "firmware"; +                reg = <0x50000 0x7a0000>; +            }; + +            partition@7f0000 { +                label = "backup_config"; +                reg = <0x7f0000 0x10000>; +                read-only; +            }; +        }; +    }; +}; + +ðernet { +        pinctrl-names = "default"; +        pinctrl-0 = <&rgmii2_pins>, <&ephy_pins>, <&mdio_pins>; + +        nvmem-cells = <&macaddr_factory_4>; +        nvmem-cell-names = "mac-address"; +}; + +&pcie { +    status = "okay"; +}; + +&pcie0 { +    mt76@0,0 { +        compatible = "mediatek,mt76"; +        reg = <0x0000 0 0 0 0>; +        nvmem-cells = <&eeprom_radio_8000>; +        nvmem-cell-names = "eeprom"; +        ieee80211-freq-limit = <5000000 6000000>; +    }; +}; + +&gsw { +    mediatek,port4-gmac; +}; + +&wmac { +    nvmem-cells = <&eeprom_radio_0>; +    nvmem-cell-names = "eeprom"; +}; + +&state_default { +    gpio { +        groups = "i2c", "uartf"; +        function = "gpio"; +    }; +}; diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index 208cb64..1212603 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network