Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5965928rwr; Mon, 1 May 2023 13:55:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bXDiUzfQIyVWqpJX3oFnYvtHh34Rki3LWgCW5yi6J9xZnF5L/511VJTTaJCBz5zhjmsI4 X-Received: by 2002:a17:903:41c1:b0:1a2:9ce6:6483 with SMTP id u1-20020a17090341c100b001a29ce66483mr17476674ple.64.1682974546596; Mon, 01 May 2023 13:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682974546; cv=none; d=google.com; s=arc-20160816; b=iSO/CHnGefP8oEL+KKAHVAX5KAzizwXqc1sAq+n03p5BJQz9nDZ2r3I9qz46WqqSof pI9Rw1GAb4bDgyvy1MWJ/mI4+GQpBIXDgq73nwBmtJhyYx74HyltwpeQ/ltQBUKE9qmN 0aI/ohwiuVNwtNaNT98OoE11igzjSyH3HyYyofibDgaoB7kzJCeJQe0ZtyRC5KUik+zq jl9bdJvq1X4NINB7wG7DK0mVUQvDyfhFtytXYEA2B5UK62VMG9+x/XXQa5JJf0nl55gR 3h23+garQBOB1MZz+CGWUpcZ0olG8JHDA1nNnbG4eMYxQnMQbS2iAyWlKV3FLwWdejEs uZ+g== 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=ZySyzkpa+LDQ1V/Mnqnm2QktfICKKdof2ETQCboTeH4=; b=PNcHcugc6+flnoKwEiFolhtHEEXmqImm8p5DP5mBRmT4PQmVOyX9mD86exx7dHIhPA NirktdoX51Jep41EMmksgHFFJEh4WWeYJYxlP+Y926bOldRYkCOfjI9XdbVhSPX2bRUy +2HbQ5+Vj4wfr4BedqxYAezaHEdGso3Fum8yh2XjVcAPbwamXBud07FFs79tL7UKXdQO JsUljMASVdkYWY9/CBSwJZ39yxlxT337Ks5/2zykenQP5EwVsH2ihcqrEZ8Tk1BDXFbc IX1vU+Sj/kOWyVOY9lwc1ZbmAv3+pWtNRnV/9u188vvWztHCBrGJy0UnHVz3295d6zdw phLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WiLr3i41; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a17090276c100b001a67b3994dcsi28280115plt.331.2023.05.01.13.55.34; Mon, 01 May 2023 13:55:46 -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=@redhat.com header.s=mimecast20190719 header.b=WiLr3i41; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbjEAUwa (ORCPT + 99 others); Mon, 1 May 2023 16:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232625AbjEAUw2 (ORCPT ); Mon, 1 May 2023 16:52:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C795E30F4 for ; Mon, 1 May 2023 13:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682974297; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZySyzkpa+LDQ1V/Mnqnm2QktfICKKdof2ETQCboTeH4=; b=WiLr3i41qK8MMjbYtYNffg4z3qKw/Bt6cgR0+1IaN5x1k5J6+EIQXya9xzAXRFTnB8DJss iznlXzd4qAKioQdo17RfZOSUZHTiIJpzPQQlUkQAcGHB2Q95nKXsSyRbvIrH7BqzZ7FouP 6Q3gItWAXzz+M1buUQUB1HhH9XfUFws= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-569-kkCNlSifOZWcEboQjkRG0w-1; Mon, 01 May 2023 16:51:35 -0400 X-MC-Unique: kkCNlSifOZWcEboQjkRG0w-1 Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6a5d32ce366so2869672a34.1 for ; Mon, 01 May 2023 13:51:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682974294; x=1685566294; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZySyzkpa+LDQ1V/Mnqnm2QktfICKKdof2ETQCboTeH4=; b=BK83uax8Lsxd7zTCyuzUohN2CdAfldOjJ3HI9DT/c7R6LOzGmadc4yncRvZvFpKBeg jUPEiFmY4HRmf10hFAemcLuSh99quHba/b3taKY1ufq06aqyO5p6ZY8gxwaUb+AFigL0 C+KnMRBhFB4+GUIqoSzNGZlKXJsttZ2a2+UqpTCXP1PkGWYuD6MR2yGfKn7ldXEmvBo9 P/wZAhnFAIaozEZywLN6w+jXVHAUek64r8oWHLeHRDZHktCsmquXL82TOMn5FzOx2EKd 9B+F+012rIP5HAVoWbTLuERwbmKWK2MEeZb7SofkpJx3yw1G4ZlkzfCi86t46KY5IuoD GybA== X-Gm-Message-State: AC+VfDwC8Z+8yZO1H6Zk8O9bewIMTOjax+IfRCW9m1OfZkuaelV44ZEb jgMSRpEMdZSxLnBO2//YzdVziK3G60uK6p4u016h4tv4y0oNCCirHT6QKw/wQkCjOPDKJSFfG4O jR79EN3z3Ic9IacWqOO+rFzZ1rQ+qG57Tl1Ty8gNa+5LIuJIuqwYe6aFEj/Bzsay2XDrfnjKKZz YCLJvrzWzw X-Received: by 2002:a05:6830:10d2:b0:6a9:3a68:5f00 with SMTP id z18-20020a05683010d200b006a93a685f00mr3851535oto.23.1682974294555; Mon, 01 May 2023 13:51:34 -0700 (PDT) X-Received: by 2002:a05:6830:10d2:b0:6a9:3a68:5f00 with SMTP id z18-20020a05683010d200b006a93a685f00mr3851522oto.23.1682974294289; Mon, 01 May 2023 13:51:34 -0700 (PDT) Received: from halaney-x13s.attlocal.net ([2600:1700:1ff0:d0e0::22]) by smtp.gmail.com with ESMTPSA id c10-20020a9d67ca000000b0069f153bb37asm12110130otn.62.2023.05.01.13.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 13:51:33 -0700 (PDT) From: Andrew Halaney To: linux-kernel@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Andrew Halaney , Brian Masney Subject: [PATCH v6 1/2] arm64: dts: qcom: sc8280xp: Add ethernet nodes Date: Mon, 1 May 2023 15:51:04 -0500 Message-Id: <20230501205105.2518373-2-ahalaney@redhat.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230501205105.2518373-1-ahalaney@redhat.com> References: <20230501205105.2518373-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 This platform has 2 MACs integrated in it, go ahead and describe them. Reviewed-by: Konrad Dybcio Tested-by: Brian Masney Signed-off-by: Andrew Halaney --- Changes since v5: * None Changes since v4: * Be consistent in newlines (Brian) * Add Tested-by (Brian) Changes since v3: * Order soc node via unit address (Konrad) * Add Reviewed-by (Konrad) Changes since v2: * Fix spacing (Konrad) Changes since v1: * None arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 8fa9fbfe5d00..a2320f880795 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -768,6 +768,36 @@ soc: soc@0 { ranges = <0 0 0 0 0x10 0>; dma-ranges = <0 0 0 0 0x10 0>; + ethernet0: ethernet@20000 { + compatible = "qcom,sc8280xp-ethqos"; + reg = <0x0 0x00020000 0x0 0x10000>, + <0x0 0x00036000 0x0 0x100>; + reg-names = "stmmaceth", "rgmii"; + + clocks = <&gcc GCC_EMAC0_AXI_CLK>, + <&gcc GCC_EMAC0_SLV_AHB_CLK>, + <&gcc GCC_EMAC0_PTP_CLK>, + <&gcc GCC_EMAC0_RGMII_CLK>; + clock-names = "stmmaceth", + "pclk", + "ptp_ref", + "rgmii"; + + interrupts = , + ; + interrupt-names = "macirq", "eth_lpi"; + + iommus = <&apps_smmu 0x4c0 0xf>; + power-domains = <&gcc EMAC_0_GDSC>; + + snps,tso; + snps,pbl = <32>; + rx-fifo-depth = <4096>; + tx-fifo-depth = <4096>; + + status = "disabled"; + }; + gcc: clock-controller@100000 { compatible = "qcom,gcc-sc8280xp"; reg = <0x0 0x00100000 0x0 0x1f0000>; @@ -4706,6 +4736,36 @@ dispcc1: clock-controller@22100000 { status = "disabled"; }; + + ethernet1: ethernet@23000000 { + compatible = "qcom,sc8280xp-ethqos"; + reg = <0x0 0x23000000 0x0 0x10000>, + <0x0 0x23016000 0x0 0x100>; + reg-names = "stmmaceth", "rgmii"; + + clocks = <&gcc GCC_EMAC1_AXI_CLK>, + <&gcc GCC_EMAC1_SLV_AHB_CLK>, + <&gcc GCC_EMAC1_PTP_CLK>, + <&gcc GCC_EMAC1_RGMII_CLK>; + clock-names = "stmmaceth", + "pclk", + "ptp_ref", + "rgmii"; + + interrupts = , + ; + interrupt-names = "macirq", "eth_lpi"; + + iommus = <&apps_smmu 0x40 0xf>; + power-domains = <&gcc EMAC_1_GDSC>; + + snps,tso; + snps,pbl = <32>; + rx-fifo-depth = <4096>; + tx-fifo-depth = <4096>; + + status = "disabled"; + }; }; sound: sound { -- 2.40.0