Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp552409rwb; Tue, 29 Nov 2022 02:10:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uUar+gTOf0kVsw7OPNaXPwnLGwBi5gYA+5VJV7rdJerZ1YvsCgG8AxFH8ADDWKsBhnh5y X-Received: by 2002:a17:906:3096:b0:7ae:eae9:25a5 with SMTP id 22-20020a170906309600b007aeeae925a5mr47398141ejv.394.1669716656430; Tue, 29 Nov 2022 02:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669716656; cv=none; d=google.com; s=arc-20160816; b=Dm96ohQBtTeMPLgrH6NxA3EZC6LlOy+cAO2jBMPz5xjSzHR/pfEzmm/P7ByhClCbyV GvsuZTVF37qcke52Mad9gUSmPUYKX+DmqKpAqPXPp4FQk3/j6H/qARhtV2rf7iEgDV8u rBlmklfZywO5Wa+HHY/rQhdbXYi98ygT+DhEzcRFcErRCW5a/dokF0U2nb1F6ChLahGV 0b3rDgJEkfNnqgzIW9dTrunf65DP+4xgu4Urrkr/RgpCOLa4rZX7d1bTXMUssFgN5krj wo8zO9sj2Ml715u2J3lJaSUpzkBW9NlQB4YYN6z1ZoPhK59l++2vxP/0Ud5AqowJswJm ia3Q== 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; bh=5fRaN9mmpeAu9qXrj0O5GibqEnZX0lR7dRlc6JnOUMU=; b=X7oDB1KPjRbXDCWumhMnC52PyBPvwQO1PYVJdWwqD+vATLD0B4tbBZ9THHP/xsZdNP YxIY7DkZClKbIIARatXsv1Cf2mCAc7aTfpRlN/VJbFyzryFXT6OQyDJMiexwDVvnVyyx MhBNHYM4IaBox9JwjNSvWAz0Ygk0gLIbU3MPENzicvZLQOqK+EotNOVX+5wftxcwEOoV a4/N0/b9LVeIoBMWc6DtmZyI/mvPyJ/hiW2ksMx7TH2CzzaJL+kehzk8d2uDPDUA7LSq iSlcXlaNy/JKGsssXRGGAlXg3KsPmPAQ6X+FtN06pF/q/76ZE4hxcglF4JHDLDiw27xv aZXg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg36-20020a170907972400b007aedb84056csi12428262ejc.718.2022.11.29.02.10.35; Tue, 29 Nov 2022 02:10:56 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231740AbiK2J5F (ORCPT + 84 others); Tue, 29 Nov 2022 04:57:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbiK2J5B (ORCPT ); Tue, 29 Nov 2022 04:57:01 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41CAFF34; Tue, 29 Nov 2022 01:56:59 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ozxM0-0002sF-3D; Tue, 29 Nov 2022 10:56:40 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Chukun Pan , "David S . Miller" , Krzysztof Kozlowski Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Wu , Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] dt-bindings: net: rockchip-dwmac: add rk3568 xpcs compatible Date: Tue, 29 Nov 2022 10:56:39 +0100 Message-ID: <4692527.5fSG56mABF@diego> In-Reply-To: <6f601615-deab-a1df-b951-dca8467039f8@linaro.org> References: <20221129072714.22880-1-amadeus@jmu.edu.cn> <6f601615-deab-a1df-b951-dca8467039f8@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Dienstag, 29. November 2022, 09:49:08 CET schrieb Krzysztof Kozlowski: > On 29/11/2022 08:27, Chukun Pan wrote: > > The gmac of RK3568 supports RGMII/SGMII/QSGMII interface. > > This patch adds a compatible string for the required clock. > > > > Signed-off-by: Chukun Pan > > --- > > Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml > > index 42fb72b6909d..36b1e82212e7 100644 > > --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml > > +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml > > @@ -68,6 +68,7 @@ properties: > > - mac_clk_rx > > - aclk_mac > > - pclk_mac > > + - pclk_xpcs > > - clk_mac_ref > > - clk_mac_refout > > - clk_mac_speed > > @@ -90,6 +91,11 @@ properties: > > The phandle of the syscon node for the peripheral general register file. > > $ref: /schemas/types.yaml#/definitions/phandle > > > > + rockchip,xpcs: > > + description: > > + The phandle of the syscon node for the peripheral general register file. > > You used the same description as above, so no, you cannot have two > properties which are the same. syscons for GRF are called > "rockchip,grf", aren't they? Not necessarily :-) . The GRF is Rockchip's way of not sorting their own invented additional registers. (aka a bunch of registers While on the older models there only ever was the one GRF as dumping ground, newer SoCs now end up with multiple ones :-) These are still iomem areas separate from the actual device-iomem they work with/for but SoCs like the rk3568 now have at least 13 of them. _But_ for the patch in question I fail to see what this set does at all. The rk3568 (only) has XPCS_CON0 and XPCS_STATUS in its PIPE_GRF syscon (according to the TRM), but the patch2 does strange things with offset calculations and names that do not seem to have a match in the TRM. So definitely more explanation on what happens here would be necessary. Heiko