From patchwork Fri Nov 4 04:51:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031312 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 A19AFC4332F for ; Fri, 4 Nov 2022 04:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=vbrNAYLt5QpfYNGb117/W147gumDt5dwjy7t4emDlGw=; b=1R46/U6OommTfK p2zRt+aGI4DxmjbjzfYWxIEq7t2FMj2QxArIDlYZqdW7mQ4AlizQaZYM1QwUg36/aiZrP9Q5pBer7 bAstvfcrmJDdkmQh3PlLbOCPNitueK+KwZrDR/mW30u2MzIf25QMTYJGA+cXw182mLODQLwDstBRQ Gbw1JyVoiB/hlbNYRHf5zAV+5JM1ovD7mn9LZpWO6FowFKIoxH6plaMW1py0vKmzsWU3v6l4SSHvR qXxt0mDWAPn5r1x8QJO1eg3dqJm61sjrJJIea5RMqhsMkkh2ctsuRixQyenK2OzEpBstyM/B0rgfE WiSI6ZN8KsvbcQMxnwcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqoh3-002MHH-QX; Fri, 04 Nov 2022 04:52:38 +0000 Received: from mail-dm6nam11on2106.outbound.protection.outlook.com ([40.107.223.106] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqogr-002MBx-AO; Fri, 04 Nov 2022 04:52:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OLfbmzLasC9TgrZGd6xvVFGbCVZRTRLoEoy0k6Fp2hJNB3uBu07jK0tuXsQ9dAehDIxuZnxcmb2ICOogjeBWUDbxuJzh2Ysxj+GwasG3Y6bS8zlOMXb/MoaenpmTJfyu/HOpshHQVtrIhdQSxr7U/78sxHTr2xqop3/D6jtVHQRskbhtyZxRuz8+08q5aBP7SMGdjyCa9UahTLk59ZMFnUGjTUjiI5nRTgcwXCDB3yw4Ka7HPE1LWVf2tRP7ccq5PXpxVPeQ14GgPcYCYsrHGk8YpOortDu7Bg2PwlfMR+qSYpUaQ6zqWm9taeJmzwOrXesecfAEzyKhDCQijhAMOg== 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=My0hRrEOLaxcZdt44RMuKm0cz6Lj17UAckUIoCKo+uY=; b=AYTvov6xUAw15lQO2PFxxGMIGCV3EMQ2eJIhThHLsHyHMpMbi0L0ey8JLL21IEP0kLxEj60LFQGRfB9zsd0kdiEI+M3XkAbt3QfOo+a8urcW6At8gx9/FjNYGjJvB5VJdTkMwIF9gS3mtOmLGAiqz76uPk0lGFt/B+IVsqBoy+IOSBlBp4zi9wP1xRd3bitR67o54XTV9Ktp8Ue6QJzaGci/AwE5CWXysx/8k27mTU3K+sOBmaBa3a2rwnQ7m7r43/nyO9OHspu5HqaTTzoM7CPOp7z53V9RnVfzBzuzCfEyf1w4d8UTnVum0TF1lb8RbWfUv7BmqBWo+uAol9SDCQ== 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=My0hRrEOLaxcZdt44RMuKm0cz6Lj17UAckUIoCKo+uY=; b=PmQ4mSUA+Fkcnp5o0FihsJaTZXin+O6T1StdCYPNX0QVRDB7+JeQcmw9Aw3goslQGcpA32dXGHPkFWHpddUA/QQZgl7GBPoqOfkDj5hyqtBzf1wdWUGWky5CnxGbjtiVKQNtZNP45vGzjH7uoYj1+IKstZ/fW7bW5ERoyzOUdIE= 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 CY5PR10MB5986.namprd10.prod.outlook.com (2603:10b6:930:2a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.22; Fri, 4 Nov 2022 04:52:17 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36%4]) with mapi id 15.20.5769.021; Fri, 4 Nov 2022 04:52:17 +0000 From: Colin Foster To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Alexandre Belloni , Claudiu Manoil , John Crispin , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Matthias Brugger , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Vivien Didelot , Andrew Lunn , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 net-next 1/6] dt-bindings: net: dsa: allow additional ethernet-port properties Date: Thu, 3 Nov 2022 21:51:59 -0700 Message-Id: <20221104045204.746124-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104045204.746124-1-colin.foster@in-advantage.com> References: <20221104045204.746124-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY3PR03CA0023.namprd03.prod.outlook.com (2603:10b6:a03:39a::28) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|CY5PR10MB5986:EE_ X-MS-Office365-Filtering-Correlation-Id: d2009c73-b526-4daa-ac66-08dabe205929 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QroEQJWTC2vTbz1AzX5vzPauoz/kugV1rwQc0Jm5LahiRV7fopQ9Ni0TkNvPeHBDSpETptKPl1atHu2WF54uxDqbB7Yw+C1SHtKZcd3k/kPM6U0wJU4vLzQAYWujYtEEXKn5vj4eQev0dSQ2gzPWEYNFNuyvimor6FZeem/pQSXYIkjKxbJ6HY8v0Uixn2/YoPEkmgNsM72RoGA9Z8eNJt9JnL+0th5Euxu2L9RzgcFLvB0HEiFbRyA/1fhdRLuoBYdRMEIFnxNZLcnAAhiPwtf137HogovtUmo5PqMBmxj0Bd8biScAPWYGPSAxNWcps11aON/EyrldapqSe7xl9mdiBxZVggaDClshrvQW+pN5uYQa2JQnjt2xZyb/kyiGqFdPnXIGhKGCg5wqodxEdrWrlryzDGW+OZKcTZ/zT8eRU2f0Abtecf7b9FkhExKdcGBivyZk9mMDoYe3Uq9K0HJ264BD+HVEOpdCSIHmjeM8STVhay+0TPy6Kb7OTUlyU1HcgQbuq2UHDA77K1ZlfuJUrhJnkpLTgwsi0ie4ljaPJTHRE6T2y76UzuqX16sBp3dQ/YuPsZMXRf6lYG+cua7/DfzYThlVotqpWAbq1rof8eXLLyM3ykS50+J91NwFP5AdKUEbaoFt3xM2YoyymbPs3CQbFvGYmBSyVBdPuWRl7HWophJMjFm0/AJExvYg6VfB7zj+duDS1IIF0yaDri2RFj8oTpPmpF42JtOlzRU4A1dyfxjABiE9CIxpEepEdDjlfKXSEsbZEMpZo/DLhQ== 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)(376002)(346002)(396003)(136003)(39840400004)(366004)(451199015)(86362001)(36756003)(316002)(38350700002)(38100700002)(6666004)(8676002)(2616005)(6506007)(66946007)(478600001)(54906003)(52116002)(66476007)(44832011)(6486002)(4744005)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dHRIA6Y7TbqxjPnY2U+w5QuWK+p8YLJREPHFDCzAKTxhyUpcc5PJHSXlKRQrBX2R41FXRRF7/R09aAp9NOOwuGkTOJyjNx1ykXzJtSyUbdp7f/VFx5p87Wo56d8vsWWzbeE/VvGlo3uQz2lpdCu6s20KAC22pE3iuX3xRcud4zJBzzb++NkKNQnDPMYJNHzGe49riIKUsut5S52APzVs0JWc/6ivdoqhwxVsijXU+uDV7vK4J03EV6mXZpC3JdD1pSS/XVDQ0v0BVC0TT3gfT+zM7Bww0KC6W87IkbKmmOORjlN0NaP/GrDH4Vb+cs0LXmrgcfx9iWtll4syoQOE2k5D5uKacjyCYgdBXjXAnA981I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Cp6tg6XBBN4HIgLQqdP/tS5uqx3iGscq00HB3iU6W+aOMOsaBOgW97Syqh/HmBQIj0Z7slZat6fL6pcyQsmSwrA7MIlNSpi4ik4QgVGNV9kqvGG0g7RbWFf7BpncwVZnTXezOmZFcfizVxaNbeFYgUUMRxDtOsprjytkwJvaGaw+ozDE/tHPxYDpt8cPesW3jgHMShjapPNmbKVqXU8= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2009c73-b526-4daa-ac66-08dabe205929 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 04:52:17.3761 (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: 6g0OVKdAOfn4LjBYNQWj64LAnwVzNbnQkpRV1O1UFYn9LgMC+yCw92/J6M1RmpTZnxQcdPY8GrSNNSCRmuHhL3gosmVDjCHKMHQ6EJB3fwo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215225_379252_0159248E X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 --- 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 b9d48e357e77..af9010c4f069 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 + additionalProperties: true + patternProperties: "^(ethernet-)?port@[0-9]+$": type: object @@ -48,7 +50,7 @@ patternProperties: $ref: dsa-port.yaml# - unevaluatedProperties: false + unevaluatedProperties: true oneOf: - required: