From patchwork Sat Apr 9 03:00:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1615110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=e4K2QyN4; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=YiKmSjmH; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kb0LR1VM3z9sDX for ; Sat, 9 Apr 2022 13:03:27 +1000 (AEST) 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:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KVSnDtb93mGOMClj5rtbuLY0L3kQhsojwhooSl9rdCQ=; b=e4K2QyN4EUoCeB qXqr9tg8xu/PApbTwvHxWK8K5UkZgGhSoKgUNeORP1F/bbxClOGFfSE/iN1UIplEiqszMHZXWXXyy xDtQj8CsMdQx/YwprYA+U4MmhLiQ4YF1+olwTTwT98F41HTtos6gaO9GyuhfI6kRGRw51YRbJ8a1O NFFjC2RaN90eFO7xC/7CetKAvIu6XX0jKA3hQjw9gtqfj/qM3YaJDiNWpf3g0Ns79XbYmpXFtwL1j SsGrSxSznde1KrKjeryA347tAgGN2kTc/4TH6EniYllrcGqxYgVnRPEpfQXtRWIzuuuX7EP4bCXeW dFNi1rgzHPAX8g6mqqMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nd1Kt-001m5H-E0; Sat, 09 Apr 2022 03:00:27 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nd1Kp-001m3h-RG for openwrt-devel@lists.openwrt.org; Sat, 09 Apr 2022 03:00:25 +0000 Received: by mail-pj1-x102f.google.com with SMTP id j20-20020a17090ae61400b001ca9553d073so11394110pjy.5 for ; Fri, 08 Apr 2022 20:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P+0iv98gLAwerFrv0DEKjvkGT9XpLEoU5sUNMF8g+DM=; b=YiKmSjmHVEoyGHKqRrJ85RYEdhOuE0rtU3SNkyIjwENKIqYidEBuDeoh1DqL4yjyJI Oy71PYdm0zrnAc0mzfoapOqK9ZP7wk8ntcOh6GZwlgu1DPx0M8JsqhVAHbLbKNTjee7N ZKh+8N5ygjgwDjje+DLCGXFpMrhbnYG4LlS2Ygm6d+hTQEgNN9fwI+LPyya6BzolUmVx plljrIuw+6U31F+A9EMHs3L5pTRSDThaD2xT6O/YjzbZ++znuIZssMqWzegY5vUxlNrb VCUXKYfE1dx18XaIjVC0LM2KpRQRy+fLaS59tvgZi9ReL9RERkrliMNmNN8NRoUfs89k EZFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P+0iv98gLAwerFrv0DEKjvkGT9XpLEoU5sUNMF8g+DM=; b=a3+Vor4H0zrCFQ4eRz9Zs86rTnv8Ze2i8hAP3gDGnXAQStwxf4nvJ6VBnrxD8v4nbD GFrlkQWNC4rYPwiW90hd9aWBTNmv8KlOZxOU64StMTz+GIRynKO8WsZVHK8BZOcmDw7y nR+BxYE4/cZv9XWDyqa6VcL77Dpp7Art6/n2j17ggCycH74HCGIGKr4SX9Ig3MYYFUTN Gqp4LaCj/eakKXsoLymLQjFaFoIPXbSkDr82C/8We2kbq8NV91ra5iTKNAwXkUwL4cyo AC66JatZ9Oj7IhZ9+TpnjHwJFhxChC714+JAWR02S6CN3tCLwCFHze62h3YZP7+LClDA Lhnw== X-Gm-Message-State: AOAM530BN2jJTAJXPjgRYG5Uj8+4b6g67C5a/k0LytYi4hepUY0QIwvw HBpTSIbMMibuMhZdz+uZkJY= X-Google-Smtp-Source: ABdhPJypq3vjH0bVm7hY4Lu6di+G+rYw7bifvKZAPWDpfDKEMzXk6jVFZm2ADVYpLAnDciQ7pLjUHQ== X-Received: by 2002:a17:902:7795:b0:157:c50:53a6 with SMTP id o21-20020a170902779500b001570c5053a6mr10419581pll.40.1649473221418; Fri, 08 Apr 2022 20:00:21 -0700 (PDT) Received: from localhost.localdomain ([45.77.200.130]) by smtp.gmail.com with ESMTPSA id k187-20020a636fc4000000b003983a01b896sm22733472pgc.90.2022.04.08.20.00.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2022 20:00:21 -0700 (PDT) From: Yousong Zhou To: ynezz@true.cz Cc: openwrt-devel@lists.openwrt.org, Yousong Zhou Subject: [RFC 0/2] Backport HiWiFi HC6361 support from ar71xx Date: Sat, 9 Apr 2022 11:00:03 +0800 Message-Id: <20220409030005.30505-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220408_200023_951913_B60A87AB X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -0.2 (/) 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: The device support was left out during the ath79 migration, mainly delayed by how to add device tree support for fetching ascii mac address In this series, patches were added for supporting "mac-address-ascii" nvmem cells. At the moment it will be able to read mac address in the form of 00:11:22:33:44:55 Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [yszhou4tech[at]gmail.com] -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 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 The device support was left out during the ath79 migration, mainly delayed by how to add device tree support for fetching ascii mac address In this series, patches were added for supporting "mac-address-ascii" nvmem cells. At the moment it will be able to read mac address in the form of 00:11:22:33:44:55 For the device itself, there is a minor issue regarding mac address increment caused by the following generic patch 683-of_net-add-mac-address-to-of-tree.patch In the 1st call of ag71xx_probe, of_get_mac_address succeeds with increment done and "mac-address" was added the the tree. But later the probe will fail with -EPROBE_DEFER because of PHY connect failure. Then on the 2nd call of ag71xx_probe and of_get_mac_address, the incremented address will be found and incremented again Yousong Zhou (2): ath79: add nvmem cell mac-address-ascii support ath79: port HiWiFi HC6361 from ar71xx .../linux/ath79/dts/ar9331_hiwifi_hc6361.dts | 156 ++++++++++++++++++ .../generic/base-files/etc/board.d/01_leds | 4 + target/linux/ath79/image/generic.mk | 12 ++ ...of_net-add-mac-address-ascii-support.patch | 103 ++++++++++++ .../408-mtd-redboot_partition_scan.patch | 4 +- ...of_net-add-mac-address-ascii-support.patch | 103 ++++++++++++ ...et-dsa-mt7530-support-MDB-operations.patch | 8 +- ...net-dsa-mt7530-add-interrupt-support.patch | 26 +-- 8 files changed, 397 insertions(+), 19 deletions(-) create mode 100644 target/linux/ath79/dts/ar9331_hiwifi_hc6361.dts create mode 100644 target/linux/ath79/patches-5.10/600-of_net-add-mac-address-ascii-support.patch create mode 100644 target/linux/ath79/patches-5.15/600-of_net-add-mac-address-ascii-support.patch