From patchwork Tue Oct 5 19:40:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Fertser X-Patchwork-Id: 1536903 X-Patchwork-Delegate: ynezz@true.cz 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=qnt51TQ5; 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=HIGGwXui; 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 4HP7Ky1Tpgz9sP7 for ; Wed, 6 Oct 2021 06:43:18 +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:References:In-Reply-To: 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: List-Owner; bh=pYCgMjiDddx3uIY9T6YSpROEGI4q2ZPgHRQCN0fbvRU=; b=qnt51TQ5IT42nq c91uMeN3urq6Mh1wMQHKZE65ZuzCzT+QDnNJ1kXBRCs2oCnSmp4P/eRZbf4/ID9WCCQzLdW/sfFMO qB8iMXb8d2ZPCcie+ZYd0EGO8MFN62Ja852fprSoBwqwkr7p0fFZ3Mqa+x5wG8dOMclhuXVqUK6JJ KwouASkXknN4zDoZ/tfT7231Y0NUw3oE0e8/Mq7h7KNHbTG10zH/MEN3znGK3afmtovSILLNxsU0d smS9YRSVDn61PrY5cC3XYhMJwDdSy9Cy1DMuLS8OVbx5CNFKkTDYe0VajZzdJ4otwTr5wX25doIgG viqbqVqgGy+wEEf1fs3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXqJf-00BffT-DN; Tue, 05 Oct 2021 19:41:31 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXqJ2-00BfZR-9y for openwrt-devel@lists.openwrt.org; Tue, 05 Oct 2021 19:40:54 +0000 Received: by mail-lf1-x12e.google.com with SMTP id i4so563903lfv.4 for ; Tue, 05 Oct 2021 12:40:52 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=yXmQl1R9y3HYlNA3FyrSvDthjP4bFGIRNNnbYEgD7Po=; b=HIGGwXuiv+o4EGX4m/T3m6ndpQGsEXUiAv7u1WuKHgwfi7yFGs3fdDBRjgaEdbmdKy xHBvZD1R6xMI/iTwtmuUvbkS/oqBcfxeMtMSH8gGUcNvMgoxokx7iZVo2NBPfxuIxDX9 lMkFuecn/VV79qV11FtT9giVGHmpD8SNdK8eZPnO3ExjNXGvb9iu97VMFX3tiQVv9iiS nQpnBLCErJdPctLG6V1hIyEM3QxK+58alI7arAkdnI8Z5ed5gszZM4YLQwZObPo1MtGY +idq9t4jTjWuTgy/IjObj8EsarKQt+sKuMrqx0AXCHFpunqOiNyX3kgfJEEEkvmBIlxG ZiYA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=yXmQl1R9y3HYlNA3FyrSvDthjP4bFGIRNNnbYEgD7Po=; b=qQ5yq6VzYj1mVIXNZCsD2qYa/x89YN668c2l35rOEmTVUWOY24XzmVXXhhqjxcfRae anb5Zd1ZMmdJSCvpmYYmzPhUv9qEJXfomdqSkmWW/45hZc5SRK1Er+gY6aEwp8na/L0W wQ7Of5lAyHWYWT/vFzVFz6F7DePQkypMrZbU6SBt5s3Wu8YjCRyAbWg+tksZY/qHLdhR K8Lh1IKMWM9Gd7P7nqGQk/PYEoEW82hWtMl/OsgE8cDyzeRWuDyutA2INl171adaNAvb YLCUOXyqDzDEGT16OyN9+bWhmAQxP5wWMzXZSDjWsaIJ+pwb6IclN+8ZGj5P64ffnyE/ vO8A== X-Gm-Message-State: AOAM531VpTYA+9WwySMoZyv+q87rkdtruCuZJSuLbaDZZHObSqgxxdmk hPMFcgAQS+cYxyvJqf40FINm68vTbJ8= X-Google-Smtp-Source: ABdhPJxz3InibzrLUYShYDpN2jWg3H2G/qhR5pSC+DdD5ARdJCosOv9mGzwZDTOqeIcfe1VP5proVg== X-Received: by 2002:a05:6512:455:: with SMTP id y21mr5474897lfk.548.1633462850936; Tue, 05 Oct 2021 12:40:50 -0700 (PDT) Received: from home.paul.comp (paulfertser.info. [2001:470:26:54b:226:9eff:fe70:80c2]) by smtp.gmail.com with ESMTPSA id m4sm1760493ljq.4.2021.10.05.12.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 12:40:50 -0700 (PDT) Received: from home.paul.comp (home.paul.comp [IPv6:0:0:0:0:0:0:0:1]) by home.paul.comp (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 195Jel1W031962; Tue, 5 Oct 2021 22:40:48 +0300 Received: (from paul@localhost) by home.paul.comp (8.15.2/8.15.2/Submit) id 195Jel5d031961; Tue, 5 Oct 2021 22:40:47 +0300 From: Paul Fertser To: openwrt-devel@lists.openwrt.org Cc: Paul Fertser Subject: [RFT 3/5] realtek: add non-PoE version of DGS-1210-10 F1 Date: Tue, 5 Oct 2021 22:40:22 +0300 Message-Id: <20211005194024.31909-4-fercerpav@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211005194024.31909-1-fercerpav@gmail.com> References: <20211005194024.31909-1-fercerpav@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211005_124052_371193_A794B7DE X-CRM114-Status: GOOD ( 13.72 ) 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: Signed-off-by: Paul Fertser --- .../rtl8380_d-link_dgs-1210-10-f1.dts | 8 +++ .../rtl8380_d-link_dgs-1210-10-f1.dtsi | 61 +++++++++++++++++++ .../rtl8380_d-link_dgs-1210-10p-f1.dts | 60 + [...] 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 [2a00:1450:4864:20:0:0:0:12e 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 [fercerpav[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 Signed-off-by: Paul Fertser --- .../rtl8380_d-link_dgs-1210-10-f1.dts | 8 +++ .../rtl8380_d-link_dgs-1210-10-f1.dtsi | 61 +++++++++++++++++++ .../rtl8380_d-link_dgs-1210-10p-f1.dts | 60 +----------------- target/linux/realtek/image/Makefile | 10 ++- 4 files changed, 78 insertions(+), 61 deletions(-) create mode 100644 target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dts create mode 100644 target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dtsi diff --git a/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dts b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dts new file mode 100644 index 000000000000..39e76bf470ea --- /dev/null +++ b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dts @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "rtl8380_d-link_dgs-1210-10-f1.dtsi" + +/ { + compatible = "d-link,dgs-1210-10-f1", "realtek,rtl838x-soc"; + model = "D-Link DGS-1210-10 F1"; +}; diff --git a/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dtsi b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dtsi new file mode 100644 index 000000000000..c9dd5e77deb6 --- /dev/null +++ b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10-f1.dtsi @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "rtl8380_d-link_dgs-1210-10.dtsi" + +/ { + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; +}; + +&spi0 { + status = "okay"; + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x00000000 0x80000>; + read-only; + }; + partition@80000 { + label = "u-boot-env"; + reg = <0x00080000 0x40000>; + read-only; + }; + partition@c0000 { + label = "u-boot-env2"; + reg = <0x000c0000 0x40000>; + }; + partition@280000 { + label = "firmware"; + compatible = "denx,uimage"; + reg = <0x00100000 0xd80000>; + }; + partition@be80000 { + label = "kernel2"; + reg = <0x00e80000 0x180000>; + }; + partition@1000000 { + label = "sysinfo"; + reg = <0x01000000 0x40000>; + }; + partition@1040000 { + label = "rootfs2"; + reg = <0x01040000 0xc00000>; + }; + partition@1c40000 { + label = "jffs2"; + reg = <0x01c40000 0x3c0000>; + }; + }; + }; +}; diff --git a/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-f1.dts b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-f1.dts index 9a301adb935c..a59dc6b60cc7 100644 --- a/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-f1.dts +++ b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-f1.dts @@ -1,66 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -#include "rtl8380_d-link_dgs-1210-10.dtsi" +#include "rtl8380_d-link_dgs-1210-10-f1.dtsi" / { compatible = "d-link,dgs-1210-10p-f1", "realtek,rtl838x-soc"; model = "D-Link DGS-1210-10P F1"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; -}; - - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x00000000 0x80000>; - read-only; - }; - partition@80000 { - label = "u-boot-env"; - reg = <0x00080000 0x40000>; - read-only; - }; - partition@c0000 { - label = "u-boot-env2"; - reg = <0x000c0000 0x40000>; - }; - partition@280000 { - label = "firmware"; - compatible = "denx,uimage"; - reg = <0x00100000 0xd80000>; - }; - partition@be80000 { - label = "kernel2"; - reg = <0x00e80000 0x180000>; - }; - partition@1000000 { - label = "sysinfo"; - reg = <0x01000000 0x40000>; - }; - partition@1040000 { - label = "rootfs2"; - reg = <0x01040000 0xc00000>; - }; - partition@1c40000 { - label = "jffs2"; - reg = <0x01c40000 0x3c0000>; - }; - }; - }; }; diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index c1e47f719f3a..903ad3815690 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -53,11 +53,17 @@ define Device/d-link_dgs-1210 DEVICE_VENDOR := D-Link endef -define Device/d-link_dgs-1210-10p-f1 +define Device/d-link_dgs-1210-10-f1 $(Device/d-link_dgs-1210) SOC := rtl8380 - DEVICE_MODEL := DGS-1210-10P + DEVICE_MODEL := DGS-1210-10 DEVICE_VARIANT := F1 +endef +TARGET_DEVICES += d-link_dgs-1210-10-f1 + +define Device/d-link_dgs-1210-10p-f1 + $(Device/d-link_dgs-1210-10-f1) + DEVICE_MODEL := DGS-1210-10P SUPPORTED_DEVICES += d-link,dgs-1210-10p DEVICE_PACKAGES += lua-rs232 endef