Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp957928rwl; Fri, 4 Nov 2022 08:14:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tjznFaAwHoPS3mDsKJjCmridEYE2Hyv4+EwjATU4plCsl9YISBLuroCW8T4IMbDYNRmtN X-Received: by 2002:a17:907:728e:b0:78d:f5c2:70d3 with SMTP id dt14-20020a170907728e00b0078df5c270d3mr34449098ejc.506.1667574883005; Fri, 04 Nov 2022 08:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667574882; cv=none; d=google.com; s=arc-20160816; b=t5l6bpMd4UqlwBmHAnt97rYi6ARxLp9YZsu0h14XwKVLXd0ntpLSLvqNoftuqWStCp Js2KkwiyTBACPi3+0sHo9SkY/IBc2h3KDznZZVPXKXdKM+pWDlt1M7ZS2qvkV2wu8d2V nD6/xYKs9+cyEc1tfxdsGKfoBfnwzW5xrbzYT+q/ls6lHKzZDg3qts1WRpEbaJ0cePh3 DdCVv02PBjZV7nBSCILxdlFA0gbxRPyW/57CmKiiuTvewFqVBluIXrmgmWx60KU3IBys b3IzGE5KItHcfnXuL5g183MJ0Gac6PVUZWqGMOEXXRAP0UId5D+1JkaAcc8Iu6jvGq8j Ch+A== 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=N4H9heDGWlyybibpeQVan2sHfk653swA/LCvVtdBxVE=; b=WOrTZsZSk66/tWjo4JXMZK2A6z6VBy0iVnQstSq9Qrc/kIRtu5nsf9v2XSDB1US5Pt +EohIjAsnlX6i+vCMWAMnAMLrFznQU3GhIh/VRVSdgf+mT2cUhH63fgXIBOhd5zQB5DD lD6ouNDbsJzu5IWLKHxwF7JsjY8SVwcPnMZ4eHgW7/c5+3IXXHNWAgHCPPBRnziC/NEo t5zL4Umy587u/u4PFJPB3NkqzCfKJGIrENxDzbJn6PmP3bp01n+iYUAVIJrqa4Syzbb7 hXUEmcEQlfma3a/Td+bY0uo3VbYlw8gwEZYjQ74yPyMCoaiC56uaZHk31USk/pVvMBro wwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RE2XDDxB; 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 w26-20020a170906385a00b0078d805901b1si4060784ejc.489.2022.11.04.08.14.19; Fri, 04 Nov 2022 08:14:42 -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=RE2XDDxB; 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 S231881AbiKDOa3 (ORCPT + 96 others); Fri, 4 Nov 2022 10:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbiKDO3v (ORCPT ); Fri, 4 Nov 2022 10:29:51 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC605317E6; Fri, 4 Nov 2022 07:28:07 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3B0CF240008; Fri, 4 Nov 2022 14:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667572086; 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=N4H9heDGWlyybibpeQVan2sHfk653swA/LCvVtdBxVE=; b=RE2XDDxBtp/NvYYadbfvp1yz/fdy6gDteYOCHBLfJTzvrE32UNrHWXUfHlHdldaL73R2LR vZnRBog4uesBXX1U3YCMgMr6Hj/g3bWSePWao1ZVtDdEolO9+6Spg2kGwyQmFZL8C67tIh HZZVdYr1kimNBN6FpzwjCwiw+r9vlVZcVCaccCQHXMlbO33SZIgNEzkeOc4W0EOKZNZ2cW HkTi6R2S8Z1mgexJ48Ou5tNjH50A567qkYf4vtTT5Rg/7D8dmvar2DaTVmcfBhxJVus2cj 5RaJomUAkDnfIEfdUUl5pMXMBuWAiN50JIfld1TGsYcX1vhed2E97Y888bHuJg== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski Cc: Maxime Chevallier , Jakub Kicinski , Eric Dumazet , Paolo Abeni , 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 , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Subject: [PATCH net-next v7 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Fri, 4 Nov 2022 15:27:46 +0100 Message-Id: <20221104142746.350468-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221104142746.350468-1-maxime.chevallier@bootlin.com> References: <20221104142746.350468-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. 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 --- V6->V7: - No Changes 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>; -- 2.37.3