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>; +};