Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp476727lqh; Tue, 7 May 2024 05:21:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSC+WqbvAhwTHPSsxz76a3bGNdHFz6BQIBRtrbMf5vzwu5HcncN0omEUPyra+EPCKf+vrP0ugy2lBBwG/lSCmc60Rms+7ZpIp/gM39Rg== X-Google-Smtp-Source: AGHT+IG8JwAHC2nNki7ZHDkamETcu7NIoS1L094UtKORBiGsbkvmAKeiE3v+oYuIfo2FNPXkn+u3 X-Received: by 2002:a92:cec4:0:b0:36c:7f3d:59a with SMTP id z4-20020a92cec4000000b0036c7f3d059amr10913197ilq.4.1715084479064; Tue, 07 May 2024 05:21:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715084479; cv=pass; d=google.com; s=arc-20160816; b=0nLv9URIwfhjeSMZR0bBgYQUgIu1zxkzE5q38RcBYSO5spDeJLg0kMIG6JzlJ38o+0 5dSF7snTwqiTRJODFbzyPbRFSejnwa74ExAqZ2cXEU+x2b9nY+FvHK+aaKBK0ByTz7d7 J+/vxIFHB6CV8ElSqYnd7M9QNRO7lxZRDr3RS3DjQy5CGAGN4Zqt+JmzkWUTcZt0d7wZ nAr+rqAe4kw/+AI8jfK56GRRSy0M3pASbosuQwJKWXuaYyOgMvEhQbv3U41AewDZMUon sav+yXc6G3JnJlr1GLDcx2ZANDt/MIgZyLkT6unXr2CTzRdUKe+3Ve2+RpdgA2z6Y8O1 8Rdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date; bh=uFwurw9SHeLs2paCRYtN6dqmBWimooBARmEyRmjTS+Y=; fh=mXv0aeKObbACqea3X5VCLAyIrKZhyShpId9COhMddNg=; b=kp0J41UFsl7+oFaaHnhLRP1NoYibpnQgkwIPAjyXR+yaiXY8Y/lxHrqSSseIlxpx4S 7d0SUU/i2XRwX1dkfV3O6YUEERGdaUAKU0lM0ujtxsmVTmbR0Fz9lBwmyYMQ1FO96UIY 3z5RzAwNs9TDNFHlC8WTdWnipiwSdlD2kJL+yICcemkBPY2cT51r11PGZkOhJh4+C+L0 QK+nSPOAZNNOLaWjWZKVxrKWtW/f+Tbqgtbbj/1WkovO+yCFwe71jyoIdP6USVzZ0BFF ozMAiVPy3dXEXLsR4W2zG7xmHYNCxzkTcwkJMzsBplHWYRYVIMu9vrkFx4clOo2x4JM2 +Evg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-171255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171255-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id by4-20020a056a02058400b0061c2bb3285esi9766856pgb.536.2024.05.07.05.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-171255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171255-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 84B25287D70 for ; Tue, 7 May 2024 12:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66960158D6D; Tue, 7 May 2024 12:21:09 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 509CE156C6D; Tue, 7 May 2024 12:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084468; cv=none; b=QsrYbP1m+V7jNjO0/Iim7M6GVS4MD+MDy8SeugUW+/pMgeXI/6eCW1f/1nQHj9BQ/JNohchWtfgmxWX3DzZcC9BTiuUf6gvepVwcq/DvYe9RlCgI1SesbBXmn19avzlzO4Kqm3L5N+lGCm2n+eTJh0bRnxrnPtNU6b8lNvtdi0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084468; c=relaxed/simple; bh=Y8fQUMzs7HZl5oQQnbJ+er0Rxfr51PVFMtxXioSay/U=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=uuEIM2NB/Y0apYmOcoWAkIdL99XZNax7FTNST+Tp6mvX09v79TZ0lDpIv81jO/pcm5y8SzksB87Tu809R+nYpGZDlDMNECsO1wFDppyQyNS33Ucpu0G2Sa66EchdVW46tTuLbvaU+gUabooQsZsrHHs5W+0mGA3rjKcf8pEmv9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1s4JoQ-0000000046z-17PQ; Tue, 07 May 2024 12:20:50 +0000 Date: Tue, 7 May 2024 13:20:43 +0100 From: Daniel Golle To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Lorenzo Bianconi , Felix Fietkau , Daniel Golle , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] dt-bindings: net: mediatek: remove wrongly added clocks and SerDes Message-ID: <1569290b21cc787a424469ed74456a7e976b102d.1715084326.git.daniel@makrotopia.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Several clocks as well as both sgmiisys phandles were added by mistake to the Ethernet bindings for MT7988. Also, the total number of clocks didn't match with the actual number of items listed. This happened because the vendor driver which served as a reference uses a high number of syscon phandles to access various parts of the SoC which wasn't acceptable upstream. Hence several parts which have never previously been supported (such SerDes PHY and USXGMII PCS) are going to be implemented by separate drivers. As a result the device tree will look much more sane. Quickly align the bindings with the upcoming reality of the drivers actually adding support for the remaining Ethernet-related features of the MT7988 SoC. Fixes: c94a9aabec36 ("dt-bindings: net: mediatek,net: add mt7988-eth binding") Signed-off-by: Daniel Golle --- v2: don't make changes to the order of clocks .../devicetree/bindings/net/mediatek,net.yaml | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index e74502a0afe8..3202dc7967c5 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -337,8 +337,8 @@ allOf: minItems: 4 clocks: - minItems: 34 - maxItems: 34 + minItems: 24 + maxItems: 24 clock-names: items: @@ -351,18 +351,6 @@ allOf: - const: ethwarp_wocpu1 - const: ethwarp_wocpu0 - const: esw - - const: netsys0 - - const: netsys1 - - const: sgmii_tx250m - - const: sgmii_rx250m - - const: sgmii2_tx250m - - const: sgmii2_rx250m - - const: top_usxgmii0_sel - - const: top_usxgmii1_sel - - const: top_sgm0_sel - - const: top_sgm1_sel - - const: top_xfi_phy0_xtal_sel - - const: top_xfi_phy1_xtal_sel - const: top_eth_gmii_sel - const: top_eth_refck_50m_sel - const: top_eth_sys_200m_sel @@ -375,16 +363,10 @@ allOf: - const: top_netsys_sync_250m_sel - const: top_netsys_ppefb_250m_sel - const: top_netsys_warp_sel - - const: wocpu1 - - const: wocpu0 - const: xgp1 - const: xgp2 - const: xgp3 - mediatek,sgmiisys: - minItems: 2 - maxItems: 2 - patternProperties: "^mac@[0-1]$": type: object -- 2.45.0