Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6379492rwl; Tue, 4 Apr 2023 11:43:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bpdhaeki8y25nizCeyBlsFellO1jWKI7RLX2BuL4KjNHcpTWHgZmIsCxrwfdD8e9zcjIpv X-Received: by 2002:a05:6a20:c2a7:b0:cc:7967:8a75 with SMTP id bs39-20020a056a20c2a700b000cc79678a75mr3048824pzb.46.1680633839338; Tue, 04 Apr 2023 11:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680633839; cv=none; d=google.com; s=arc-20160816; b=IXlU9PgLAJ/cFkBWLLGxmZubUB1p37EahH3N35T3Nj+xMJ/z1QfJdoFRQloQVFkLBH 4vlbjldSHKyMcjLaTVUF1ZMHSKQQJhz0natxmRnpzRggBHk3jGl7BjGZ387Kome4BmyX nBWOwfYbx38NYqedYtIflwzKlYWJ58/If8AofMKe4bzmEFsrPNmzUjiTa14xjJg9to5X 0l1jFU4cvbk+alHOSbdMMyAtaWorHnZnZNSqzDU/mOWLVC++HAMT2OkcLYIjLe4vHMTB 9htN1lnIjp1kvSrmZftj4ATC9zlqBxlIqkdFyh4jTeXNxeYInLAP41Cib8VjUx5iPuPI A00g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=orJHNSBUSwxWAVFJS4pfzA0KQDggc/uVMZltKMKuHVI=; b=xLlZXYhiboJdDNiALCkxnGmktzxkAOwHweGk/2IvF0aQW+SFsF4zeIP0jZ+xolR7l4 C0wko1g9n/0KsDJOvUBGd94a+7P2Z7ZF/9T+RTWN/IkMZsP5SzF0DeGRCteJuJc/d8Vt OcP/mdAVce6Td4j1utHlXo+56nI6uMd0Oz81ZCOF77ZkEVwI0dY1VL3QRYxatl1ohAX2 RZun4J0rN5QUSZODBwgAEWHwqDh8qqqqX05R6h5QqwU888Hb/KpOLzIt959poFnoGxxu EG/WJiwUx7osvhb6qAnOrwXjehOD4vDuqPfXQeXqkGNR5G34zVsdUEAg+bk1FlVC6K+s qCRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfUHGnUu; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t185-20020a635fc2000000b004fc21da0340si11344625pgb.129.2023.04.04.11.43.47; Tue, 04 Apr 2023 11:43:59 -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=@linaro.org header.s=google header.b=PfUHGnUu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236259AbjDDSgn (ORCPT + 99 others); Tue, 4 Apr 2023 14:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236242AbjDDSgW (ORCPT ); Tue, 4 Apr 2023 14:36:22 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A91F5254 for ; Tue, 4 Apr 2023 11:34:27 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id g19so30410087lfr.9 for ; Tue, 04 Apr 2023 11:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680633265; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=orJHNSBUSwxWAVFJS4pfzA0KQDggc/uVMZltKMKuHVI=; b=PfUHGnUuhlmgR3aUQAX/r/U8r/ZYPX2YOetxeW8hJRaBzMotkiA9R1EF5V/gusMeA1 U1v+FlIHyLCZTiTV0xchtgK/7J2QHmFPFW0+K7Nf3Jhoq9gc37ZVC2G0mq15BeyC0JtV gnL3B5nQ8Z8qFRxblML/TWf+vlgV4vFmjPGLDm6JOKixqKIiu8zckICuxtJLx2DZaNVX IbWlAz6SQzsSOHdd6afDgL94AHR0nNgkREK4lqVSooo0DagE+yO4K0id2y6VtfP974gw AC4bgqrbxYLhBQe+8Q7YqvFpb6I10ByCboefEESi3u1K7lWnhLz3i3C3TrlUpVWI9lzW /GKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680633265; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=orJHNSBUSwxWAVFJS4pfzA0KQDggc/uVMZltKMKuHVI=; b=ih1BDBGCWpEF0ssyjJbK6F5HIhOWrcRern3sRSYGxhHrTcsi4KP0r4HZK+X8zHLnVB uPSjvaBl8ugXqIC5XdKbWZCCNPvOEZ2ws0DaLcWn5a/6DTcNzGmbsuZ+wFLE0S5/kGRd vBnHSO7Pk39GUSkFU/7mer8XTLKMn6XdIU5Zoav+jix2NyMQYNh/zFBA7V1ZrLSD9tM9 5G8alvoR72Ysu5Dr6EiatepycJWtseV//ThQz2mFsD2jigaO4ZKbbnYBnrjA/zcL/Cyc jLOUmxMMjog3rrHIsJZ0ztIQPFZcucSSC8aqgRbzI2l5dB4Zh78hs8dFqNuArboFww+V k5/g== X-Gm-Message-State: AAQBX9fPefJw1Pr9mxFLYN+zG90ONSs2uddDCDuawO+1b3eJofKgGGFr VpHaX/R1bJbON5cyTKYyhMdICA== X-Received: by 2002:ac2:5989:0:b0:4de:e802:b7e3 with SMTP id w9-20020ac25989000000b004dee802b7e3mr923407lfn.19.1680633265603; Tue, 04 Apr 2023 11:34:25 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id o7-20020a05651238a700b004d887e0e9edsm2439673lft.168.2023.04.04.11.34.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 11:34:25 -0700 (PDT) Message-ID: <0d2f0792-c7dd-7cdc-3c1c-454f445405aa@linaro.org> Date: Tue, 4 Apr 2023 20:34:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v3 2/3] arm64: dts: qcom: sc8280xp: Add ethernet nodes Content-Language: en-US To: Andrew Halaney , linux-kernel@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.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 References: <20230331215804.783439-1-ahalaney@redhat.com> <20230331215804.783439-3-ahalaney@redhat.com> From: Konrad Dybcio In-Reply-To: <20230331215804.783439-3-ahalaney@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 31.03.2023 23:58, Andrew Halaney wrote: > This platform has 2 MACs integrated in it, go ahead and describe them. > > Signed-off-by: Andrew Halaney > --- > > 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..f28ea86b128d 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -761,6 +761,65 @@ 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"; > + }; > + > + ethernet1: ethernet@23000000 { Nodes under /soc should be ordered by their unit address, so in this case it belongs after dispcc1: clock-controller@.. With that fixed: Reviewed-by: Konrad Dybcio Konrad > + 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"; > + }; > + > gcc: clock-controller@100000 { > compatible = "qcom,gcc-sc8280xp"; > reg = <0x0 0x00100000 0x0 0x1f0000>;