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: From patchwork Fri Nov 4 04:52:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031314 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 CEB17C43219 for ; Fri, 4 Nov 2022 04:54:05 +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=Kyn0uUyIzrmlj7A6oOUsVm09gKGp4NL7/wElz+CWASc=; b=veEvMLgnIhQrg+ tsG5oGMdGgS5F3RhuT3bFnfBhgRZus3R9+cGtrC3mpLb0Ife1wqV4b9Ks34PD9FUCN5RBM1N0uFD8 cqYt3qXTuOMV2d3zEpn+7qyzeZqztl84rLiJEI1TFZPCmW9nr4ncpb3zTcq/cNUbR+Zx6h9HJuyB8 xiNjZCJANg1TIuRvOv0cm8o6tZR8MqmpHyFbFPZLhVog+tBLf1tQfQGtZqdf7mZ4OuX8glpSCNPln ZXcKAS0xkwyMzI3+2YyRa41cTy67+gLmZx1qa+5CBiEHQUFlO94bO4VW72wTJU+Gi27ZhlnfC/H3O N1YRnXkvjevRk+p3fiQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqohD-002MLG-Lz; Fri, 04 Nov 2022 04:52:47 +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 1oqogs-002MBx-L9; Fri, 04 Nov 2022 04:52:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jtn1fEEsNknTkMHSiihi5yZLwpc/MX2DBddvh9XbyAksobU41CaSmNKBwhDay/GmVs/z1gh44bpahWIm5A2F8ax0WsytIbczX75a90Xtn6OTF/hRDjH9SLoDYZ5ZbIJUnI3obUNuKLEKyxBlWINm8aDWTPm5exKlrL8Q8IUlEXnh1g02tqzJq1wlFz2VZDpklXcMWN29wNmi7RM1zmgg9tP2S+yqLxcflWi+KfSjxBDmndYg5ZryLbi/Z0LFRHhvhYLY3VcYkx9ZIMkLSSvTIhH843oEpi//sXMWgJI1wSaABnDxIHnoRLkkkrSjW8aRlrLLwGltTuSI2KI6p6Ct+Q== 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=rn2pTQA+eN6zHWL391CX9DRLmeHrRT1C6lKDQAExoMI=; b=aQyvJqVqS58HvLFzngvHSfZ30WQw7Oto0xPPT8SQDda6kwUjFqBNK2H+j/wcs4S0h1YVU3mbseE8c8EmRKcxov1hH1Q6D07G6+AHl8paPLNGBg2Qf2VB0TRUONzgY5B9/61M7ctg+DJiD9pj4w8GAXD15yjVNI7ocv/Y9HZ/yAAlk1IkW2I4CaGLxmoahMuKtem+chifugxwMTX0LPGqGB8gnjDkifS4ZFpDfLwuJyN2G9KAHlzP6OLH5S5IAlTNFSXSZEXpJ8laIWzj54CLyghbpKDCb0xe8OCYzqMIj7l4Q/93qJ7xP6L1lVcvcUxAdu3Qfp8UryaIyeXgGxbSxA== 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=rn2pTQA+eN6zHWL391CX9DRLmeHrRT1C6lKDQAExoMI=; b=YyiVa2e8teuZ0gQtOjEsqUdIxU00pNEf+lZ2uKrsm6s9b84hf7CPLlsLEyO8I9Jg5bos3BPuDUYKQI7h0UorISwDUtFYWawI6PlE48ZgyWAfnNwtuPv9IKMTM8aLB2xMGYKf9MLnLInbaABI679jhcR5iaVe5AF8JocEgfw7v8c= 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:19 +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:19 +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 2/6] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Thu, 3 Nov 2022 21:52:00 -0700 Message-Id: <20221104045204.746124-3-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: 8b90a5ae-cb2b-4483-c366-08dabe205a28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7aO5N6hRepcD3dwu4zMbrZ0VDT7G5Es64y5ZypWUfhKVgX2zpM2ZDsVDKCPPuMawZk6QLRsAJRzAmcMUjU9/ZUwrKYD61EH8EgcIz9CIHuY3fwy781F9Juxo/UDzH+CW0wTCzRrtDATPwA6/WuAeYmd8vj/PdcVKgYK0deCRltnGiZjtUtZQFidvhtbaIpt0JqMpJ4HFboupIjMo0qtMX94c0LD38OfFQ+Ncx+u8iYafXGUDAwq/9MZkIyWDxjFMS41+hhK5PemY15CbNnWGJQR0EtPjca2fdkUQwCDZlzLktPtextdY9Ap47XpTul10RYbmzzwUQAZfdVEzJjxtwRp1ifhXGIoNcJDSVBYSYvfMSblz7TGPc1aoc+US8IIxRy2FeysYfv5hcXxeCN1Cw8VLyEWIqRLBYabjc+d35YvqQqm6Hp1w9nPEv6PJkIQejilmmzmqobsv2niYzBGh//XOxBHyzgPhxlmuhDJQwo3ABOhwnQ1CXx7fVu91+zDUX0ewsRj76IMQzeczUyNNhMFYaLM2lPI76j0qRRcGvK8WMSOPUqQ/01jkWiCbaUqz7QjDAbKcNUd9IPFKzr6iRS18SqN6Kk18YUJuhN7dpfzruSxXDrPGAcXUJAM8hoYTclu/0vcNwtSp+VmW0vYjUkh0DbUIO2nSCQ+8/6v5Nji2WZQZo5VwbpfxHKv61kqb3AopQFEo/rU+YSGkEdg/x4urwS+pyrXjRxaVJBOgGgCY50yr6czMXT7OS0Ebjlhtw+jqPB4edZfQFBhSwBh6oQ9A202s54iSgUzicUNS8/k= 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)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-Ch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2VLXXIgA88datYPz+zl3FW2AOnFTtA9KHinn5DkIm23pd7XaVhHgmTX+wacFYTRWMa5XskZ2iuxYblgdA6jl7q27N8rOvneaMzUXGa4hUVwB/MfdIMTsgR7of+GFoTW/Vw3qv6M/w3nJ4oHGZGAZF+xBRyBmUkfPuNjtvkt0RmYGXtDHjhJpiSdXLFVASxHj7sjbL3fQQJgHKBUa5iBnKWdojRO/YgkklsCl+tmiJ1fqqts6VAoKLVrnqZU0SMznGOa0JHh9mrwh6PZfMAATtNXAfxsENKrlry0pQiwY4SH7GMN51yTTgfBkElVL17iL/qzPtwyM/f4GvB3emnnXLp1tM31Xea1InJt4FXO06ErnAp3ZnBy+67fRkNRPAutyfB9tcVA/x7vSGP05mHNuzusJn4hzbrYf/e7nrMAHm0vdat1b8x/qUY3A5rdwg/dLWkFcZBuK0Fwln/1x/BJsrJajYj7tUVIdOE/G6JE40Is1Qc6W3yyD9RWjNebtIKTBzpM/1Oj7FmX5UTSQfLd5AQzgO8qxp7en5OnoXbK2wJh6cxNFuJUxjj+iOS2Jnzw13SaQAipmPz1kIFnY7o= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b90a5ae-cb2b-4483-c366-08dabe205a28 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:19.0635 (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: 6+uXihseIS+5FJy/gIe9GEOEVe9UpY8JZ81lqUU0WLkUsD4Y/I/d7ApBWwOr78Thir6F/x8o/Lg+9ZTV+wYx6MlPyOHdgvuIFD0dki7Xb7M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215226_716872_9B421D80 X-CRM114-Status: GOOD ( 10.80 ) 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 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 --- 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. --- .../devicetree/bindings/net/dsa/qca8k.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 978162df51f7..d831d5eee437 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -33,6 +33,10 @@ properties: qca,qca8334: referenced as QCA8334-AL3C QFN 88 pin package qca,qca8337: referenced as QCA8337N-AL3(B/C) DR-QFN 148 pin package + '#address-cells': + const: 1 + '#size-cells': + const: 0 reg: maxItems: 1 @@ -66,22 +70,16 @@ 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 description: Ethernet switch ports - $ref: dsa-port.yaml# - properties: qca,sgmii-rxclk-falling-edge: $ref: /schemas/types.yaml#/definitions/flag @@ -104,7 +102,7 @@ patternProperties: SGMII on the QCA8337, it is advised to set this unless a communication issue is observed. - unevaluatedProperties: false + unevaluatedProperties: true oneOf: - required: @@ -116,7 +114,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - | From patchwork Fri Nov 4 04:52:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031315 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 B89E5C433FE for ; Fri, 4 Nov 2022 04:54:07 +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=jW5gY9NeCQDP58TQCAnqVdItsrjJ6hyQ/JHpc5+oYik=; b=mOtPylxd7UOBZz kyeyBGxBQqf6Xbug4hnkHQ/ekpW20G4ZtAhYO3/+MTgOA0CcptQdlEreZNvhxE1nCuBdqdXwJACoL 5TYy8OZA+SFaAu4dvH6BNnqmJSso/reW09N7JCg7XZlTJAb2r8WEGINHqrN89gn5hzKzmc/MKwQgA PFHcmzeT8uh9zCxz1sT4ujCi/ntvkMdhHhviEFh8Lbb9lz1TOn57f6K7xAnbrh5MppsIdWI2dXhja HRQZ2SUVtC0OEvJc7OHpK4kCOBe8WItOq4U9UoLaw9IuhP9k0D4CMvUU+B5mh5Nf7RzeecCUskoL3 Aw2zu2cxTc++Bn3qmExQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqohN-002MOh-Hl; Fri, 04 Nov 2022 04:52:57 +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 1oqogu-002MBx-3e; Fri, 04 Nov 2022 04:52:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RNVZVIojc50tSmulbdOYWN59hYgZgE2F/qChjU/kDNGn3xWTQyYPXy7778ZMnJi4Q/FTGIS+Wa0/uCEklRgIGDbJ5gVvoqvk5RSZB1bO+0kTCnbo6ZlQXhmFtfocdALoVnyPnclyOJXjZzW/Fbuv3g3Mz0TrCcjmfGc79x6FUwqk0AoeT6tM97TjU64VEzJUjDrrNxPmauxZDwVfrlUU+0RK3uT3ldGd7Ono0CCtQ5Pc+wPO0/isN2uv7m93Siq6Rq/KpTr8v2d3fApkOk4ujw6zxDalfDVr6WHSVp4wNPWaynN42/ik5WXSBSEUM01t3EyQKBr98NpJPZj9h4J+Kw== 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=ttdlU+h71Sp9QxZIFp0ETxQQa0uCrc40q7t97ziLozc=; b=mMr4/DmceP2ugHnfyftSani8n2FLVLM+w0zF3GGFtSmW8GCGwmwc3x++mZVfqh5+CKFwaYKfyJ4UutOaGPPm7An79hn642U2qBAIgiZav0cGKVGcMzaPUpzxC49v1+djX+HEvhzsXy8+ctYkYpdVlfP0hzADSf2V3msih6LcicN/aX7PIKH9zcD32EMco3KtqEnvfPMHPotWiCNXTyOO9/F612UD4p75t25NH4BAeWFntiDhyITXQ+8zjK5WCZz6EOT+dDeRxn1qsRasYFp/udc/BsuFQCBkdErAvHVT0nEOYVlsB2tuOpeHBmE+5jZCYVoBw/D3yB5JF/EtoPn7QA== 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=ttdlU+h71Sp9QxZIFp0ETxQQa0uCrc40q7t97ziLozc=; b=KhCW2LcM/SA8wXczBhCnUKV+ALEZQadwCvewILzNlHXDrc2hEHGySKpMRx2YfRgW/9lV5krlX+PMV6DnEj9kFxio1Oto47Gc1YZK9YNjlvQISAZNTOkyxORpEF5DGHMBtQ1EyvAUPsDmOJ8CM+C8qgyc/yj/Tg1m95RpaTE4gpY= 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:20 +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:20 +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 3/6] dt-bindings: net: dsa: mediatek,mt7530: remove unnecessary dsa-port reference Date: Thu, 3 Nov 2022 21:52:01 -0700 Message-Id: <20221104045204.746124-4-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: d134823b-aa12-45f0-3cdb-08dabe205b2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6cg+sUESexWMBH1in4Bwjsw62KfbJ1ZgZp+PdBLie2ak7KEjPXwJeTj7D2zigia8JjzMw65V+m8LB74kfXNRpTCw9MLn1bnkB2tT5sG+qgf93PwLwO29gCPwK0Bok6EFMxF2NwToEuQib3GLT5h1/WL8J6Iv4PhLGYcZGzIqdf0xQZervUxB5R54l+xUbgy6uVrPl2y2deARFSPMRmd/3qhZCaIuH4hfxRw8O2ANdfS7Dxn6bXq0NwtPVIckgclg363qoIzpZM2tEF4vuzN8P7/74yYDsOy96kBVm8OJiQDMG+AmBUyHnMtZS9i737J+ISYfocbmD0jvMTEtstdbBEWNLAKypkxJSQdNeynLtas1Ky7ze/AzlA9AqmgEpOybLKmIafi72l555vgdHfNahS7dC6VDcDgyTdRd9VtxxLIUVUwmGedik6TQ0qpv6ZeqibBVOIy2AbF3sPRlYhHWiJuvfTlfiydy0r3SvuOXl+JHW0fgz2mCQdH1Pja72DpmZgfqZ95Fjk/3WE26J6hjh49F+y0ika+4F1nbmp6wBh1km77rchBGbm2yDx1hPRpLTtP9bCihtbFGsCiwYQT/oEENY8lY9kRqANPB8ts6XzWQK2IYKTQxhPOM9zb0TwQKlgm36cr+hl9OAUfnQ5PuZJkaiSfVwoYaFaVN0mNJnlxB7+q/BzV6ecykYGBz41VBU2Lp9kAZ0hPKgJ78ifngBkn0tPY/sSCoT9BwTI0i867YR66fEzb32tlbbLAN1zBF6sugUgcPz+Wm8D+vKTqJ0w== 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)(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: =?utf-8?q?61wLCnpDyYE/Sy+ICUVN8sESIoUO?= =?utf-8?q?bjPo6Nq+XEBvR2QRDTKWF34/m84NfxZnRm2qKYjJXCkpZX8y/oYDEWWN801j9IRL4?= =?utf-8?q?SqoAC7qVw1zdEjMLEoPyvpcLHvls2HLSqMZh51cenEGeYb5lpMn6AfoMekPRDBFQR?= =?utf-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33gTmzz+YRJTbgsmg6T632v2prLwvDoFkHUpNJKE9nv5WSgvOUPvel1BA2VB3y?= =?utf-8?q?683gEJrC+F+q8ETqwaKHV90Py61kLzyeJjTjtSbHc5svEtwrJHqGb6K5hW1EWSjgC?= =?utf-8?q?bbkEHSM+SkTPnnFeVTHbhrALggYlaciVEqXSGKFdUdut1Tgi5kDxKoJh/8fTyArc3?= =?utf-8?q?L0eaxz0PGO+HFTf6ri0PiSQIbsxFU+5iR005gDlugBuhux3fiITDzFy9ienHW2vcK?= =?utf-8?q?WONiEVLponBgd4qFsMMRHoQxr6GVHOei/USa7nF9bTn6zBw+q+IpEdr3kXm2O5pXT?= =?utf-8?q?5IOv25TCEY+lfGUdxjwJTM1FS7PgIZNi6WHWNuYY6FHYRHfohblaH1oIFEekEDbH7?= =?utf-8?q?sC/KDpz/yy0tmH6mp494KxIE+abz5UIwKQnc7trE55A6yhKVBLX8IUIHJXB1GN7Qm?= =?utf-8?q?EPfjCfjdUjCHgxdzgsSsi/nR/8D2wblqqLo1X+dc1HObJFMn7q+8/RHErT5mUNCGz?= =?utf-8?q?IGKWhTYPcYilKu6lBhFb4IaU/7SEKoOQBLHHEnm4qNJkciPR05401Zw=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d134823b-aa12-45f0-3cdb-08dabe205b2a 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:20.7821 (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: S4XWFp3/guY3Fok9gH+Mm4OII6ME/BBe39MGVlsjHH+UEqz530q4OyB0/Z4pg65BLuAGK3qCjtsWeJy/mDu6hdCzB/M0qEsFHxb9rlDyGa0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215228_201391_DCB40AE2 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. 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 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 --- v1 -> v2 * Add Reviewed-by --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index f2e9ff3f580b..81f291105660 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -159,8 +159,6 @@ patternProperties: type: object description: Ethernet switch ports - unevaluatedProperties: false - properties: reg: description: @@ -168,7 +166,6 @@ patternProperties: for user ports. allOf: - - $ref: dsa-port.yaml# - if: required: [ ethernet ] then: From patchwork Fri Nov 4 04:52:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031316 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 5C730C433FE for ; Fri, 4 Nov 2022 04:54:27 +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=LscAI+l/9RxumOwVdKLIwfH6GFCRgDapb0ZYWRDnkMo=; b=lsxghlqSchf9Nq ZysDAaNSK25qPPZmvHlmu/JyCuPj/iV7quF8n/r3S+w+7FT5RunvKkD6DIFayHEiAHzMs4QZHerxw IB9Yj5WDoAbhtUDayQhDH1LhjJLMDm11WS2Jq4CXmyCAKAd/o+zSfRz3qfAFBDpnmmUfKLoDH+vRR qqps00hjSnh41kVLbPAOXGgnCBN5/f9NLoQEVdNmpBHL4mEDuP3p41rqiCLWSfZsOTmVEjWDYXuTz koI9AS9kbPvc366eQnaWJlFK8EGGx3rmlRaRdpbIYRf630v3iH5kCDfjep3J3il6QQLBOBOysp6+S MZeBLJApkqhBL35BTTrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqohZ-002MUN-D7; Fri, 04 Nov 2022 04:53:09 +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 1oqogv-002MBx-IG; Fri, 04 Nov 2022 04:52:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBD+HO+FZgio9DX1z6fnKnz5hKLFZUbCppbWTDZQEgSH439fQrNcIEphwrqzL6hApDtBNWgOGBksSWoL49M2l8QTuEJiqvgvFJi1jBx+ICkAl9w/rZ8vTbRXNMBLK7ixE+8KmjfXToXxfmpm0KJH5vCOAazVaWIlitNp3PW5UEOzq5zYmVpPIT4nwJZgkOHUyMqxtrbLvzXkgcoD+UPBCqPutUTBfplgqnorcBjx4AeYUhkgRVCZHL4ghlhs/vMhf/0Q8y8nmZ0nPSYzejlUjC3tKDotDy+XjGVAiMQ6wbURagtGZcPY2/xC6tMDfc1A5TT9biRMCaKRhTE+6Ysdgg== 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=/QeUpcagE4U7c3tJwHU5yxD9l68Pk76ICR1i4PK62OI=; b=T4eYUumTgVbEVErvO15ReNA992LPC6RnSOzZNo2y/4d1RzEDmymT3C3ef9Iu9NZUnLEkVt0C1H+SkxP3AXJJ/IrlHyTDrbUnT2GzI77spBs6mm0d7Bw/8oCk565vJDuvzYNNeUFq9uJNnxK6zQF3R3MBEzQKq/xAgnyg8TTds3dw0zrPARg4ZHF+7yYjaY1iHXu4B3fHxSUlnwsZsf7r4Ci9bPpS7dNWCdWQxz0ZF0DxdaRiMXsS7OflzZXXitr7eKvJWthMxprt5GAqNJykd5HJmFC9cbJ4C6+4TpMa1Jejlf5/E2kIVCC2BLD4HMBk/AykXgeue/N06uBtuqtB6w== 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=/QeUpcagE4U7c3tJwHU5yxD9l68Pk76ICR1i4PK62OI=; b=UjMqPW22AtjxYYdzMi72zAEN7rMNAt0GHmiTMRVCXtzurwCGxEIihPpLjH0HbFjm4vApOyj7kX48Fi79mW0EDeYQZ7mJUnnyVRgRjUgw0AUpe8RrdY8LplhqYoI8RV77CC/zHu/ugmfE0iI1R5yRrCISZLMFHOkPIvcMYRwZBog= 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:22 +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:22 +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 4/6] dt-bindings: net: add generic ethernet-switch Date: Thu, 3 Nov 2022 21:52:02 -0700 Message-Id: <20221104045204.746124-5-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: ed85f2a9-c88b-4ee7-2af1-08dabe205c41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E0qSz/3ojZg5M7txnKp/D2H+5zbvIqWtz8DX4PA4TNzDXpFQW3YmAG5O5MEB4mmupzJIdbb93UbyAoRNhYlc224brHUl8uvLCcQMiAOhrVtfvmbXvGnLMPmo4PGwTT98pkvLwm8rIM8IjBIvG6wDlCmmORV4k5kcxi7BNiRhqA++JV4/C16J84hkc8Fn+tpvdIruwUFZYomCPC6ds0QfS0HLRvtmHU1FFaPG3MEvzf0SHYRW9EuMjjj5AgYfa0GIQnpIifKSYpBPFuzHOZERnMHje3N1XSvWC7d68JIHYiDEWaJz04U5om2saMwMWMEIXK63p9UdGSMuRkG1dt3sp4H2pF5P1yH5b4g4i4dDxD1nRHV1MoMCsQvKzRaqXZ0hEbDO0zw9mTAhlCifACgqdeuDtgsm+ygseikU4BDXsJZKDkfoWzps9w2gEAOayQlkU2k+SMcDih7TE8GKwFp2nAaM2kIp3WKfsMBfIUNM1JLlKgRI8kIaRzA6+RqnDyMApBKuXdcCyaaoO/sXjRY2K9N2LkJlyIsGero3nV256hm8eQk0M2UUY0LSRvrbHJ4LdXVNoW0hXnPrYyndkV3/rokPu2CyynBw5FViX4rUiPruv+e5WFV97w89DVPgM+YOpfxwj0Vh5YFz36H6Qz39pqXdMMJg9Sja2NQNWPWyhSaD9BBTETuwc7sm4LHEWsehgEnsQOFrktLszXd8+xC2Ol7BoDUMvgKr9MFNdzZkOAzF9u2h35OvWaN7EjvlLahUtRL8dmG5yqaZrc6MxXA5Vd4McV41cD/2HDiAGUROueUbflucEbjCJW3Y7nhfeh7B 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)(966005)(54906003)(52116002)(66476007)(44832011)(6486002)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JwDSzjujt2hglYCF18xtLp/leaeZs+WU3+lH3oIyI6/RbM4golN/ved55rwWNoin7wQxdPY7w2xgalxZhzA38W5BPkEPKtoxXJmrxWLgMD5CkhHGgqsHTxOaaM/4Rx064ta84A+8KwEFBi26yRDdMlGVHFhnIS1eRJSUHfYXT6HQnJh3BQ2LcITuUyar998SyWDQ3zXE05RpBR3ZxV/KnJNmoTd9O3phP86K3ufvQxHNze0XtApE2u2v+NIehl4EK848+6/KkktrYQA9qanuCTJGnaBpimi2fcIutU/8wcIEKYysnDhEQLHihpvWYVvnXnw7o1AIjp6lO36GhgDIEJHtT0UBEIxqQxdqKacE738QK/iShV4CYTnn5dSPXmqhZaB+ziuu812XAzM4W9U0GR1gNQBWztEPz1ncheBTWEiodQXtbiVnyiJ824r30M2nXdfVVYOYs/48vADobisi3D4B+DsFdb2U14Z0KYhDd9kWZ2c6TAzBv6IiYTarfHXoR3SXtTBgBSMIFZkn1hvmfPEuL8YNzYD36H9q8yfCYAf/PmPlNO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riginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed85f2a9-c88b-4ee7-2af1-08dabe205c41 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:22.4695 (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: UqMmY1dEalStqZNG7yplUfnfhHegZOT71b/EgxpRJ0ioGFQqzJMrz8VHjVKEe1cE652ukuPSkh6qUd0UZnUvv9pE+5lhsXsaZJh3qXw9T48= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215229_637328_DEF4EB9C X-CRM114-Status: GOOD ( 14.92 ) 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 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 --- 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 | 28 +---------- .../bindings/net/ethernet-switch.yaml | 49 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 52 insertions(+), 26 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 af9010c4f069..2290a9d32b21 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -18,6 +18,8 @@ description: select: false +$ref: "/schemas/net/ethernet-switch.yaml#" + properties: $nodename: pattern: "^(ethernet-)?switch(@.*)?$" @@ -32,32 +34,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 - - additionalProperties: true - - patternProperties: - "^(ethernet-)?port@[0-9]+$": - type: object - description: Ethernet switch ports - - $ref: dsa-port.yaml# - - unevaluatedProperties: true - -oneOf: - - required: - - ports - - required: - - ethernet-ports - additionalProperties: true ... diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml new file mode 100644 index 000000000000..fbaac536673d --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -0,0 +1,49 @@ +# 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: Ethernet Switch Device Tree Bindings + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + This binding represents Ethernet Switches which have a dedicated CPU + port. That port is usually connected to an Ethernet Controller of the + SoC. Such setups are typical for embedded devices. + +select: false + +properties: + $nodename: + pattern: "^(ethernet-)?switch(@.*)?$" + +patternProperties: + "^(ethernet-)?ports$": + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + type: object + description: Ethernet switch ports + + $ref: /schemas/net/dsa/dsa-port.yaml# + +oneOf: + - required: + - ports + - required: + - ethernet-ports + +additionalProperties: true + +... diff --git a/MAINTAINERS b/MAINTAINERS index 3106a9f0567a..3b6c3989c419 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14326,6 +14326,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 Fri Nov 4 04:52:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031317 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 A8E73C433FE for ; Fri, 4 Nov 2022 04:54:47 +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=WnBI3GMrVsQGnpNq4PLfHslKi9g6jnEfAx26ZlDDjMo=; b=3VSU1ZDvEDnGjq OO6XQG/hYsyZIpUCp07Wj3L0AWsgCp/JqdZW2C3n38GqA05b7gJlLJkG6sF0gisiITHxdX1N9GXzT IuEmXgRatbXT1PrCkJzaDKyP9T1xJHHAbcWVsTx3CDEPud9UPtbe3wbBvBIhHwjQixufAWrLa4xLg BOVulsf2TIrmm881xrgc/HGjgMf/j9Fr/RCEwrg213NVRGLiWuIDKjv6+SG/52aLgJirLEOVGHpV/ +0TJt4HmVURm4tJuGVlBugpfGvpPMAiFwo8pzaD7Y/FszrCwuAPd+lY0PPxcSDb4+4tjgzmggw2q1 ifoVf471bh8OonszfLOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqohw-002Mea-50; Fri, 04 Nov 2022 04:53:32 +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 1oqogx-002MBx-Eb; Fri, 04 Nov 2022 04:52:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KcsBW9Xsf2L8kJnzALlDf5NW1hnU8iZybjzeibY8NozWLTbL8QDaw7Ud3eLDUgU7ZXV4dHI0hZlP1GHwqqRZhGvG90n1+gCS+ujl0efDwKLNu5B8180eCnZ29MODBY9HP7/67M4fE4POA0dVEaxCkKNDEX/1hkcVavehIhrxvp7D+/uDSjBLv6JJQyG/QBL90NZoLLbHMLGwgVxjq9/WjijK53k18hrhKsWzLTrMOv0f/c0j/1y2LFoEYLDVioWG3UuMinyy1OeZIDtA1ehXGGq0EcUfMnL/mEi7ysEXEByMgM7puw6RXmxjUWFwkSmbSdfOusDTj1SlgIRa0ezwDA== 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=Dt9pX2lxHqMl7tv1t4KwIkUWfX/vd6gBPbaesWwarE0=; b=oBb2nn1X/w28vMzeveBs8mYk6aDZNDOa7m+idJxArpr1CZxuBiA12GASx78uR4M447FZ4Vu56Dpd0U/df31QA0AetEydfAOKi9znquZXDeEkSuL4mewN/rFPFjBUUufBd2hZEyp6+r7JPSbpShzTHfslzquCZri/YhwBiDq9M5eaEQuYFCxkEEP+lrPrrKdRQkZvfFEhT9thXQEIrgwydm8lduuVD1a1p3pnnB/k25vesR3XpUOnc4Bk2yrLnJOSmu/KyqOv6MJoWJnnZYtNrjgT+BwKwa3ctvfe1ThnbGzolr0u1VRR4v9WDufEdV3mSMTXd9gA9qURe8s6TvulVw== 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=Dt9pX2lxHqMl7tv1t4KwIkUWfX/vd6gBPbaesWwarE0=; b=EFvGjnCLXo7Zxjg4CWd20ibbjrjiHIzHF1VnS1vnsJgusag5EnvjZ/0EiP0B66AdPdUBWdl7f2yR10haqLff2CE3FVVMWbFJAwnYI3oBoDbk4ybBYimMcc4El5LtALVmQhMd6u1lJlONU5RFEw04umfum3bvuGC0b+3EmilJnbg= 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:24 +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:24 +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 5/6] dt-bindings: net: add generic ethernet-switch-port binding Date: Thu, 3 Nov 2022 21:52:03 -0700 Message-Id: <20221104045204.746124-6-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: 4c079e37-bcf2-4053-b8dc-08dabe205d36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lNdMre8rwfQQJPRIpGhxnbgJwhr1gVsbYU2V5a++vLvrHpcDHlptOyoPi5+5HG1IH7flIZUHNauR6O9rjZQINMKzBUJiEfQRg1EylM/vcaCSzsfR0cFlTMtnE40YE8LfgbTg5tL7mpals3omu2jSDbbUJtIBGeprSvwqVT6zUGVd6/n8tIbg8ITwjL4xG9S3J5PE0LT6ypcYiz8JCDZgq0kJ23uI3OpKXiIZi7MsVz8mW/pueHDibvyzbVw+vOiCh4tfto7UGT4j/nYARQJzCsPoOgqUlCx1tMrGP37ralEJcXeMRpzWuXidLKr8Dg++tnKmkDaKJlDdOruqApPR1dO3TabqGucXmaE3XF2eKgzhwulVuEiAvXibGndJLeyohPKxvBmZV5eA94cKqdn2/qDTLXjB4r0AWh9pfedPkSoCPBu6u49mGLXQ52uFH7AYM4mYtCFWP3LSBNCIPUFZXTI7W+wX668noAE2KXvTy4Eylq9VM+rGVzJNcT3dplhX4P5dJEIEFix3IoFzC3QZ1P6KTzJ4T02++0o5ioNwV+zCiJ2Lueph4fpx86jEQbD83etM4KQpzUl+PNtfeKwyflGiLj4J+wE9ffMn9n832hQWPvlA6fHZR5+wpIlsj6U0xWLWgwfdde78T2cRs70UqNUeWl2k94yRvqSbu3ZBUHfwSjs7zs7xKOzdzhYQ1CNEAsXfXvMXI1nGIfQ/1oE5ZMQmR5m/+IXzy1PtFPvPdiOOm3QdDJH2vf2J2kLwn0TPe/sBI9vrLtP8Cwv7/1MbY2kyKd5ephGsqpPniLh5mFcQtswR8kK53+h+hmm09HK3 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)(966005)(54906003)(52116002)(66476007)(44832011)(6486002)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ro28vNoAv7+3ZRWk6Bnr1qYJnQL4VRg8RO6xTAoroS7hqMVEvCM2wKWq5NrJXK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pQREG0PjniWQa3QPWsnrPSCT2BjuE/rk/4HQkg/Ya77n7c2408IO2WfQ3TPu/+Eb1av2ddpjhsTSz6Togy7BJzgFw9uSj/galPSAF9zY2H0M5f7bOe5LMFF4tXHePDJQwfQfZoGarBDeBIl7z+/NR2uu98BfqMHYBa8HjOrVDnZDfGs9uToOXjmCU38PD+HAnho50NFx32kvMdVuvl3HS9gJ1QeqJ4on1+bfOZq9lpxMp86pfTFhVreQc8s1/tbihOZDNNiVgy0Q2AeqiohqI+tP185JwynOZMBfJAzVQ0fWf2AtfG/fKovMkYs1ngbS+2UvRKZuqzVt1WgbmPyGZIUkE5P874Hi9cTgUBRJxD7wKVFua282lipnjUyL0AR/DCcAWSUQvT2eQhnm2GZgexyKP28eRlP2z7v1pjmI9oYOAua85ZYKmjId9OztGMX3h2XeCchD/e2ON/HgYx5bJBB1V5vCWwnMH+Ay/cbo/7YoooofBk+rg= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c079e37-bcf2-4053-b8dc-08dabe205d36 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:24.1413 (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: u7RwYXBUsujRsEm9gRBhs7pnVj/lwVaWtGtfWHuagK3DyDKtpIJEew/Ixmp4WJyrwcHsZKYcALzNHWDwk2wKilxMLpzcM1nwaNxyYvvt2bI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215231_521053_52EA2EA3 X-CRM114-Status: GOOD ( 16.45 ) 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 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 --- 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 | 44 +++++++++++++++++++ .../bindings/net/ethernet-switch.yaml | 4 +- MAINTAINERS | 1 + 4 files changed, 49 insertions(+), 27 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 10ad7e71097b..d97fb87cccb0 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: DSA Switch port Device Tree Bindings maintainers: - Andrew Lunn @@ -14,13 +14,7 @@ maintainers: description: Ethernet switch port Description -allOf: - - $ref: /schemas/net/ethernet-controller.yaml# - properties: - reg: - description: Port number - label: description: Describes the label associated with this port, which will become @@ -57,25 +51,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..cb1e5e12bf0a --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml @@ -0,0 +1,44 @@ +# 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: Ethernet Switch port Device Tree Bindings + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + Ethernet switch port Description + +$ref: ethernet-controller.yaml# + +properties: + reg: + description: Port number + + 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 + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index fbaac536673d..f698857619da 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -36,7 +36,9 @@ patternProperties: type: object description: Ethernet switch ports - $ref: /schemas/net/dsa/dsa-port.yaml# + allOf: + - $ref: /schemas/net/dsa/dsa-port.yaml# + - $ref: ethernet-switch-port.yaml# oneOf: - required: diff --git a/MAINTAINERS b/MAINTAINERS index 3b6c3989c419..d98fc1962874 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14326,6 +14326,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 Fri Nov 4 04:52:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031318 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 9CA03C4332F for ; Fri, 4 Nov 2022 04:55:35 +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=0kxty6CHWX9A+B8koCVruF5uwIpitzcP2/OuNDMgZB8=; b=tdBhNmMqez8nzc fkp2Sm1Uiv88aKJqeXi/ae8nzuZKvkiuz+F3blujEnr2AuwOFJgvIIopJjeuIQcJuGKtPdtc25X7i p8NzTzNZ0C2bTHIue75/6W63CFPobHQeTOsxsujc8HW0Dj3EvsfRhFXBc6p3fcKpKdpyrffM+2qvQ GZDczZn7pD6APe0gJUBdEgtmYPVhxOk55D81OUAGfu6gUWLIDoF239fE+kNPzvPi1pA9+vj+lwWbe teooH3QwBOLSUSMUUcwHIw9hiXksnbnYp0Dbop9wE8RpbnIC+z2i+gYxcYp2JgSk0nEaVPFTQSjiQ C2u8+oqpKwvq0vMZ2MFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqois-002N4M-Fm; Fri, 04 Nov 2022 04:54:32 +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 1oqoh1-002MBx-Ek; Fri, 04 Nov 2022 04:52:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JfzDJTF9mQVQ+D7XFdZl2Zct0VIQlvubQ4mnYwFfDxv4HLvfrnCvGJD5mnpXogmJggRcle0E/gHvm9MnrnHxHmu3LVTTMDay9i4D7OlOqc5PpwEXRXAgKKQy+f2ZUBVPydzqP1rxaFuJEDG/DrwnHduRsyO9yYpqnQeZEMz1d3g9hMmxzYhxTVnDmwcmk5Vn8HtfXxiVSUfYfjlAhkUZ7iygNGG2ghZJTEximmTMeZIdv9RvMirDPinHX68kcpqVd1dpp2LGF/H1WJQpsn6qEXt7WrJdStzWQxDb30hkTdMA0XaUl/iYI/+1Q7MoFPz4WZcMugz4NBrKtAI5G60w3g== 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=YficV6/27d5Ko/XmkrRhmfOs6plp6V0bvdu4M23diZ8=; b=WrVbnDqjLYsp9pcpAQv/RoYYTfJQAVSxrmgmBvOncewrdelxMhponuWPy4rxOzsJ2lQ1OnRng90fMzRjSv4NxnSWhk2XDEOqfMjidBmwZVtNhviQpbxYLpODmkmAvrpp8vJM7hfNDtCm9Y4+iuJ0OAHD/OgxgcyS8BNADLaia6WR/2LBrDfWHLl46pYALx+Okgejui2iKYsH6z1idwM7u/c3NzQUdVLGtpUhSfagMJ9URajSdVLOngE/ByvRpldtNOVP9LvJl0TwWiRrNnMBREv3gkQvRzDS9JD9VN76n/guM9nK6EsdNKwBN9XvARr2JXy7FaWeJqw1Dc9Qom8+yA== 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=YficV6/27d5Ko/XmkrRhmfOs6plp6V0bvdu4M23diZ8=; b=HDJvP7y18AoUrnj9RIkV+M99vm4hlTLBO7aORUHFigm/dXEsmuDU91FLRfQavd4dWo/1qPN2ZjOodAp1wmYTPInr7E5209pyyhIx5GtBCZ3O89loWr5AJm1Oi+wyRSLlAQtOqSg7oMIFglIn+DynNpyflKSXbvxJEjsOnfwfKaE= 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:26 +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:25 +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 6/6] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Thu, 3 Nov 2022 21:52:04 -0700 Message-Id: <20221104045204.746124-7-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: 2b34eb9f-ca8d-42a6-3229-08dabe205e38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: whJjC17Ox+ik38k32m4wwHBJyVnZNchI2Th9HiF7//QOOKsfnDeOWc2cEeIUtGSEjTX+ShibvFnFHHQ3kvOU2NST+NFhxqFZMrsnzrE5obalDZi/Ldbtj9nFcN/RMbc1VkbSOlp8hvvZAT8Dj4jaL57rQzPwOIZYhiY+O8eSHzKpOSc82JjA0JQ/xUP8em3Tq+Tbl2/zA5GfG3nBE9hipq775ZrkkeA8wV0xAmgQ8jIGFnKnGxOvqRRMKf/V2r8LCS3qMNE0Sob9taxLvWCBdj6AlKbgGNvnXvX//8aShC0+s9CzXr2nt82yUytWsF+4cS2jXFQ9GNJ7rDo33N4s3rHYlCQcQaGhDr8XCfY8sf3lXgLE5teAdGOsxh44Qzvvyxr9suNIgz9qYULZ/JCvQum19ABhAwKbDlVrbEb5qoAQF1nYtawueP2QGu7SF9MwP5zro+dTivHsnm/v1xDwXM6rw0WbPbzjiLRArk/Xi5JTY8lKHt+gZqT3XW5GG5vNk2qmTLWjYCCU5SxOh4rm5QZr6u5HZBtqk8VMIGwgW3Ijl604tRQ58YWmnzYcg07FB8+Thkw9EjNdLImepG7p/79QzCoE1gnBlz84zzPTPvRoNpuZzqPw3Csge2ebM6IIX2YWXoY5/N2/btuPJiP4mu4CXcmK0UEMtEIg6MJ+CoIBe8IjFoiqDWD9N4VqkWcWpMUxoruRlAtx21/BMTSV7SR81IA1Kal+qz9SWfQkTyozn3q822RQIEa/Q55oRSGnCH8eQRNh19yw/D9crfUwqN80NfAKoJY4JGvnav1bVMk= 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)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: T1p9KNxSGFjOkCKYz0LnIiO9oORwPtytYSGNFDjRQUFc3/Fz2X0apV0GYKiJViqQvembxLwsW1t73kipYPrk6PjR3MTKD/fDksDT21ilSDwhj2YGOAVVDq3J7QaFONG9RDn8hn4t7nKkMQV+6++YXeL6w8sAzcrhraXRDAxguLpYInHQTE0tKme+d4NcvwWwnKQc3ripFO9L2Nh+A3r+kQ2lb9pTqQ9WpAw5DzSVflAmXNmuk46/qN1WsA9aK21H1BiEP0nTQcZWzkBnnk5Bo60Pqes7fNPiDIBkru4fUFcmQ6ewDK5HeO/Y/ioBhc2hoqTeopQRu7P2bwkqAxIpP3RezS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Z7HXjYefxQ0VaoNa2ECoLpy3diY89RdFReBK1ln2eRgST+HiSkgWPdc9vmRgGWuic50O9sVgxG1xLpWMhOLMgMwPK2R8SmfdjnTBFXcZFGMCumpa3dP/dlHM7QhrJZmHLdqoTR2T7S9c7NLc82nTmsP0dadDmIOZyVHaZFmyfXBelM+PovKn67huqa5hL2a9tx1TWR2vSPN/SlY= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b34eb9f-ca8d-42a6-3229-08dabe205e38 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:25.8130 (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: Ftm0SBB74TuBDYj+GgMYGfclBFvPOvdgE3CUC4eSfSKS/b1vykfBPGtQi0cqXAmN9DNAS9seXhXQcz3ncFLXP0P3B7kE8fiq0hzckMUs9vo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215235_525442_0E303A5A X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. 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 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 --- 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 | 40 ++----------------- 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml index ee0a504bdb24..3f3f9fd548cf 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 @@ -88,46 +87,15 @@ properties: - const: fdma ethernet-ports: - type: object - - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - additionalProperties: false + unevaluatedProperties: true patternProperties: "^port@[0-9a-f]+$": - type: object - description: Ethernet ports handled by the switch $ref: ethernet-controller.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 + unevaluatedProperties: true required: - compatible