From patchwork Fri Sep 9 15:24:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 12971936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 212FAECAAA1 for ; Fri, 9 Sep 2022 15:27:22 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pDFtXkjspyKbHHlvK+AH+Sc7EThh6RgQfRJ18dwsvFg=; b=hPCWieELUa6YLN EI0Mby/GUJjh+ofbW89r73MfoUJVlg2lA9lnIaKEJpyq7vcGqQlJ7LfmzaFg+34SEhhkA9/CORRs+ xcO8B4+fPRwOPAUo/7F/h7XL9WoMtnIrRW7CDwMNr8RFsBN38MmH5uxyKaZB3tvkZT3OMf99BS5Df ESwYJ7k3Y8NzC9ir8Iv047tiexzkN/ltHy+yV+/cqTry8c5c27FPNZO4UMrnncxLTLdQUcvgLobJF x7eMFwd+qhLJ+j40hegVvQC3uUbmtJdGlh5vbbfrbO9r/NlDGhse0YpcArsadTgTVc+uBN4gNg20+ MSf2C84AMc4HTWH4be0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWftN-00HPvh-6s; Fri, 09 Sep 2022 15:26:05 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWfsb-00HPak-4y for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 15:25:18 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220909_082517_517334_56E27977 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Krzysztof Kozlowski --- 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>;