Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2243rwl; Tue, 11 Apr 2023 13:25:33 -0700 (PDT) X-Google-Smtp-Source: AKy350ajoxc+KMGCX6xJiiw/wc14htgW+QCtHfmUZdFNUyHf49jFJ+NLQYSN1XHSHFjtRo00QWy3 X-Received: by 2002:a17:90b:105:b0:246:57ba:ab28 with SMTP id p5-20020a17090b010500b0024657baab28mr445636pjz.2.1681244732828; Tue, 11 Apr 2023 13:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681244732; cv=none; d=google.com; s=arc-20160816; b=NJhUev58bKrgu+8tbWO9SkQrk2dQ5kZ1RwA/jrv7+/YLnRbkJkRGXZXR0e29fIXvr7 o+Q70QG25Uam1wNh+BFdYEpcIxiTtqq6EjdVcR6zM+Vqo2BMkqqezn82DJDHh50tQdkJ Axr2JHZ7iBcsXCTdeq5FQNQpGi/gPMFA1SyFbx9xbr8V9aXAcyPAog+qqy5CXrKqWsw8 I+9FlpqIEvqS+wvjL6IN1Od8pG/R+x5Behh/CXKzyh85Qn9R3FLIkinqbgi2Ze+sIXh9 N1cqpuYMgwySeRmgqyUFVy0c2dGCcm79jbjI3rYaR3SLvbGHoSfK1wWoc+kOut9WYfOK hL2g== 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=duEXMDyF/EtgpxnHO/bBxdC6yz9S9tmp+T6Qy1WmeS4=; b=VPHpiQDUAjT4W5ZPQGoyQh6O7XjUTwxzKgVmMxcmbNrrVV+KSwaSFDwmQiD4MwcDLx 8ue9xe4nrpv+tgJqtknoyl9SEHzv6jyavduaZ4mkoJmjNgi/i8z+EBNcLbrqRDIzPFfZ TLye1jjAYOwUMK8S2JZGdQ6cTTKRp7mtTgyFCRsN05kaHGSmRgFlxiBVmXDW0HHUMOyr nO4t4HxZfM6dVaOYlmbpoZNrGjCspjZ/h60d2AhOb2fqBajvtCEQVIaYRhwgC76oPmTS YgimOnOm/SmMTBZauAGBYrK7QjDrpRcoDb7YbivsTJFNKgvvTQs61NIc+nIu2OwJsCp6 HElg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TFf6n/vQ"; 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 h16-20020a17090adb9000b00233d1081c5fsi3807pjv.52.2023.04.11.13.25.21; Tue, 11 Apr 2023 13:25:32 -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="TFf6n/vQ"; 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 S229835AbjDKUVf (ORCPT + 99 others); Tue, 11 Apr 2023 16:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjDKUVZ (ORCPT ); Tue, 11 Apr 2023 16:21:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3260B30E8 for ; Tue, 11 Apr 2023 13:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681244436; 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=duEXMDyF/EtgpxnHO/bBxdC6yz9S9tmp+T6Qy1WmeS4=; b=TFf6n/vQaaGCKGMUhgleuC28LLIwho1QNG4x3bnC8V8z+IHBqcPOEfqUUNGiCHlVQOY/li itaCgd/GXGdSvbqOlaD+lVZM8IW0/+rFB7anGk3Or+rr/c5BGAMP6aWlm+w78zUwwWtLmw GpJhdYVDwSk2vrCWMMO/lL7lJrNiY0g= Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-578-ofdlDo5mMQuLY_Hihd03hQ-1; Tue, 11 Apr 2023 16:20:35 -0400 X-MC-Unique: ofdlDo5mMQuLY_Hihd03hQ-1 Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-1840884e926so7028021fac.15 for ; Tue, 11 Apr 2023 13:20:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681244434; 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=duEXMDyF/EtgpxnHO/bBxdC6yz9S9tmp+T6Qy1WmeS4=; b=VKK7IGrAUYUL4I5RpDsHZ7DowpXaGyzxZWm9qAgJusQrJA3kBJxOdiLvm8FtjaG9b0 iSa56SHxwFaNGnvOMuQN8Vl4xIKKsHcrJht6Qkx2x3BqQHtH+2EqKo3vNsYzin3Fvx6S +ubefnmJgG5INwHwuTJyqoPU1fQOZnJxK+RG8DtUDc9uv2jh7s3o1iYP90wHSXwD3/Rr zX3UHi7i7JzU79UxHmpZ5DbpEDZfZ7ctvaf4ixcMZy1/6asKvMRHk9VlvzqFlKOXQE8k 3S6srYcV8qtNDzrg158r1wBaKj0NThHdUdJc0MxuRSEspBUHuUqrh5xeGVI8ga6ec0wK a8lw== X-Gm-Message-State: AAQBX9e26xgoIVZm6onyN3cOStMSb0fDdJw4n6HgY4Fk30b+qJtL3+9N xsjwOp4/akJq9mAY4y/3eEBZYrf2//T6mT87NipatKkzW3pWrd+avgzy1WTJ8jpJ5sZRE+V9z/g m2fAgKW1phHK/r5tEtAe0sAaE4EHAa0FkV10LuJ19axr3NCyGB+SWoa/2tIAr4Rdj9SjIrAXr0D Dlb7sj0SPD X-Received: by 2002:aca:6747:0:b0:389:9288:10d2 with SMTP id b7-20020aca6747000000b00389928810d2mr76537oiy.16.1681244434273; Tue, 11 Apr 2023 13:20:34 -0700 (PDT) X-Received: by 2002:aca:6747:0:b0:389:9288:10d2 with SMTP id b7-20020aca6747000000b00389928810d2mr76514oiy.16.1681244433884; Tue, 11 Apr 2023 13:20:33 -0700 (PDT) Received: from halaney-x13s.attlocal.net (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id a6-20020a056808120600b003874631e249sm5976710oil.36.2023.04.11.13.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 13:20: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, mturquette@baylibre.com, sboyd@kernel.org, richardcochran@gmail.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org, bmasney@redhat.com, echanude@redhat.com, ncai@quicinc.com, jsuraj@qti.qualcomm.com, hisunil@quicinc.com, Andrew Halaney Subject: [PATCH v4 2/3] arm64: dts: qcom: sc8280xp: Add ethernet nodes Date: Tue, 11 Apr 2023 15:20:08 -0500 Message-Id: <20230411202009.460650-3-ahalaney@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230411202009.460650-1-ahalaney@redhat.com> References: <20230411202009.460650-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 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 This platform has 2 MACs integrated in it, go ahead and describe them. Reviewed-by: Konrad Dybcio Signed-off-by: Andrew Halaney --- 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 | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 42bfa9fa5b96..fdac7f0b05ee 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -761,6 +761,35 @@ 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>; @@ -4681,6 +4710,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.39.2