Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp977480pxb; Fri, 22 Apr 2022 15:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBEgEqVhMfRjcWv0qf1rovUXZCUgPcRJ+zOlZdjEiatJAmJQ5pMrFwRUIw/towkOZSrbkz X-Received: by 2002:a17:90a:1509:b0:1d8:c22b:4d61 with SMTP id l9-20020a17090a150900b001d8c22b4d61mr3651303pja.78.1650667647382; Fri, 22 Apr 2022 15:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667647; cv=none; d=google.com; s=arc-20160816; b=MCaweJzaPhx12ZCrg3iEw3PcBVhoUJceFI0ffz1ZZIi1s0CwZiI+RY+0xYGoxq5cbV +cuFlu0FyTmzlEMZbGbd83x52QswSz3kzvFrixoZNn4SoX8a+oDssfIsaw7uZ/UifIVj ZafVSoZnz5nhBPx2EXIhLNzZtDq8ovufmWxuiMwbkRqao1Esfs8oEKQq/xi+UNKnvFCX M3FS9h8N5RHoXcylx/zmO6FtCN1IdrmCLiW7AdVbEaQDjVcpCBVzw5E0kAaWIhERRGVL +BRWByD2rvh3yTBvStGGgN+nXlByYb7YKTrx/Vkd0CF4ZY75uwp+gV7J/lRKD8zCseMq sMjg== 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=VPD766nSJcaJm4ocTejvtHL28KZVn5XxjnRSnnmGrFQ=; b=PV5MJN5HVi9jdxrvwIWpMicoeZU0v0rxKSmTKn2o2UTvEMaReV5adXBN2ta/LtVOFa puyWQDm+RCae77H3IBAI9BLbd/5Ap7VOWnPYCacpop5lcPxn4VeYFndXIQevEfmg6mjb mKAVBNpQlQ19E5QvxIRZOnhaLwPoT6R0CdIWvMXqmQvC4E8cyFVD7w/bEAwNmr+4Abmh +DBAB0LBI4lBAI/IK+QLnYycRdhFxsKPNnXs6HKGPffII1oqMXySbOEWZQZFAKcu+DQc TFEIUsJ/9DNquF+FfCBDbEcilxkuqN4YnrwZaXjA3L9u4mlF5jdncVxaPWM82L8qgWUd 6nJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bCv6PLRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id on11-20020a17090b1d0b00b001bf085cf895si13243834pjb.39.2022.04.22.15.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bCv6PLRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 222B829A0D5; Fri, 22 Apr 2022 13:36:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234635AbiDVSIl (ORCPT + 99 others); Fri, 22 Apr 2022 14:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237308AbiDVSGt (ORCPT ); Fri, 22 Apr 2022 14:06:49 -0400 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 604B0CB034; Fri, 22 Apr 2022 11:03:53 -0700 (PDT) Received: from relay2-d.mail.gandi.net (unknown [217.70.183.194]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 45B50C4ACF; Fri, 22 Apr 2022 18:03:38 +0000 (UTC) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 047FB40007; Fri, 22 Apr 2022 18:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650650598; 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=VPD766nSJcaJm4ocTejvtHL28KZVn5XxjnRSnnmGrFQ=; b=bCv6PLRKK5d8jQ1HlJ8AsG1+dJijAspReLv2VKaRrr8cZQLihn+NrFwB6KhGWqD0yJv8gD uh916X+ONjxMXAfQ9VA7ViZ3o7vOka0yr67Ofg1Si9MKvoS/Y0e9rqzWd0OAvXCgsENKcw tWQK8f0uxyNnaLkPMW7XZKnwhtOmFDt+h/8MjjfaA6yrMXQID7PuyIkjirD8itof11wapP fuQnHlBU+STlgoznqezTMKUxipPclrsV/WojwpYzAncK8S9xzEvgeJh+rC/MxarPA5bpSB u7jTqgPodjOhxxWHGAl9bq3zEeOXJNj0/N+12IKv5He6qPLic0i9deJYJ69qNw== 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 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 22 Apr 2022 20:03:05 +0200 Message-Id: <20220422180305.301882-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422180305.301882-1-maxime.chevallier@bootlin.com> References: <20220422180305.301882-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 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 --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index cac92dde040f..52761c801258 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 { @@ -668,6 +669,47 @@ swport5: port@5 { /* MAC5 */ }; }; + gmac: ethernet@c080000 { + compatible = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + status = "disabled"; + + phy-mode = "internal"; + }; + mdio: mdio@90000 { #address-cells = <1>; #size-cells = <0>; -- 2.35.1