From patchwork Fri Oct 28 15:49:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 12411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp908594wru; Fri, 28 Oct 2022 08:57:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NFmwuWdyoAg27PBrLnD8L/xVpP7QkhQUbqWjzwNqFvVqW8XkUOAknGxQNZsm15kDHdLbV X-Received: by 2002:a17:907:2e19:b0:78e:11cc:3bc5 with SMTP id ig25-20020a1709072e1900b0078e11cc3bc5mr48074118ejc.543.1666972643919; Fri, 28 Oct 2022 08:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666972643; cv=none; d=google.com; s=arc-20160816; b=rXFCtmaMzGtLYNhgVXlx4462aiiMaqCa5BeTOmlaVtPgigz0YRzktWnqY2I1Rwsq7W upsIU+keIDySN7fU0YHeW5ZDVkEnx9FNx1BbZxIjuHaX8C0oiB7fkd4JbR9UG5Wyou7+ RuHouwNqwXJg0EPQK8BUaIEt1Q/i2m5jRxjBh0mdVpblgg3P9+vGhOJKnvIFVVOakSlh XIKf+91puL9aIp9vIJlduZC2rJpsJ+HX4lHOT5rRp597u5jwl8F7FW9TW32qi+LZmU0R Qd8BaXNqavM7BiP2jV48NyzotBLIEuSOZT/2aRwqVdtOPPPq/x81WO1NlwU+JluEOVKB OOeQ== 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=WQQf6dzduZVEhXLMM1vwFWL2PZjJOV8e+yckGATQmeU=; b=L2XGSriyHMjV/JGwv7Cz7V/C/xnv1bP8tNyjLUloiyFoI1nfr07GbWfS2Csz5CjEPs GqlBYEaNQC5B24WzArj9NxYsQvnHBWLORMq5ugygpuayFGSpTze0WNNS/k3OnXj64ONC 25nPddO55sE87fmBFzut0DRUnB00u10yr7TR6FwVdDsmeYkYROeeDab0qjeJLtTK86bY v0y4wfD7bnweSLxDeA5kEGwrD3cK8JaDpRN4P1EUzgWT3Z1JnjKJrNst6VnaGx4nwPnW +B8bLyg8W0IVf3FM5oWDMfD7wJ0/p8w3gDSHvYuGJqRy/3GkOsGp086k+y0RsD988Uut 6XfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HvGNbtcC; 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 ho11-20020a1709070e8b00b007879bb73291si5256918ejc.807.2022.10.28.08.57.00; Fri, 28 Oct 2022 08:57:23 -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=HvGNbtcC; 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 S229686AbiJ1Puu (ORCPT + 99 others); Fri, 28 Oct 2022 11:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiJ1Ptv (ORCPT ); Fri, 28 Oct 2022 11:49:51 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EBF411A07; Fri, 28 Oct 2022 08:49:39 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B0122240003; Fri, 28 Oct 2022 15:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1666972178; 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=WQQf6dzduZVEhXLMM1vwFWL2PZjJOV8e+yckGATQmeU=; b=HvGNbtcCAN/SyJyIwiY3ZI5Kz6U6LGbp3hgMUS+eP980SXISm9m+JRa6jCu1nZjqLoVc6E JdDjhcJ+uaIqTQASR6/s7EcTcxNN2ikeQsNrpD/6LNvlqP1Hduy8QTxN8Op5yD/aWQFWP+ VlcaS002jHKfRbJN+70FxIw/2IgLEvmwLGKe9u7hybBUidb56nz1eoL1wx1PMQNIXhAoJA CrYxfgPkrMcLzZ4Vjn3YH6cFm/iEr4ATKC4CVaxoGXxmKP4hROpwuipBAtIPsdM+EUFtPR Sad4AeW0viq3LFPhLcs2ZuWH5rX8eWUQ395ABXc4awJQ1v4ikaiPPqO7D94GZw== 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 v6 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 28 Oct 2022 17:49:24 +0200 Message-Id: <20221028154924.789116-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221028154924.789116-1-maxime.chevallier@bootlin.com> References: <20221028154924.789116-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1747947507293077157?= X-GMAIL-MSGID: =?utf-8?q?1747947507293077157?= 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 --- V5->V6: - Removed extra blank lines - Put the status property last 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 | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index b23591110bd2..5fa1af147df9 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,49 @@ 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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + phy-mode = "internal"; + status = "disabled"; + }; + mdio: mdio@90000 { #address-cells = <1>; #size-cells = <0>;