From patchwork Sat Jul 23 20:53:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hoffmann X-Patchwork-Id: 1659980 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=SSKH6Ur4; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=3e8.eu header.i=@3e8.eu header.a=rsa-sha256 header.s=mail20211217 header.b=QjnP45Nv; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LqzZv2WCfz9sPf for ; Sun, 24 Jul 2022 07:14:31 +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=ALXiShFToKqzxFu1qapKK2ObVn5RFj8et9tFInnXmMM=; b=SSKH6Ur4YHB80P LbQ4XNlzI0xvM09IkkNbABkicnniNxUHWX+NU1WIPze6+oAd6GHamao6BzVZhx5BpbCTk2P/q789R ZW537Ws4+NmmidLnlv70Vi3iFYPGLpvpqrzb/UcFTxtXoyv5zyaXM42Cmc/gGLkGZlQJNzhVS8wnU bXwDdT9TmVE34Ouvu+IMTmkRHioV2EVCBZQh9QCztLWQy9Wp8h4HpSTSBHCsw5U0lLewVxoJly88P MnDtPWldQlO9cwFeUdtm/9uj231wrpPjo6xoNnGhHWwZ6GvhyJAv6d42HnToEvhlEx2MHC7EMgM5N DH1USkuDxEnAzR4c+KBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFMO4-007M91-7g; Sat, 23 Jul 2022 21:10:13 +0000 Received: from srv4.3e8.eu ([193.25.101.238]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFM7x-007DYW-QI for openwrt-devel@lists.openwrt.org; Sat, 23 Jul 2022 20:53:35 +0000 Received: from localhost.localdomain (p200300c6cf1309a09555e5d92b92c48c.dip0.t-ipconnect.de [IPv6:2003:c6:cf13:9a0:9555:e5d9:2b92:c48c]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits)) (No client certificate requested) by srv4.3e8.eu (Postfix) with ESMTPSA id 2E40C600B5; Sat, 23 Jul 2022 22:53:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20211217; t=1658609612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=b9hQ6H5te83+OgRsMcsweOo5zk9WfUcqhYUkVWxf4nY=; b=QjnP45NviqAbPDbZ1A/kcTcwXH5/RNStQy1PtXFziAFfxAruglpSuChBi/q5n7MKHDwGy4 m1l+bu2Q9XaWEUic2PxZqUv3BjFOEjGCWJoPWQsGGkyk2laKgUXQOyzjL4rSayQshnlsK6 pljprsbNPCCsTSeKUncrBr5m63BCmjVd6loDHMlX2yLsYz+YnOb+14xTsKr6UwAOZOS1kt 1YpozU1nMvTjbVQcF2qm8Jl2zl7RBF96Zv/q+2aaQd9BgccX6Yf0sy9FKXfuiOKiVed/DE l+GQ2LN83aeXaFxW/KXcNo9HBxOLc3jZPuvbokU4fnSJUnt79f5TQ4tMsk6yeQ== From: Jan Hoffmann To: openwrt-devel@lists.openwrt.org Cc: Birger Koblitz , Sander Vanheule , Jan Hoffmann Subject: [PATCH 0/7] realtek: add HPE 1920 support Date: Sat, 23 Jul 2022 22:53:12 +0200 Message-Id: <20220723205319.3326374-1-jan@3e8.eu> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220723_135334_043372_CE7F79A0 X-CRM114-Status: GOOD ( 11.55 ) 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: This adds support for three switches from the HPE 1920 series. It has been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G is also included, as it uses the same board as the 16-port m [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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 This adds support for three switches from the HPE 1920 series. It has been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G is also included, as it uses the same board as the 16-port model. The patch series depends on the firmware-utils patch adding the mkh3cimg and mkh3cvfs tools. Jan Hoffmann (7): realtek: rtl83xx-phy: fix RTL8214FC media change realtek: rtl83xx-phy: decouple RTL8214FC media change and power config realtek: add SFP support for RTL8214FC PHY realtek: clean up rtl838x MDIO busy wait loop kernel: mtdsplit: add support for H3C VFS filesystem tools: add 7z host package realtek: add support for HPE 1920 series target/linux/generic/config-5.10 | 1 + target/linux/generic/config-5.15 | 1 + .../files/drivers/mtd/mtdsplit/Kconfig | 5 + .../files/drivers/mtd/mtdsplit/Makefile | 1 + .../drivers/mtd/mtdsplit/mtdsplit_h3c_vfs.c | 170 ++++++++++++++++++ .../realtek/base-files/etc/board.d/02_network | 18 +- .../realtek/dts-5.10/rtl8380_hpe_1920-8g.dts | 113 ++++++++++++ .../realtek/dts-5.10/rtl8382_hpe_1920-16g.dts | 48 +++++ .../realtek/dts-5.10/rtl8382_hpe_1920-24g.dts | 68 +++++++ .../realtek/dts-5.10/rtl8382_hpe_1920.dtsi | 117 ++++++++++++ target/linux/realtek/dts-5.10/rtl838x.dtsi | 7 + .../realtek/dts-5.10/rtl838x_hpe_1920.dtsi | 96 ++++++++++ .../drivers/net/dsa/rtl83xx/rtl838x.c | 37 ++-- .../files-5.10/drivers/net/phy/rtl83xx-phy.c | 146 +++++++++------ target/linux/realtek/image/Makefile | 49 +++++ target/linux/realtek/image/rtl838x.mk | 24 +++ target/linux/realtek/rtl838x/config-5.10 | 3 + tools/7z/Makefile | 36 ++++ tools/Makefile | 1 + 19 files changed, 871 insertions(+), 70 deletions(-) create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_h3c_vfs.c create mode 100644 target/linux/realtek/dts-5.10/rtl8380_hpe_1920-8g.dts create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920-16g.dts create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920-24g.dts create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920.dtsi create mode 100644 target/linux/realtek/dts-5.10/rtl838x_hpe_1920.dtsi create mode 100644 tools/7z/Makefile