From patchwork Fri Oct 21 12:45:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 6686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp681690wrr; Fri, 21 Oct 2022 05:58:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72vxh7S3/79E6elxTDcXtq04vAPoYdT4Crm/NS6/66HlvmAFtikNEsgwc8xoxzMOafHDDt X-Received: by 2002:a17:902:e3cd:b0:17f:9c94:b22f with SMTP id r13-20020a170902e3cd00b0017f9c94b22fmr19176860ple.80.1666357095012; Fri, 21 Oct 2022 05:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666357095; cv=none; d=google.com; s=arc-20160816; b=QfUOjiAPMpLNRmIm1N9JC2VxPlJXke32yFr4AGY4J3CJFj15ynMto1a1RiCapo4qri zmBPW3v/HXgZ7gmAP/iRDfPiSnao9SFSXowj2Fpll/rsCRFc90qqCIxQP7HvZu8ReH5R t4cPBdbA1h6AYLKPnfM11kWYZH8/Q7qQFcZVAfsb1y10GjqGHImkVtmm30VzbZiV+HfY 8ol0EREbmXHlz72zFDD7Y3A24KqnIdPSKKU8676HOK5lyVBkP0TnNtb4JVvaHMWljxGL CwKZjsdE8OX6HAVqGJmGgvgx7fhB4vAN2gjaQR24sexw0nq18n/BkPnW/HhjgPR2qWe7 nTng== 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=ZPwF2UjPl7y7IX+Y6gImoAKgcTPqVNQNiaKw7TX3r9Y=; b=PbSzRgH8A4VMD0iCRhpbEyD0+qI1D2Wh1DPpvdC6sW9CycjWHcORTKneIYUkfSQkiS oUkE6ZI1Ui+fZbkSLKJcszGkAQBe+urz3sydBcpMLpMwjaImyZuocAUPqRMFMPe/gZU/ bgcPO3ezSXOVIHkwJcLFXFf1A/gZtvmnMqeH4VXlSo/rPNjC85nIJ+UhIE2IFuiUAO/Q 6rqrrQxY5qyazWaxjkeSPiCbmhqD3k5KCFoN4tuF3pNyoOLKhzd4/WxeFTQmlrOR0//2 A3EU4ei5jXvpmcQkd+dZAEywxlpVWYjk9nVc/06OwanzQoh8qYzl6ISb9y7nhqSVmEyW qb7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TfaArumb; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a654042000000b0045c88c3b799si25593887pgp.709.2022.10.21.05.58.01; Fri, 21 Oct 2022 05:58:14 -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=TfaArumb; 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 S229902AbiJUMqe (ORCPT + 99 others); Fri, 21 Oct 2022 08:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbiJUMqP (ORCPT ); Fri, 21 Oct 2022 08:46:15 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89430262DE2; Fri, 21 Oct 2022 05:46:10 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9576360015; Fri, 21 Oct 2022 12:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1666356368; 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=ZPwF2UjPl7y7IX+Y6gImoAKgcTPqVNQNiaKw7TX3r9Y=; b=TfaArumbxEPSY0Qw9NyxCw2g2/FYgtpNZRDflJa7HtsUGcxM8h7F00UwNr9YEJ7Vh7r5Rl cnT5yHDfAo/JoWYff4mfi4TGm/blNVJRtTCfiC36cOg887vRO1yaOu1PrZtXuE2O4xCbZk EVZfPJzM40CcMXyWK09rRta2QX8rAdGJUTBW6JEDtYq8PcjQpOOhkhqh92aNR0uBsZbxig eqpmKwy2nOwNhT9gAjfUrZiZMFR5YHmsmeuLGc4q30nx//jKKSnhpxxwmWuvV2KLPIDcb3 zEnMlOEP4Q5tPhI2ymWbiI/r/uFvIo/yrPdY+4NwnnIKAL6XAQDg+f+ikkrdqQ== 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 v5 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 21 Oct 2022 14:45:56 +0200 Message-Id: <20221021124556.100445-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221021124556.100445-1-maxime.chevallier@bootlin.com> References: <20221021124556.100445-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747302057184059670?= X-GMAIL-MSGID: =?utf-8?q?1747302057184059670?= The Qualcomm IPQ4019 includes an internal 5 ports switch, which is connected to the CPU through the internal IPQESS Ethernet controller. Add 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 --- V4->V5: - Reword the commit log 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 b23591110bd2..0092a881dbf4 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 { @@ -591,6 +592,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>;