Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1313876rda; Mon, 23 Oct 2023 08:51:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoEo2TV+IU5sr6HIvJVpsVSugX96gJsXJ27ihW6wlSlJuJaNRFqLKR8GPqAj1qKu3LAnaa X-Received: by 2002:a17:90a:c58e:b0:27d:192f:1dc3 with SMTP id l14-20020a17090ac58e00b0027d192f1dc3mr6445141pjt.19.1698076295578; Mon, 23 Oct 2023 08:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698076295; cv=none; d=google.com; s=arc-20160816; b=SnUMKUBpfMYBHYvPhcdu/psbBhyrtBs31tLwvCnlC4QpGhh7RtYdVexloGlJA4VMn5 gIy+FcftTNubIWDvxLJAf7alJOsk2x0Usz+qecgejsyQZaX554AEG0smy6l5xXqCaRl4 jgYeTRO2mWTTgbofW+PTxOVCzkS/twuAFDvU6W9t5sdg6O8W4+kHAvlXMYJIURzUevVI EC5DlOhL4UhkuRgpZf6vOZNP9p+8+PxZgf5VG2E/pVjApv3SE8X1GaQtdcJR3UusJjSI Ov4ykquiJ0W3rJSBKgP/Ggss7rosxf7VLoTGQiXNY0Ts7Jxjh1FpZLUhn41lYY5pR3Ql 5SHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0UKmAk7rbamYxizK/2w/z1HSWepeDGqOjvVyArYGKZ4=; fh=zFiaEL/+7oOUDknpaiQAT565P9dhSq3/yGTcIE1bbjs=; b=NFVP452Jj5DwiVYbwg4QaYszlGrGMGGcKWOifRG81dArpzMVACxwKrtJE99oMlqXBo 3bHRIDSqIYjLJ6v3ZQeszhdezXgfkv7hrZ6h31qO17QJrIwUZQXNyg8WUlUEpOm0VBOV HEX33YU9Le9lmSFFzXXhfHqFHOWLu+NsitAAbUpCRYoakM37YUS/+WdweDO/zCtRNAnm ANQc4m2l321Qq1E3JIWfedRXzdhTfQ4SCY0GeV6c4Yjm3kfTdtw0iw2pxHxoqZ3jRc9f graMsHU6HFjqT4pQI7ujRiIhKnPuk3rd7gekacZf0rpfjnfoy+sJTBlUGJr5g47/YzhG rNWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ortd9qJ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ne10-20020a17090b374a00b0027995cf4342si6659219pjb.55.2023.10.23.08.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ortd9qJ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 56A838087DFB; Mon, 23 Oct 2023 08:51:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233669AbjJWPua (ORCPT + 99 others); Mon, 23 Oct 2023 11:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbjJWPuS (ORCPT ); Mon, 23 Oct 2023 11:50:18 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 361D1D7F; Mon, 23 Oct 2023 08:50:15 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6C5431BF21A; Mon, 23 Oct 2023 15:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698076213; 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: in-reply-to:in-reply-to:references:references; bh=0UKmAk7rbamYxizK/2w/z1HSWepeDGqOjvVyArYGKZ4=; b=ortd9qJ0zTIUFVZTjx403Enr48YnyRMXO2nMn6U21mFm4c7T8aLF06qVYBQqpJbMtLW6Cm 7Pb+90Teb/lJJ2U97IEqOQ8d9uqsPFtF0I2JZBg50G+sO1MKHdJD3IsuWhxreDA2BDTHLp 8wmxYKAJpSdYaohs/06+oOgMzrv962+zrxMY/rIzrOBXOv1FdPhzBFrJQb3Vc5jlSemTcr qB24vXCPODfoGdG9JxQd4fjblbq/OPQnQ8kgdTYULvnOK/SGYZ3Cty1pSykJiPCTbBdfrp azZzyY9B3mp9OiKV6ioIErONYySu+5SG5xqQZLVze7gEpbwazTnP6g28o7C/Tw== From: Romain Gantois To: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski Cc: Romain Gantois , Jakub Kicinski , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko , Andy Gross , Bjorn Andersson , Konrad Dybcio , Maxime Chevallier Subject: [PATCH net-next 5/5] dts: qcom: ipq4019: Add description for the IPQ4019 ESS EDMA and switch Date: Mon, 23 Oct 2023 17:50:12 +0200 Message-ID: <20231023155013.512999-6-romain.gantois@bootlin.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231023155013.512999-1-romain.gantois@bootlin.com> References: <20231023155013.512999-1-romain.gantois@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: romain.gantois@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:51:19 -0700 (PDT) The Qualcomm IPQ4019 includes a modified version of the QCA8K Ethernet switch. The switch's CPU port is connected to the SoC through the internal EDMA Ethernet controller. Add support for these two devices, which are coupled tightly enough to justify treating them as a single device. Signed-off-by: Romain Gantois --- .../boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi | 13 +++ arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi | 94 +++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi b/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi index da67d55fa557..6a185b8b31c6 100644 --- a/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi @@ -242,6 +242,19 @@ &mdio { pinctrl-names = "default"; }; +&switch { + status = "okay"; +}; + +&swport4 { + status = "okay"; + label = "lan"; +}; + +&swport5 { + status = "okay"; +}; + &wifi0 { status = "okay"; nvmem-cell-names = "pre-calibration"; diff --git a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi index 9844e0b7cff9..0d8597513929 100644 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi @@ -596,6 +596,100 @@ wifi1: wifi@a800000 { status = "disabled"; }; + switch: switch@c000000 { + compatible = "qca,ipq4019-qca8337n"; + reg = <0xc000000 0x80000>, <0x98000 0x800>, <0xc080000 0x8000>; + reg-names = "base", "psgmii_phy", "edma"; + resets = <&gcc ESS_PSGMII_ARES>, <&gcc ESS_RESET>; + reset-names = "psgmii_rst", "ess"; + clocks = <&gcc GCC_ESS_CLK>; + clock-names = "ess"; + mdio = <&mdio>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + swport1: port@1 { /* MAC1 */ + reg = <1>; + label = "lan1"; + phy-handle = <ðphy0>; + phy-mode = "psgmii"; + + status = "disabled"; + }; + + swport2: port@2 { /* MAC2 */ + reg = <2>; + label = "lan2"; + phy-handle = <ðphy1>; + phy-mode = "psgmii"; + + status = "disabled"; + }; + + swport3: port@3 { /* MAC3 */ + reg = <3>; + label = "lan3"; + phy-handle = <ðphy2>; + phy-mode = "psgmii"; + + status = "disabled"; + }; + + swport4: port@4 { /* MAC4 */ + reg = <4>; + label = "lan4"; + phy-handle = <ðphy3>; + phy-mode = "psgmii"; + + status = "disabled"; + }; + + swport5: port@5 { /* MAC5 */ + reg = <5>; + label = "wan"; + phy-handle = <ðphy4>; + phy-mode = "psgmii"; + + status = "disabled"; + }; + }; + }; + mdio: mdio@90000 { #address-cells = <1>; #size-cells = <0>; -- 2.42.0