From patchwork Tue Oct 5 19:40:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Fertser X-Patchwork-Id: 1536905 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=MNytX74c; 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=VYl83yK1; 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 4HP7Lz39Nvz9sP7 for ; Wed, 6 Oct 2021 06:44:11 +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=a7GFUeM4AOf24F1GeplnB/TfE48JEflxkuWylL5qx1E=; b=MNytX74cs6D3wR g/9K8s/rGNht6BjnLV+hujoBiJ6r3A2KdIChgl4l9p1NNkTLS7nA1djDkiZb/51OrVoBzB3mbiTgg KEfsv93K2x9+8h11eXBuF5VuJzXqPhf9EEOhk3qV2/71Pwbaviw6thlA/HHAYWOLeI3ujUmqHbvGL /lcZ9KVcPj4rSRroOlsLjIlQ2PBllCFmyxfg8esBoRomgVlxwSsaXqoWk1eZ1s6/j2XZ5U+PcAvZi 0mTT0vcq5VUiFMe0CS2xfUJ1iZsZMBlNItNZ3+kEvrtyF6URtQ6gcXxiarboYaZmdprtQPO46lSz7 J1KZWb5M6IYhOhvcVOmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXqKK-00Bfrm-SE; Tue, 05 Oct 2021 19:42:13 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXqJ5-00BfaC-5P for openwrt-devel@lists.openwrt.org; Tue, 05 Oct 2021 19:40:56 +0000 Received: by mail-lf1-x130.google.com with SMTP id y15so497376lfk.7 for ; Tue, 05 Oct 2021 12:40:55 -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=bXh6rMQEywjN5dW7Gbk/rJS237h4dHmCgcyhPlbyZLU=; b=VYl83yK15vFRzdck2VlpMB/rf7qimmKCJllNiwGRVeGCqALsbSClhSMkRNrlUmGRaM WB8TXs6nRmQft2xxzYy21k4SR77Gvy04k+KCbWZzhFefXqD2ZdkVcLzV7z8N2RhaXyUw 3ojPFAbbeBg6dFOtetdB/N2K7iJHS4gKg6voTZFuA2lxb5tGq7OyLm76y1lFpqGTRHjq vWiYyP26urCW6XeWAekw8oK6QQxnx/ZQmVain2Cftd7tguZytzVsY7JWmiYrjm2lM5F2 8EIoo+C+q3otP54GbqqZn1DtfwzZC2ZXUtmau4bs93GvlRzBc+RQewDg2vj9tpkqZhAF nuGw== 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=bXh6rMQEywjN5dW7Gbk/rJS237h4dHmCgcyhPlbyZLU=; b=oTreUfioNncV5zeAd9L0jwOqx601FbCV+okzcqu2AjzPqhnfjQI+Dh6yauq4gJmvoP iDWomzKgcC/Dx5ODjYw9Jsiq0lEtC/JDWdyFLLC5OKth5xQYgc6sQHWlBbELssNWf6Y1 h3Bld4NzVSSQO1CL8SYC6a+CIMDczP1CLVm3BdtNcT54JefglYLlh1YZ19BMRYS34MqU 89aZWO2diQuKNbdeNR7upZ6Vg5OeRsecJlTa9Mk8PCH4L/dE8Jx6dqigJyKiaPSIoKl2 +1H/nzSVlbkrHI40cA1pZpRD25D0mgW9VeMzTXr0iW/pvStuu7G8A4VUJcYb5rM0AwaI cj1Q== X-Gm-Message-State: AOAM533/LU8k2sqb4gQt3npwnU0Sn6ppqSVyQ5zI/ynlmhtQBs/lbXqE DSnDNX4eu1GT+MTtiso8Ef6BmB+5Aso= X-Google-Smtp-Source: ABdhPJyDe9MZdrReuOKQk1K8OMxRoTkGYDvvM3AcYq/PkGGYwhgtffK/miF/hrRg/69xsve3kG6LMQ== X-Received: by 2002:a05:6512:3d26:: with SMTP id d38mr5192011lfv.474.1633462853892; Tue, 05 Oct 2021 12:40:53 -0700 (PDT) Received: from home.paul.comp (paulfertser.info. [2001:470:26:54b:226:9eff:fe70:80c2]) by smtp.gmail.com with ESMTPSA id v24sm2049467lfo.269.2021.10.05.12.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 12:40:53 -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 195JeonN031970; Tue, 5 Oct 2021 22:40:51 +0300 Received: (from paul@localhost) by home.paul.comp (8.15.2/8.15.2/Submit) id 195Jeojo031969; Tue, 5 Oct 2021 22:40:50 +0300 From: Paul Fertser To: openwrt-devel@lists.openwrt.org Cc: Paul Fertser Subject: [RFT 5/5] realtek: support Trendnet TPE-082WS V1 Date: Tue, 5 Oct 2021 22:40:24 +0300 Message-Id: <20211005194024.31909-6-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_124055_231083_63B30471 X-CRM114-Status: GOOD ( 12.91 ) 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: According to photos and specs for Trendnet TPE-082WS V1.2R it should be the same as D-Link DGS-1210-10P R1 but with more powerful PSU (90 W) so the PoE budget is specified as 75 W. Signed-off-by: Paul Fertser --- .../realtek/base-files/etc/board.d/02_network | 3 + .../rtl8380_trendnet_tpe-082ws-v1.dts | 67 +++++++++++++++++++ target/linux/realtek/image/Makefile | 11 +++ 3 file [...] 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:130 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 According to photos and specs for Trendnet TPE-082WS V1.2R it should be the same as D-Link DGS-1210-10P R1 but with more powerful PSU (90 W) so the PoE budget is specified as 75 W. Signed-off-by: Paul Fertser --- .../realtek/base-files/etc/board.d/02_network | 3 + .../rtl8380_trendnet_tpe-082ws-v1.dts | 67 +++++++++++++++++++ target/linux/realtek/image/Makefile | 11 +++ 3 files changed, 81 insertions(+) create mode 100644 target/linux/realtek/dts-5.10/rtl8380_trendnet_tpe-082ws-v1.dts diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network index e7c45de92328..f8e06aea3510 100644 --- a/target/linux/realtek/base-files/etc/board.d/02_network +++ b/target/linux/realtek/base-files/etc/board.d/02_network @@ -61,6 +61,9 @@ netgear,gs110tpp-v1) netgear,gs310tp-v1) ucidef_set_poe 55 "$lan_list" ;; +trendnet,tpe-082ws-v1) + ucidef_set_poe 75 "$lan_list" + ;; zyxel,gs1900-10hp) ucidef_set_poe 77 "$lan_list" ;; diff --git a/target/linux/realtek/dts-5.10/rtl8380_trendnet_tpe-082ws-v1.dts b/target/linux/realtek/dts-5.10/rtl8380_trendnet_tpe-082ws-v1.dts new file mode 100644 index 000000000000..9b61da7ffccf --- /dev/null +++ b/target/linux/realtek/dts-5.10/rtl8380_trendnet_tpe-082ws-v1.dts @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "rtl8380_d-link_dgs-1210-10.dtsi" + +/ { + compatible = "trendnet,tpe-082ws-v1", "realtek,rtl838x-soc"; + model = "Trendnet TPE-082WS V1"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; +}; + +&spi0 { + status = "okay"; + + flash@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 = <0x00000000 0x0080000>; + read-only; + }; + + partition@80000 { + label = "u-boot-env"; + reg = <0x00080000 0x0040000>; + read-only; + }; + + partition@c0000 { + label = "u-boot-env2"; + reg = <0x000c0000 0x0040000>; + }; + + partition@100000 { + label = "firmware"; + compatible = "denx,uimage"; + reg = <0x00100000 0x0e80000>; + }; + + partition@f80000 { + label = "kernel2"; + reg = <0x00f80000 0x0180000>; + }; + + partition@1100000 { + label = "rootfs2"; + reg = <0x01100000 0x0d00000>; + }; + + partition@1e00000 { + label = "jffs2"; + reg = <0x01e00000 0x0200000>; + }; + }; + }; +}; diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index c7238494606e..94f4d91a089a 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -80,6 +80,17 @@ define Device/d-link_dgs-1210-10p-r1 endef TARGET_DEVICES += d-link_dgs-1210-10p-r1 +define Device/trendnet_tpe-082ws-v1 + SOC := rtl8380 + IMAGE_SIZE := 14848k + DEVICE_VENDOR := Trendnet + DEVICE_MODEL := TPE-082WS + DEVICE_VARIANT := V1 + # TODO + # DEVICE_PACKAGES += realtek-poe +endef +TARGET_DEVICES += trendnet_tpe-082ws-v1 + define Device/d-link_dgs-1210-16 $(Device/d-link_dgs-1210) DEVICE_MODEL := DGS-1210-16