From patchwork Wed Feb 2 10:19:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587600 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=fLnFAfsI; 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 4JphWl35Q2z9sCD for ; Wed, 2 Feb 2022 23:51:47 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HrNbtT7oK+mU1a0uyKRt+16EkNw4g+mhB7RgA1U0vp4=; b=fLnFAfsIPJDHoJ hGDl2IwOd3JWR6rB1tAXTMdNFWyCEksfYvfPeb5mUo+ronu9qiycuFLHwLIBJovN6JItnCCZZnjOo curV2+avgT7SHZ2FTlvADnYw7IR7RNXXB4LIAYMJLIqxsujsVLz+h7Bh4yoT+hUvNbT7hLnVt3nzX O1Wulu7PN0dv+i0oRtrKwbesEj7+8lyuSNHunOhCqt9xCI78nlPuLN1WHcG/1zq6Rg7nvv28wdad0 94vVg+jeYQrrUpD2UYAbzsNKgNNxP1CvqhivOQrxDm8MbVcLClhQ+aMUPxvKZJf75aUlmTSQq0icz FZ4asz2brx+Nou9LvIzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF4u-00FEJl-27; Wed, 02 Feb 2022 12:49:40 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF4p-00FEIv-Q7 for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:49:37 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id D26F168AFE; Wed, 2 Feb 2022 13:49:32 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:19:48 +0100 Subject: [PATCH 1/7] lantiq: fix endianess for PCIe slave XBAR To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" , John Crispin Message-Id: <20220202124932.D26F168AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_044936_024307_628D663D X-CRM114-Status: GOOD ( 13.42 ) X-Spam-Score: 0.0 (/) 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: On some targets the AHB slave XBAR is wired up big endian. Allow specific targets to trigger a byte swap via a device tree property. Discussed in https://forum.openwrt.org/t/53620 Signed-off-by: Torsten Duwe --- Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org On some targets the AHB slave XBAR is wired up big endian. Allow specific targets to trigger a byte swap via a device tree property. Discussed in https://forum.openwrt.org/t/53620 Signed-off-by: Torsten Duwe --- I found this in Daniel's repo, merged into 0001-MIPS-lantiq-add-pcie-driver.patch, but I'd rather keep it separate, for clarity. The original commit message was lost in the merge; I wouldn't mind another signed-off by the original author ;-) --- ...q-ifxmips_pcie-fix-slave-XBAR-endian.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 target/linux/lantiq/patches-5.10/0156-lantiq-ifxmips_pcie-fix-slave-XBAR-endian.patch diff --git a/target/linux/lantiq/patches-5.10/0156-lantiq-ifxmips_pcie-fix-slave-XBAR-endian.patch b/target/linux/lantiq/patches-5.10/0156-lantiq-ifxmips_pcie-fix-slave-XBAR-endian.patch new file mode 100644 index 0000000000..f6c7e757c9 --- /dev/null +++ b/target/linux/lantiq/patches-5.10/0156-lantiq-ifxmips_pcie-fix-slave-XBAR-endian.patch @@ -0,0 +1,45 @@ +--- a/arch/mips/pci/ifxmips_pcie_vr9.h ++++ b/arch/mips/pci/ifxmips_pcie_vr9.h +@@ -33,6 +33,7 @@ + #define IFX_RCU_AHB_BE_PCIE_M 0x00000001 /* Configure AHB master port that connects to PCIe RC in big endian */ + #define IFX_RCU_AHB_BE_PCIE_S 0x00000010 /* Configure AHB slave port that connects to PCIe RC in little endian */ + #define IFX_RCU_AHB_BE_XBAR_M 0x00000002 /* Configure AHB master port that connects to XBAR in big endian */ ++#define IFX_RCU_AHB_BE_XBAR_S 0x00000008 /* Configure AHB slave port that connects to XBAR in big endian */ + #define CONFIG_IFX_PCIE_PHY_36MHZ_MODE + + #define IFX_PMU1_MODULE_PCIE_PHY (0) +--- a/arch/mips/pci/ifxmips_pcie.c ++++ b/arch/mips/pci/ifxmips_pcie.c +@@ -51,6 +51,7 @@ static int pcie_reset_gpio; + static struct phy *ltq_pcie_phy; + static struct reset_control *ltq_pcie_reset; + static struct regmap *ltq_rcu_regmap; ++static bool switch_pcie_endianess; + + static ifx_pcie_irq_t pcie_irqs[IFX_PCIE_CORE_NR] = { + { +@@ -1024,6 +1025,10 @@ pcie_rc_initialize(int pcie_port) + #ifdef CONFIG_IFX_PCIE_HW_SWAP + regmap_update_bits(ltq_rcu_regmap, 0x4c, IFX_RCU_AHB_BE_PCIE_S, + IFX_RCU_AHB_BE_PCIE_S); ++ if (switch_pcie_endianess) { ++ regmap_update_bits(ltq_rcu_regmap, 0x4c, IFX_RCU_AHB_BE_XBAR_S, ++ IFX_RCU_AHB_BE_XBAR_S); ++ } + #else + regmap_update_bits(ltq_rcu_regmap, 0x4c, IFX_RCU_AHB_BE_PCIE_S, + 0x0); +@@ -1124,6 +1129,13 @@ static int ifx_pcie_bios_probe(struct pl + return PTR_ERR(ltq_pcie_phy); + } + ++ if(of_property_read_bool(node, "lantiq,switch-pcie-endianess")) { ++ switch_pcie_endianess = true; ++ dev_info(&pdev->dev, "switch pcie endianess requested\n"); ++ } else { ++ switch_pcie_endianess = false; ++ } ++ + ltq_pcie_reset = devm_reset_control_get_shared(&pdev->dev, NULL); + if (IS_ERR(ltq_pcie_reset)) { + dev_err(&pdev->dev, "failed to get the PCIe reset line\n"); From patchwork Wed Feb 2 10:25:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587601 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=b5SHxpDv; 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 4JphWn1F8dz9sCD for ; Wed, 2 Feb 2022 23:51:49 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EVI/q2e7MRRzAV8Ccb/AdgEqXP5b9d+P6FczeUE9zEE=; b=b5SHxpDvQ7KeSj l/SB/cbVO0+WY+HBEGxbcIKvVgztZ5kcFLHRMHVFIMsuduZ4OJSKtFMlJyu69CDrKZknmLls4vyVu F3pSvnWkhNctalS36pd2ctVZ2bgG+NjameMuGl9PN9se7xSDM3/UTddelQZs5Nqgbpj34Fr9fWIyJ zuaZIJ8NCva8XwJoW73xSKIeutLC+53NnKGztuvTxL0CsSqb/1jXfAhuFzYbRhQXfkgBBCAN3wSQR BNExlwk04iJSZURntonzoo8g+ZAxsUS90ev94MMT9SmtaHZ/ylwGrl+L14gT7cOBJBX6VzL6X3mGS hZxW5MQ4MZ6lxzviBq4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF58-00FENA-34; Wed, 02 Feb 2022 12:49:54 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF4w-00FEKK-CS for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:49:44 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id ADAB768AFE; Wed, 2 Feb 2022 13:49:39 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:25:43 +0100 Subject: [PATCH 2/7] lantiq: add common device tree template for x490 Fritzboxes To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202124939.ADAB768AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_044942_763241_5E3F6247 X-CRM114-Status: GOOD ( 10.81 ) X-Spam-Score: 0.0 (/) 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: Based on xrx200/VR9, these devices replace the internal dwc2 USB2 with an external renesas USB3 controller, attached via PCIe. The whole wireless hardware is offloaded to a secondary SoC with an ethernet connection to the built-in switch. Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Based on xrx200/VR9, these devices replace the internal dwc2 USB2 with an external renesas USB3 controller, attached via PCIe. The whole wireless hardware is offloaded to a secondary SoC with an ethernet connection to the built-in switch. This DTS describes the GSWIP in the new DSA mode, and defaults to UBI for the NAND flash. Signed-off-by: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritzx490.dtsi | 240 ++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritzx490.dtsi diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritzx490.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritzx490.dtsi new file mode 100644 index 0000000000..8462b24363 --- /dev/null +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritzx490.dtsi @@ -0,0 +1,240 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "vr9.dtsi" + +#include +#include + +/ { + compatible = "avm,fritzx490", "lantiq,xway", "lantiq,vr9"; + + chosen { + bootargs = "console=ttyLTQ0,115200 ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + wps { + // boxes with (unsupported) telephony HW have DECT here + label = "wps"; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wifi { + label = "wifi"; + gpios = <&gpio 29 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio-export { + compatible = "gpio-export"; + + gpio_wasp_reset { + gpio-export,name = "wasp:reset"; + gpio-export,output = <1>; + gpios = <&gpio 34 GPIO_ACTIVE_HIGH>; + }; + + gpio_wasp_wakeup { + gpio-export,name = "wasp:wakeup"; + gpio-export,output = <1>; + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +ð0 { + mtd-mac-address = <&urlader 0xcc>; + mtd-mac-address-increment = <1>; +}; + +&gphy0 { + lantiq,gphy-mode = ; +}; + +&gphy1 { + lantiq,gphy-mode = ; +}; + +&gpio { + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + gpio-ranges = <&gpio 0 0 56>; + + state_default: pinmux { + phy-rst { + lantiq,pins = "io32", "io44"; + lantiq,pull = <0>; + lantiq,open-drain; + lantiq,output = <1>; + }; + + pcie-rst { + lantiq,pins = "io21"; + lantiq,open-drain; + lantiq,output = <1>; + }; + }; + + pcie-rst-dev { + gpio-hog; + line-name = "pcie-rst-dev"; + gpios = <22 GPIO_ACTIVE_LOW>; + output-low; + }; + + usb-vbus { + gpio-hog; + line-name = "usb-vbus"; + gpios = <14 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; + +&gswip { + pinctrl-0 = <&mdio_pins>; + pinctrl-names = "default"; +}; + +&gswip_mdio { + phy0: ethernet-phy@0 { + reg = <0x00>; + reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>; + }; + + phy1: ethernet-phy@1 { + reg = <0x01>; + reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; + + phy11: ethernet-phy@11 { + reg = <0x11>; + }; + + phy13: ethernet-phy@13 { + reg = <0x13>; + }; +}; + +&gswip_ports { + port@0 { + reg = <0>; + label = "lan3"; + phy-mode = "rgmii-rxid"; + phy-handle = <&phy0>; + }; + + port@1 { + reg = <1>; + label = "lan4"; + phy-mode = "rgmii-rxid"; + phy-handle = <&phy1>; + }; + + port@2 { + reg = <2>; + label = "lan2"; + phy-mode = "internal"; + phy-handle = <&phy11>; + }; + + port@4 { + reg = <4>; + label = "lan1"; + phy-mode = "internal"; + phy-handle = <&phy13>; + }; + + // internal port to wasp/owl WIFI system + port@5 { + reg = <5>; + label = "lan5"; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; +}; + +&localbus { + flash1: flash@1 { + compatible = "lantiq,nand-xway"; + bank-width = <2>; + reg = <0x1 0x0 0x2000000>; + + nand-ecc-engine = <&flash1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "kernel"; + reg = <0x0 0x400000>; + }; + + partition@400000 { + label = "ubi"; + reg = <0x400000 0x1fc00000>; + }; + }; + }; +}; + + +&pci0 { + status = "okay"; +}; + +&pcie0 { + status = "okay"; + + gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>; + lantiq,switch-pcie-endianess; +}; + +&spi { + status = "okay"; + + flash@4 { + compatible = "jedec,spi-nor"; + reg = <4>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + urlader: partition@0 { + reg = <0x0 0x40000>; + label = "urlader"; + read-only; + }; + + partition@40000 { + reg = <0x40000 0x60000>; + label = "tffs (1)"; + read-only; + }; + + partition@a0000 { + reg = <0xa0000 0x60000>; + label = "tffs (2)"; + read-only; + }; + }; + }; +}; From patchwork Wed Feb 2 10:33:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587602 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=bIZTAXgb; 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 4JphWr25Ypz9sCD for ; Wed, 2 Feb 2022 23:51:52 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o+ZSORE92fB5PIXgkQTorenGWFBSnBwGbzw3Ezq9KHA=; b=bIZTAXgbFpy9go 1K0+e/17LlPdgX1T50RM/J8QPoIeDtHHr7Tx4JQ0wzcYS6NeeT2FwPG+RPWd01HU8YM4b+uz+AYPb JtP0Q8DmHjDrr1Y/0C8ZKz7fOmukpbcl0D22B6u7rqMU1u8blzWrUzrQvkxpWvYksKP1RiZz3sVbc WetTsi80azVwVx+wvcGYHO/inQJ5t5m4SDV1w4uL1R7c2gcBJF4O+NHM8eL57OQwxFWI14unRLzoz hWVkx+OFUB71fitV/5PTbcMHXjNIE2Lfb9ia4s3iZy5y0P9ifJPE1Y9z5lYIyB6p8r6nQ9/klezHE RImnNmBgzC0Rkkd1mgzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF5N-00FESP-No; Wed, 02 Feb 2022 12:50:09 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF51-00FELx-Jw for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:49:48 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id ECE7A68AFE; Wed, 2 Feb 2022 13:49:44 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:33:33 +0100 Subject: [PATCH 3/7] lantiq: add DTS for Fritzbox 3490 To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202124944.ECE7A68AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_044947_838089_2D62971B X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) 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: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz3490.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz3490.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz3490.dts diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz3490.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz3490.dts new file mode 100644 index 0000000000..3e140a59cc --- /dev/null +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz3490.dts @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "vr9_avm_fritzx490.dtsi" + +/ { + compatible = "avm,fritz3490", "avm,fritzx490", "lantiq,xway", "lantiq,vr9"; + model = "AVM FRITZ!Box 3490"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_info_red; + led-running = &led_power; + led-upgrade = &led_info_red; + + led-dsl = &led_dsl; + led-internet = &led_lan; + led-wifi = &led_wlan; + }; + + leds { + compatible = "gpio-leds"; + + // led 5 "Power" + led_power: power { + label = "green:power"; + gpios = <&gpio 45 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + + // led 4 "LAN" + led_lan: lan { + label = "green:lan"; + gpios = <&gpio 47 GPIO_ACTIVE_LOW>; + }; + + // led 3 "WLAN" + led_wlan: wlan { + label = "green:wlan"; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; + }; + + // led 2 "DSL" + led_dsl: dsl { + label = "green:dsl"; + gpios = <&gpio 35 GPIO_ACTIVE_LOW>; + }; + + // led 1 "Info" + led_info_green: info_green { + label = "green:info"; + gpios = <&gpio 33 GPIO_ACTIVE_LOW>; + }; + led_info_red: info_red { + label = "red:info"; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; + }; + }; +}; From patchwork Wed Feb 2 10:33:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587603 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=A6XbVsZa; 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 4JphXG1cX5z9sCD for ; Wed, 2 Feb 2022 23:52:14 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6EDuwxBfi+mTp1Yse5ZgHzE4LaPuQ+jUU94tohkn5os=; b=A6XbVsZawTYKCx G/SPumEWg+ipBD5OPhL1DYa76jfVZtgcyp093YTE7s0RCISV9mNIBknAl9TzYyq+0kIQgLxnLqVrX o1O1BPGA3UiaaS/CJUkt1BpFpjB0yeQZ1soleKrek9OG1mlWvhAqMyvHZhT2NPVCiFy32YA9PfF8D ZafDPZZzzwYqO70IJ1hue+f7IbiWTDm2dhYELF2bS7/UU3gjsxRVkJxmTIXkevzrt12XZ2lRJY4rO p/L/JFH5RdGV4N5KNaTjYQexeXumurnr0qaTx6tu7M0FSNMd9N8jCBOoKJdiYjK/MomDgOtFCwGEY cckLJTivdTPJyYhgAdbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF5f-00FEYE-PX; Wed, 02 Feb 2022 12:50:27 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF57-00FEN3-HH for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:49:55 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id E207F68AFE; Wed, 2 Feb 2022 13:49:50 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:33:43 +0100 Subject: [PATCH 4/7] lantiq: add DTS for Fritzbox 5490 To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202124950.E207F68AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_044953_757045_130CD6C3 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) 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: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz5490.dts | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz5490.dts | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts new file mode 100644 index 0000000000..67933ff4a1 --- /dev/null +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "vr9_avm_fritzx490.dtsi" + +/ { + compatible = "avm,fritz5490", "lantiq,xway", "lantiq,vr9"; + model = "AVM FRITZ!Box 5490"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_info_red; + led-running = &led_power; + led-upgrade = &led_info_red; + + led-dsl = &led_info_green; + led-internet = &led_fon; + led-wifi = &led_wlan; + }; + + leds { + compatible = "gpio-leds"; + + // led 5 "Power" + led_power: power { + label = "green:power"; + gpios = <&gpio 45 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + + // led 4 "Fiber" + led_fiber: fiber { + label = "green:fiber"; + gpios = <&gpio 47 GPIO_ACTIVE_LOW>; + }; + + // led 3 "WLAN" + led_wlan: wlan { + label = "green:wlan"; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; + }; + + // led 2 "Fon" + led_fon: fon { + label = "green:fon"; + gpios = <&gpio 35 GPIO_ACTIVE_LOW>; + }; + + // led 1 "Info" + led_info_green: info_green { + label = "green:info"; + gpios = <&gpio 33 GPIO_ACTIVE_LOW>; + }; + led_info_red: info_red { + label = "red:info"; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gswip_mdio { + phy0: ethernet-phy@0 { + status = "disabled"; + }; + + phy1: ethernet-phy@1 { + status = "disabled"; + }; + + phy5: ethernet-phy@5 { + reg = <0x05>; + // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>; + }; + + // fiber - qca8033 (serdes transceiver) - port0 + phy6: ethernet-phy@6 { + reg = <0x06>; + reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>; + }; + phy9: ethernet-phy@9 { + reg = <0x09>; + // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>; + }; + +}; + +&gswip_ports { + // FIXME: this is guesswork! + port@0 { + reg = <0>; + label = "fiber"; + phy-mode = "rgmii-rxid"; + phy-handle = <&phy6>; + }; + port@1 { // ? label = "lan?"; + phy-handle = <&phy5>; + }; + // port@? { label = "lan?"; phy-handle = <&phy9>; +}; From patchwork Wed Feb 2 10:33:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587604 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=I26/ObD8; 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 4JphXn5BjMz9sCD for ; Wed, 2 Feb 2022 23:52:41 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=D2Z/PL5fZIsSu1feyauUZ4GioDOooN557L1N3wSrV4g=; b=I26/ObD8DQZ2uc 4qRfEJOaT2ff+lOmIMdhY5ZJopT6iCfRKMk8m9+8RozcJft5Eq9tfpNWtSZjR5/5f4hQwQ+CeDCTr UxU0CKqsQ6GF0tzvENPz2xxWa3+r7x8IZleqkiJuKiDrdu4y7zf14aWkuX8s3NYtUaQNlPnovVYCZ HkjKXv1esCBpmzFalTXdHIgc6X0Bhf2iAFd+1ZTmy+6V8i3NeflJW4+SDR4nPFY3xhkCiYlFVE3Ic VXaX9jXs7Im9gcLKxrTX4OQlOnLv9Dv9jn7BmpNUDxjIMJ7rEAAth1gEdVnN1ucZ9RC7tCC53QwaX EnMNZefNfXuYNh0OZBdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF62-00FEg7-Ao; Wed, 02 Feb 2022 12:50:50 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF5F-00FEPe-Hm for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:50:03 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id DB07D68AFE; Wed, 2 Feb 2022 13:49:58 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:33:51 +0100 Subject: [PATCH 5/7] lantiq: add DTS for Fritzbox 7490 To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202124958.DB07D68AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_045001_769940_8A98FC04 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) 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: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz7490.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Torsten Duwe --- .../boot/dts/lantiq/vr9_avm_fritz7490.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts new file mode 100644 index 0000000000..55d6b92523 --- /dev/null +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "vr9_avm_fritzx490.dtsi" + +#include +#include + +/ { + compatible = "avm,fritz7490", "avm,fritzx490", "lantiq,xway", "lantiq,vr9"; + model = "AVM FRITZ!Box 7490"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_info_red; + led-running = &led_power; + led-upgrade = &led_info_red; + + led-dsl = &led_info_green; + led-internet = &led_internet; + led-wifi = &led_wlan; + }; + + leds { + compatible = "gpio-leds"; + + // led 5 "Power/DSL" + led_power: power { + label = "green:power"; + gpios = <&gpio 45 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + + // led 4 "Internet" + led_internet: internet { + label = "green:internet"; + gpios = <&gpio 47 GPIO_ACTIVE_LOW>; + }; + + // led 3 "FixedLine" + led_fixedline: fixedline { + label = "green:fixedline"; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; + }; + + // led 2 "WLAN" + led_wlan: wlan { + label = "green:wlan"; + gpios = <&gpio 35 GPIO_ACTIVE_LOW>; + }; + + // led 1 "Info" + led_info_green: info_green { + label = "green:info"; + gpios = <&gpio 33 GPIO_ACTIVE_LOW>; + }; + led_info_red: info_red { + label = "red:info"; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; + }; + }; +}; From patchwork Wed Feb 2 10:37:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587605 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=gezFHsPo; 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 4JphYW2Hpqz9sCD for ; Wed, 2 Feb 2022 23:53:19 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jYWipp/vuKZMjZSp4pStcvnp7esynWYPVz7iLMOiJRs=; b=gezFHsPo+OoTNE gy7k3JGrAfpnIuTe861bHT9/zct05UC+Mu+7LlhSfqCJvQcC3Cv5lkmumD7AIkP0a6Hj73BxsjYfN gJZmDUDivkzN+T75SCP0YJpcr5XkO3LawXJgVYyzo/KE0QBFDzwvhRljEgHhqYnb4wtldz3xW7MT7 8AJ6dvGyoLBvRQNPFUZ7VEAXmm5GulkZ6gdbuMuQAYL4G9zUwiQLLn9Vx4z7Io+pVl6eKgyQophO+ e1/H18B0S6PQ1DBsNXUH14KftKc4HvExvVit+L/z54oD5RPDWH8wfN49Xq2cTZ1DWWCCYBIsM+o1b atb/BlQhowSUUz97p4/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF6a-00FEti-3n; Wed, 02 Feb 2022 12:51:24 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF5K-00FERX-SQ for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:50:08 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id 3D06968AFE; Wed, 2 Feb 2022 13:50:04 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:37:04 +0100 Subject: [PATCH 6/7] lantiq: add image handling for x490 Fritzboxes To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202125004.3D06968AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_045007_272019_1045D64E X-CRM114-Status: GOOD ( 11.11 ) X-Spam-Score: 0.0 (/) 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: Enable building Fritzbox x490 images, with UBI. The default is 252KiB LEB size and 4k I/O, and the 7490 overriding it with half of those values. Signed-off-by: Torsten Duwe --- I'm uncertain about the difference between UBIFS_OPTS and MKUBIFS_OPTS. MKUBIFS_OPTS is declared per device, but UBIFS_OPTS are always prepended, even with some ubinize calls. The final sysupgrade-tar [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Enable building Fritzbox x490 images, with UBI. The default is 252KiB LEB size and 4k I/O, and the 7490 overriding it with half of those values. Signed-off-by: Torsten Duwe --- I'm uncertain about the difference between UBIFS_OPTS and MKUBIFS_OPTS. MKUBIFS_OPTS is declared per device, but UBIFS_OPTS are always prepended, even with some ubinize calls. The final sysupgrade-tar uses an FS image made with UBIFS_OPTS (?). As a result, I was unable to build working ubifs-sysupgrades for multiple targets in one run. Am I missing something or is this a bug? The benefits of those eva-*.bin files are also unclear to me; I left them in as they were. --- target/linux/lantiq/image/vr9.mk | 45 +++++++++++++++++++ .../xrx200/base-files/etc/board.d/01_leds | 3 +- .../xrx200/base-files/etc/board.d/02_network | 10 ++++- .../xrx200/base-files/lib/upgrade/platform.sh | 3 ++ target/linux/lantiq/xrx200/target.mk | 2 +- 5 files changed, 60 insertions(+), 3 deletions(-) diff --git a/target/linux/lantiq/image/vr9.mk b/target/linux/lantiq/image/vr9.mk index d17045b6db..9ebb981811 100644 --- a/target/linux/lantiq/image/vr9.mk +++ b/target/linux/lantiq/image/vr9.mk @@ -147,6 +147,37 @@ define Device/avm_fritz3390 endef TARGET_DEVICES += avm_fritz3390 +define Device/avm_fritzx490 + $(Device/dsa-migration) + $(Device/AVM) + $(Device/NAND) + KERNEL_SIZE := 4096k + IMAGE_SIZE := 49152k + BLOCKSIZE := 256k + PAGESIZE := 4096 + UBIFS_OPTS := -m 4096 -e 252KiB -c 256 + MKUBIFS_OPTS := -m 4096 -e 252KiB -c 256 + UBINIZE_OPTS := -E 5 + DEVICE_PACKAGES := kmod-usb3 fritz-tffs wasp_uploader +endef + +define Device/avm_fritz3490 + $(Device/avm_fritzx490) + DEVICE_MODEL := FRITZ!Box 3490 + DEVICE_PACKAGES += -kmod-owl-loader -dsl-vrx200-firmware-xdsl-a -dsl-vrx200-firmware-xdsl-b-patch +endef +TARGET_DEVICES += avm_fritz3490 + +define Device/avm_fritz5490 + $(Device/avm_fritzx490) + DEVICE_MODEL := FRITZ!Box 5490 + DEVICE_PACKAGES += -kmod-owl-loader + IMAGES += eva-kernel.bin eva-filesystem.bin + IMAGE/eva-kernel.bin := append-kernel + IMAGE/eva-filesystem.bin := append-ubi +endef +TARGET_DEVICES += avm_fritz5490 + define Device/avm_fritz7360sl $(Device/dsa-migration) $(Device/AVM) @@ -201,6 +232,20 @@ define Device/avm_fritz7430 endef TARGET_DEVICES += avm_fritz7430 +define Device/avm_fritz7490 + $(Device/avm_fritzx490) + DEVICE_MODEL := FRITZ!Box 7490 + BLOCKSIZE := 128k + PAGESIZE := 2048 + UBIFS_OPTS := -m 2048 -e 126KiB -c 512 + MKUBIFS_OPTS := -m 2048 -e 126KiB -c 512 + DEVICE_PACKAGES += -kmod-owl-loader -dsl-vrx200-firmware-xdsl-a -dsl-vrx200-firmware-xdsl-b-patch + IMAGES += eva-kernel.bin eva-filesystem.bin + IMAGE/eva-kernel.bin := append-kernel + IMAGE/eva-filesystem.bin := append-ubi +endef +TARGET_DEVICES += avm_fritz7490 + define Device/bt_homehub-v5a $(Device/dsa-migration) $(Device/NAND) diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds index bac3ed2b53..a01b5e6b67 100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds @@ -39,7 +39,8 @@ arcadyan,vgv7519-brn) ;; avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ -avm,fritz3390) +avm,fritz3390|\ +avm,fritz7490) ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x17" ;; bt,homehub-v5a) diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network index 3122d40c92..d92e7718d1 100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network @@ -32,10 +32,13 @@ lantiq_setup_interfaces() avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ avm,fritz3390|\ + avm,fritz3490|\ + avm,fritz5490|\ avm,fritz7360sl|\ avm,fritz7360-v2|\ avm,fritz7362sl|\ avm,fritz7430|\ + avm,fritz7490|\ buffalo,wbmr-300hpd|\ tplink,tdw8970|\ tplink,tdw8980|\ @@ -64,10 +67,13 @@ lantiq_setup_dsl() avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ avm,fritz3390|\ + avm,fritz3490|\ + avm,fritz5490|\ avm,fritz7360sl|\ avm,fritz7362sl|\ avm,fritz7412|\ - avm,fritz7430) + avm,fritz7430|\ + avm,fritz7490) annex="b" ;; esac @@ -114,6 +120,8 @@ lantiq_setup_macs() wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 0xa91)" 1) ;; avm,fritz3390|\ + avm,fritz3490|\ + avm,fritz7490|\ avm,fritz7362sl) lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) wan_mac=$(fritz_tffs -n macdsl -i $(find_mtd_part "tffs (1)")) diff --git a/target/linux/lantiq/xrx200/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/xrx200/base-files/lib/upgrade/platform.sh index ab01d3bbf7..bc4c1f1330 100755 --- a/target/linux/lantiq/xrx200/base-files/lib/upgrade/platform.sh +++ b/target/linux/lantiq/xrx200/base-files/lib/upgrade/platform.sh @@ -12,9 +12,12 @@ platform_do_upgrade() { avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ avm,fritz3390|\ + avm,fritz3490|\ + avm,fritz5490|\ avm,fritz7362sl|\ avm,fritz7412|\ avm,fritz7430|\ + avm,fritz7490|\ bt,homehub-v5a|\ zyxel,p-2812hnu-f1|\ zyxel,p-2812hnu-f3) diff --git a/target/linux/lantiq/xrx200/target.mk b/target/linux/lantiq/xrx200/target.mk index 8813de8d04..c22721b589 100644 --- a/target/linux/lantiq/xrx200/target.mk +++ b/target/linux/lantiq/xrx200/target.mk @@ -1,7 +1,7 @@ ARCH:=mips SUBTARGET:=xrx200 BOARDNAME:=XRX200 -FEATURES+=atm nand ramdisk +FEATURES+=atm nand ubifs ramdisk CPU_TYPE:=24kc DEFAULT_PACKAGES+=kmod-leds-gpio \ From patchwork Wed Feb 2 10:39:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 1587607 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=vagZrjMx; 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 4JphZD6Kyzz9sCD for ; Wed, 2 Feb 2022 23:53:56 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To:Subject:Date :From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J6JXZMCavcDN/nE1zOpzsfrLiWEnp1Ovw72bvwLiW1A=; b=vagZrjMxitsgKb 4nU0tQFOX1GvJuzSP9yrZBtyj/hsyLP6RI5l8S1oikwyl7EM9vVXMkIy6BK8G1Dp5T3YWApVnvuWT 4Kbq5EaU5zCyoqhTSu1UhWGG1RsnPSMSsIO1n76XMi0haQh5W/gExrWvSzFz13FELDF1ziGWnwjga bzWYkDtF21VXjo6vr+dYybibX5frsCx5RNQSMVj33Vqh1LNYkFB1LfPDsj5NRxsL+1BRALaGTJ/lp 6woFNUrO5sJzaYFmpvIF0G6QAOiMYWx2cL8YIyTDsjLWcZaVgugi55eeEJMuGOL1DvAz8VW9iSu/j pcaDYrrG6IleLy6T7/TQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF7C-00FFAa-6M; Wed, 02 Feb 2022 12:52:02 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFF5R-00FETi-Ap for openwrt-devel@lists.openwrt.org; Wed, 02 Feb 2022 12:50:15 +0000 Received: by verein.lst.de (Postfix, from userid 2005) id A9E9768AFE; Wed, 2 Feb 2022 13:50:10 +0100 (CET) In-Reply-To: <20220202124421.9E1FB68AFE@verein.lst.de> References: <20220202124421.9E1FB68AFE@verein.lst.de> From: Torsten Duwe Date: Wed, 2 Feb 2022 11:39:40 +0100 Subject: [PATCH 7/7] lantiq: add renesas USB3 support To: openwrt-devel@lists.openwrt.org Cc: "Daniel Kestrel" Message-Id: <20220202125010.A9E9768AFE@verein.lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_045013_561405_9065538E X-CRM114-Status: UNSURE ( 6.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) 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: Enable the USB_XHCI_PCI_RENESAS config option on lantiq and note the usb3 dependency. The XHCI host controller requires a firmware blob, see https://forum.openwrt.org/t/2071 Signed-off-by: Torsten Duwe --- package/kernel/linux/modules/usb.mk | 1 + target/linux/lantiq/config-5.10 | 2 ++ 2 files changed, 3 insertions(+) Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Enable the USB_XHCI_PCI_RENESAS config option on lantiq and note the usb3 dependency. The XHCI host controller requires a firmware blob, see https://forum.openwrt.org/t/2071 Signed-off-by: Torsten Duwe --- package/kernel/linux/modules/usb.mk | 1 + target/linux/lantiq/config-5.10 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index f74c02a99f..72bdce4bd8 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -1713,6 +1713,7 @@ define KernelPackage/usb3 +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 \ +TARGET_ramips_mt7621:kmod-usb-xhci-mtk \ +(TARGET_apm821xx_nand&&LINUX_5_10):kmod-usb-xhci-pci-renesas \ + +TARGET_lantiq:kmod-usb-xhci-pci-renesas \ +TARGET_mvebu_cortexa9:kmod-usb-xhci-pci-renesas KCONFIG:= \ CONFIG_USB_PCI=y \ diff --git a/target/linux/lantiq/config-5.10 b/target/linux/lantiq/config-5.10 index a830689e23..9e7874bd5d 100644 --- a/target/linux/lantiq/config-5.10 +++ b/target/linux/lantiq/config-5.10 @@ -220,5 +220,7 @@ CONFIG_SYS_SUPPORTS_VPE_LOADER=y CONFIG_TARGET_ISA_REV=2 CONFIG_TICK_CPU_ACCOUNTING=y CONFIG_TINY_SRCU=y +CONFIG_USB_XHCI_PCI=y +CONFIG_USB_XHCI_PCI_RENESAS=y CONFIG_USE_OF=y CONFIG_WATCHDOG_CORE=y