From patchwork Tue Jan 3 05:13:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13087188 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 996CDC53210 for ; Tue, 3 Jan 2023 05:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-Id:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fMYv2XkRaYdt1gOb1GmhZsmGjMGM4WRVrU9cU6JbUf8=; b=Q+7l7GIGuZCQVDu5pACq7uKcxU R9eyQnZG3yfMum6FhtS6fl5xH0NFk+WMlgP8YOjfB7wqIiTm8rhsxXFP8iokxVO7Ja2W23xzQvg6T Fwle1HT2u5ihg/RRoaNqt7I2UPHdmmDp7DDdNfH6ANE10+qhi8Za5cioHxcpUR0IcgzesWpZoYG24 GEZSScqTjzg1ldu/+Q/NIMgXvzBSyD5M1ut4DKwsBEY2TYUiIEJyGlvWJfMovZpjFz38dk+fqwaA5 Abbac3fM7jzr0vSf+HaC7JRT0TWZyrHv1R1zAibuHkkhDUC3LcpMjwAvWR0gp7/TE9EvkVMPy9avG n+AdBABA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCZik-00Gi2r-T5; Tue, 03 Jan 2023 05:20:19 +0000 Received: from mail-bn8nam04on2115.outbound.protection.outlook.com ([40.107.100.115] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCZdE-00GfGd-Aj; Tue, 03 Jan 2023 05:14:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1kCFA44z+6NPVPMjdm3f7o0D8NAHJLwbp5lgRvL1RBw3mY80CpkRC9+CSgx1bbKpqsxn4glQL47rMkMxGuc0FEBiqKqMsuabelM91IiYlrnfQ+AV1r5fC2zil84rPpVFA8UCiGPoH0PuDh3EFfGcLM6Tj6ulcqFd/jnQ0/gIUUBn/mIZ4PeecL/4aDBXhoaUJvI8mK5OD/lApeOA2Q5NUEcuOUhDyL4y03xgmSM/ckT0FNRSYaX+xug27ZMMPYhshqrhfPZXObNs3Umgpx1MYSrHUZQh0qlTTxKOFVtnMCxG/WzKjCU6d1Oi8LZpi90lQktb2EMrSiAGc2rCmZGlg== 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=fMYv2XkRaYdt1gOb1GmhZsmGjMGM4WRVrU9cU6JbUf8=; b=iIwKgk3NuW+5QnI3IYaA76KxXWuxhEAqZ4VpIHog5VkheB0LJq3LldV2FLFZQh2/ZaSj+N9lZbvGsFXOlGRcT1hItl7SKbOhPQX5WhDLuYxwWv8zihqXHlvJUWKB68jzbQYBRcSHORkCnPQOOHKaZC7cO+FIBTXSTB3cwwPBCgz13EaFU8g+Le7a6HQq9SnapRrdJzwhEL458gclvKAUPh+L2v5fDmIgHzQhLRy6iZ58W1MRRJW4QOQg+vJ04ASPZnDMlWA/VZfLXDG7LzTcBAeoVjCVmL+9qiA5OIFDlnM3/Fz4CFvIT3fRYHbvaefxUUkOPuJIQDVgKk8FjNSl+A== 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=fMYv2XkRaYdt1gOb1GmhZsmGjMGM4WRVrU9cU6JbUf8=; b=sywMcczDxkOhl/xOG6LUPvVSpanF1F8bijYq/6E/lOO4suH0PCsMsSbSz+XwO7k5xm4cwfdPaMCXVHU0HBKkbn2hyVGYGW3U41iiZmM7IsLeVpWNMcdGAMOK4fHhLOXlHUGIrZFDG5Y2xA/v1rLIF9CreuvmDBXhJflISSBHgqI= 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 SA1PR10MB5823.namprd10.prod.outlook.com (2603:10b6:806:235::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 05:14:23 +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.5944.019; Tue, 3 Jan 2023 05:14:23 +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?= , =?utf-8?b?Q2zDqW1lbnQg?= =?utf-8?b?TMOpZ2Vy?= , =?utf-8?q?Alvin_=C5=A0ipr?= =?utf-8?q?aga?= , 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 v6 net-next 04/10] dt-bindings: net: dsa: utilize base definitions for standard dsa switches Date: Mon, 2 Jan 2023 21:13:55 -0800 Message-Id: <20230103051401.2265961-5-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230103051401.2265961-1-colin.foster@in-advantage.com> References: <20230103051401.2265961-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR13CA0057.namprd13.prod.outlook.com (2603:10b6:a03:2c2::32) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA1PR10MB5823:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a7a8987-bf67-4562-99d7-08daed49603a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wHeJh2XnS+GZEV4paiGuD5efa65sYmtIKvMJpx07QJm3YZQAav0rGhFKQzl+Rib21hZ8nEWX7xxL/u7IfRExouib/Ks6upfCqEG5Vr1O8+fFVqzdrLnPH/2gYgSKUO9hn3XEyXv0/tsMQYZPSgKDpyIjybbzUS6HRPTWb/wVbRjBtTQDIJ4YCxG0r/NuCGF7LW74e7Y1TrrTKY4KO/zcnDf8+APOY6FZuSG0OW3re5QJQx7yBhFf6tF2yZ1sVq8HF7KaPloKrRfRJDfgQR/y1qcUNnYBBQo2P8FS58aW3MGbyHs54f/+Z6QMjHHtYzvgWb/y4EiCW+47FP8PKpy0uB0+vEVEQNAgdoAsuLjMf8xGhImJcpgxZLg/YtaeXIU1ZWV6EZc6MBIDasZ6fxw7n4R6U2eP1RubVFM0K79vbH+VMiElQ0QjpsGC82uE1mJKdv5Z9tUsLJ8UXfB/Xn2F0dH+YbwAMdcJLM7i8eA7USt+nIJwLj3vpe7vtJsd3unUfNiHdDEpwaox84uJ6zORvKCJwPJdJUOogMDr7YK6idZL2XCF/wG9bmdDBPqBBCWjdoivbO+roBsdXKZCnOLUq2LlZ1oXzt2G5491Lm+RZP/+vs0t7fRFe5F/ELtUaHQXIzrR/WgUCV3lRAktz2YDDZJrFpheXi8pySPF2Z8O3ZoPW2SbKfl97eqf8fzsIBWOhqHFvibm3ayYGrpr8FhVBdkVDSulnx/XjFVvFlPsC7qPwG0NafxUOwgZHfVJlsuo 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)(39830400003)(376002)(366004)(136003)(396003)(346002)(451199015)(54906003)(26005)(186003)(52116002)(6666004)(2616005)(66556008)(66476007)(6486002)(1076003)(316002)(66946007)(478600001)(966005)(6512007)(4326008)(8936002)(8676002)(7416002)(83380400001)(5660300002)(41300700001)(7406005)(44832011)(2906002)(38100700002)(38350700002)(86362001)(6506007)(36756003)(22166006);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bvPYqjn2jC57ClGcMSPWtS/YzXED?= =?utf-8?q?OEFys1cD5sQ32EIjZLY8XoFC6Mgv66i4Mpdh5LaMYLZfEVmxyHd7aOWgrr15h0bPZ?= =?utf-8?q?aKrK/wm0foulSoxi+jjl55L6fz8vxbZ1Xa+s4YFB/CycLIj00tIiGJFXSw8smAVnK?= =?utf-8?q?PxBD1kfIjQ7GqoPd5aKLnJoHRVKB8d7LhG36ZNBpaPUk8qwwhF7onn+BxnkPdQpch?= =?utf-8?q?MMdgBxdyc99Y4LC+FotSiOBcKatyeS24FljLdYywMydzYSwjjQYW2k62YJUcBmzkm?= =?utf-8?q?oiCcKoRocO0NaNoQivNtDv0cW5e9NGDUYLzUcQ++dWYbypHm7dB4D1bQWbV7UzJKE?= =?utf-8?q?BZYWeiSIJLj0hGnDQE3ufkP7W/4PyiFAh82o5dVhnLp5KtB4D+gXtJeP5VC3/Wqr3?= =?utf-8?q?tHrI/ES5KI0KE1bWwAJZXw8ttdNr2V5ntjABnaI6cePeAx/mnEOuxo5SKmhJ0nrlx?= =?utf-8?q?aQHfkrBDIgTd3ScWpNQWHqqWWNq6y6b9SlJfigt6WF0VY+UbXR442B6WWVgpufqN1?= =?utf-8?q?9G0Wd/xGkdT5Cr+jzo5OTRSYUClrpIHkJ1ySFUmsxlGSsqzmecjPVz/uug8oVxo4t?= =?utf-8?q?5kwsAz+JTXQRP5s23yDFUg2aetaO4XTNQx6b4lTCNkVrIeGRxOHMJ+hSaTBOTdVhI?= =?utf-8?q?uLll7dDbZNodmZOlxwbvWW9jy8By19FKSuGlx6jN2SlhOiF4G9WxsBP9/GPEG+ZfN?= =?utf-8?q?WImOny8Cw/kvTdbcWxPDG4rHsJ2T10SiVeq09c40x/0hRPUyWD3zOBbP1kILWuFJ4?= =?utf-8?q?v2vEHGBiA3/M4iwBkdanCf6QeLlFuMF8HdaCmSspyc/+r7x5azPL4MQieWTEhenMT?= =?utf-8?q?/2/3I5tG/iGyYlWCt6oAHEmnfD10JIiC6FioJahb9XX/jf3/4C5Yhia0DUySuCbut?= =?utf-8?q?IPQq0aa6X3is3bXGfCNzewRa0bPJS+NN6eYiX4XmPmtzSDHH4LbGdd0CEAvPVDpkO?= =?utf-8?q?vW3aIJ6LDnOAEXNTg4CRjS2Uaon7EcgbgGgvYF3164Xgn9/kOoH1MC/HXxgmFJ590?= =?utf-8?q?qLvvyr4bw6jKZqFoP55BeRtvYqlIb3uLAPULTJUaStiQLZYTC9JvuBKGYiiiJmdW6?= =?utf-8?q?0sqHUig1ev835jU5tkv7h2F0YM1pxndSf8e4lQYMKNY02FljCtIffLald8vQqAZJB?= =?utf-8?q?XeQJ7KgDO7/frrvXIQ0rys//51FWfWRFOKEiTSaBv1UKf2GfnNXxd1fX/ETjL50Bp?= =?utf-8?q?9iMZZO8CdbItnKKlRqSw+bbTW0/Pc9Z3IPmBw1Cm+nghW+CmvlYgIhiRBxWGqiKPS?= =?utf-8?q?SS0L1VEUZHcooGXd1h3idW4aN7716qAo+lzOPQL6YzW8yvumuI4KJdCbn2ig4sjlv?= =?utf-8?q?Xdxmp+CrG7JdJznNQPJH3AFtzW7sbUkW9J/rx99lTwGD8qSlNwRDkfWKMlKa6w/rv?= =?utf-8?q?+v3eDR2qCx5h+imiTsZgMVG1Z+VoYtakm983RG6WNZknO8x1fxgQD1QwrUEW7xguN?= =?utf-8?q?7rEydD2EwG8VdE3TEAaC7dPcHur4zbRoQ1hyKhaZAhS0amkPv8wMMHtOpgpwgtK8P?= =?utf-8?q?jkt2TRQRCOwq1Q25fkRrBe2MOVcfnDGj9bACTW4/7CIWBz1Y7xMWj88=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a7a8987-bf67-4562-99d7-08daed49603a X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 05:14:23.1226 (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: 6DJmpt/7wWeFxGJGhXH1Obpa5vBF9mNSvLhEtopiAlM9KnKwfCT0xdWv2kc5hv72XGyjVjzmQWU9lxmwwXpjAf5M1+ZR6HnX2I2+hUF1dBs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB5823 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230102_211437_032532_EE701064 X-CRM114-Status: GOOD ( 13.27 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.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 --- v5 -> v6 * No change 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 2a6d126606ca..9565a7402146 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 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 e189fcc83fc4..efaa94cb89ae 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 447589b01e8e..4021b054f684 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 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 b34de303966b..8d7e878b84dc 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 347a0e1b3d3f..fe02d05196e4 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 df98a16e4e75..9a64ed658745 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: