From patchwork Thu Jan 12 17:56:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13098566 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 83308C54EBE for ; Thu, 12 Jan 2023 18:04:20 +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-Type: Content-Transfer-Encoding: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=NNN4bX3yrRmVP18izGOcKzc3XHhKa7x/a6+yqKqks7c=; b=Gsam7xiXogROjIAwWDif40+vNF UZ+42sTmbxBZ6mYW5jjrxm3LH6l9mZFgjKiP69Dfmb1W458+AwGI38TxDpN2fOJo3RRCkCt9HSAbX LLeW6dyVcnOa9cA3woa7YbhJSM+Xu1vGTEmJnSlpHdvbk/Pjs5KJPVq7SDHCAx4BPkrry9ND8/xE+ lAca9g51oRq3PO3TsUxYmy8/Q9Z1QbFNekO6vNlXesnOCbDPhTlLyKxFn7CCVpMxePStnSkrdSjIO 7Im4/0Z8xsdTiL9O+C01vWZGE79a2FO5dyxQVp/7WhM2XSvers4h9MrFXYnVBfZJ7/MO/ciPKf3F7 MmoS1q6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG1vs-00GCB4-Ew; Thu, 12 Jan 2023 18:04:08 +0000 Received: from mail-bn8nam11on2100.outbound.protection.outlook.com ([40.107.236.100] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG1p3-00G9Dv-MT; Thu, 12 Jan 2023 17:57:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gpv2Z9XkmV5/O+NO/XmmUf8ftYD1DctaFyGTRXkK9SShSU01GDCeurQHEepweo2fRpln8ZKittZa14+2DpLMZTO4vIlERXGOuKYhD/Me0Uk1Q7sxRfbQxGA+iSWYemDUqrSIs/CUT8PjlKmJKs/a+8Yr0Bh6fIcKAWQ0b3QqsVT3L5aYel5SGw+In/jLnvr//+N5cWGFi4horHjlIxMJtodl6SR/1b9R+HFELh5xlSPYRgt2GyTcXePaHnT93Uvez3ROTfthKpAvpPnFdRwXBDtHsdrSBesvvSrBRmFJj4c1CJaUe61dXEaIDIvX42ivzOweq+tryQwa6/tqoxCnwA== 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=NNN4bX3yrRmVP18izGOcKzc3XHhKa7x/a6+yqKqks7c=; b=H0Dxodc0vM+tA1N9ciL9ChZJ59AT06FbLowu8569wWNC35GiMdmCxLkWi5fcCi71l5WIDO1ZuQt3zoBRGNPUH1slaRs/TS+y55keaS/cKPsOuazEbOPt64Hd8RgCyxY7Z1VgXoGU6/jR6TV6mGCPwfjoZkAXUlBVWjovgfbjUF/ks2EWGj7LHz28cfUuW+KfmVtkF91B7yMO054x2Thz92t9IOVDSOV5hEALn2NfnKSGxYuMgTcGdwrO7yAQLLkc7wPMIkRZRxqtRRTlLrivnA7v5rg1FPayK/+VkIqS6/ime9+1nuOyNRsO6knC4WhAHVrJxp4jNSzn+v19p0zAUQ== 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=NNN4bX3yrRmVP18izGOcKzc3XHhKa7x/a6+yqKqks7c=; b=Ko3+PtFj6y+OGNvEt3G82llIXbbbHKVIxOGpDB636qmTGPI8XuI7vwc4YxkpSDAm5AuR+APIEoXiT/bfEH2+9rsDnTdkHx18pG4aNrdPZWrZtIakVGPdo+kBjmqRrhas5HeiwDu84iLwbu2LYcLn5q1m8rDeueKAlMiHtfV2BVw= 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 SN7PR10MB6548.namprd10.prod.outlook.com (2603:10b6:806:2ab::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Thu, 12 Jan 2023 17:56:46 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::2015:3589:3e96:2acd]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::2015:3589:3e96:2acd%5]) with mapi id 15.20.6002.012; Thu, 12 Jan 2023 17:56:46 +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 , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v7 net-next 05/10] dt-bindings: net: dsa: allow additional ethernet-port properties Date: Thu, 12 Jan 2023 07:56:08 -1000 Message-Id: <20230112175613.18211-6-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230112175613.18211-1-colin.foster@in-advantage.com> References: <20230112175613.18211-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY3PR03CA0002.namprd03.prod.outlook.com (2603:10b6:a03:39a::7) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SN7PR10MB6548:EE_ X-MS-Office365-Filtering-Correlation-Id: ef6945e0-3f22-4ac7-b24e-08daf4c65f11 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9ZwupCiZHqOAfc3liVwZMCkXjaLFyx7968X7SIMYby7A8pN/AVKfgI4mqN77PARgU0k+FlPupZM4fQRr2bk2gozb1DaDj3MCmF53pFKpLP7h3fdHhHoJaIdC5fy66/Y76iuZqQ9UAhPLRTZN9hLjPzRev2EwAoEXP47cQI/YyX9Y1cfdTlHDQai21OGnZW46YgRMmeN1rczeDNVmlzeUNxIn75CwhNxX8I2BrNSD6ajrn+mtwrobTfQ9Wf66Dt7rUZHO0R2qbGq8w1GVRLGrRHogLFFRVGYCYL9/feh7oRp8oC/0aF8ROCSHePJPK0DjWSlEfRcOMPqnvohg6zRpty2rHGihRw0rEcKzHEjyGbTyYN8t3Ks1ex4wivKvKmamM+KHF0oYrMbL6D+DL0p3G86w2vL04kiOeOj5Q258qQRdPnq1FiDQt/PdnC/8wFCf1euKLqNuB2EeH2krEdVqw5HJMZ099B5l6E9S6lqr8hXCbSQ2yxC4UX6LAkujMY1YLlSAoqGk6MZ2z28oVYO4pOiNinq1LMU1WkWAL+psIeaoYFQxSdgkLQXVzPSEJmjFdXEAQv+0i1Xj/Vd1Jb/qSIaAo5ie6QA+JOaNhrqIJ//6NSNVPYTywPeX9Rc5WdIs 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)(396003)(136003)(376002)(39840400004)(366004)(346002)(451199015)(66476007)(41300700001)(66556008)(66946007)(8676002)(7406005)(5660300002)(7416002)(316002)(44832011)(54906003)(4326008)(8936002)(2906002)(86362001)(38100700002)(478600001)(36756003)(6486002)(52116002)(6666004)(186003)(6506007)(1076003)(2616005)(6512007)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zZfMUbbHBZ7fj00SKjM6L31mj7p5Itp6lI1JHgfyRz0dch2cvJR0jhb2Wi+trfcH5JTOti3oIYILZs3mPcn7MeUTHi2H/bjTIJcLRf+qiHJ8cu6oF2phIgO4OdE9eEJ3cf8qp3ojDjXLvNJH4cam+tyNOG1NkSnB0e/LFyOkTcXSUq4uBiD6mJcgSZCyu9JqR4O7hmEhY33HpdqTN05MtrlIRr3R7UysMdLKQoV0pHUmrs+kR/MSfQ1DN6l11cPEnZx0rVMBD22kIulIY3KIkPUm1jMg8TrreJ8xbL/jEl812FPbkEdAGYyWoGs64fq67+x4cZX0AQZta1yPWOzRuEnCgxY3a4nMNQa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zYLmvHb4MsiG27hhJIlaU+7k1ggm7Ccm79MR+DFJvUBTS9FgPm6b2LKw4ZXuos8QrGHSEhk0uIFlocWPKTYrZmiALUz5NyR086iuSjAb/DXzr7+sKvV3UiyW0U614mXGCF7OEMr8tD19rdzKWQEIhRjspWikeuSiThf4xM1+q4f9ljBM7DpdjqyXUXatW+quN3MfQjWPP0nH7FYa48mGGVs+McsuaFSYrPI6H9Hue5UIENSBrWRM690AxupSN/lTUd7IdoeJ67LUcflHB4dYR8= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef6945e0-3f22-4ac7-b24e-08daf4c65f11 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 17:56:46.5168 (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: eRRCFaCLm2TL3PhyDvmdgcqCKKChQupiNLpI8Ws6JKjP3TBRvEMzE81nina5LGPY1tqCinj+qFSoz1dP16Lp02SCdmJpteaVhSq+7AjsAXk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6548 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_095705_801616_BD6DE0EB X-CRM114-Status: GOOD ( 11.47 ) 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 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 --- v5 -> v7 * No change 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 efaa94cb89ae..7487ac0d6bb9 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: