Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2101859rwn; Fri, 9 Sep 2022 08:32:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR45UpO7jD3Np0HODSlXb1ONVh9mDUVamOmEIWxeH6djgTZkUJ4FAcSaA4queHvCfac6o3xW X-Received: by 2002:a65:6b8f:0:b0:42b:77c3:9564 with SMTP id d15-20020a656b8f000000b0042b77c39564mr12677388pgw.91.1662737569911; Fri, 09 Sep 2022 08:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662737569; cv=none; d=google.com; s=arc-20160816; b=UyOluYYumaFatyv0Tv0zvG5GdvAEwkDBKLZ00ZRif4W4IVnrXNz8pajDT9td6SI305 kN00W9sDLr4pHnNqMZArD2M29REuAWexmQ+JwQ0HFk5qo3/iDnp5VPnIWx/7OED8KzZ6 enbvtzcH/ddmiHDtDAAgXpeu5Qu71Frz4XkWzyyhOT71vYqZP5OU4XZ7XWN8khl0E7bL LbY6YsEeXwKVVX+YPbjNSFo4AZZT1aPJKOto07wGxj3y6WLJR5hGS4pDWJ1sCo94yJh9 nCwr9W1c3fT45SKxUmddBZcDw5ilmsC+MkRF+R5vmMGuhzIeZJZIJcwuoRy4Ppq2Nomo PawA== 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=l3W+cN77pdwmdquczGiRkG+k9n/6OnKXFonxm0r0J1U=; b=XVAPXhl+Dh1kAXGeGDgKstrQdcqmAUqDqN8QPS00tZTW8GPtBzda2cyaBlXZScCmbv 4op/9PGwmpfSHUdkRk/oc4h6xiB68syIcCaE3OiT/If1tnz4KvAU1axAgyzqQl3kr7nR UaXnULi6bmeKspX/E8k3XLCZJRR16RyTWg0Y+xVcPOdTaf488BMBVL/2IQyU9n6DgEFj jn+hYc3C/VUlrD2f2yvRpwKGQoDufnxhQfyG7EfQMCmakvYPS1G21Boti5Rg+oBmRT/y YHnjHm8dkh0tThDDPFjRtvkNxBDWo9ENLzeeLhLiJynR/lap6Sc1ld7INYhtYqVgR0wc hX0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RbirY5TY; 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 d20-20020a056a00199400b0053b553aba8dsi954932pfl.278.2022.09.09.08.32.37; Fri, 09 Sep 2022 08:32:49 -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=RbirY5TY; 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 S229940AbiIIP03 (ORCPT + 99 others); Fri, 9 Sep 2022 11:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232383AbiIIPZ2 (ORCPT ); Fri, 9 Sep 2022 11:25:28 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A922A4F387; Fri, 9 Sep 2022 08:25:16 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id A1455FF813; Fri, 9 Sep 2022 15:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1662737115; 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=l3W+cN77pdwmdquczGiRkG+k9n/6OnKXFonxm0r0J1U=; b=RbirY5TYUHf7ZBqCUqS29y8Gud8xhlGPh/2iLnvZvklNx8MTE5FvXzxhnSA1CJg+n9gbt4 8WjkOJkiY6mrgt+FR8lxDZq646Dw6Z0qn1QAlUhIWntECLVtkyd2JM6Vl8ag8YEd0J9FzP injFPwtlUGSHILQikdyeXNjSRUQ1R+tAHT6qIZxQIqFtOsOlst5Wg015MHAplkX+TJeL7z /50B0j7wAvNXI+ezZQ9r6txIII+6Y3NIMrWgkxOcu07UQgk+CijvinwCzhLqvENBCFti3j n+kLIhR+WP1sD0S0ffc5bKO0sp8ZCOtO/mbO88HaA72exPOT28nmIkVb3mjlHw== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski 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 v4 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 9 Sep 2022 17:24:54 +0200 Message-Id: <20220909152454.7462-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220909152454.7462-1-maxime.chevallier@bootlin.com> References: <20220909152454.7462-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 --- V3->V4: - No Changes 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