Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp519050rwe; Fri, 26 Aug 2022 09:07:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HTjL7LP8atvuS3Guf28Vah0O3w/n51u0Ue8smh3h24CMzhcWhgMina9c/zsHJnceshZ3S X-Received: by 2002:a17:90b:38c8:b0:1fb:af8a:e47 with SMTP id nn8-20020a17090b38c800b001fbaf8a0e47mr5009021pjb.148.1661530054335; Fri, 26 Aug 2022 09:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661530054; cv=none; d=google.com; s=arc-20160816; b=GASB1yEIWfFgZvLABLngd7ljUbcW6j+TFchixmlenyuvFxhgIRAmBoLfqn3YnfLi+7 MOo2k3QG1MrLam+55U1biSsqrYp9cS2XSPVd/v06gatJ/RgvoytF+SKIJYZGFZSOku31 p1DSxXUizTsXUSn/P57atx70P/VhmqCxPMNy6nOg38TTk9D3E/feGphxrSyJ/lSAeRla BoVbw8rTZ0zpijemOdFP6jW3+dJbJ3j4ryKp6Ur2dvd4SzlA2FPT1NkSjFDs5FyQoTat NHo3uHMq/y4KlqZDGAZXe6EbuJevlqOvwaIPbIEQHwE55wn1yDQu+Mropnmi7BMomlIm l3FA== 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=ivRzjl5qUIz2Ua1g0XEeYuwvzQgIfKK29gqGyWgdHhk=; b=dQy8AvQvCe0B1lhzOWqy49N/ucexMei1/vOuvSYNGwe77lnxXYvgOq0bO3ygGSzNRn eB7v6wgzTQG+fWl6/6pzdXrQrAhVrul3oyBAI++5CIWZjrzNkEvbQ+ACJLeeTK69cUEW ySfkiQ3c07ift0Nkw33Ag+u7zBaiYoKquFdxQOyYrWIb8QK0hCPXPPvskyY5sazF/D2G iAK+h4iysfL4lrZ7e2J1QLQgVjHi6TKagpSfsWNEmZeTAQSxxzZjWUpNdIY45DPlJEWC 5gGl60aMxeJ1GOUXS3oBywhF9xZYiJuapSm1Wr5MxPcKe835Yf5xHOPRa3+6xsLKI+j1 OppA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RRsxhFsM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a170902728a00b0016dd425327fsi1783997pll.60.2022.08.26.09.07.21; Fri, 26 Aug 2022 09:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RRsxhFsM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344558AbiHZPry (ORCPT + 99 others); Fri, 26 Aug 2022 11:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243036AbiHZPrn (ORCPT ); Fri, 26 Aug 2022 11:47:43 -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 17A82832F2; Fri, 26 Aug 2022 08:47:04 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 633821BF214; Fri, 26 Aug 2022 15:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661528823; 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=ivRzjl5qUIz2Ua1g0XEeYuwvzQgIfKK29gqGyWgdHhk=; b=RRsxhFsMdM8xxhiMq7jbWY6kGdNncUDlEDyjXymkHSxctnuDoH4X+ygMKgGhLY+/xkvPv7 W7q/KspQKtmyvA5XrMopXhN35W3GoFCJIJgz73bis08BOlxA4/9liiJXCX23wd9fmnCiv8 q+2M6H5H2nwKLygUclfPCDP2TW0bWTFMbuzep+dQfa0sRayXKZ1VHOgTwQQvUNA/Np0boy +H6342b8mEVG6LaCIKysN64+8gp+4NEIwCp7ORaoysyzma0ceXJMtxrdcLTU6xsxaZaGVe GS6tXDOEtMUPzTd6C6CTresIaSsCIF8tk7qa4qwTo1fr0t/7ahvX+8sWPnoFEg== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring Cc: Maxime Chevallier , 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 Subject: [PATCH net-next v3 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 26 Aug 2022 17:46:50 +0200 Message-Id: <20220826154650.615582-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220826154650.615582-1-maxime.chevallier@bootlin.com> References: <20220826154650.615582-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Qualcomm IPQ4019 includes an internal 5 ports switch, which is connected to the CPU through the internal IPQESS Ethernet controller. This commit adds support for this internal interface, which is internally connected to a modified version of the QCA8K Ethernet switch. This Ethernet controller only support a specific internal interface mode for connection to the switch. Signed-off-by: Maxime Chevallier --- V2->V3: - No Changes V1->V2: - Added clock and resets arch/arm/boot/dts/qcom-ipq4019.dtsi | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index bb307b8f678c..8cf1c5e6724f 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -38,6 +38,7 @@ aliases { spi1 = &blsp1_spi2; i2c0 = &blsp1_i2c3; i2c1 = &blsp1_i2c4; + ethernet0 = &gmac; }; cpus { @@ -590,6 +591,51 @@ wifi1: wifi@a800000 { status = "disabled"; }; + gmac: ethernet@c080000 { + compatible = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + resets = <&gcc ESS_RESET>; + reset-names = "ess"; + clocks = <&gcc GCC_ESS_CLK>; + clock-names = "ess"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + status = "disabled"; + + phy-mode = "internal"; + }; + mdio: mdio@90000 { #address-cells = <1>; #size-cells = <0>; -- 2.37.2