From patchwork Sat Dec 10 03:30:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070195 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC973C10F1D for ; Sat, 10 Dec 2022 03:31:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbiLJDbH (ORCPT ); Fri, 9 Dec 2022 22:31:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiLJDa4 (ORCPT ); Fri, 9 Dec 2022 22:30:56 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C781687411; Fri, 9 Dec 2022 19:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oP4LHDszlE+DjBqC1HeGY1yiQRqQmlSqV4eW9ky70VgMTzt08IrZs4gfZXk+7IhcwEAvUZmYchjKiJh8F1/S8uSlIPZDk5p7EAb0i5POEGVT15Hm6m1x3OE6dPhYh17csOrp8dLMbqP8afaBqfZzRXQUwuuYELlUbw9in9oYGwnDkA0Y+uOo2JHCOv/JMcZWJPio2CU81couu07C8Dy6lGsBGDkd1odB9QheRj2rqyFVRZaWPHipJK22KCjfaqd9ruF7YL44RHyzR9wYgueDWKXLunjCKi+dDbzcGE8WLu+rKrOzwPt4Vg13AEv2yZMkofjhoUj9APxX9knE73LU3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/4yn3kxIvlE+alNL1muV57r1ci1bk6sVONSDM89pQ/Y=; b=XPdXbnEYpEhwrGVTrIeVKsqpsNMJrcUebq1IwUgYzGSWyHSDGMMvGyK0dmMeiT4au0ifL3J3k1TMTZFpQn9yLs6RXJxKDUJGllp//rSRvKikptV3IXwijREK3wpL/npR0WOCxEZj+1RWj8gL+QsiBGSNhdqvWQnE8233fwt2N4cNy1dW7s5+IMB5z+QRXzeZZ0dfm7DXYPE+tLoI7uUsD/BJivfUG0GXkTCQ1t9oNyO9wSFyBEdzLqzB52uSuY51w1A6SdzG92EBofGOIg/dN4Gu+LrBcpupytvJc4K4LQyTEE1ZF1GO1f+KS/DZRnHXYnBLrDyE/hPTxbRGEixQBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/4yn3kxIvlE+alNL1muV57r1ci1bk6sVONSDM89pQ/Y=; b=sbL9Pt05wFlrgxw9EBQDC8kSd+c0GTYMG6UxDN44FYnT0Cvhpq+iTmOusJys7LIqhejqtmKSVpqXxTXqXYI25hilyjWq6+BG2YlQQzFcHKC0ZRvzfgcFAr5IQ9ZAr5GUETcYIAp9qX+/I7jYcYs1N8FMggKDISiwwlWGt1EXuug= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:30:50 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:30:49 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v5 net-next 01/10] dt-bindings: dsa: sync with maintainers Date: Fri, 9 Dec 2022 19:30:24 -0800 Message-Id: <20221210033033.662553-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c10eb3c-8557-4563-f3c9-08dada5eeebb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MUqZobOz4YJzT9c+YvtY6SkOZ5C3agn9qG68YNyvi7lAWdND6EzT0wxfAethYr6gBL5TydsDrP9nrBMaqTfd1wCJaDTdUogud+iKn9KxtneqNlRQX3yO99yp8/fbiCLe0c3/b5KUehlBMuGFN56d1cnRD+LAcEGhVndpiaHBaPmpvAgY7ffj9EKQU9XD8o5udAgDhCVM0C8d5eDA577zI0aDRRSbq3jj76gVb8NerizyAtKOtJtTPDIkVgX7j0ggjunrss0a7o3QeMrL1cWaWrtJbuw6SdUqyW01cNy1uTxA4wzpQPfsJARTf/L6Jw++MQRmUsKi3frU5dIU/8ix2NdmB4Fmq2r1eF9to+apShO4RqXTAYOft1hKy1Xm2CotIxR+FwiFkrls9RW3e8a1B1N7Ef77mYAAJ0m/retkyK2uEpp8KzUYULWlh8ELlj1Zcz6g2NTSpJnyk2GHzRUt14rRFB38hL51O8XM67GkK62oo72zwmjZHjcNdu1dCQC+8XC5kz/vvk2MFA6g7UTBh1LdhYJg21hRkkywLDPwVoPVlhAzyJ5oQ4VuhY5dTiGUwi4VsjBzL/UGHRRSDqtK6oSSUQWGUs1DzXvvFq012DorQ+h1g3gtq4hzVzwPlXVR+/cNOWn2rEpwzkEsODA884GVyNWZe+Syhyz/uprPhCnZAmwO9eVdsha1ICOKwEO5wwx1tMyHHJVR9c7lAERQAA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(376002)(346002)(396003)(39830400003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7eZ8FfbCj3Ac5ycPgVUle1e4oPliw2VpygoiQD1xWPDYNKwHksbiQy2oCqNOZpoHztfV1bIv13Ns6Lw6GEyW31u9C6Wql8GgNVlSo/XAkmUL5MCLt0cOcZammsPRJ1NQgMiYYSczDYosdSQEv6LwITwArnbwAJJCs7j8x5ZLLkFY2u1F/Yk0Ifj9PaTWs3c268UXlVmyA+I3pT5KcDw/5u/M5mDzVCUrNvBUPvhQJ9VK+ixtSEHG2yG2zP3LHUlW3R/fpNbYeHDBLUNKgf5BqT8uB/Ufc93+wrnPXUjDXPmHcuikkt2EqvZYYyHsEWFat6Q1Hl04bvFQbWnbO4FMqeFUeRI/aYyMSqkCLWMvUNbQqmeh2FmbuaomJjDbj6cDHduQ/QGIA4wlUQdc4WIEGGyyewFY/FaP1OiAoFawFVoQ3CFnK4z1zIr49TYfOuX+42DTQZOxDMd4o/6J7UE+pr3ZnSapQ6V0eg8q6xCFnfR9Z5wJ/8RSfQP+VNau0ptVN0fG1aMRlpedlwcPvi7RXW8DNblr4SB8ehooZTclDlWqWxF5kr1lgIT+mEBKY4infNwENjPJrRGOzk2T2cbeeGXoZQYM9CbIj9MHssy6BQYA3p8l5hhEVlto4jNEy81hWaizkdXwokBob31JPq2uzYDrNUjo+pMVVA5jWNs9G+6RbU2Cj6p3Ozco6UJWY5Z8QyCssHTwHpluWhm8c0+d7suTbzD2VztG7mu7mQaBkXFdR+ayiISDWFeUFWkkYxlkBLiz8LVfozJvO1m/AP9GNWOhUHfFJnXTQtMpJMwokd3tGyeeRAT4JqxJVAb5tgAafrxLycD3oz5xz6fw28k01WlNqpnpUndhIrq1UNvZtLslfIcdZapMqEI9Yy8i/Fkv+Vnjdj34aUvv3meY5VZfvS5HbJPaaA5vbg4erdQfV/rebA1AHWtb34ZqUIoBZ5HWXMk1xtr6QQvtkFGBURf5J/XDnXgOLiWHLs1pwLZzxZtyFRWaCdsUUvNjVPf4v76a5KDNmSb5518q+3q/2SZyRem51CRKJQueOym6kdueVL2ml8axdrkxYoj9/RaeboMLSK1dNlHq/UyoYb6/BhUr2B7XUTgbJ9nriseUoDJJjaY1cGE6Q1BcKiN2u3wvuO3MhXT4SvItDWmYD09mu1sV3nZYqCnzJYOF8GmtbKW+2vujJOlmLFYGlDlBWW2B0fq0SgRe3Qmd+Ln99+Td1NCCAs7Y+iagI9xBxJQ4tM3lhFQ34oad0bqHCYgfM7ABgPubbqounThvRqdzgMnH554p7FR81m66Wc+I/zZ7cvFJ3fxR4QbPpTJHhbNNcLD20YLmA+ucXk+cnVAgO39AMFnrDInFNWfnbsrhxJXe8xkLHBiAh2rlwmOuRxgLE0veCblno6hIT55oUekPOUP6JtX0K0ncdqulSw0PVuabwj88vb6vdssbZG9TMbLlWf6bASfG/hyiuC4xpypFiUdzTjwsMvgzRJaWj205q3sa2JUl1BPWXRgzfI7iWqmEBpKXkPqedAp8l5cu74ejhj7p4fXtqWZcrEwUYuuJVwR6scjI1ZjGYeVO/ImHlgDjyASabAaMD8OIf4BzMwyzSuge1eFoSAfPatyp6B5WCy3KhgCcKM4= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c10eb3c-8557-4563-f3c9-08dada5eeebb X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:30:49.6078 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TmbS2K0ezAQ88cuufmd4OLws6ZvwpHBgqY/Ij5qa3JEU5v2fh72eDo1F/FXyQPp4ioVKtm9Oh3W7Z6TB3j8Wi6LrFRKiGZHqyNWBoPMSQcc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The MAINTAINERS file has Andrew Lunn, Florian Fainelli, and Vladimir Oltean listed as the maintainers for generic dsa bindings. Update dsa.yaml and dsa-port.yaml accordingly. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Vladimir Oltean Acked-by: Rob Herring --- v5 * New patch --- Documentation/devicetree/bindings/net/dsa/dsa-port.yaml | 2 +- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml index 9abb8eba5fad..2b8317911bef 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -9,7 +9,7 @@ title: Ethernet Switch port Device Tree Bindings maintainers: - Andrew Lunn - Florian Fainelli - - Vivien Didelot + - Vladimir Oltean description: Ethernet switch port Description diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index b9d48e357e77..5efc0ee8edcb 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -9,7 +9,7 @@ title: Ethernet Switch Device Tree Bindings maintainers: - Andrew Lunn - Florian Fainelli - - Vivien Didelot + - Vladimir Oltean description: This binding represents Ethernet Switches which have a dedicated CPU From patchwork Sat Dec 10 03:30:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070196 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A688C4167B for ; Sat, 10 Dec 2022 03:31:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229815AbiLJDbI (ORCPT ); Fri, 9 Dec 2022 22:31:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbiLJDa5 (ORCPT ); Fri, 9 Dec 2022 22:30:57 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773F38B38B; Fri, 9 Dec 2022 19:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n7axXMZU5agFtM8CT7wiusAYYAcmHfxlAOIdW7BFyIDkCzzTWNfcWp2WzOICOfaJgvJemyGOXD55eOEW5ZogcpflvWvauq6Q7ctK1vzTPhDb2A8VIXL8PHlcQM4dkOkdshjJsvpp07h1sgrq+/EWwlAd0RD9hDTn73M06t1vn8zFnbwS3gI3hi9RIxqIMSjdLPDl/czIGJ7Uqd4a1V+0DIGVUI3cSyuIp1AAEEpOcxs5hnxm1GVNLI3s+rTYWXG/4oIHgcKlMyk4FhfsZ0Ijcx/FNe9CsQ6wLarjdpP30R3jrMNmIpFO7qlM59WGke/8C3ycGLpCSfUPR/wfA7hNSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yjaMZnGag/P+VQM6ozRTghG4Ww1JDT1CjIpPmJJncEI=; b=KHxhGTDOAyNmhhKqQaAWcRxwIglOCnjw3za9q8HZ7f9lt3/aT0aylDSDKJ0dTAw2rwsuaNh4c+xeikarQXRtj+Yknzvl5fGzHNpbpjWOaxABWCsT9BnaBuy3oFpfENHldmHlt4CAOQBpUfqR+qPbSG+8Tp+I6+USCByFQOxOxxJeTPBbXI/8TX2Wy7qZN6w9adGOeX2GS/lze9166e2tX1aLcpx5QGSE9Om44CipC+fz+lPXwX9woXQYUQe3psyV4w87NrWsYSB13B3Wih11tji0hdFER+QDZKJwz6rgsW9hxxlR+PB4yf1JuACYMWYtc6WQIBnnkXy6oTVBCkzVjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yjaMZnGag/P+VQM6ozRTghG4Ww1JDT1CjIpPmJJncEI=; b=gOtHhIGwjc3ZEZ43aHdxJUeWOBj52isFAagDPR6fsqOF2uUvT09ZwkBbpwc5ILFccJNYF+tOiA9mIlvIzRWQE8uyJPzV5GbnFNLfuNKl7ECttfKx18JJigybqu7jByiUP3l4aRIAxY2NDpkLV8DtsgPr7A/VjJcDqy4M5fkRSno= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:30:52 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:30:52 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 02/10] dt-bindings: net: dsa: sf2: fix brcm,use-bcm-hdr documentation Date: Fri, 9 Dec 2022 19:30:25 -0800 Message-Id: <20221210033033.662553-3-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: c5f107dc-6538-4a34-c716-08dada5ef03b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KiED3mnu45pl8kbP0h0d6ujPmteSGe6/ouAvEPZB6cmUug9WUg6QGgsGRU0+NM53BZP0/HTQsA5CrozaO01FR42jRt6JNDL3hOA3L0IgHDblD2TeEJ1rYTxb5DlUcmsFXpEDGgVul8AHYq2nS8VxkzAO6IIP9gfreDzBTLm5v+T7mYOH50Ocxudjw+8MUlmUwaHwr5nkEniBRCEoAXInCZOzHsMNy9XGKYRLOYeCbxU3yK/1GxOn5ujWb8j7eQnOv951IlVKgGi1sD/uyC256tjhGc0moPTaIyITEaJJ0GOqcJPNzcawBCinYztIFKQ0CxY2gM41AZn3mjStd6VKRjl+pg61wjX1t9/Bhw5E4+ndoDne737XkrHZFFA30QDyE65ZrokOLyDBVUUIOO4DILDt6mqfajrC3dHxZIrqSRZxckfqh5YasOTGTapGaONgnsbBNkrK2yv02zQ8n+GTMxpc3EQ9lRM3N6r618Dm91r5oPin4TBmrFSYHHwBwyprZhqpH6rQoeB03gjmztky3ck5VF5Rnij0GhrJH/DtniU93ZmcQxzCIPRw6nGVpDNEapPcb8z1aEi/MBUGaXscPdUDCBS2Wtoikleq27ydJ5mGVT64ni7iTIQaIYyKOtwd98sR2UvJffFNwSvICBjxQ17tbPZiJK5taA/J30jVZG4qI5zW5YLTGsHont+sVTju X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(376002)(346002)(396003)(39830400003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Aq2S7LE4Y9oQ0vbnhkTK6rXMf6M16IBccKGNrIVNYt0Lw8nrs8kz8QGjBcm/pVmbYXaGItscHbESnARhfliIMVNJEx+ZuxSs6ZS6MUV+F08HUNxGDSdl9YK58B3jT9g115RJMjmcRS7Mc9RWTifVIyySzUbHGOHTBpjLCmf91j7b38QKMyAxx41IJlpYBvN7oRvp/MotavGsYyWiTvX9gE7ZoTjRpn/YAxDM5KD/t392G39brxsWArc+9u0+weanePuEy6WsHnp8uAYYxndKoVC1BxZzAwHYKVwpXqrYuiB7ndUZSK7rdPaiselydvvlR8M3rSE5UlgWV8LKGLTzeoBw1Ljb7/XMQpwzecVtY/BFYwMtpFm4V5haK4rT0OYLMYDfUcgm/Lgh4PUoswHOR07rMfmUcFblCoErO7EEF7bQYB0DTO1yEFEdaWFigWONeGzDMUeYS9GpkkKFfNAH1guLnP0l68ea3Gds8IrdGTxfxboukQNsP1qERctkdwaC2goTyaAfNVQXfk8yKO8pPQdBetIlcF1McRfaiT4PK4HUGXxtoISk6IBUYR1p0pjkR9kVBC8SCwlxVmNtxHPYVspX5sTi3ukyRdBP88zq2bzHSR3C9y2qeFepat7Lc7Ca0u3Q2JGSQI2YXXV1W2bkBeBMcZ2CFeBz6QTRFvi83NiHBfwIm+R9v9T1dIlcM79Maw/Tp6SzT9UQEcUnAAuQl71AyGk+sXmzg8x5XjbaiAeZa0GPn/u4wniCPYI6b6c6UqxqTVRV1SaJm3LCw9x/rz6mrHuxj0Qgj+F3FCYMlpy1SmtMO1zz1uZSIB8q31+ziqGuRZfzrT0nRKFIWBJlsYMVjYY3gqZIunyGFqbaGXRC8h7O+U+5zynQA3UqL3X9pZdZnQRHFNgH7HuQ+cL/5770RcwL0qBxyNTdIeOvqufLlWnromFfnis+Q73QGmFFqDyb/v55xVsubl5Qb+MMNWyxUl6DgGAZ/JZK9G1u0TSNR+oKc/PVT/luiM1JVfq1vNU0AAQsoD8uMUk4MI+D4Buo0wgAG7GMj6oRZ24VZRX9xXsJUwhpQWwxJOluCKQswkKvAORtwrLc+y3GsOQ7ug5pLh7aZl7NBEHCP+66PuExqIaRMtTscQurdXEBjvPeT0xCpVX/o7Zr9hCtrpnefpzrHVm1SirI68zGwwQOnp66ip8lK9uQTFBMKp6940J8hEedn7PYjCbqJob60+IhwZM7KIrRedAP+AYEurj/PeGkhLR63cHKwGy4/FM1hPDWVObVkWcktHGs9VZ6+Ucy2oJWmhgV1bNmVTYKSHFjetj/L1M5vTrk9QrEIh5B8cGE7nnn+8/fpOJLCjwqtDVxM+WjDxD4LLZEUuaZmzf/FzxT9C6U9B48wiAtG1zFZpXI/yzAJRkikpqHlevJjxGyNqbWrIio7gzEsKFKU2VFGt70Cbxx3/iDfdi6wbKmT+g9o5yLBXH0YAp1lfSVuPCWputGgsLuFnppJ8Xe+lQrNt8KHnQRwjGjoxp24quPggJ/9ZfOFRzGLEp4UOXTnrjyYftpiOAB+8NgrpOnmj8kxAIc1NOwIbMF7A45bP/vt/QY0xUQEH9n2O2FX8h94//q2g== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5f107dc-6538-4a34-c716-08dada5ef03b X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:30:52.0451 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9x+dQ0IeQs3DUjz6KqFRnX0Flnwg1bCKCNFh6HqB0GcAAe88/KF6vwdT7hDAjGf8xt4F+XqhRwaDpt0NTfi5TMVYl2bH9Y4PCqdFHoN/wxo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The property use-bcm-hdr was documented as an entry under the ports node for the bcm_sf2 DSA switch. This property is actually evaluated for each port. Correct the documentation to match the actual behavior and properly reference dsa-port.yaml for additional properties of the node. Suggested-by: Rob Herring Signed-off-by: Colin Foster Acked-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * No change v3 -> v4 * Add Acked and Reviewed tags v3 * New patch --- .../devicetree/bindings/net/dsa/brcm,sf2.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml index d159ac78cec1..eed16e216fb6 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml @@ -85,11 +85,16 @@ properties: ports: type: object - properties: - brcm,use-bcm-hdr: - description: if present, indicates that the switch port has Broadcom - tags enabled (per-packet metadata) - type: boolean + patternProperties: + '^port@[0-9a-f]$': + $ref: dsa-port.yaml# + unevaluatedProperties: false + + properties: + brcm,use-bcm-hdr: + description: if present, indicates that the switch port has Broadcom + tags enabled (per-packet metadata) + type: boolean required: - reg From patchwork Sat Dec 10 03:30:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070197 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B21D1C2D0CD for ; Sat, 10 Dec 2022 03:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiLJDbJ (ORCPT ); Fri, 9 Dec 2022 22:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbiLJDbG (ORCPT ); Fri, 9 Dec 2022 22:31:06 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 844958BD0E; Fri, 9 Dec 2022 19:30:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ghE+q91EoCOxQSMLFD073DftC8mwvVxgvHA62c3d/eJqD3mrSwqO6+bQ27r+3HtVWAk5bD/MWYDOajRxJDzaAfCU2SNWSIvwhrDVwTbr3hXr890tWpOphw/P95ajaECDpp/tEjMIzLZxb6sg0zw8IgNvCvG++khn3C/m7BVa+FuToBk26RAGlaQLAXpkTCawa0N3Tr2jYBaA7XmiP4k2+71O9gzpK+KItP9E9vJyBpzeefL8azSOggww2YYR68fWJJw5ev3dkAKSryPUlFnyQTTEUryAjbFHw/23z0vnCou1lDc52Up1l54+e8pHjzjR3sTNnlxhr0VKpqUUZLIpAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XC7UA9mftHdkkMMQIkwVhKskvNJ8tSYmrl1feSalOcU=; b=ftH5yG0J+pmIjAzmtku4j+NudqSKqaTp7SQ/pDxRDabnxfq7ylu5lw4TDrZ0Hy/mn6nTZtITVac+mRYrZ3WxEi3yl2MRVZhrMsYvFXWW8snhsYl93OFGC86Xv0BCtsDALhcwaGiqAJJ7Yme3qYZXRNOIFHhAZVv0l9jHp7Rd6RbA4VcesAghm8c2100qQNq/SrN9NGFhpY0LJGQL23m18DTIoHg3LjjWDGAMNv9z36tSgy/0bKuaKjI8C69sURW6Ekn3vZT6rj2446mrPIotTws09zR04JscPf3oXxlRTd/IxE4DA1K3naHm/yN9JWuVEHTz5fh7dt1RoG7SasoNdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XC7UA9mftHdkkMMQIkwVhKskvNJ8tSYmrl1feSalOcU=; b=HV7W6j8W7c6qm8OUVTQ4e+3H1xNNkY51GM2JEUnN4xlZEybgmm4Y5O++9uSfIZIJDw5PQSHBHD0U8TW1www0vXxWi9bF96y8osWZGBrKzPyTmPSnbN+ntHQxUUS4f6f7CQH/DxRKF36pFa9CDYvjxNP+lIHaqecRhtE6uJ0ONUI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:30:54 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:30:54 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 03/10] dt-bindings: net: dsa: qca8k: remove address-cells and size-cells from switch node Date: Fri, 9 Dec 2022 19:30:26 -0800 Message-Id: <20221210033033.662553-4-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: d5c83f9e-27e4-4034-aed4-08dada5ef1af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rhiza1CseAdrpYpVCuJO/4Mo5vRW+jI/A1p8ETH7ZOL4os0/Dz4F4INdJPa/jxkY0NoJQnn7HTBBRkiuzQOZss57uT+GIyiw7KbhWlFZfEnWvRNcZoM9lrxcgzFOY3SngIO+HIRY+C45Mu83j9uwNQbCuPBXiOg5JvEqjKnilIgghMU7zyOEyifwDwrlxENBJ1PUnU7k1myHAwIsrt+NHKlUQd6jm04DUx6XZpVdrD2bQfs/kjr7oOjzJFW7sqnpQRCJhWqnIRY/qXv6Ih0MolYxAL8o02KAsv6lyOaEhpU0SpkbDnbxdVJ5VIki02Nle6YCfKoaUpjOS0TYjXdBWiLZKi43WMQcSGevDfSkkQR2Nqdch2ah1qiHvOqUQ2uvGPj+Ws5EQ4ZhttGqoW9vTFLLHpx5JHT57s2KWG48NbLrGuOmHEMs8ncC3yMGK3EdcgSFgLwge6JC7ykZnv8rjSSK3nnSGYtdRsDCEQXGqe3x2RmiLXiGDmTGkBRbh8DuuTMSF3XpD4mDQF1fZB4ITPR2lDrNI9lYn4qxgLM9H3AqxWEb7NnExs8iMOEUEcbMvYtcGgHAFkiAfpGdjUYqwMh9qiEJeMlXA9dKiz3Me7ZmZ8PbiO+3m6onMTu05H/M2WBfzIoQhGEmdryZjUTr7hpzbAf7pckkvKObm6UQA+umF+1oX/A2qsNYpmS1yDo6GbA6jRjTx7qvIqRKWDuVPQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(376002)(346002)(396003)(39830400003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jeytx8NlBhMcP4+dlDAtnVLRQKFkes2KfN41e/SEEtCK6BqEMZHX0+6rnTeV3ojuX7aQbEihGjv8JuRPVe5GyOaAPm9k9W/n+Z9vY4g/OzGAP5hnzV0HDq+axNQhFQospg5BlnVIJFFhOP+6C4EgQjBzQ2quFEh53BolAl6/BBrPf2mXLArXyh76ro2ujltcQJ9gU30ks1mu1kkZ8c9Bn8CZZr8igi22kgw5uXhdSAKE1+XFU3SJrZKwWM/dYWFo32jjBGQwGVS9Pu/Qa9WAQN2BIBhqQZMwxBP36wLx2tqn3KYS9bV0P6gIX4Has0ttSmQk/Ea+uxmBEIuloYPUk9cnxjNA1e1gYlrV7+DSfv3+Jyn/PhqyYxxxviPO+A/N4hwjTGzBFHXuAh4XbRkr0jhf6GC5ADPIvRQVG+PbKIU29RxkgfOmSLeYE5f+gWEI5QSAd+fEH37XO3t7aw962jzmsUz0VuPOcYa4iQZ3YNALxTTWmp31B3QChUHhePMTpAu2K8gnT6O+MtYgPQnMrTgGdhUGx5KKvpOMg8J0+aM6S7JqKGbmDRTfHYMQEUB9OPJjb8EfTQ3Ecw8n6v4PkKh7jPFDhd0FSKs5tLsjbOrtpL1WNIFeAxBvdvD0dpt++y91oTjN5OSA9kq6+R75CF1zxXmW5jU0pHhGOn8C5Ka7PaowLp8E2/XI/E52eLEBGtBgA+PL+XwL1/p1AUBKpvQacI3wHYyyOMz9EPvAOYIYSB4x5eoeEMwSZs7Kqljr+00+rlGRKUQKdq63p4u2fu+MaRekp+vq8MI5IU+BCZnqgpiejpICpZKVsk/FkNMkqImdB6YYcm9zUnjW4v2YOtA+PBYvXBwFFPcIwTG+QUX52BPU6E2s47jqgoKTYlKw96sfdHtE9+2dk58WHcPtMr4ROzWCmwTijK6webSO5WE0AAlQdbPeh741WYjWR2bH7RUltYFShHVWa/355d7iigJmLliE1A7ybwQnw8U3hbbB/7t8hHtBROp9xDrjkYUd0kVboXT4lniGxx2gOd5kIsLaxtz8oZ7f/pchhCl1zWdGvvOfGlp/QQ0TElbBr8xw4Yg0yejsZPnoDszWUiyWE2m9zz6V2GV4g/4cnDIYFsz2O3Kd7UPLIlD3Wpg1dfbKSd0YBNdR0K/2VqK6W6oW1SXOeYB2e/K+959utoIcmb1oL9pFDAqH82unTWKnVIXNgNMDklu69trqBjX3m4T70b8gSVrTv+TUBkyO9mUnkn/S0oRDOh2t3EVYwZ6ccIm10xUOVMMvxUCrFrgfWscArmXatMbZXuPCMErcy50ns7hJOO2pClUVj30oWJui69oldxYC8+seKK3Ec4iTvgKgoLH4aL/dAJewNvWW2g3P5Nr2bUdknkqbWQ4PYnbhv8iWw9/bwA2UtrWKt2jVIRk47L1aX0ek7W/Z7fZLBuEvXrchWFdh1TZ7KNfnDKHCxeDRk+u2v6CuOMYRObWayOU+Vnj/+V/v8HVWdquYmRbP/O5aAypfPPanvzrrLPRpPHD8RFy1wGxxagskB0upIMdtfPpCnO/iZlmJivUpyCgszlKrLTzeeANInqmpcBA6RifenKOcoj2jWZiXOCawQITEAw== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5c83f9e-27e4-4034-aed4-08dada5ef1af X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:30:54.4512 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oWMNuB2pvB8iPljWuCVcir2fPjyKN5FOG9W34rbPUgS6V5BnlfLunwlyl+pdGUdGPtNae+XxknHD5bRO+G7xxkX6IHG+jUbFhhsCsC8lAAs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The children of the switch node don't have a unit address, and therefore should not need the #address-cells or #size-cells entries. Fix the example schemas accordingly. Suggested-by: Vladimir Oltean Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * No change v3 -> v4 * Add Reviewed tags v3 * New patch --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 978162df51f7..6fc9bc985726 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -148,8 +148,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; @@ -209,8 +207,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; From patchwork Sat Dec 10 03:30:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070198 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 201C8C4332F for ; Sat, 10 Dec 2022 03:31:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbiLJDbO (ORCPT ); Fri, 9 Dec 2022 22:31:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbiLJDbH (ORCPT ); Fri, 9 Dec 2022 22:31:07 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E5AE8C685; Fri, 9 Dec 2022 19:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bDVnwCkmyeJ16fXo2BtWkSgch5iUPPSS7n9QSGMq2fokq8OqbAR3fO2hy4U5U+GI2VM3QowtRfRICy+1NLFqIrcafa9De7ib9XL+7qkUET8MA/ub+vTIVOS4Jl1Z/oE7xY+1JOJ4cUtaeIcMI5oSG7dZW9ydRTHmtdDM438lI9c7zTmhNnz2ZtwkB3GrL6JDxdTXwY3rQsyba3cEGTvlS5b1pdUsy/D+uPrmq/SMyhhvX8K3vEsyy2VUoYYDNtQSVGgWi698rBYJTUKBolyNH4ALHPHPH8qI2nD9G/Z8/ZeGCyFb4H28JEA+/k2fvRNRsLzRvitb2j5m5rhak53azg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mTbaH0DsX36iDid8qD8cG/g7DcgpzwDTpXFm4J3I05w=; b=MVZlTuSS/5ry+LPz9TbEglkH6tSjTxL4oT2Nr++u3btG32iyCvWBqyTRntUcNA9EvmPKUFREPVVGPMNs0PCpnvOqxuJxnuS2LmemW6XmTcZVVgegGVvI2NsioXPCZVELvu5gX2CLBT24aPHbXwIOKbHYZKM/Y5bt6XE+71Y5GGm36fb0d04FcH2q8DP+WxVZHU1s7m2VoBmJMq16+5jcUeJvsU4Ihplu2juLSmfiVh05hedlT7xX/dGN3ysuqXS1fYhiuV9D+ad7asBnqsNGoQQAlQZrozoQd80Y8ElmxAUzWN+11McqLUteTcR7M4n8vBkKaYlzY4JWGUfTiUeNVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mTbaH0DsX36iDid8qD8cG/g7DcgpzwDTpXFm4J3I05w=; b=FM+M1ERXpHJYb6zhu+ooAgTmtG7EINiWsH4B1S4oxiYd2exfikwcGYTMMmWCFrk5Uid3V0vB6M3X+HCIma5fQOniElrP02NHm9Ob1LF46NeHE42dr7xvLwIpCtqLFaEpXNTv1cjRltcIiTyM+NVqvBLUUlFzK6t2p/ID6aMyVgg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:30:57 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:30:57 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 04/10] dt-bindings: net: dsa: utilize base definitions for standard dsa switches Date: Fri, 9 Dec 2022 19:30:27 -0800 Message-Id: <20221210033033.662553-5-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: d2c65dba-f780-4f8b-3431-08dada5ef321 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4U/Hw97c+ytos/lWRsVqLB2vqW4U2o5spDT29Q5VYmDWxQyXrY/QeFgX05tGlMHa2pu8w9X/BXyE+FoahtqE9icYmoTQgw9gviaDy8oiTw+V82+nZlf1TuwIIaw6ELWyX0KTmLTlD4+X8vVB0k965QjY59lvWJkfChdknltslHAhCeHcmxy/hEisgt89kN8GdZ/wqngvsfsa28sSjqXSaV+knJ62kidjnt992bxCv2pBc68RTlqKqIA7t174Xblh0NAwEpueuoRuUXVz49d9/WhI0et0cn2zf2pxpugKWFvfRy756z2pDU/6lpcccVRgMP/7v5MZYgeIsVSc+f7TllgSmxI4f68cmK0XPCPsgWlAftjKfolFyK6WDg1PauzMNI7CRrdAZN9+DKQn8+5E3Bk5gn/ThHyJDWdAhEpUoWVuxLZIWjiUNF7hgYK/yW8BNgQnH9VPRaoso3yezrmbZlMC8DGqoSTevGug0zs+t99xIS9q0JJ0hNcrYla5OKAbvUtpCAN+12CYWUotvUp5eECqotpySRhtAeLLQHcUhHrXv3BHwRP6MxaP4zY1RJcVw63EcnDyl9iVmH8WnvgoDlb6AJ0sNBR7+41E00LlGus3U7cPkVaryl2NspD7DWf55IdTr6+AevZZvW7VNkytmhcvBPwLjJWcXOOFn+JFsI7xb8XAGnY4qJXlCi0B4PNT3ijq2Qd+AJy9Vs2W96KwKHlH4UaGzVL80R9fJukGw8c= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(376002)(346002)(396003)(39830400003)(451199015)(6486002)(966005)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CwjHtif8SkffAXrNRSXb1fEYhkoU?= =?utf-8?q?5UgjsoTV8qg8Bkpeg83KsEpn3Wo5L5mOCFWqkP3zCzW+Ge3ucHLScGcnpmUHEnRc4?= =?utf-8?q?h7dnnibkoyzv2/3C5BDzDlNOxGRfImH9dinEGxZhdoeA6CZuUQedRIeU1ROyCptDI?= =?utf-8?q?1pvwLUDiYBVGelOK8h6mLZUE8baLgrdSiPtdJEwNoCq7gfFm8z6SVJcQakhrfRHs1?= =?utf-8?q?0lVuYo78/ed4miuDyJV1AjmmCK1Zuk7eaM1j57DV0YdHCn1y7rxoO7jPiKyo66gj3?= =?utf-8?q?GmnkeuB5zCdBhcDsoEvzGdyemkPS41rXYT8tO52Gwgr9fwedk5yU6PkEm5BPnCPMP?= =?utf-8?q?npPZnK5acn5qYp2tjKuJ9+WCNOBeektG1gaqIMcUquWFG1yX+gV4b/piWkakHA9z/?= =?utf-8?q?8Ttf19arw1/Z5Ri3BoyimdOSEBmWB5tspzDKqAB500YaaTcig0xoaXoEJwHl/YOSF?= =?utf-8?q?M781O5hFmtYMOl4MJAqTsaFYKUTckYtcTYeMzIiphplKpySQ1wSsrZ9h8GBuqO4VW?= =?utf-8?q?ZK4XxPedcR28IodZmyjyl40RQhB5vd1NZ3/ATWzRD9ZKvWb0n7sLPiIRJlUHnmI/5?= =?utf-8?q?YVKUXa9yBkFztChgZcGWZQqv+X60MKQ6ImE27z9yme3oHi8jTdlMhhd8adMAWlAgL?= =?utf-8?q?TRa+PWeHRtXgi9VVdNZm35tguQwF23spk4yaN+9mJZ5rhpk1M6u5uoakMY8vXl52z?= =?utf-8?q?ib0BI7Z75Fu7QU5LLE/ZAOD5pWsGQdlgb9ptFjeU3EoLr8mPWW8M6sjjC9SFUZ1aq?= =?utf-8?q?q06KRoNCLiD70TIPr2ImBswJzGY3tW1w6vmAl938vI2Nob6mB/X+O0/8SVdPqLBDM?= =?utf-8?q?ebt/tJh7fDfZESDDfRchL11jNdZZA3aoh+n3qgaK8dfkxQfQj6pPeZhPR4veo7IGp?= =?utf-8?q?nbO+RtR/STM0XkLke8QaSLoPTueikTuCyrZUvJMZw4kPRy1YFP+MsqZOK2dn7WcAE?= =?utf-8?q?BQKR6Ym2u9xzOn8IOTO9pH+D/x4iTErX6s9YOHzSsUS8PlxmwHKJeIIyIv0ZsNp3V?= =?utf-8?q?aUCoVnhMPJGXlwaRqwNUozQ3/rDYDz8LNAJVPwf6Me38aDOxVVCgOdjdkpZ5ucCz9?= =?utf-8?q?edXEPgJHSha3+7pb1at9ROaoE5JnfGJPbUNgeL388rSFPnWtM/zcAqx2IARBJry5Y?= =?utf-8?q?ssSMzLfR09Jxldgp9ivKSQkBCEu1T/qT7QCHxByXIrbtVnReBlN0UGWo6s4kFKDA3?= =?utf-8?q?PxxWaGqADSST4EB+Cm7i3Mnrljg6f2YsCwSfPvTmC9y/GO17JekJfEty8YfrH80U0?= =?utf-8?q?a9Xw8uRqVnwR/hJrtedzxIdhifOa+HCITeDRn89YJI+1R5Nl6cEbZaAq5lEBiMlWA?= =?utf-8?q?+IQQJEw3biKIufJYWFdeYGlYB7oqmuXnRzwPcxmCt/p5j1jvn75lMqAmCbhIUqBtR?= =?utf-8?q?8EQVJsgMWRYnGLA4D1kyqmyUbNjB9SLI5crqapgGhbxuAlnTz8wOuSlMMgsmW6yrc?= =?utf-8?q?merkHVxVeS/q7qkZTTeA2MPb7E4Tpb3HQAAu8R0CncImVEL8HNWpjT0sGN27uqZio?= =?utf-8?q?Y8HrVRABkHkBfbbU3D4F41gRbV/4CnvJAg=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2c65dba-f780-4f8b-3431-08dada5ef321 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:30:56.8885 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xyZlhB8hzN6IFfQaqyz8zYQxueILpbE1H8krTFovvPPYemSvlJ2qhdU/daiUV1vxK2Vb17UmTD+4DEW/TcL6vfgP6KEFb9BM5Us0F7/Ggp0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org DSA switches can fall into one of two categories: switches where all ports follow standard '(ethernet-)?port' properties, and switches that have additional properties for the ports. The scenario where DSA ports are all standardized can be handled by switches with a reference to the new 'dsa.yaml#/$defs/ethernet-ports'. The scenario where DSA ports require additional properties can reference '$dsa.yaml#' directly. This will allow switches to reference these standard definitions of the DSA switch, but add additional properties under the port nodes. Suggested-by: Rob Herring Signed-off-by: Colin Foster Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Acked-by: Alvin Šipraga # realtek Acked-by: Arınç ÜNAL Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob Reviewed, Arınç Acked * Defer the removal of "^(ethernet-)?switch(@.*)?$" in dsa.yaml until a later patch * Undo the move of ethernet switch ports description in mediatek,mt7530.yaml * Fix typos in commit message v3 -> v4 * Rename "$defs/base" to "$defs/ethernet-ports" to avoid implication of a "base class" and fix commit message accordingly * Add the following to the common etherent-ports node: "additionalProperties: false" "#address-cells" property "#size-cells" property * Fix "etherenet-ports@[0-9]+" to correctly be "ethernet-port@[0-9]+" * Remove unnecessary newline * Apply changes to mediatek,mt7530.yaml that were previously in a separate patch * Add Reviewed and Acked tags v3 * New patch --- .../bindings/net/dsa/arrow,xrs700x.yaml | 2 +- .../devicetree/bindings/net/dsa/brcm,b53.yaml | 2 +- .../devicetree/bindings/net/dsa/dsa.yaml | 22 +++++++++++++++++++ .../net/dsa/hirschmann,hellcreek.yaml | 2 +- .../bindings/net/dsa/mediatek,mt7530.yaml | 5 +---- .../bindings/net/dsa/microchip,ksz.yaml | 2 +- .../bindings/net/dsa/microchip,lan937x.yaml | 2 +- .../bindings/net/dsa/mscc,ocelot.yaml | 2 +- .../bindings/net/dsa/nxp,sja1105.yaml | 2 +- .../devicetree/bindings/net/dsa/realtek.yaml | 2 +- .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 2 +- 11 files changed, 32 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml index 259a0c6547f3..5888e3a0169a 100644 --- a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml +++ b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Arrow SpeedChips XRS7000 Series Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - George McCollister diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml index 1219b830b1a4..5bef4128d175 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml @@ -66,7 +66,7 @@ required: - reg allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 5efc0ee8edcb..9375cdcfbf96 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -58,4 +58,26 @@ oneOf: additionalProperties: true +$defs: + ethernet-ports: + description: A DSA switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?ports$": + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + description: Ethernet switch ports + $ref: dsa-port.yaml# + unevaluatedProperties: false + ... diff --git a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml index 73b774eadd0b..748ef9983ce2 100644 --- a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Hirschmann Hellcreek TSN Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - Andrew Lunn diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index f2e9ff3f580b..20312f5d1944 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -157,9 +157,6 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": type: object - description: Ethernet switch ports - - unevaluatedProperties: false properties: reg: @@ -238,7 +235,7 @@ $defs: - sgmii allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: required: - mediatek,mcm diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml index 4da75b1f9533..a4b53434c85c 100644 --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml @@ -11,7 +11,7 @@ maintainers: - Woojung Huh allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - $ref: /schemas/spi/spi-peripheral-props.yaml# properties: diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml index 630bf0f8294b..4aee3bf4c2f4 100644 --- a/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml +++ b/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml @@ -10,7 +10,7 @@ maintainers: - UNGLinuxDriver@microchip.com allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml b/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml index 8d93ed9c172c..85014a590a35 100644 --- a/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml @@ -78,7 +78,7 @@ required: - reg allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 1e26d876d146..826e2db98974 100644 --- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml +++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml @@ -13,7 +13,7 @@ description: depends on the SPI bus master driver. allOf: - - $ref: "dsa.yaml#" + - $ref: dsa.yaml#/$defs/ethernet-ports - $ref: /schemas/spi/spi-peripheral-props.yaml# maintainers: diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml index 1a7d45a8ad66..cfd69c2604ea 100644 --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Realtek switches for unmanaged switches allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - Linus Walleij diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml index 0a0d62b6c00e..833d2f68daa1 100644 --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml @@ -14,7 +14,7 @@ description: | handles 4 ports + 1 CPU management port. allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports properties: compatible: From patchwork Sat Dec 10 03:30:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070199 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03CC9C4332F for ; Sat, 10 Dec 2022 03:31:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbiLJDbP (ORCPT ); Fri, 9 Dec 2022 22:31:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbiLJDbH (ORCPT ); Fri, 9 Dec 2022 22:31:07 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 171BA8D1AE; Fri, 9 Dec 2022 19:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uo0hcq4gnBZoXlYPXXvQnNksi6f7kY4rdhnF2arkhDlzSjVczTs8geSmHbHLfYqD44AcGAsDXtr4uBlx4ZKfjhKD5iypvaqALAwqSbIpiqJ1pvD5Foyl2yKrSJ4ywqyBM15fsFDP5GwSrGFg3vKphAJvPFigv7WX7Cbb/J+D1E7sEhE87waRHXcF4RzvO8cZt5T4OxCha+cIANmm6evHu3vRQKzSARXiL+R46EQCtR2w5YPNplbdX5YgbbrvAv23d8AeGSGzhh/Ai8JAIrXIZEhfu9e5lu2Kgl6zKZZYhI0oD7vE4U0lYiv5Zb/5T0AK70OxJMHTVdkpE3KtU8w4zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CFRqqS9Wg0MCBApd//LM6rU6F4S4HoXJZ4paTTxS9dQ=; b=TA48CE6drMdat2+zeOQ15Jq2O16v0koHnKHn6xp0OuNwRPzkyesPI2vDaplBOA9QEDL9QHQ2/K/iNDSPV7VUYsY1VTDzr7iqx0TxGEdgWEraeejlNwAn1A2w6hCLS+RZIhLOZq1FRTwLv0RRFMd5Dv05MGoOD1Xn/nAfhRh4Vto+OKsPWVGSLbv3WMOUXYZ+TlM1j0dfBTs4n44BZssJxup+apDqymyYaau5KvLPQS9VCXARQqX5IgYQyV1qN5O2Oip6wEbNTsIbLg4mX+QWGMirlSgyaMpRqvivULynXYV/kQuUj6jLwSgTZ78Xn9bLojgThvbpi3Ov53i0n/7mlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CFRqqS9Wg0MCBApd//LM6rU6F4S4HoXJZ4paTTxS9dQ=; b=RlMjBKeCVdluoleDWVS/VjOLo8eozxSFGMS+pM0AzZvsn2ARgwN0rr8VSXrRCzF71aliWuWkUkiBPmntsfTFsWo28S6uM603E716JOKjfru/D4coCVEfLuXnduRvFhXWVFpvnrAxy4JdnyYWKeM3tk0mPf9kt+NN/1B2wtFi9r0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:30:59 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:30:59 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 05/10] dt-bindings: net: dsa: allow additional ethernet-port properties Date: Fri, 9 Dec 2022 19:30:28 -0800 Message-Id: <20221210033033.662553-6-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: 650166af-ea17-45d5-b9a1-08dada5ef492 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VK2C/gER7FAoghxvP86Dwn1EihSTQQ/uT80cbO+Kf60+X0l8yaFa+GRdbtANnobs0e11h5YeY4JgNgZQqWz2LpodYZi6+BHKk8bIKjAqmo02dD2U8pONgKrMSODS6JHMkkoKmeIAtw3yJJ1bK8PMuT6dpATT3RoxCMvDxnlDGMD8Uy8g/vMTZDjVo4whp8NvlJaq8605BXb633ghpQc2Bl81UYHvnFY6C2kgvrlMwAgKy5ZBaI+qP6pEu31mblsh5XoPEk8K519fo6oVp22rAa1WYfSqOUKtIrCw2/eZbNzQK84iIIbO+SlxAxuNTdsiWjrjMtctmFXuUBA43mejkf5T/kSEjgB+OSimpEs3tGD1g61iDEW/5xU4XAeLlpg+FKpg71Nv3NTXVyR5THBdARRsPULi3cqU988jAhA02+SJnYX5s1/3fsomIadhtiwboWxtbwn52ihQSphYpaFbKtkxwSw3N0p7nSr9Ww0gwHVus5DHzgMrVIesyuzjsAJfK8zd9pDI9wCgAw4+7iFbqlcy6wsUHJrp7ecHHNThllOWGhgQvTZPpMlICK03hMIQePm+JOIZjAo/aRfIcLYsQOvrwSTg7zBdLlRhdWf+o/GSLkD6veUv+iwNI+Cqs81YYYrVsnO+cu4yktC5H+t70b1k3JkAV5DK8Od9JZOFrWl1YLs9JZZMM7S4gzeRO+Xl X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(376002)(346002)(396003)(39830400003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BQHHOLBAWe1tNOsqwO5h/CZop1Us7imyd6Ki57nqflWcNaeLshyBNT/45BQAZ6JiskFvivn8UZkIK0FUoW6geFCCi/4aqCLkZtKgconV17vpDxYWkMaxeO5OgKo0aL2U/PbzSdHQm2jFr7HB3Xtk889ReU8RuEK0K5yvgPOMlBlmAUMTQtc5YKC6Lpj9T0Q8nXjaSBdtTW2t5I9Be5na/rPb/PC/7fvjeYC4FpA93vILuLMfHx9ecMJkT80qMNZDS2UmvFxmxjqTJcBV71tddhqVsdDMuVXOgTGIMq31sAZcOCZ3NSL0zH5cvEwqkXbAYOMwsxAPOCT9Hu2kU4Bz+zHknAwNMAF64qQqkiklDGv0WJhBh794Y5mWIspQd997RLhEz7SkUwgTvihwK/TcO4JnDyoEOGx5qglCR+GbPv/GfvbwnzWOGEKYHJ8vsmD8jiUB8cCKb+2YAJoJzec2e07Xjhu2NiNtAKOxyIXcyLZAFDB2H3ObpR7KSBbY1k+gxAav+r/qGxAQ9uJNz8hXNTqLaTwTK+bdUL84Y3pVtWAunvsSK22zDHIVOu0VVPXz191fdvJCe6kLckeOw8YX3hAzFFH2V0yYJaWBJHrFYvYrBiWvwQd1SEpUcu6nNQ2jdXQQLkUQnUkV2e5uMY29QdnYqlf32lGRWCAlULZNAYGJNFwmxeXWR8nsHZXZgy9JPdgaYNCAmYiT4rTLtPqCreTI3uqlC3RdliUTkcpcEgTEp22H7AuiiirRF7kA3vys+AaALL3P0PsolkpGpYX+T8cqt7pRdyAc0fEjydPifer8sDpcOQDl1nDkzTvpAdZGyAdjcrgSQQHEpRzcqKhXCnRnC6NNW5mOrt0ulXPSXbN6RVcAFrOnu7jy1pAvkzojWfd7pCkGm10jmycQ1fV25ckeYLe22S4EXw7hQwg4xb1yf6CzGZn5ZxBkZzzFrR7bOJTn4c3kmfrESzF/YbTfnuS7SWMA8npBOCxPIdzpxWfLBHYOzKhypDEOk/hc37Ta2K5PT6UZcMV0BtdJj7c86fn7cEEPk4yLQcbROQmPAeZwWwk6oGn9R3Kgkwi55E0iOtEa2JaK3OOTDeF0NCz9ksAxecYoHKZbqXv5xgLu55MxHMmZrsN0fyn75OalpuH1E1UNQsqulwlKxU0zXdpBSkI2rTPobypEMgmk0sDThF8QNJxTtl671IUQHJ1u2/P+7ohOfHU5KQ8UOKeamWTf5eafNlUfJiRRLujI6Gr1YpglRJoVR+/yIwjMmiU0N5rnyc1pbzqTbR+WTmaG2HikO+tb5QTgb39VUPcaFzZz/leu1TTfIX4Z6MIoB2m6KHVgFQjyv6pLHN+5uV2rk2pyxw2id3zV22P0xEFlME/UhuytRTgDSnb3nV4ejA5be3IUmZiUw/P7zQ0cW+9bk0pXFbPcJ6/uIKTXubGUpK+FHYiLmfCdK9blJKKnEMDJH7q8467TFSTVGwBf3CfIToF2Elh/h8OPLVg2FzMr7Ij+/V6R83uP1kmr86YXLxfluSJzSpR9VQtNYvkrod5Rnt8Fc6YO4aOV8MSOrbNFXqlhv1F3A0JgYiD7lG47DH9ouyt9LR94uMrxMUBfRYHjjhUhGQ== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 650166af-ea17-45d5-b9a1-08dada5ef492 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:30:59.3102 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6Ceojmd1Uc1+zGuths1WQs0MU3dRThctI51XRs9EURXpQgIdsW6bAFhIj2OxzzxqhUsODboVjwKmpEVmGhOHVzV4gn6Mja/pf7/XVikAPPY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Explicitly allow additional properties for both the ethernet-port and ethernet-ports properties. This specifically will allow the qca8k.yaml binding to use shared properties. Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob Reviewed v3 -> v4 * Change ethernet-ports node to have "unevaluatedProperties: false" instead of "additionalProperties: true" * Change ethernet-port node to have "additionalProperties: true" instead of "unevaluatedProperties: true" * Add Reviewed tag v2 -> v3 * No change v1 -> v2 * New patch --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 9375cdcfbf96..98a79be3bffe 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -41,6 +41,8 @@ patternProperties: '#size-cells': const: 0 + unevaluatedProperties: false + patternProperties: "^(ethernet-)?port@[0-9]+$": type: object @@ -48,7 +50,7 @@ patternProperties: $ref: dsa-port.yaml# - unevaluatedProperties: false + additionalProperties: true oneOf: - required: From patchwork Sat Dec 10 03:30:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070200 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFB64C10F1B for ; Sat, 10 Dec 2022 03:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbiLJDbe (ORCPT ); Fri, 9 Dec 2022 22:31:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiLJDbI (ORCPT ); Fri, 9 Dec 2022 22:31:08 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2101.outbound.protection.outlook.com [40.107.223.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A21998D663; Fri, 9 Dec 2022 19:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=obXOYpu+RZYljia5NrC9rqo/sEtaqQMeH7BBYUVEhDRNCxhmT7Wh++ZOBJn+qMr+9/HgackD+v0zrBLuu3Q4MJpOroqm4QARJydLdrd18opEiKPZPu3hdOQWPcgh0l9JVrb4NpFXVGQHz1wo0OANplUOzLMSZp4DmDctiQhn4c6C/YPYc+C+K0SzTNqbnV8otjknkMzxYTbb7gkF6MeS1Aow1rV4nd06vJ1NB+nmpNIJFiGTXs1IBipC+Fj2JCYxZXdE5LGvnbKHxPHTI5CylQAvgWmJLnIhg/6iTIBvqQ0+FKlqNDge2AlVXRkLZzlkPgp4hY2WZsqzV4wLHFVjoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nH96UgsY4RIuDfdT9n9G1RGOenUasVWM8KnDjZ9PM4o=; b=Tcf5O71/VRZLqAEccBqo+ueZPGOdtS/ApEqdAYTbZLbmoRWATXFt6aUnkIi2BwJeymrpRq9BQzEOk5BuN3u/pBPAeucM3f14uVCkORXR8XMUEstJSMmDxSsIjc+8c/QYup+Rhk215iK9zbE1SZ6udqdgx3gmdy6zfDANch97ZcyhG93id/hCyEhM93qInR5C4R63D6cxomfm15D2MGzIpB1GJRwHxB23vS0J4sJZTXTGIqsPY6blY8jS/pBWKFChTzx8yUFB00ElkuNq/DWBX7iya6He/zdDWwY3fYTv+QQcAUpqPAi5qOyvmwKLxY1bnoBtsBZ6Mi7NPsw0p9cWRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nH96UgsY4RIuDfdT9n9G1RGOenUasVWM8KnDjZ9PM4o=; b=lm59471Ccsm3NgijpjQ/lTghqIfjEVmJUUvHKB/b7VBZpP9xJVXH42O5DW6XqcfIngfc+7mYkwkS37e8k/AQ1HL3J/8XntAwLZSiPb3rH7hzwMxtU+CR7IeG4ovxja3y3twkP7kokb8Xquvr5c0bBP65G20dR5lccRZFZwpBGIY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:01 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:31:01 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 06/10] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Fri, 9 Dec 2022 19:30:29 -0800 Message-Id: <20221210033033.662553-7-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: 231743aa-6be1-4b7f-a151-08dada5ef606 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w5L5jOhSfDMWIM3PVlBpp6p5+CvaEGNtjLF8H33XJ81ACa1syaiTGvCoe7i6YzyLmdHNMP93HpNTYbBJ1M0dfuOiyg5sNx1iDnZ65ltKz5X6h++ij3DSZPV1WapL0jyDwN7W8KNigE2IHOwldsgEp5fjlNVx4n0E9l3oCIGOAgq76zk7zlVYEy7dIA3f1hPJUG7mzrp6+Di2+fXBpwSOL2jUunDFdCIYjl6FN9BqfRSKFm5G7pkEbzr+SjJ4j4JMk09tezl28tiNmX8wCimW2JePSU0CoG+wMTsiL1ANBQ2DY7r5MAPWB/esneoxpbLE2f9EXfQOkk1e5m7bmT6T2aDe/mlAgYTKBZKg6rZUNizHX6QN2x8AUWJbfAVSXfG3F5aWiOjmlJyfRQw2lKoHta0m6DYc6d0zHw/u/FjaappbGsTCKxuBizLTWeJ9VvVYDpYzYX4yp1Wn+1nyfDpXJDTV04J+9qncCfA6ImzieMbX39DY6AAexfBo9LXLUHELBp8EHfUUmMnXugYrTc7h9yETeF+OqICqR8osz5GnLaSZzeCRuqLQducDUqeNclSnXBY+rz4OrWfmoz9R5tqMS+7oMUO2pskcMnyrdZxI9Gp1wPgvKyrFMdU4cGux3+tXjv6vH5tAc9eC5t2sCkmpJtAOyAWnu6Wb3n6DT7k2pcUV69JYcDdbX6YLn7JpIGBE0wzv5P6caNWB0O1Vr8FsoQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lQOVY47Rs9N7/P7xNsxyEy/+X42CQol32njyow+Olrl+iqTeCQFegsYrFhdy1sdcH2lPR3AMHK8BphIqBdOj1HuEaGLMmByueiP6Un1h9K9QBP60s71fOUaX1dQnZYYnuQkur8WP0xYhd1AseAjH/hO/+5DSKxC8DfnqvjY3wb6SVWBmvRzQSIgFJ85Q6cCHc88+0KLHsXdLtac+c8aY2zf78cpUUWt/imD9QL9WzbGxckdft2BIbPsSTRwkim42Oymo8wwYCaBfqtl1VCumOysIIdzIWlWtMwP2yTp9m4QP4mZaNWCzZ/mggBgOdNNl7v283MVmvNLi/uVorNu80oEISTpgqrElKH+j6gl4s8jBgADL9lJEaLV+GpGdss2bLqyreeLiXmWl5KF8ye0err2dVUiUTu+/ytFE9+LxxzS+Mtzwi0SCo+r4+v7vzFbimB/fimVQNUUTDuUNJZgCMK1GlzABduuInw9svNK78kbMbhaBX63RprAbpM4AfGPQZdZTwpzLDtztyBDwkv1eAiQC6O6HBdTYFgRGdlhDWjRtU4Up+bYLXEUguOHp59Hy6x92Ws8CEbIyE1gBaysDZ43oLV8YpuGSHP4mUl05mZaFIT90ar0U1FGerK5e+cHTWJdIMqy9ckcrlMnpnqH205+W5+33Faxdox4zQ0uBeiberuW3X3xY7eV/fzQX++IGymxq79g2jeYuA5Z8S24pqPWR+k5x/3VG+p1Z8Ve4PsEKdOOvxTjssfyS3sJ4/7cJIfzth+c1W4FNMNRY20JXVCCbHoSNDiUNJJGNaLUQO2BD5exxzA82WSz96aZ9dDT9YdtwA51E24hQFD6fcNY6fDUj/fg92gx7tSYykTPT4ngrqlryGErXH6rmnu8dhRFg6ld/UEHFvC9+jZpplV4LxJFiE4RK/78WFwM4DuP+TIlGLEmUpBRTVlPzNcM38VyA1rwoXEtKYoZePPgMIoEsRC/etpNZvulaqYXl3xM3XhjTRDSCAgN1no5IIPUP5S4B07Z3FQj+8/QQefvShvbcDeM9/FvwgKe9DV1QBJaJOU4qojODOALchMUwG+xppLMfvDw4wwwdsXRmN9PQVKFugp34Xpd8m5WfJK6RO519+P68KZ4mDzc5kByKlO1a4Y3jGa1sKQeuCbmOj3xDW05SrBF9zGbyLjWLX674HibXeCfzNE88fHDqyEW1AXBpUJxaaQNoumYHxrjPdkQwE713fRYnB8IpRqTpMPUTi8RmuIUxERiS0z0h0F30r2EHhx2LbvMzl7IRH01MZef61QaCz5dneebUTuVBq2Mc6tMLuqf0JeTIrcq3sKfOS2Smh3hDEib2ceuLTwjMe1kSYOUQZdp1JKqb1LpICKainVOZeaN3C+tIonm0PC0x2WfePEGjciALWWVC4zxioGdsVozB9XAk9MTKNG++lxZu/IWy7/PoWUGAlmZcjZ1vurzO4z/VXmPRJCZhWtaRB2U89BPh1R8z5PxKQKSmdz9MMu1v0hfLvz46HvIjWUWiZzLdGweWC/wQyiBrfGxPJEqBVb+KY+QaT+MFxhg1JQX9XQBKF1MbPAxXxhuaJ1IdaNb1zjwxGom7q0jG8EkpCfRQRHojPQ== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 231743aa-6be1-4b7f-a151-08dada5ef606 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:01.7475 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NHAQRFBk89kOfFDTL8lV7gGxfo1JF7zMcFn8pRw1cXXSz+T1aI9XfZxfHBXc7cmrTt2cVK+Dv9XmsjcTaEBbrCVLE38lH4Fz7ciLtLM6C28= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The dsa.yaml binding contains duplicated bindings for address and size cells, as well as the reference to dsa-port.yaml. Instead of duplicating this information, remove the reference to dsa-port.yaml and include the full reference to dsa.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob Reviewed v3 -> v4 * Add Reviewed tag * Remove unnecessary blank line deletion v2 -> v3 * Remove #address-cells and #size-cells from v2. The examples were incorrect and fixed elsewhere. * Remove erroneous unevaluatedProperties: true under Ethernet Port. * Add back ref: dsa-port.yaml#. v1 -> v2 * Add #address-cells and #size-cells to the switch layer. They aren't part of dsa.yaml. * Add unevaluatedProperties: true to the ethernet-port layer so it can correctly read properties from dsa.yaml. --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 6fc9bc985726..389892592aac 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -66,15 +66,11 @@ properties: With the legacy mapping the reg corresponding to the internal mdio is the switch reg with an offset of -1. +$ref: "dsa.yaml#" + patternProperties: "^(ethernet-)?ports$": type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - patternProperties: "^(ethernet-)?port@[0-6]$": type: object @@ -116,7 +112,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - | From patchwork Sat Dec 10 03:30:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070201 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1C2DC4708E for ; Sat, 10 Dec 2022 03:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbiLJDcH (ORCPT ); Fri, 9 Dec 2022 22:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiLJDbN (ORCPT ); Fri, 9 Dec 2022 22:31:13 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2091.outbound.protection.outlook.com [40.107.223.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930308F0A7; Fri, 9 Dec 2022 19:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UzUjwA9c1FKbCmXoPrGu6lNKIgyOuacAd8dezi2CEW/yPmhzScfYeE6IpRxpoebTuAB6dSp4h5mtZmuwFyBCwfcl2BIFsNGbC8cCFld3xHLYWd6JDsOtF+mschjcy2UDWEEUQ4/RzgGY8QDXaqTLXCChtq2gGyJ4pgIYYtWY72pbv1KjMOh/YwB/AbjTZZnQkq0t4kZyC/Wm8gVK7PrEnqSlbCiDnZ6FmoifOeWClNd4rJ7cw/RJ0/PU/6z+uYkqzY2SGfeCzoUOEfK+jnOKOkkvkte9Og2vYC39S3RVWzw+xA1IkfUhD47KorVLmJj4HPxlArEMjYrKx4NLqFRfVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZE3fL8Tjc3uuFUuiY/RlEC3CPi47hjpPkhV3PmuaHuo=; b=NSFxQJERrFuYsZjkYZan30XvsxfX+6kDSKIlK0BeZR/Wlxc0C9ZbY9jnMXvVy7UmU9kyxdfpTRv97UOuTQvcebxBOTZTE1sf+TyQYfx4I24VEQrq1MDYZhhX6A6NBbbSk5Blru7wLmWV6OPGScLAn/tFcgfArggNiINf1MnRLU9+HSCW3aTVPNMpz+mCeuORSE0uSvgxZmK6T5pz1jeXmZs2C6ObBKysfdEQEb0vAuAJqqr8kuVPiGUMoUERf4R169yzh734sZ2ezeXti6uWTO6u7lCQJu1heaMZBxcgIRR+Lx2aje/NyTkprJ1xV9uftIZPlkWhV1HG8pYpAa3LFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZE3fL8Tjc3uuFUuiY/RlEC3CPi47hjpPkhV3PmuaHuo=; b=kba8yYKixr+4J0dBa8WdDLMeZ0tGUUrTXqTx3bXFSp4LE8EyC0zNKdXPDw2AW5nniSIkUbTJplDMRsp+OvTpu7mp6RRsK+RwuB8739zc51JOTjDGJmnEf3j7IZpHFp0M2q/H74mkV+nn+5pTNG4xiQiJZ4aUw3vhVYwI+qBqgd0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:04 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:31:04 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 07/10] dt-bindings: net: dsa: mediatek,mt7530: remove unnecessary dsa-port reference Date: Fri, 9 Dec 2022 19:30:30 -0800 Message-Id: <20221210033033.662553-8-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: 37a78bef-4a8d-4e61-26de-08dada5ef778 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CI2780FRniQBGyIfhJ3ASnsvi1iXOk60jbO5V5v3uEft5zwiq5W04sQOMfbUcnAKVUyXotexREEW4iFHnQ+REAy0+ilNUOdIDDIAdQS5Cvn3uS/qYxNuSZ5xVhz0oawfjLN9l+JqYPWocBw6Yeyj8UuVujqyZBat7RekcSjYFlV5Qx0RZQyjRJ7LKuz0gpbJmNsiXBhHN7DE2H3TrOgpcvgAsjxYXj2FVzwkywChCLs4kMAabqXuKGn/DhHr8AHiX21q7SrX4/eLqAhZmpfLv+kxvMXFQd+PPT3Y36fnXxOUcJ5luhhxi+BoNYK9FJMdZJ+PVCfUVGi3wwVlm1zmpmdYQM9C52D/Cmczs/RQchOMRLAeidhox6XxFJXQArRchRwx6klg3JCoIkmndXQskTD2//37Pug6Dh4IENDyZcrGTnE1aWoE6gN1wcms2cnFuGz2DitJJ/fsT3C/5GjHfO8NV2pPMFomZlW/rvIJzzLyd+8WEFWspH9eQdgJwe8N0ZdYk/Gj7WPvFGpgot+aZ0SOlfRDpVFaJ1HVuZR8/ojYgTRZ8UwEi6rawyaNL+tpFeozOzmhbmZkY5d8E1bihyx8wwUZx8qrbyghtRAOSrlvTe3RMtZoZg5XL8UP3IM9tDqnoJh9CN7xFK9s3LJOBEpcc7WJ3eEw9EfKDBL0d6kKTuIpA0yJ2ZL4/SMK6pPw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(66574015)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dMkp92x+A2xnCwSHv1u4xt7LyWeg?= =?utf-8?q?E/tXQOarlq4NdC1E5zubPz4U74wldLafJtayVfVmZnsjBaFYflqiEwJcekvkybUUF?= =?utf-8?q?6T6uFyWGK2rmWl+qdwsDqMdC3Baih5p8hIqmAawCtkvk8fJohcnxS/+ZwU9GR2fnq?= =?utf-8?q?9uVWaAGMqJdewkp4bbow7warudJL0IXE4M5oNV1WfNsbqblthXOD1Bh5KB3uvKVe/?= =?utf-8?q?SjakT1mnvRiC+fw7aJxqYsIbgMQqHXulwbY6CB2qL9FMkqjhjdPXxOeDuciaB5Sk3?= =?utf-8?q?MfBa7zxa8wKeXAh1ud0dPBJVDEzGb6MXbeWZXwiZcm7PtlpslKVr8QFhQzy4HetQX?= =?utf-8?q?+6jOhX8rx+nRVyPtIvnTE/SijKyskHQvGHG9h+mg1lAXRrgTQrTLx/Tqni8xWGUVI?= =?utf-8?q?IxZWmwsQeFm4pqhCDQ73GG0WOAm9JF/Q+Df70krU0TXLM0dyyMQOlK0maCV1RH0g/?= =?utf-8?q?N3ysgvuAVoq9bKqr/CL+ad/uqLyifa4kbWE3dYGgRIsLf5gsHtAReIwYFhz1VmwPP?= =?utf-8?q?wajApX4Jph0aWEcnv4j59aE7YxSh7dv9G0JgAAmD8ZHnLFGzrhPAfYjxgWs0qqhEO?= =?utf-8?q?kzeONR2WX1LuogC5tMR9atM6WJ9IccZXMZ5nho/MecGwFQsJ3LgkvMU4VbzW8MpKp?= =?utf-8?q?wGeHFJsRba77m4R8YhApuqmXu1tF1kpKMg9JByd/GhrN+D8Pgonq1aoSdpGsABBA6?= =?utf-8?q?e6PvAsKqXMVi8cXfn2Wx7nJZRBOqtTaOEXShrfJtUrVmdB3L9RRmIV2566xfXxB0D?= =?utf-8?q?ippYevGKRHRux/8SfNaaLS8AfqPeYbRoGv8vBusko3+Bftf+GpZQEYjwNA2Q9a1mT?= =?utf-8?q?IYd7vyWdWqP0Hnm/DAA9wPItHAWe3GNWGj6ryLXtLoobxnPalvYVAOVSG6R7nimDz?= =?utf-8?q?J8TCp5OIx8k4+3H8Yti2VJDjYgVSc4MGbo8VVZq1++N3wWNxwuBKCqCohxjanqZEU?= =?utf-8?q?pxArW1DxzTx5q5MxRkLRUlK8JQO88Ed8r02tY0qpCCEmi0kjwWBZwe7ZEFYf6G4HW?= =?utf-8?q?0mAm0iBAWXzKbKDSODg35TcmJp9ls2B0Yw6qCeKKStxOGQ61xuSuNZRR7tCKJ3ZkM?= =?utf-8?q?rbYntBqWXldu90CSV0/wgoNoUfiBsbiUnYCwXYU6dsLpv56N9QNYt2AIzqief2890?= =?utf-8?q?EOK7AeS9Wtn0wop46n5ahVT8ki8AFK43rtHRl+7pZPVDPyjsJMZ7bqndkuJkff+V7?= =?utf-8?q?ZMsWsjeEXWIQFM7bZRZfvtuWBigIWkLumyVddtIpOqgRHqVwnVZYEjZa46Ze4I6pU?= =?utf-8?q?NUM3SkoiamAQtdlIHI9gqR7g1HVXewdANddLJjKkwJrrpGdlYy/N1SP/zbSlT8v9G?= =?utf-8?q?gPESutletbuubUo4FRZyHKr6v2PdSnFZKkkVLwJ2tNVmOo1dqPwt4WrMy/WLhh4vo?= =?utf-8?q?xxYRZPlSyAl3ee8Kpvqw6/e6jYjalT7B3FIsH13I05lbLL93B2sNIpnHmCj0qBiTc?= =?utf-8?q?lKCRCl4A5dyATArM1vl5awh10T9qCn0fbUVHVwkEL6b2aihsxVEskDYI5aelajIwV?= =?utf-8?q?I1GV1tLzZlqumSqW5sYicGup2Irg5muHOQ=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37a78bef-4a8d-4e61-26de-08dada5ef778 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:04.1692 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Yr/tGs/0aNe4lzG6PIky7FGt+W5gjlOfIEhAI9h0WLXTr0Q7nUnxVwKb7o/eXn9/drC+eCj21MTtAhc3D9BmPa5xNtNqsh2mBNnvvujqL1M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org dsa.yaml contains a reference to dsa-port.yaml, so a duplicate reference to the binding isn't necessary. Remove this unnecessary reference. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Arınç ÜNAL Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob reviewed tag v3 -> v4 * Add Florian Reviewed tag v2 -> v3 * Keep "unevaluatedProperties: false" under the switch ports node. v1 -> v2 * Add Reviewed-by --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 20312f5d1944..08667bff74a5 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -165,7 +165,6 @@ patternProperties: for user ports. allOf: - - $ref: dsa-port.yaml# - if: required: [ ethernet ] then: From patchwork Sat Dec 10 03:30:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070202 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53162C10F1D for ; Sat, 10 Dec 2022 03:32:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbiLJDcK (ORCPT ); Fri, 9 Dec 2022 22:32:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiLJDbe (ORCPT ); Fri, 9 Dec 2022 22:31:34 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2091.outbound.protection.outlook.com [40.107.223.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399E98BD0E; Fri, 9 Dec 2022 19:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F/p6fTO7OIGpIe2iA4pbInJ+zs5VyRG/oLEJH7h8SMnWY42K9CVQu764WLtJ0CRimVHwxM17kFoX1h9DyMBE0LX7bphu5CetxS1XF+mJUfc4EvJfVv99EfmGgbKqbfYYJXhUgU8s1SDnlS8jGIalFKfOqwa++KYijkE0SX8nt7a4b3oaXBSXjnvgP68nImCfhf8QlqFrrV07JMfqA1DLXoiNHkSO5kDWay000m/aTiT5U4uABO1FntS08H2qEsrPol+xpnfU/doyNPaVKCi50vjKSyXKCfIRE2yRykobXiVkIaaWUjgpdhfFFLUM4EciXrD0oKk+UzLiEnI7iQMJ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q5hNntqGzN9rH0fjC8DcpkCZvtk9WSt9ek01aV71mT8=; b=VPtVqYU8NjqDiN9JaCgVE7hdqH+gpnTxuWxG2tEuolcTmfv7r42MFqcD4es3UaVJL/QS8BMIAM7ATwqRc78hfYS+7awRgOVH8r33rZYK2FKG6tUD4/NcfbY9+mN0H+Rp7kgK6Y5/d1QdOxw9+cKpqHC4EZYlVeR3oIQN6KloniqhevoBpCkekVYXCzvD6YFE4U8xZ3AUt2ZA4msxq5b0yHXzeR1k2CZ+h8KZsT3c5HDRHRMW5uaYvkJ/CufFlIh7cFZ/LV0l1fKpgMizOF4mnsvLjwXl/jhDYeCgGYInv0KbyMGA9e0ehDdlvVS9/xBLlhtgIxgXF11rsHe5mf1oaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q5hNntqGzN9rH0fjC8DcpkCZvtk9WSt9ek01aV71mT8=; b=hJFXO1NJSmL7Vv9kia0NubWX5RhQHAWIenbtfrFuZ1UUNGppxQUZr2nYmhFJyMzNSIgFUO9KjrTRoi11z76iPVCLpic8afi4V9AB5MRKzloxA8MQwDFzgKxUE33GpBduCm6nWqjx+gE5hiLLUTTXzoqQTTgtMqUMogr7ANiLFOY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:06 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:31:06 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 08/10] dt-bindings: net: add generic ethernet-switch Date: Fri, 9 Dec 2022 19:30:31 -0800 Message-Id: <20221210033033.662553-9-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: fcb39849-5549-4407-0e7f-08dada5ef8ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EIxvGSBe0xtBdKNA7ZI26EejtJtHTJWSUqmco/0Dfn9VqGN14JXaHM/4fKXFFHCdRHv1VWGxYC5kZ7ObFgNU/T8D04WP54mUJil/Wl/zs+ZbDNdutZBFMMvLS3XIP8sLE5lfXrzCfF/VsKXqi65rSKb9w5foWmiukmwbYhI/XGgbKCEoQtY7wOULxBRPj+W/o4Umd7MAKX4+sNLgST48mbdnBwkbm7HVClZwQlAmSOcQb7ILeUNZG6E3tSvstU90CD9L5IznxEmF7O+YX4Hh4uoBKoBEyk1912TGROP5tiBc5FksmnsVgCOmjIQJK7ZjU6MSdlyRfjQ+gUKPk8QMZSfreAYZ3Co0H8hUw5mKKSQ+3/P4+LFORyt3dXOMmTuAm1RJhMf3oWs9nbPQfoz9oWcHaS6zCVOIQJHEmq/jDcYy1zmrhNJJQ5PaXyCOctPzf0qOtNUNcPro3D51Tgugtx59dJLrEEyk3QmgSs+v6cjRrFKGk8mT7u22jWBE6BW1L1oUZWRjcMCpreAzZ8RQA7x1GXv+nZKhZI13WOtg/Dc97gK2H2AgzekkZz4oUOO/MK5fp8/hB+V446ecEZx0fEOA1E3W2FQxsC1K1nqoxXBKSvbcoznqWvh527UJS/0+3GWed0pj7r4gZ59WjaPmQHG/lp97lJWFmJUgMC24V6NtlapcMRlYLLcNaQECvEWFSooiSGTx0MUYMh6L4gNO0ymj232xMzLWaVt6Tl6k3Grv7jdYuFGBstVUaV4mYM9a X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(966005)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YL1xNeTLduoFr5UQyGviGC29Smd/6HacrWuUPdMK9mpNtrGXgTWuAl34ev6PNxbB9DjM5rzxpYB/HsZEXGDDklIerAlCBGmJxXJ0eFK/Dmwr0OSrw5dX02d2TvND7jPddA2Rm8PBoWK/5tNRJvNDjNGacvWye3vOY0s4bR5X+CShDpO2ET7Qrp+HToHemhcs/Y9e2oF+LQIkEaeECQ0Nm83hsOuCp8cZ5S3lg5wxrIOvQ9++P1O6GTwGOCv3ajJLnm8j1weoTHS5kCLx8C7ymCPSR9jBJrtYXs3fpXc3VFZfYzmjNYPNLIrGLe/Tu63qNqOXZzbZftD9TcSrKHLq2TB47aoFUZaiC3Tb/f5YQJ+FPAFD1A5ZIbzUcPsVXWFhMkOmGj1FPbpGS2IO3X2Cc4sk++cGdxvRUpGT3wELsKYU35eFTcBEdl7xSA8fKUcQZOHpvqVzIU+nkSECEy73JdkVZEeZy+Csl1Q0LOntwlRabVZ3i2WjKjzM3qgM8y+/I/0vbnRalb3KlUnu2W1ReMBpUBpBlI6Ky34cP2g4BoW9fZiRKw4CPoVDgSFEIpqnG/KlTtezkkijapykRPY+7HfSgv7Cs0JjGj2IyBEgwVuMeIHi8PKCHSscE9w3eeaaQk6NJIvBHg1xTaW1Q/sSPBomC6DYD+wllOKLCVGlbLqUuffyKNVio+PAbZODqwEXtHZLfySbaK9L65wXv9fZe66TDR49658r2BaFmjrT/5kqm9Fk2BWa2SQI+yyFeeIOAFo1VAory2ZWX9KgBS11bGTU70aez+M+xypGDpZDyENfARgLghJd7bENQbZ1bv2Lxuz/tuK1Y/17Qg1VKuVdGpXRbUHpAP44vnJ5UFD2xebACQ29KnNFp7YOLuvD62psPkTQjnPUbtMSSFcoc6hurWsYRba6ujENc7y2hVf1pYFcYDtfwp8O7dpLDH7MslY/IqYcqWH0jLsuXFhJ6iXo1CA/ydibklroFtNBNI2P/COeH33h32mvs6g2MPs2gAPvoqb9Xp+vgkowt5w/kQQlldgzxo5pVL9/SlB8BM1BynaOhT9mtRTKF8DS6sVV+HC2wv3KeXWaHkr+vkafwQbwZZ0B6t8ftOi7eHqCbwf2w35r7Ylztuw2zniEw5KQZMbmr3uJUdIIcFpS1iKdNruhsyJhNziZU4V0dknQcSlMWeMdTTYNn0MjFsnEmDBVo1aU8cYMsSlR33dyDY73GgoA5NvllogvuI/IEkkOR9+My69qqahpMuYZFJpQNQmyK5oVbC+4cK+nZM4M9pSLIzGn7SLFjbFSku/UB3T5ixswmATukPoXWD+dI9MV6uSpbh5599+Thdxw002ZfeejCZ/fXFKJ05HbNcSPrRmVBxRce54CLY5wGhbulG+BcahzFon9pSBbb3z06cAcaq3I8qzQ9eRF2MLdxJRejbIyYLaP7ZjFbxFdyYGqSbJH07YVRE1G2B9nX9N6BU2Klv5kthhDCeqXk4l1JnxtTjtqc9hAyxdtdE83dFs4UJGRPh6i25KkGgI5tTFWwThaZXCB26wWT8tnKmsRGYkAlItcMAB/YxO+gmqVt0G6rjVFos8kPR3OQjf++1cLGzqk5LroFlt1j3xf5dZ5WKCMkCkIYWCtG6c= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcb39849-5549-4407-0e7f-08dada5ef8ec X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:06.6065 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: h/VWv1x0QMaJ1tMyH5sP1AnCbxCSKjT0fJvjxTsFCo4e6DO+1mNuAEkIQzAkSXke6O9S7FR3F49Eb076ol9VUqjv9MErva9WIUE14mtJ/DE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The dsa.yaml bindings had references that can apply to non-dsa switches. To prevent duplication of this information, keep the dsa-specific information inside dsa.yaml and move the remaining generic information to the newly created ethernet-switch.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob Reviewed tag * Remove "^(ethernet-)?switch(@.*)?$" from dsa.yaml in this patch, instead of dt-bindings: net: dsa: allow additional ethernet-port properties * Change Vivien to Vladimir to sync with MAINTAINERS * Remove quotes around ref: /schemas/net/ethernet-switch.yaml# v3 -> v4 * Update ethernet-ports and ethernet-port nodes to match what the new dsa.yaml has. Namely: "unevaluatedProperties: false" instead of "additionalProperties: true" "additionalProperties: true" instead of "unevaluatedProperties: true" for ethernet-ports and ethernet-port, respectively. * Add Florian Reviewed tag v2 -> v3 * Change ethernet-switch.yaml title from "Ethernet Switch Device Tree Bindings" to "Generic Ethernet Switch" * Rework ethernet-switch.yaml description * Add base defs structure for switches that don't have any additional properties. * Add "additionalProperties: true" under "^(ethernet-)?ports$" node * Correct port reference from /schemas/net/dsa/dsa-port.yaml# to ethernet-controller.yaml# v1 -> v2 * No net change, but deletions from dsa.yaml included the changes for "addionalProperties: true" under ports and "unevaluatedProperties: true" under port. --- .../devicetree/bindings/net/dsa/dsa.yaml | 31 +-------- .../bindings/net/ethernet-switch.yaml | 66 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 69 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 98a79be3bffe..4a90168b15b7 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -18,10 +18,9 @@ description: select: false -properties: - $nodename: - pattern: "^(ethernet-)?switch(@.*)?$" +$ref: /schemas/net/ethernet-switch.yaml# +properties: dsa,member: minItems: 2 maxItems: 2 @@ -32,32 +31,6 @@ properties: (single device hanging off a CPU port) must not specify this property $ref: /schemas/types.yaml#/definitions/uint32-array -patternProperties: - "^(ethernet-)?ports$": - type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - - unevaluatedProperties: false - - patternProperties: - "^(ethernet-)?port@[0-9]+$": - type: object - description: Ethernet switch ports - - $ref: dsa-port.yaml# - - additionalProperties: true - -oneOf: - - required: - - ports - - required: - - ethernet-ports - additionalProperties: true $defs: diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml new file mode 100644 index 000000000000..2466d05f9a6f --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vladimir Oltean + +description: + Ethernet switches are multi-port Ethernet controllers. Each port has + its own number and is represented as its own Ethernet controller. + The minimum required functionality is to pass packets to software. + They may or may not be able to forward packets automonously between + ports. + +select: false + +properties: + $nodename: + pattern: "^(ethernet-)?switch(@.*)?$" + +patternProperties: + "^(ethernet-)?ports$": + type: object + unevaluatedProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + type: object + description: Ethernet switch ports + + $ref: ethernet-controller.yaml# + + additionalProperties: true + +oneOf: + - required: + - ports + - required: + - ethernet-ports + +additionalProperties: true + +$defs: + base: + description: An ethernet switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + description: Ethernet switch ports + $ref: ethernet-controller.yaml# + unevaluatedProperties: false + +... diff --git a/MAINTAINERS b/MAINTAINERS index 52aeb86c1167..d574cae901b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14337,6 +14337,7 @@ M: Florian Fainelli M: Vladimir Oltean S: Maintained F: Documentation/devicetree/bindings/net/dsa/ +F: Documentation/devicetree/bindings/net/ethernet-switch.yaml F: drivers/net/dsa/ F: include/linux/dsa/ F: include/linux/platform_data/dsa.h From patchwork Sat Dec 10 03:30:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070203 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07182C10F1B for ; Sat, 10 Dec 2022 03:32:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbiLJDcc (ORCPT ); Fri, 9 Dec 2022 22:32:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbiLJDbg (ORCPT ); Fri, 9 Dec 2022 22:31:36 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2091.outbound.protection.outlook.com [40.107.223.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121A48F711; Fri, 9 Dec 2022 19:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYY05e+LgWPvEqDUa34nzTalOkl7BxiLns8F6jhRJZdKxSV0JhtlQ+VoZge8aecOQo9PWA7gR+/6eMlFCKLqAZ1MteqwwAN9fSUaOhXc66Td1Ee+vts+TpmTVl/2v1cwFdr8s+8Z3Jojl8wlN5ikJe2aU7cBmwkk5q1L581kPMailMsU6CsbcSsrOy7wMZqtfed5XcV5Bc4tb85HR5d0iUGd3tp24JGfw7cQ0b3XYPrWPlsqaE+z/DRTIWbtVMDJA8hhtG6MveahjTxsdq4iiPyOkv34d0GqfWesHOPMbaa1tqgH5IpQx8+Lg85vEjyptzpLEzsNKtN83DMIZ03tbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wAirJbDJr7zZ8tDqd4iQ9SQesEA26DHxqg9/Gsefstk=; b=jpIm6/bEarG4BjY5AfJ+snCfu7Pi6PN8IdeO/+j7S/1bMPPWtSsHunJ40jYwPp7OFxBkJpVyso92jHIvnOCYXm7Q6aAKUeS3wr10MnhlERYLckEnJNjmzFgHKMj2fdjMxPrwNAeY7lfQhrSRcvkBqnool7jyK73n0+Ctqm5PZgcEoEHOlo4QBB+H83X8uRyGJ94dDPA2DJkr/G1NwcncKf+mwcGKUQqJA+SVTmw2bCGTcq2bB8bCxLZnJ6xTGgLqlCif52LdbTrw3eXkhcjf50V9dFrn4miC/+eH/SM7NRX5ClEJMewjwSoVxs0In3SUb9JhDAQ/4eW/myCRMg86jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wAirJbDJr7zZ8tDqd4iQ9SQesEA26DHxqg9/Gsefstk=; b=WjmLWGdwc5GMv1pnd9qmeQi6fKXOEwHwL/fpqAi2qUISZrrdlDiRMWMInrwGV1TltGmtUm78KjroAiCQSrC0v6hRpb+o5OYqO4JXQD5tZRzhMmPEP4TEMLRqdG7Hf5RHNNebT7ffoJN0r7STslleTmztFn0RHzkQX6qpbrSEojo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:09 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:31:09 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 09/10] dt-bindings: net: add generic ethernet-switch-port binding Date: Fri, 9 Dec 2022 19:30:32 -0800 Message-Id: <20221210033033.662553-10-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: a4f1d31f-b964-40fe-f629-08dada5efa5f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LGoZKSJaoYMkQkGgVU/IoKSvX+7WEFRLo3XOY0AX7F55xK2OQ0JaivNKo6Vie7n/mWub9a+40TRF/1i3kemq3uDNDmSTJk5zMvMjv+NEqh38j/1YZhIfSd0r5ha1qMHQPb2AueRFahws6aAIEOomHMpuHGbZylpEHtFBpKvsy1ZEhmo/9+b1Gx8+G9ju93xsNsZjR1Fnr7FlWNsPAAdJHVKXlPSRctHw6zLe2qgY2Q+rXTvgr/HvqhTxJixuhiIpGlSdq/0Wuv/4IkIH0uEkUOtcFXdHz3oWHplAcJ2+KX3qMFpvFXKjzDL5UG6wuaLN6X2+MEBKE5K4UI10/q6wf9LZh7I4LFknWve3Z5qZmYE5OBogHdObYycGYADoG3vEyM5qlmRzPFmvF2e5IWaEtD+0on8yQe8vdJbBkr3ZjGgCNG2ZSPZZ4+2oACoXZWlkw/Q5KFHoli7Nki2TvMybOl47BwEEpwAUQG0ZukfJTMlPw87Qmcm2JKYwcGhC4JhW3UeK9Fi6RcZnTKvggH1o9muPqjqD4k0F6f0A0zQV0lcuX91p2yalUVtw9KWMlwM/eODg0eBqEvyB6n6oXawFTbv1zBdwSsUdD+OERbEfF5ErgPKLp+/Uercfp/xq9rhHmRH2M4/Ptwjhk74xvFlOo1ViBnJdnlkZAQ/2mZOOhP8yOxjj+jv4AdV3FHPhyBuPE22phBn2KHtpLVinT/MyrlnmApW05mNhOVdoRvh4zQNHvqW+exnaF7V5t3bbJbIJ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(966005)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jaf9WXF/vU+ZWoQnidbKnuuYGJsxGZ7auFNWItwTu8ugKA3e2cP3w3wHJke0tYbTRt3GWdu+H4j53NUT/OFvEtNSYKEYvogt/hz0lNsCwDxbDcyGB9CyMd6TeLa7uVX3yttzPmEGnGE8H3SErgsPofXnWgBEUhFVEGRrDNp/loEckOsAdWL9RhhgJ8VT61tBY4h6VzZSHtlSgkmMKDkAMIyuu73zYL6W47bXkeeLFBjFzg08bp5x4wrqVgT07FKZZGRrYaH1CSEI7bMs9pF/LmCnH1C5tzQHcfvSPsNvnf5eTGc8lHSQWflh806ATYUm/25qNz8BvlDJ8myiE6OoGcnm8g0kR9p2kRUZgMJSrCQmu0gbT9llj+ot/8W/r/DtxMqwb/ltLi0Yfzw5XK67u+8Rc1rMLM8IM1cPsmc6sOD2qUC7hCQjHrkxOfJTO1PcnNbmMlQrrh74NiEcx5pCFZ1suirA+Nzu+srSNzCayRg2XjfjNmz9M5NFfiPaZubEQoxOqU686xQjZI5/ELmKAHbIGbewXq8AAhtoEq2yUDTb1fW0RlacXgvbiv8A7DlgnhebDZ9of6P3ECzFl/F8FT0F5w9R8gwnam+393xKUlBGMzs2s6G60tl6NOt7QoLeL1sO9cd8cUQFHyO0FzFUkI5aLeu2Cdww111aK+SVCfdBeeGLVJ1MC7MpsN9r+H2UFk6LAjnGyXM3rr+tQGSe2dFgCauMmJuAW1Bs+7ey33yII8i85jalXIeZyUhcdDkvTuw3K/aboUekjgZkmiqZCkDP9vugUupOtwdMjBPqN0aqAiWg/inorSLBDAWu8I9+eePZ/C1m7oPr3/Yw5kJ9E52LaNpTOPQLsN/Dcn0OjeMJc3bRYksuTcBqsrAVe7xwdnQ8Rm7ou5E+5ATRa4KMogrQk3mMQvmr32qsAifSfbr3qgsCF7c4vjVCIZwhnsgQrH34ERVLuWCs+9qXjjpC7OHa6TeDEh7YTpz5Mh3LAE7p5DzpADiwNnDLz+lvJ4baWwrSAvkrDKxSpXn5gUBIaFGEW575Jm/2NQUz6uf/9wkgWuu/fbPC56MRoqoe1G6HZ18F7X/Y7ScfH0px7vWyWHRvDaZDJPxyeINhkqUajVm1uw2lkfr7lwmMVqfkV1lYhY3AW1GV82eA0DPNLYWYMV8XqNEbr4ZfzNRSzhGV/AAkhKciB3nMSV4SwYnXThU3yIf7+MYCy5CQPBE9FPWjuF7ZYcSyJzKGhQzp8Hn0k4pl064qPNZ6rWkyoV1CBJKS8No5LEWb43CAA4YgkUdz59+UkI8binI1xuZyMoUQbFAglQZb/M+Hx4Q+T5GbEsFM0cOJlv40EvV/8wZPJy0Wi9wQgRQyj4LMYfaKsZyURSN6NKXACnJPUeZ3jCz7KlwDC9nR4dXXDbS352qYIe02+M8xdyhyJ7v7c3OsjaMO9ScOgDeS5vEFGjqVSxWAJ/q3HQMOWvg92UlhUXZy/aOAXFbQg0mYnSQw85co3lQ6kikURGNf0GuQ0stTzlka0fyLLNaG+LcVHm4BBB9QGlpjaJIcGhOTMl0p5I6zBe6IYSxIy6MDU8NV26lUaBGV/ETsvktZttpsGdmfNDtzFza4QKJeqbd/gKoQCQUSoA5SRBA= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4f1d31f-b964-40fe-f629-08dada5efa5f X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:09.0439 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Sn5r5POVYsYb8Gg5TtpNLFSI1tbNPs1ro7kxiktYzgdJrJ5yHdn/wmCDSZTaCaUyqXXER1Sn2wtFxL3mvcCl8WAq/CFlv1Vv7sWAExGSnFQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The dsa-port.yaml binding had several references that can be common to all ethernet ports, not just dsa-specific ones. Break out the generic bindings to ethernet-switch-port.yaml they can be used by non-dsa drivers. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v4 -> v5 * Add Rob Reviewed tag * Change Vivien to Vladimir to match MAINTAINERS * Capitalize all words in title line (Generic DSA Switch Port) * Add better description of an Ethernet switch port v3 -> v4 * Add Florian Reviewed tag v2 -> v3 * Change dsa-port title from "DSA Switch port Device Tree Bindings" to "Generic DSA Switch port" * Add reference to ethernet-switch-port.yaml# in dsa-port.yaml * Change title of ethernet-switch-port.yaml from "Ethernet Switch port Device Tree Bindings" to "Generic Ethernet Switch port" * Remove most properties from ethernet-switch-port.yaml. They're all in ethernet-controller, and are all allowed. * ethernet-switch.yaml now only references ethernet-switch-port.yaml# under the port node. v1 -> v2 * Remove accidental addition of "$ref: /schemas/net/ethernet-switch-port.yaml" which should be kept out of dsa-port so that it doesn't get referenced multiple times through both ethernet-switch and dsa-port. --- .../devicetree/bindings/net/dsa/dsa-port.yaml | 27 +++---------------- .../bindings/net/ethernet-switch-port.yaml | 25 +++++++++++++++++ .../bindings/net/ethernet-switch.yaml | 6 +---- MAINTAINERS | 1 + 4 files changed, 31 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch-port.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml index 2b8317911bef..8a29b4c140fb 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Ethernet Switch port Device Tree Bindings +title: Generic DSA Switch Port maintainers: - Andrew Lunn @@ -12,10 +12,10 @@ maintainers: - Vladimir Oltean description: - Ethernet switch port Description + An Ethernet switch port is a component of a switch that manages one MAC, and + can pass Ethernet frames. -allOf: - - $ref: /schemas/net/ethernet-controller.yaml# +$ref: /schemas/net/ethernet-switch-port.yaml# properties: reg: @@ -58,25 +58,6 @@ properties: - rtl8_4t - seville - phy-handle: true - - phy-mode: true - - fixed-link: true - - mac-address: true - - sfp: true - - managed: true - - rx-internal-delay-ps: true - - tx-internal-delay-ps: true - -required: - - reg - # CPU and DSA ports must have phylink-compatible link descriptions if: oneOf: diff --git a/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml new file mode 100644 index 000000000000..126bc0c12cb8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch Port + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vladimir Oltean + +description: + Ethernet switch port Description + +$ref: ethernet-controller.yaml# + +properties: + reg: + description: Port number + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index 2466d05f9a6f..a04f8ef744aa 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -40,10 +40,6 @@ patternProperties: type: object description: Ethernet switch ports - $ref: ethernet-controller.yaml# - - additionalProperties: true - oneOf: - required: - ports @@ -60,7 +56,7 @@ $defs: patternProperties: "^(ethernet-)?port@[0-9]+$": description: Ethernet switch ports - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false ... diff --git a/MAINTAINERS b/MAINTAINERS index d574cae901b3..fe5f52c9864a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14337,6 +14337,7 @@ M: Florian Fainelli M: Vladimir Oltean S: Maintained F: Documentation/devicetree/bindings/net/dsa/ +F: Documentation/devicetree/bindings/net/ethernet-switch-port.yaml F: Documentation/devicetree/bindings/net/ethernet-switch.yaml F: drivers/net/dsa/ F: include/linux/dsa/ From patchwork Sat Dec 10 03:30:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070204 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BDCEC10F1B for ; Sat, 10 Dec 2022 03:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbiLJDci (ORCPT ); Fri, 9 Dec 2022 22:32:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiLJDb7 (ORCPT ); Fri, 9 Dec 2022 22:31:59 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2091.outbound.protection.outlook.com [40.107.223.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD03190765; Fri, 9 Dec 2022 19:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7Qj1ADOfsMcPw/eDDPkTBAFT2lmgEbqc/SLiublEAJL4yEZzpvK42ejQ/mdc/SFIk9yJVmhn9GKpwA0q9SytNrHZwVRNFeh3mDLNTZskW1++ARxjvUQOsLN3Uk82bR6HTSO1MY7X/DfWuWrPOXzK+qtQU7xrpPdM7PH554rqkOk/rVp1N+UvBv8LnACADtQeJ2GFp51bpvh+B8cxSo4F/AJ8IbG2w76rtKUbD1p8X+ZnW2iLl7JtXSpo5tzxYtPZdKBRu+/sx56gNI1Njo5wtB6mrHAah1zw9KrtuNJzi6qFpY3lUobp2g3OcpPhFwZUZ3uRqW/tzfyqOAaRpaaAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sO/kjobORaTlv7uA7a6FbeR+ard1OYGe3jZg3deg7XI=; b=gUsr0xCIKT4TgEE/7dHIUTgPNEDbbWp9Gg2ZvGmjz1DeVZ3yoPlxYg0gZ1BwiziuRuxBwdL6RJzQGtHJthrzhVtbKyZu3V04WRLJCCTH5zNDo/410B+aycKqTL7mdyojwFCdf3Os1uo8odl3osQ7liLnaEhMlGMgYYBIgSxPDU1x3HsCEzIPLhVQrCtzWRrftwqwLZiAoweU/1GSkYO0Ane2v4H4gTofhhwCZx6ynDQ0FoSJYTVqFQIP4wKiTrXgtPjCDHmVp0QHOLmXrnB44l2d3MAkWAKs5X+MHvJk9ff2DltYrnjeENIIueKbl8WNI0QV2rOSbgA26ERobx8VDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sO/kjobORaTlv7uA7a6FbeR+ard1OYGe3jZg3deg7XI=; b=vDxFxZLOye633VfzGbXf9IkWCOMYMEfXeDK2HoCcrPaTvYbTExGoIGN3wF9gTy8+70NaOJnVYjiGD8fj6Lae6AauYpTqBkGc+1mvZU4GpKhN+vzqydIlnE5q4c15QmMQu7kruWE/TeqNjmwHukYxqjcJ25mMoBRcrecUY8xHIqU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:11 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 03:31:11 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v5 net-next 10/10] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Fri, 9 Dec 2022 19:30:33 -0800 Message-Id: <20221210033033.662553-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: f4efedc1-b5c2-41bb-7b96-08dada5efbd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n0jcqVItjZwVaDUgtPK4scFfre9XBG0Bz6xMs2THsb4z1DNTfQbDj+kpcUzs+KsnxkV5EkmLloGFgm45unsycqwYg9qSuK/EK2frGfmMIRzAHrJbk2A9jxE7/turfRrcPzHlD6pJ5RBRfDtc+dqYxESgauRNm3qXL4gCGbY0OiC+V1yGH1mpiIjmkRJA96VdIxF5E0KWYY8K6nU4S6okfy2GQiVaSKQ9uBSuQy93toexUW6MEGoJbf+2NCaOxDwaNXIFTJ41d15594R4MGDwTtKezY+mCgBsLlTmPvaWsYzx/mhr/hL+HstKPWy8HxxgDRxTfDrCYpxwKXPAcq6ZUrL0lKpTYfFzvvZHPp7ZttAvI+NdHJCAE3EfsrOLiZT2vZlCW2vm0SQcACTmtOIvdS+LIgOh8bMwUQg+hJ/2mVzeVYyruwBIEZKUq5RTPtQoXPheQyU/4WJgQv6rpGc/K0hV9bA2Sq9NP35jeK1/IKw0LTTYnaEjQxuLWTnS1w8KqF3PWR5dPMU7JD3fCUOfHqsOLFdYMH1L1zSUNUx9gIOxnAXcBxTWFtwjyXzkToOb8bHOpzmSTyRcB4s+OWzLMH5Dbt3ysVTS5MUAg6pO94jEf0AMz80+cL/rMY7SKElxMrKNqyU3+CPNtMRBD+pgJg0/KwVm7m09A6w+iZRpGTAP4QqX6iKVvpP7FFTP06ZoI3oxqtNbIhmlwcS/XZiupA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GQAztZu1tE9JYxPv3QwjdnOjHZGyVET+2ItAUMHTOd1qD87I9O5/CpfrqBMpL2J0dn3Nk8ahwDRVuNkNugQPEl2YHKB18uumDXEGMjukP8fNm33NlZ6gjn8ntDTiYkVz8B73BamWHvxSFiFI6RFimGYqUnydnWExE9VRTsysIuW+izKm8iiPeNKCTX0WDBLzKP5NKz8vPzY5Aie8KG9EMQH1N5RbqrHs+TATQmWv9rNVhUg4gWHgAw2jz1gnH3rptDZxEUiQ0TOvQtR0UDh3HFCKoINriRcFKuXonXiuEumEgTB1OfwGohX1xi10/B/AlHklR7cZeVyEqDwIaqvvO4RUGbCtyulAQdopp2FSzOWXydR/sXwJ3ZeYiUPONKqRxEN15+QlG8VgkQ0A/6eztEJ3KcjW2zTiVpMWr/U7IaAbgecrDWNVMfE1kqFDFxMRYcyyXwM/qMXeI2EtPXi/dPUuf2NewdvagSFBNb+c0FcBi5JGM+MYaYiSOGsHgyi83Muvl72dCE+UyVwD8qHqH80F7f4ZE9KbfLJXfpLImDji98dEcUSoAJvG9aDneA6nHLDn6HznMX24Uc2htnle5zM3c3me2ivtNMgcv2Xiuk4G7zLf1fvOo7ykkoS76RJ9gIEapvpysolVI7BJYJ5LJrdEeXnY2Id/Uj98R5VLcxQJV2UcyAgr5/WFDHtvJxBUQbQC+NaEFPmyId/ZifJK/eKxcCoqMu8/d9jOtwYzdTBMgeuPE/tBxJeRUiCddZ2asS28V+7r5nR4RQI1q3g9E7/g20I+79ypp1Niq+I2NmP0DCQGuMUYDC+qvcZiGlvU1mu3vCGgS3arVaxK3svAgPthm3rCwvP6wqKDjXS4An3EgJ9Gqej22mpKkqb6J2uRSBVQ9XL6NVOwW9/bFQ2O88kba8B8DZwaNEgfNWj1ugqjoWgirfGyFEwZBAzTEY73iCGG4cVsC2ETfwbmFrVGkI4gRZqdjLOdHX6j+lDOe0PaJmrw53XgHwWnZSoOSPqctfQrjLIk+gjg352NIf9PxHwkfteT1K8YlVVMlbNuD4xomcK8XDKIRPVAqiFgYO8s7Te0liJhhqW4bCuBRK76LN+86wGKsY529ZmOSWoELUM95JUtToQPWf5p/PYHzm36C/OcZvQGw68ZqgYqtSnK3dZuuzl1MvlEIUdqPlpOVqJebegN1pyHqvwA6sB+C4Eq7Wc9L9A28ZfUxdxX2PlyBUfcAfvvll3eb2GV5tc2vSlg+v56CkPjcUIrHrVrVR9BXkmCBqqPgMWCPiXacToxu0m2MOOd4YIunQzg9OBcaQwXZPP5XVPAd2RfjZ4XqjwI9vLvCnJw0vtSLJevdBmCgEB4qzj2pl7c1ruA2VSXunsp+cbFQKJmWhgzGTeyjjrh6nLGvzEHjLaV/5VSiiZk5ndVtHYNDeovhuWh+nfHvMqIxU/3mV8aLek9ThhEH0jGO+8fszu06uVy/pFMfcFng5xzmBQ/BOzjYRAtlFV3x72vSjw55waiokxwnUtl2RFXUXWIWl6AZvycPbiuP/ieAcpDc1Kd9RDpz3+CjxCpzgV4wq+o/jUDFfL9naYL4oDZEMJmDkKvY+t3bnNtYcUW6SLRaC8Iln5z11XcK9qnNWM= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4efedc1-b5c2-41bb-7b96-08dada5efbd1 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:11.4499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o0JwQw5kEtAlB3nLVohMtu7etW1hv+Qe/+OEVBTivh9x6HcVwg10nPomBEhyG4r4FZ4toopMgYU5ue3ImKeuZ8jjkfPxhFlfY86Cfddvhk8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Several bindings for ethernet switches are available for non-dsa switches by way of ethernet-switch.yaml. Remove these duplicate entries and utilize the common bindings for the VSC7514. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v4 -> v5 * Add Rob Reviewed tag v3 -> v4 * Add Florian Reviewed tag v2 -> v3: * Reference ethernet-switch-port.yaml# instead of ethernet-controller * Undo the addition of "unevaluatedProperties: true" from v2. Those were only added because of my misunderstandings. * Keep #address-cells and #size-cells in the ports node. v1 -> v2: * Fix "$ref: ethernet-switch.yaml" placement. Oops. * Add "unevaluatedProperties: true" to ethernet-ports layer so it can correctly read into ethernet-switch.yaml * Add "unevaluatedProperties: true" to ethernet-port layer so it can correctly read into ethernet-controller.yaml --- .../bindings/net/mscc,vsc7514-switch.yaml | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml index ee0a504bdb24..5ffe831e59e4 100644 --- a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml +++ b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml @@ -18,10 +18,9 @@ description: | packets using CPU. Additionally, PTP is supported as well as FDMA for faster packet extraction/injection. -properties: - $nodename: - pattern: "^switch@[0-9a-f]+$" +$ref: ethernet-switch.yaml# +properties: compatible: const: mscc,vsc7514-switch @@ -100,35 +99,11 @@ properties: patternProperties: "^port@[0-9a-f]+$": - type: object - description: Ethernet ports handled by the switch - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false - properties: - reg: - description: Switch port number - - phy-handle: true - - phy-mode: true - - fixed-link: true - - mac-address: true - - required: - - reg - - phy-mode - - oneOf: - - required: - - phy-handle - - required: - - fixed-link - required: - compatible - reg