From patchwork Fri Nov 4 14:27:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 15605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp441265wru; Fri, 4 Nov 2022 07:36:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wDf2ZAgHEmTUMZl0wXLVJvBJfUANptMMq1SreC3+jm9v39FK/5d2PCUtQfmmR4mwPRuZO X-Received: by 2002:a17:902:64c1:b0:186:827e:a0da with SMTP id y1-20020a17090264c100b00186827ea0damr36137138pli.94.1667572574105; Fri, 04 Nov 2022 07:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667572574; cv=none; d=google.com; s=arc-20160816; b=TmXc+8rh9e057ogBOtzKr7eqpCnROCrJl+cprxmcFIBzlwfjCDRJljeF7WTB1eqrvn BgMz9KNFf0ee8Mmo0Tzex056wIc8xaLOsYskeweJOw2C1gP16njhpOx1kc8+1PjIIXa5 Vw6T+EXgUffzqp6uFXQ13O4C3aC9/0wwe0ERm5a1EuW0dzJQrjOtoW3f5nIHTE9dbLVj 9vSIM7lJ+mC7Y6hlCewWJoAyMEZ+XicqLvFGHOWC0JgqhwKG6MX9umyt5BYlzoyQIo4J aIVYhWXxs4Qgee7biBsnKuGg1IN6oLKyQ7s31redyYQgt4g9qaDL72zo3gLLKpgk3SjL CvtQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y2-20020a636402000000b0047022e0d7a3si5392008pgb.624.2022.11.04.07.36.01; Fri, 04 Nov 2022 07:36: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=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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748576579170247258?= X-GMAIL-MSGID: =?utf-8?q?1748576579170247258?= 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>;