From patchwork Sun Nov 27 22:47:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056904 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 6F8E1C4332F for ; Sun, 27 Nov 2022 22:50:18 +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=vcbWsb9oJJB3MTUecATLv2JH2gCX/danEzE9/kV6How=; b=2SZWRNA6aEy7VM7Ttgq3EA8xr6 6JuXmBwkyQtNs5N/5Y0ICk1nKgumlq6zvImF4rmUqeIdpmB3FD8P5yu9jlfqZd2FZSqDtLeP4w99j Yco94xqKvqzuzMxywgj98ZWrGlAeSHt+pGOnkpwY1ixmiA7ua6y4LndZXuAOwO0pGKYG/fIx/9inF PEGVFIUFeo4stkQOyaK1eZHqLGirgskkeLl33jZc7BKmwroAtvEwccHZkWW+U7rdHB2PPy49ReOkV mLGRhLvd059XJ2EsnPlKkDeEei7RIbRBskxOnXQ7miMJ5odjqDVN6gIM/Nk+ybqnmOe5V8WCzPfRu tgSzR6eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQTT-00E1az-Ix; Sun, 27 Nov 2022 22:50:11 +0000 Received: from mail-mw2nam10on20717.outbound.protection.outlook.com ([2a01:111:f400:7e89::717] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRP-00E0fb-GB; Sun, 27 Nov 2022 22:48:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LTIPFdc9OqdY1VNmLzhWFsWidCebOcunMqvyfdU4G7Ddq/lol/csa4c2ZPFK0CEM/h3zH16iZbD190dfIR3ALHPJaMUAvCaVsCcH4j3f6RritrvW5dRWNzftL7bqCvO2rhXKB6Gn2yHDK7xY60mN2em0xoshiHVwYa/dnrdhTXkq4TvfvLOEbw3HTsPyYg/KJd626Mt9/Vqv2Ia+8jB36CjqMXYiv9L2OeXiDFk4hU/1h2GO60xY0oFV2my3VuwJqRdorEl5eNPgFcgD5Pm+UVuO3rGBJbi8DCeGtc0WJguw7aRmUaw4bCQMZcyfff18a7rbmqFogJ15aUy3pi5WXg== 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=vcbWsb9oJJB3MTUecATLv2JH2gCX/danEzE9/kV6How=; b=CEDfUohfPgiNR7vvYfiJirXzrm1zEX6GDG7DjzXdUbBgmpl/RDgajNkdtjcL0Z9nJqA6c+iknfYg2ls4zIGShZmSrbPQx2YBEHQnZoeVnhkOSwvtA1x5Gs5bue0L8iUOMn4zrdIc+wSOuqaYziwjHhDmrzBzInNGWLtLtz46bOU2+niHQwB+bsQhmy/Lhrcr4Dvuw3oD7dnWiZNz4XChXLWIAHXGPSE1WZPR+f9Qeexj2YU84tvIVREb6vhLlnqAVh+dKbIL9VTKJiWOokacAGXpslVqDGjK/MwqjJI0W7lNqoLXjfEdccmQgaXEp8NklJsAR6EmNPH5Cd/nZDBjOw== 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=vcbWsb9oJJB3MTUecATLv2JH2gCX/danEzE9/kV6How=; b=B4WlSxkPnbUVc8cbKz01Iff8bOZK7dlJ91fmgZTxT1Rq+00lNqEsD8zP1jSxZD+R3LdJl2MgcUYWP17ePc1ayb6LCUsEbXc8JVLj/mczyMAynJE33wztrdkvuZDemHJe+XhE+6N4ytHzmmUhfgvl2KgKYaDUTZguLngUgB02x7Q= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:48 +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.5857.022; Sun, 27 Nov 2022 22:47:48 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v3 net-next 01/10] dt-bindings: net: dsa: sf2: fix brcm,use-bcm-hdr documentation Date: Sun, 27 Nov 2022 14:47:25 -0800 Message-Id: <20221127224734.885526-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: 14587bb9-4a40-4e5d-9929-08dad0c96833 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JUlRkfqYhvmg3BtkgByfwhz93emVcsxx4jkTUCsWuiWXNIe3B3w9aDWSbj4qnFDBu5Z5AI8pz0LdLXBUyW3g2IpNYX6vCksCT6n5D9l/hTGcoXW6pseB8DRVjvmVdcFQD16TPkdMtrwdQw8sU8ofZ8QpcCgyMV+wHpfuisLXfvWqY05vQmr547MgNFlSDy+0EU4AoqZ1tE0ehJRfmlQZiB8avjc8zA94VPGeeb4dw2MHd1ITwZcAQUdFFMqSaWdi8qplAjwj+c//FvsE3v9IgL5DMeGTV3SZtDlieGZ5cxGCGUuitGEzILxkNLm8L0qTYqWYxXiykjHn4vn0jd8Gx8KHMDNuQHaegmjKL2ZwhKlEOHmOd3qJqMqeeaBodI7OSMQM3Mjkt4+Zjv9fo7jltccrUZgKF4hmz//hin0lqSQDb/yC7MPKf/H8q+8ACGDMPn2nYRrOhboZR+jyW0S+KXZbZHXDneJa0XHF0qoE2zNE5erVHOUW5xP+I9RkmBybvaxzXR/xehZcrjbV8vNc+p9vge3g0iFUZjyFCitrtK5aEqv2DeDTlXvQazH9n3MHCy+6SAyA/FSbi4yZW3mO3mFY0R8wCjUXEJO0AbeRmzM+Io0b7wxsjtsb5/u4Bh+qdM7yTLMglcA2fkHK+YDML0pL8EljdGiYC04qkZxqdxonBpN5anszOZ02PxQu3efj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(39830400003)(376002)(346002)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EKphD66QngkxR+bX0nSv70AUpQd0CTtpADD5kgZ6JBiqQUzM+LKrI9rFkGv+mgoJ/aXIzy7SE9rlxQ/MJkDBbbpRtM3bfiDB30zYC5KE7Ey29rUgbRMAu0ryR41d9r2pVp74Yy5uZQM2XqoJFZqTgFVumoCWxsDPh9aobzK2VK0maBfGKREwCWmtASm53Emj+HZBQuB59G06tRf2OmZrVrwtyntMHWaDe1lw79cIgbTuaAVL/+1YDIMGOE9KZ8txO8Ee0cgHHG6s2XDcS8hfYKd+AsMLvjkHJJ9O4wvXMIE7Byq9E+/FrbhxHlaXEiGhFylSbm1CBuDWHSYx/FPOObQFfV8kB3jIJF8gcXu10yTlVBSh7DudEqtJx2EikhwIwRZsulIzwFfDGETJR4eTeKMC0TwKYoV0Ch2sD0S+951P8aucsgLw6/isLoi817hovdzY7VGRIHWU8SGL3k7OFoyCWb6lujOgcmVij+pJkW7KQ6UddWHo7tZjHBYcGC0sNvBaQR8iLVMbe0itCwyOO8vFZF9vbCChlyCYdDuvYjdhROca2BFFqv8wjkumhe0gT5WhkqOtwdxAW0ASuJYaGaHEQyPrnt+gexENXT4GhZmIuF9/F5Xf9jftC0sAfAj4XHmQQ1gFtQsd213pHWlrijMiVWaRNARayVG/CG1H4K1hq+/UP0rnE34X/wximsOFTh/38+c/XfzkoYhlviH99SEjqNpwI7mxGHF//wNzEv/vlXkvjOjqOKq/Elr/bXbeQKVx3e4xaB8F6M5tM7AzfP0SE1cZOh+MIe3cetAkncan5EMzMa9kLMOGdNuZkfYOz8Q3uqBZCa58VVlEwUSYXHMmKyqvqiJzQhSc/5E/FV4SoAHpn1Z3AYCfQcyvKfzlV4X2UV2DZB14Fkb+o4cjYQkbU4mJQBGbtVYxdlonBsyHNB6weisWBslpkV6HPadY9Pyen3gKmloCdLIf6c7EEbS7f+PecMQbnSNz6uffzMfdVl2blwWjkgS7ks7JCVgzmQUbjZRzjz174xmSMiSoj66ecTI7fgnF7C0A+Nb3bUvHYWAcbjIoSEsDrBY0hHNkobZb58kd4vQ2Xz+MCMTxn8ZjP+YodguGVyALaWg8hbDEuh8eeDfjTvlMlSYHzw6CDb90lAuPWLe2ksQvlq9YWXyJIzDymoLDem7Zmw6LPUBpx/gKri/fITyP2fHf1q7LXwMaIsexr9NVTLq0ouPCyBXddJCZUuUr0NFLDiA5LstqF6PHkfxOOEF3Cxw51KfCh79L/3+vaaRkosOAIT+oG6MMbIEF10ijlBQTfhEj/mS+Zy+KoTgX/0z7tG7Enhz60liIxnxzBsTXxJ6W2s3VUQH9sENXefmIblk/gFkjE9GVvGxsEiOJougbbE2InyfJpLqSo7zOLaptjCRA2SQXtCaR6VmUWlIn5siFdffLv/MGWw9I7gFIdZZmyAEVcEzmftw82L91GK11syYQP6ccC4fPS/SeHRKzSa4DETOsfR/SejpxlTpGhMnZH2qLZuYhHeW/vmqUwfoGIPSBYfodLJJbTtU+5gt6vauRVyyFWnYZ3lbkP977oaSWppNRnlkxWyXZYRGx6+Fr55nJ2nkdqA== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14587bb9-4a40-4e5d-9929-08dad0c96833 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:48.4374 (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: 3WKf3H781wnNx0dQf2WPtnLf3//UCezk0akZtJ3EyYsyd2QwNL9MySXn9vRaPGwD4FogDyS5TNUDJc7qSjOYfVqnOlt1+Eya1/cI8GD13/Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144803_576468_65B4BE1A X-CRM114-Status: GOOD ( 10.18 ) 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 The property use-bcm-hdr was documented as an entry under the ports node for the bcm_sf2 DSA switch. This property is actually evaluated for each port. Correct the documentation to match the actual behavior and properly reference dsa-port.yaml for additional properties of the node. Suggested-by: Rob Herring Signed-off-by: Colin Foster Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 * New patch --- .../devicetree/bindings/net/dsa/brcm,sf2.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml index d159ac78cec1..eed16e216fb6 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml @@ -85,11 +85,16 @@ properties: ports: type: object - properties: - brcm,use-bcm-hdr: - description: if present, indicates that the switch port has Broadcom - tags enabled (per-packet metadata) - type: boolean + patternProperties: + '^port@[0-9a-f]$': + $ref: dsa-port.yaml# + unevaluatedProperties: false + + properties: + brcm,use-bcm-hdr: + description: if present, indicates that the switch port has Broadcom + tags enabled (per-packet metadata) + type: boolean required: - reg From patchwork Sun Nov 27 22:47:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056901 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 45EDAC4332F for ; Sun, 27 Nov 2022 22:48:30 +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=7VcwbYvPfkgKX57nv/HQgdtVmPrQNyzNR0nOY1spdUs=; b=nVadmOoNYZOFo6J5ta01wHOOSE 21tbe7lNB9FdNCSn+bgZHMaty8lbEJMajpPaE8dEW9nxfmlAWwdOLxvTu/YmsWaLc8UZHG7NT+RPl ER793KoYSqneU1bnWa09jAfi5IxWxLI+Uwwin/LozzCttWbx+d4kFLqbwCf+cBQ3zZMCgfzfy0a2H v2TTaz9dfDqoUoIWIsMjPSNB394nJWhPsi8o90xeDlQKrJBGZ3YSkeiOoyVOnAabPuQVsuKH8c6Bs HG7/JISSlbJrQ19BZuWfbqRLV5V6lNmL2+9hTgFPUuticCRWdcrFWbBt2ik+P1nz1b7z59WhlcnAc TaZwxp+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRi-00E0rL-Ek; Sun, 27 Nov 2022 22:48:22 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRL-00E0cz-3T; Sun, 27 Nov 2022 22:48:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aUOba+5FGzHHn5OfAj2bHEsgzs0+kYlikEw9qbSYDWJSvwav0vHZJNGiI/+bP93dWRWE3rdTKbj1t2hrjERaMM5/ekS8RR8P+MF8zWJHhZg7WzNDO8U8JwGYcWWbg7b+bRVff2LixEFl54iOuaMmRGsO2rClj40ifXb/M4C0HpxLZqIgvvymcYMndRqAwBL2YvtI0LKFbU8ZB/ESPRIVGf5QTKh990PLsS1zr/T/nzJH7hXv3SeZtddKVh95H0cwOQa65/ERUZYubXpLmM5bL/UnYeZVnTaulI9iCto0ulsaIzImZSgCtm3yPsnHdxyzBjM6VDTiThXXhRoDf0UY+A== 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=7VcwbYvPfkgKX57nv/HQgdtVmPrQNyzNR0nOY1spdUs=; b=YfgOGANTsS25fAq/wQHcoh8tCRR9Ya5vmP20SlM+VMinJ/CXHnIPiDdtTXXwuMpMuhF6Tb+0jff9fPfoqnHv6Ag0cIHKYsp6pIclliEZpvQny9QQcUM2m7eMNc803AphDki0081wCRx+fGccZjgsXTmQMZ10jMJaZpogP+dOn17XQpyz1z8u+9kjd+o9rila0fivSc5v47RIEwLBv8td22FLxWxfMIAGeEMzmBIFaAwuXzTDwEC3M+hwoHM1rLmUD4DI+jSS10jGT9z/27GhRGSh+XpelecHb3HUfA0OszktrkCWQptM5Rejo8ewFCsemz6KBywp5ktumyAtIjtXJA== 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=7VcwbYvPfkgKX57nv/HQgdtVmPrQNyzNR0nOY1spdUs=; b=cULrDWOufSl0LyKF6yhIdsahHQo2H6716+VooQswRqZnEJp7nNpID2T6RaSlf4aroV7Eey2kGY3q4/vIuH5aza9C2UvclSwjF183O4RzX0tyw5v29U7DhZM2XjdHZNe2ps3a0YuSWAD3EgOTTWJIL+NhNtg+S6S2LsCONtJ1vPQ= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:50 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5857.022; Sun, 27 Nov 2022 22:47:50 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 02/10] dt-bindings: net: dsa: qca8k: remove address-cells and size-cells from switch node Date: Sun, 27 Nov 2022 14:47:26 -0800 Message-Id: <20221127224734.885526-3-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: c6c06d9b-403f-47aa-4a13-08dad0c9696e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yTZYmSCYWruhqgTVLsVSpH8p1BQx5kaiEZxjtvRP5UXbtclk89vRLanripzmHbz1trRg0T84QAXdgZlswqTWJweYfCzHtQNq4dwXOjd1cYbtvHkHFvowqWaFMY6i5YxOYJpFKnWThfuv8qJrM9nadhqqqSoe4v7r4E9jZi3Up+gvXxY5wrQERiNH8oGVKNwr942nlP1+ftjIJNKdzW17TZX2D4e9AWgxMWV5Ox7k9ZwdGKzbTPwxW2Q61rP9KZoC/KNlxcjNTO+WB44hFNISq0h+37B/zvGMPibo/ACLospPNjpZA25+p17mnd0yN3QVbmM0MMVp1Pytqn2RlZrgTB7Ad1riL5anymapfQwtdT7O390X+s9c9Rm8IcTctgKB18llber/Ys6IL/Ud1XL8v34MmX/WgMKQe4xcezo2ysSIiUG3Tpchju9A6mT2gheNwbw9Jtoyamj/DQUxe9GjQQfzJDpEyLIg/pjvRLlIWpPDSTUObCVu1Ssm7ua6H0ZuKETs2KxEJW8+tzgwyhjOMAH3zUbAE/HxesJjyMjgd2DTD45mbQjwbwZRx/ug4rmRt9ttf+epbWXfohVwwf9C6lSm8DQ1wmIpOWq4gWlzKo04UbAlKMBE1x353ruz7GWD9EPAerOKLYW/EGpvjI9MflL7aYznAp8wnhbk1pFdF6QMBBrwtdmHn58mGqpscrYe0GegXDvGOxFQEyCtxGQEBQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(39830400003)(376002)(346002)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 72aIsioU4xVFom81S3CskUab/yKHzuRbZtdEFRS1XBzbkDOmApsfD791FzCTjUHubOFE5bZTuZMo0T3JqHnzrtxBEfywvNFanCvIv/gKIYJKTOHT//FOJ8Svpbj+V/LKl2W/LaRH7WnRNMg0+nMt6C7j3WA1YvkTqIvphYyYG8hJYrxgKPUayZQGiuF7nw3QT+hnQBUY22dqdhot5TWOe5qWjpBEffefG7qcKRPE3Nyo52MWfaYsTSXtGZhXh0mdDiF0yRyWD+FGztJ1VFfvOAfWsQhsKhcqKjY3ztV2rbAZPXOzd/osAhd1gucF6yYkxH1AznLV+1BIMZgtPCvu9WBZyOV9hDyLxpMWpPnlyG1lOnAgDa7D/hIYSRiC2bRZ9w7wKcOpiy5XR2thcDWAHR7ovLQ2UQnG/++27I/dZPD7aeRAN/HfM5TukckeMdtvDASPzuVjKDX0qVaZ1Jtael64xh522032Hs2ruBlKL0CMBjPvyXijfC7VY7/VHQUieshflr1eCMIJnWvVuAEXCJEBeAK/6PJvRhJNLoj4eckhGt7HpNbGG15XXLBS6+4lu1vt7tK0OfiR4ZGaXj3fv/PJ3xa1BZWHTJqS14vO60oohCGbHDCleBD8RYczalzyVLoAoSMeojDOORO+SgmfuoT0gr4O5ns3FdPsr0RPNNw+KUrbQWn83Aj9fQbkUtH8pY69V89WHEtPFGAYb4FpvlKOTnpsnteIM1NEhfy0gdKZdYRzuStsM/hNEFA9rIaBiGC0Yg2KTHIqU6BFuMhA2ZWU25YWCIHkmkaZgeQorDNJW1cAKYzMAsn2ceIwTeTfumNZPCYSDxzaZKvMfMj4b/ze31BrBBOgwNpBzUoxn12IDNt70biHbVlbYv8xQScQ/LV9hZCSp3TiEmugFlu/8HZum8O7YlpJ54e28QXHl9n/ML0eJsG2JEjCnLDVI/GnJkFHTVAjNo1IOKt4V3djyTm+zo5Dk7t61tGOTaCAn4Nu/lknqF9BiT+9uTRAirOIhBmUT0xQ3HhFP/FylCLvvzeZOx1TC5P+p01SZskWlexEucDKS99XTrCIq0w1Rw+Qn0VIAQAqbat2+uXJMKew56YeEpGMiQXBWpQ7EDK7kVJKXMEoLcgCZGdAPoAX+0YC32ewq3rFjbfqpjTGdGOVd3BOC+7xbKLiLuQpvfCfxu+t9F2yPBXxmRUg7sVqwgy4OsbbFj29Z+fBI5n40ALk9XGh+M8VbFX+nN3WLpGePrJr1JfEGg9tHCF/9lm0zTWeV0LMPTBsAzZjKqLcAspMl2uscWxeQvCCRpGokdHVdNxObSBWSzr1pHUY6Q13Fl+XWa+s81PdXV1qLXB55J3tZ1ljqPL85hS8prUadssX5yMB1eJCuzHfcsU7BiWNiW9We8LL5HSbMJT8ZOZpWJJA/oIFCZG0YiBCMqBqfhXZqKTswinZS8X93HzJlqKhUXYXe05LamQdRDLE9L+rECO2x7Pzz2w7/gzmcvZicRlVlxyQIaZhY4nnR78Fx4ga3dFAPG5pWWUvdxkqbqrAiG7vBZZk8csh9F0T6LzN8dLy6gy4fqAkZTrA+rqU4dA+obJPYZhHdRb5Y0mIngg3yd2xyA== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6c06d9b-403f-47aa-4a13-08dad0c9696e X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:50.4217 (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: 2ED8TWGw9lP0LLb+KSZ3shqiKhHGjyd39JGsimFLg7zenxHIk5s8DxBtyGN9tG4AoYFaVvNiEtzSzIQaTWQNtdiL2HIjAFuvI3V7qma78r0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144759_169391_5FCE674D X-CRM114-Status: GOOD ( 10.31 ) 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 The children of the switch node don't have a unit address, and therefore should not need the #address-cells or #size-cells entries. Fix the example schemas accordingly. Suggested-by: Vladimir Oltean Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 * New patch --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 978162df51f7..6fc9bc985726 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -148,8 +148,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; @@ -209,8 +207,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; From patchwork Sun Nov 27 22:47:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056902 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 28DB1C4332F for ; Sun, 27 Nov 2022 22:48:58 +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=gQOwm8LtB2CCN3S0j4Cg04vj8QERsGwW5b9kr5bjG5g=; b=1EQJ//68IFAr7iK9+vL+J4q6DA 8DXi5IqwOUmtdgIU7KiqUh7aLLo2mhh6n3c92UFjdCZZTE6ojhVmBV3+e9azInnu5XxO/xfiVGuko gYytzERu/dlpnYNH0Nb8fzB2vQCmp0nQGjD7V1CiBxhwC/1OQ5OIULRWUI//ryiiPWoEkic26/b07 NHmWz0I3UpKFvhG6ZI3fYlEPxeh1JkFFaIJZm32M45Dc4siUxkFKEIg+ZtzIEjCPiAWdTRPisTz/J p0lrIOt1XjEoJbobdFKMwZjQjeXp5gFlSj9loU4K5TRlCTVvIpTMd6x6Lqbqv3za69w7D+3Pi7jNb iq24+OtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQSB-00E14n-Ed; Sun, 27 Nov 2022 22:48:51 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRM-00E0cz-J7; Sun, 27 Nov 2022 22:48:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YUc8p8GwBpElLlP680hME0j8IFpwN+wlXXBEXWl7BO6tUQQGJ8SOf8kNzVi6zWkkGWR/ZBQFFPLfVH4FSQJ+2/w2N33HAgLzR/mUi1LBPaZLsVPrYnX9QuMAuFIX678VxWEDa9sQtEnbwV8s6Slt18yN3HItuRuE/bOXl7itfFBcQc+ZDhP7xvnY06StyOOidB6FRhfXuq/Ih20FqHeFJ2QeFGS+GhonyRKdQI79FKEZERfL93+qEOgyhmElNcCEz+bH4HjgXKjItbHGHU7HygUuCd0+Eq2sCWjN/DovwjWd3+ndEN18EaWOZ2JtoUkUKpARrMo6zvT6sgMuGN0CBQ== 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=gQOwm8LtB2CCN3S0j4Cg04vj8QERsGwW5b9kr5bjG5g=; b=QOAEyYch/oNRJEZ8DN0y5w5jQfQS4EFmK3DuPyDbY4pdQ2JHgBdaRjqepyb643VC4lN04E4zKvynsgPLm1ZV5m0rBKEuxQyWgWWqeZHHMaHgocWLrzRaKl+3NFyqHmKCmqFRTDYzY4GCDry7+VCK22WBH2lmkINbapwV6EUUyswzvfgdR9oeE0kg7Mgygs5SUCadkjU7AUy/tUY3O6wEBlYaUomiPRvtawrRBPL3qxcFKPYJwO59SVrDmejuZpmJVXjB9JAGreeipI9n6EQaYFDCyrWnReZWcantI5R5nt85pWrunaMLsqVWdDwsZ+9SWUJEliHD+A73SrnDYsJwLA== 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=gQOwm8LtB2CCN3S0j4Cg04vj8QERsGwW5b9kr5bjG5g=; b=U3J809MgDSSXcoF5Ywzq3yy9QznuElp8uzhvDw5rclY9m8aPA+2DG1Jy4UpR204c6maW1qLQtOrSQTVys44L+fz4EysetNLYcDEC9L5guuSlKklLW5LcooZX6NG7YGDrfHl38vJsZVN5riwimP9vqujbb3650558hGghgLOUTdo= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:52 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5857.022; Sun, 27 Nov 2022 22:47:52 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v3 net-next 03/10] dt-bindings: net: dsa: utilize base definitions for standard dsa switches Date: Sun, 27 Nov 2022 14:47:27 -0800 Message-Id: <20221127224734.885526-4-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: ded39562-5e16-49fa-3665-08dad0c96aa4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3AaR80JcraJQlQKi/33rb3osalJrFG4ZrAeIo6SJR0xokP4um+0XhRswQgpigARDINOVQzXC7opRPNMsfPuO/m4vX3fcgrbnl5sx8BJkQAWbgF71sNf2kPASoJk/aWIQHN0oFdeog2HCOTDHQhfHlgpMgoh3OaRrPV7n4dvNFB12GWx3FdfTlmZOnYmOYHPHwYPwjqSVSYmjWEwJd6Lx5fLg1rPok+OWcB/MgaFawu98JxSZPRJFQYPXJG41AyyDvndQdEcqgKTIQMlXy0Dpv9bks9SJ7rKWVZ+pKfTm8iiQwmS0j0/A6llTwwfDHRMDoSBFYw5Jxxpe5apNNHW202RaMLfkXA8wQso7xMxouAp5UVVTkxlSLa4BMI+w1L3lnbejZ79CJ+k03eb7ydOiskTJfJ2f6vE5gnihTtI9zoCw9aWDzijc5MRbrOzEz1/m/Ve1NHIV8HXIi0MGoYSI46f6LKwPaHyO/o2bMO8fsH6As9i1PufAa2msuYtpH1KbRtPYoTUn5gjDmJcwZq+Edahs6PXvq06ufwzDApig5Pirdi/cJYKM4At0aSH5I5Cs8OioLPPkSFPkide/NLbaZekhgWNPCIgdOH4CZRmcW87OW7iG+ud6ik/7bIb7UEXVUaOSlD3iPJu2z4x+edwFE3qXCmyCCvmsFCSP6OM5X/TLQ6ERiY2JrIWfQEYXePyAMYDgsNWWnm0RXglu1iAhwaScUbjSrv+NPJYFKVkpdmA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(39830400003)(376002)(346002)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(966005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: daTP6JgKsccq4dkFCOvORl+NgqRqnl+uKyJtcWwIgzlQGhVdS59K6lXqsuw1hdC8HmgJXJOdLFj30C3zPx+Znx8+cwtdBsF2mD2tAF1yGuGz40caWpDsYwpJy7S1k811tehA70sHiHEWZ0WEB/ZL2nAt/SkOR+MGKPIHzutKzDhA6WtVsxDmPbVxtD1tWbHDOpLVpti+gZ2Ovrx17zp3IlHjgiuL++MNLcio49viEx7w5+LnAiko+KTYYJF2r7fGFvmIH2c+APlhrG6EAFSYD3K7UbJ+HPwFctvs/dRQybLRSq3U3x3NsDtdR8TxbZiat0jiTtGQGspON/s7O3Gi72FsIg6F/oL4XTmwiRYeXVF1oFyk4eVqOowDtm0imcPXRk3aGVrni7TedFActIdXRmywkJSDEdhHtwv0oNb0WFc3U+Y4ZlY0tZ3fSPvEyvEw8J7Crm3/TK5/+BDkf7KMhUeI8caweO5C6SkdaeJWheXQg0uWp515EIfeuDULWXCNnaCnYHvLuXPLWeQPTLLH669n9Y549oyXmWj7eABWtB/auGG4YSiJDEAe+RteBA13guZfZvc+I+0BSvjlSsfrI9dBdWYVGwT/t392LDxXYy+5WzEAxH/AwyDKBApzE2614bjkVFty4qK2/MxW7CIFC3dWS+Q0gkH1zLAT19Tnyp+LomavqlBJfp7K+XRQ/uGUuACwmn75IbPaPOkijaaMdL97yqzVKJmsjMp0oZdMzK6ZO8Kqxxdy6gKW7mW8FAnjUC0DL39Utx/LFnMs4PVzFI8io7grUFoaAKNwyofnhMoXF+BU6vsvFPtz4X9ad0jcqy8+JUKF6nNg4rQX4Qay+TWy+YtkbDsH7QOq2bPRq6/OBq1boaHfrsscg8FpnUxVjwIVAuu+jdag0Gm1uyEQTmRunigPTkyCbRbeIBGsGOw4zCA0YCxoYPQwlzgtmUkZHPwQRLQCg9YzRVTLFNRqMKqEqimBV/PYgOW+RuZbg/RXlyOFOXnGZlSC5Il5A/MKuTwMJaJUhnzW9b8MazsSeNm/7HtpJ11HWmZmRB36pQo3SmrmbTEj/pG9Bk27Gx9iukHZY6oIHZjbhQPKv8HI+izNWR7JJj5hEouii0uVepQxsZwZ33QfTvlzCTScmfOEXv9+Qz8a8MW6akPtxjNqCbd9z1ljb6F8rYbZM7cIg7QAeqo63eva1eh2cdiDB1enxqh6U3AmYB/jFE3Fl/+uWYFQJ9ORQ/guxAkEgGK4SRPfXsCy5EbgJ8ULHGzY58lH2QmRKNB+Qi4IWZzLhDgphXU49snQTXARbe21xvrNd8LqUgiCHQk2WDj2D9o5ebXUcNV6fied/x1c5xtx3PwkBcwPQg7rBWEiLqG69AoAOj/UOYqPVF2X+EfbyAaEbSlHP3c4gfh+i7AwlttGblPNBh1c9fvdGKlrXpSTVRW1K5Jey5uAJyxg/zD2gGU5ZMu/5Pvtyb2g+msPEXSQqmf/b48echM1U5LTAPuYQIDBpWy/9C5gKdWqWDg4JnKMtd5ju/D+VTwNuKxKubgEhoIpr03+Q++qzvC9UMiGfwzuIWPDyAccgSn+6zvOmJxeUorTiRwJ7yscBrl33C0R1H9XdA== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ded39562-5e16-49fa-3665-08dad0c96aa4 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:52.4371 (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: PXAEQS7cWGvSdXWuY0AvQTA9cCLtl4/ye2oUZi06SKHVFnX4//nHZsn13dV4O5Pktu99YlDvtDi9GQlb+2AjJfrMoLIPJ6R6YBjk1HVId0o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144800_752416_E5F7FD53 X-CRM114-Status: GOOD ( 11.23 ) 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 swtiches with a reference to 'dsa.yaml#'. The scenario where DSA ports require additional properties can reference the new '$dsa.yaml#/$defs/base'. This will allow switches to reference these base defitions of the DSA switch, but add additional properties under the port nodes. Suggested-by: Rob Herring Signed-off-by: Colin Foster Acked-by: Alvin Šipraga # realtek Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- v3 * New patch --- .../bindings/net/dsa/arrow,xrs700x.yaml | 2 +- .../devicetree/bindings/net/dsa/brcm,b53.yaml | 2 +- .../devicetree/bindings/net/dsa/dsa.yaml | 19 ++++++++++++++++--- .../net/dsa/hirschmann,hellcreek.yaml | 2 +- .../bindings/net/dsa/mediatek,mt7530.yaml | 2 +- .../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, 26 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml index 259a0c6547f3..8d5abb05abdf 100644 --- a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml +++ b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Arrow SpeedChips XRS7000 Series Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/base 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..f323fc01b224 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/base - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index b9d48e357e77..bd1f0f7c14a8 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -19,9 +19,6 @@ description: select: false properties: - $nodename: - pattern: "^(ethernet-)?switch(@.*)?$" - dsa,member: minItems: 2 maxItems: 2 @@ -58,4 +55,20 @@ oneOf: additionalProperties: true +$defs: + base: + description: A DSA switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?ports$": + type: object + + patternProperties: + "^(ethernet-)?ports@[0-9]+$": + description: Ethernet switch ports + $ref: dsa-port.yaml# + unevaluatedProperties: false + + ... diff --git a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml index 73b774eadd0b..e27b1619066f 100644 --- a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Hirschmann Hellcreek TSN Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/base 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..7df4ea1901ce 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -238,7 +238,7 @@ $defs: - sgmii allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/base - 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..bfa2b76659c9 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/base - $ref: /schemas/spi/spi-peripheral-props.yaml# properties: diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml index 630bf0f8294b..f4f9798addae 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/base properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml b/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml index 8d93ed9c172c..a7041ae4d811 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/base - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 1e26d876d146..13a835af9468 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/base - $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..ad1793eba31a 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/base 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..9621f751a9dd 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/base properties: compatible: From patchwork Sun Nov 27 22:47:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056903 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 D2B02C4332F for ; Sun, 27 Nov 2022 22:49:50 +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=SSteeDlnUgk0qYhjpkGtjB2C9sS8xX4R7s250jERe9Q=; b=L95zvOiTtJUmRRzNjuyVtQXbaf I8oeIHalI9WdOJasUBlyiGDtUSLq7sCtu0iGd/fpeY0dwBygSargNg4Xws5VXvdYaO+2/VWG0K7Ez AW/OLL+NDK0MfOYaxd4P6CizlOQfOW5utcJex6VhMuWxnlkM9mY2PhCStD0oPd6d8JfLBPntizUER YqCa+KS3N1CRUcurmNq4F42zOkppXeYEo+r3tIvMrLrnIKjy3heOYU6EGrERuahk+MuksbSYG9FpK XDOBVmFEaGrWksawOtiRbri7/qjKfUbruqTGBy3ongp3+tn4laJ8t/FUH6UsrND7KIlF1SLXkhHel WYoktjrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQT0-00E1OL-Dh; Sun, 27 Nov 2022 22:49:42 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRO-00E0cz-Tz; Sun, 27 Nov 2022 22:48:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OvMD4omNXKplXstaOnBRS7i3umk3BPaJzfoh5dmTD0kKehxQjRXD9HtwY3U/i/Zf9QfXcQfUzECPM1xGhlYic/IOyZs98n/F91QviKQiDTEmscShR3JVgWvg8Res+/IOpFEnhEidamauzesAexlQ7JM5CTNScEgBt/5r2ffjwLe539F2QsfaHAuAjID+azuKVHa1rXees3LStilWmZMmZHmaUFbUquKfHS+MWdaIxXnL907MRb8ZA1Sq9d7oA3flrueUphTIIfOxzdu3SZqPn46Olg8cGW3S/9RFWmHlAgORNGaxCQq1KyxLSGxmCpXSbOubIm3doJWmD6yA257CPA== 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=SSteeDlnUgk0qYhjpkGtjB2C9sS8xX4R7s250jERe9Q=; b=Y5N+g2pGUmj4sNu5+CNdGiBEnsUA2nyCp2qeHi1BO/paW1dt/HFtg0BIzQgtp3dMZTOnTMK6qiZekI5qtAdlqrmPmUtQ/CtBBwJ0lSQllHXUcX76QtqDM6pS7cUG/uByverdp3nx9czUNhdpFLPRTs36ve3uB+/ms6k1VKnq4WGEJ3i2vAOXpUroc7fXV7ao7Tj+09b+xkMwBHh+N5v7MwWTHOuQn3to/235GBUCZVGjKLVvHlWhkHdOj/TG8B0COmfdnliNsAMW8EFl6Su+PK4+vCpcqiZWTu+xSUb5SMTap65b5e1kdNLGO9J4oefHuWyMrGAgL5h/Dhul+k+0MA== 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=SSteeDlnUgk0qYhjpkGtjB2C9sS8xX4R7s250jERe9Q=; b=nzd4MeuHTpMkqNZTu8+NwSagPBA647SIzHtnN3/fpu9q1j45mE/TNMUVPPk7Tul1uGVn04BsgMxU65rcNYRC3y7c2+fMG2qh4rbZc6o7rxFVrA8KlookAvL8wvaS6KveJFKXb7tqPTbb9po8a1FvpvIlYGCpdYwvkDyLRPG7hE8= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:54 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5857.022; Sun, 27 Nov 2022 22:47:54 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 04/10] dt-bindings: net: dsa: allow additional ethernet-port properties Date: Sun, 27 Nov 2022 14:47:28 -0800 Message-Id: <20221127224734.885526-5-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: 5005b04d-26e2-4adc-9965-08dad0c96bd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aeegcg5i+jn/jmaS1pZh3WuzxKy4ozhCXuZihlv29rKqVSkvFE5C09NzeagPtAfqeeQaNUf7mX3UGlOt/aNgfOfeq0vf/raiZ22vKHqRnG0lFRsHBRZcEIUyIHSNCC2uvLPaoiXgwtv2iXkTTi8MchCX0e9sM3qIh9UUNxyMP63Aq2xmPHcuJ+40elHuUtXZeqhCXhTGGAIU+g3uc0F1wEJV3UQlBn6iwgW20RsmsVhNAU9oGsS24GCmEi7NM4s+Ctu3Bv8R2daOCMYVyOjwxx+2o4KONPwW7V+voncOiIzdvj+Kpq9Mou0uWRSHQ4qkUiJdt3pbKuN/zOJtFnybM65RPluThuXOaOztqou2jj6w/mjrdeuzq1HBc7SXuym80eW6uViHbeccOSO6+5jeoxZZp4FDPRb5qUz8224I/RYaVm4vAVP5uqMZ6HWEEk1IJUSdKquVQurzpzCe/N2OnPOtjYKZKY7vPPf8ctiC407RaCwlqFzsi42seE0h4qvsup+g4VIp1AmtUsda2AHZz6hUbGBw64xo0enCh/fhVhzluZKP1EUp3WA7t1luMYmVSsGIfOanwAjNywYsoDjVeMBJ4zfZuN5SnbWvdTY7VDv8f+NFZA0MzjBF9wWZqNjNMsHRZBvX959MNWQXRIIp1g6ecOZIJlcWBilsQGXdbwuXC1H4dNF72213Jmd+i3B3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(39830400003)(376002)(346002)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(4744005)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fyiwJWtNBLLFr9Rt5xdJq72VocLXXk5nXkouuwV+hmisAF69+DzJI50aV3r2+FU1g5OW0tEf9ngUaHyMn5PhWOly1etUJ43pNuQEN8pjiuuVJyuhlliDE6Uci0ZdA+DnRg2HxD1i7cocXtezT57+ZiBQmHP7c2Jym8B1dz8uCDqXidEoeaj36i71m9Q9vNywikoUDOFiVxfv15FisW1J+P0iGYEUhK5edr0Lku82u3WYTXJohQjpL4xIPWmwOxMvXqXfIgddfg9XfHtQNAjv6PP1/ZmkTvC62fpZTtQUgX4BLbeMqmboDSoNszsLEqm87aY5gxDw0UWgkbpHmQVyXoO8iLD14XFkoi2OeOcnZG0xmhSwYoW/2USwPIPJ5o5wAOmT1n+hb6eKGiO0oxWrkdbGPO707PEoHfxqkISTaDNnaQi04ik9FIJjV4JnbtoNybBWr0dcWlQVOxzyixZqA1iRa17ObKNnrTxs2Bqma5q1ylPx8BR2mQj+lAn0ZEd/DvEAFpuVXsXQr2mOIJEakH+RZbSMdmLOT+sOoTbdBWD/bDYg0IxJ1xLUdMMtn8wzbkH40hVRmqdbjgRnN1XWJlmQhyzqGS0s/70ZNrW2fmSZEJ0OyOHmmdhYDR3hBIdBwmYENArDK1g9cCFgeUa20zHb4mbAHdddtk4UjQNjgVL24Tm48oXTq7d7F1/p75CGH4/HGv9vEUjPWY4LMVbjEN7zg5yx489OG3iCxlw1OwrT524d9fvudg0mTaV7BMEU8sO5pvxab1mBQxbsxatrzm8Pm1s8qQm8JKNU4hYznXs/Heb8SGXxmL7K0BLArbYxskjoG7uIQZIaO3adn2wGN0YDMZJXVW7c/9oNKy0hvC4+IO6VZswVj6i6CWS1dUUgrQ1nOaDFGsjmqKCnaZjNQiZw8+3if1KPIEafLpKRLjCDVizzXl9GckjIphyDB9xM4IhQvAHiPReZfBvtky5qXDJounMspHEn8MyfGjKwHTSuRHHvLNIbxnSEVy6SggsaSFm592wOboBd5unCRCqa8qIQ9S2znEEOc7GSMu5HRGlK9YBtdEuTYNBOQTcFu8130MQe5V6glxChvn9MsXEIx3ukaO5qdW/C2cillALT6gObGQL2vvfWJb2aydoQgsBSZcqGGqZ9khojKs4vW1HDW0x+y0mpv9lgSQj0AUnHQHIIPpVsXvQqKd3VZICmhJDlXhFT8zZkftROgXyjR9W2Imtj+ksC/iJPa9F3HS+5lqPhZ9lu7pMZ3L7z82OSga3NxVnBycR0XjkH7XX9vLZAG8jx4bNKwm/HYIdsML0BB5jnAE4uZN4stXk0tB+bRcedOZKVUUgoOGZWaBqh3kQ8asfiLlqGtqhXh/+qOcLYLSQkfRdZxdgGuHqi6NmAtq3qkKV4kk6sjrAY30A1jpvARX8hmGRdlVjs6WlLg8l8WT6Lk0571h2l+tC4OhecTQfVp3u0GDc6OWspMQL23mlU6CDApj/uVMf3UTj/GEGMltBWqidUGTrQGgo+53xzgA6VK7UP90IfFkONm/RRR2BtLYpYTSpX7j2mAW6Ba/W8AlwQIHzpCuStglPh1hLIJw8OdU2rABS7Y+uj1ojUV7Pymw== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5005b04d-26e2-4adc-9965-08dad0c96bd0 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:54.4214 (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: 8HedE+sKyJHQ+qWgMOlKBg6WMwAi5+Y5812nxnUIAYyH0CwoEDwyioTxNJtm6bm5Gltpyf4cmzMWTT/AYpYP9N9wp2KRJSUvs8DwcRiUmfg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144803_035975_5F34D581 X-CRM114-Status: GOOD ( 10.33 ) 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 --- 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 bd1f0f7c14a8..87475c2ab092 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -38,6 +38,8 @@ patternProperties: '#size-cells': const: 0 + additionalProperties: true + patternProperties: "^(ethernet-)?port@[0-9]+$": type: object @@ -45,7 +47,7 @@ patternProperties: $ref: dsa-port.yaml# - unevaluatedProperties: false + unevaluatedProperties: true oneOf: - required: From patchwork Sun Nov 27 22:47:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056905 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 4CBBDC4332F for ; Sun, 27 Nov 2022 22:50:50 +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=MGNeKwTq2muc0tyiBPIiUzGXXWJxBOJ6TQO7FAkQqFU=; b=zIha1rfpy3Hp7RAXM0Q3f/9ijM MlBhtMiSgXQU3R6oECS1Q9uUYxH4U3PKDUx4Tzs/kjHIVFAc819LKu4rPD3D+dylxMG47jVDcbnSg Dc7yYjSFannSwD/COpy9kNfV3kPR6qolb+5H2lkQ5EsgPP29kcp6B3mR6WlLPtL7hXoUhS+Kz5vwL 5i/V2GRvXMPP3q6EvICHQYMhp8yoSF8Hv3NUmkKbXoGICwdvgPYqVIiGUPMOCD+OWXy4DYGACLicY /hgPd1oAeGBRpjryehx0Y5xw2Jc2o/z5c1ehx91i8scZYrtFGaa/hZ7jKeoivlJSY5xnxJIgyYLJM G4W61PAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQTy-00E1og-GB; Sun, 27 Nov 2022 22:50:42 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRQ-00E0cz-IA; Sun, 27 Nov 2022 22:48:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nXgYeM1WdJVnpEgvpDKtkobEskdBhzW3VysBkuXNCdKd6aX55R5r7AVYxeUhKI7ZXmLY0gTtZ1jeExu0qd0dHpEiu9OygFNR9DJ5mN+VKurasrDRPHg7r17tfiXcvUWfpVFGa+hu3uXXzxlBfNGUyTPWFM3Jxz2eZQAB9jk4lL8A9/Bj+HSGCphpRGu3gbGODqUValkzDikWyhnouICQWV5yawXjh80sXungAOmG76wpitqgCo5Nw94m5ba+DbWnQYhKuv68RRZePi//MzCAIUmCYaB7yEFWHhkKrlLnhR5f6fRhXWhNaJ1AlpjmP7+oBM9LE201GZB4MFHmCTJ9SQ== 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=MGNeKwTq2muc0tyiBPIiUzGXXWJxBOJ6TQO7FAkQqFU=; b=CRtmRlA4DIBxERZ0+Se4JpVMa8JOlzEbyicCX4uSjP8TdKlWahj9hlDRUSl07SYlNhiJ+X/8lKG7Rh9sBUh0+FzUSN12q4VSyZn/1XVvbZyS02OD++s710SmHQtX11iEMrpmoJixN30dCm2/V8lY0FDJnotYUhA3X3TGA+gLq87i4yd96OU4sjmNB5D8AKbtm9vJRwhoZM0TfDl0Y3ijhIeeAts3TGJ3hlvGjCUXMt/gqJh8dIg/eiBQ/SkNFtO795NgHaQFGf5Q+n+jUIr0Px6pxINJ/nadSHILC6mQpnOu4aaJoz+Ya1s15gJeyl+IGnJNQCGc0IsR82iCEPMGlQ== 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=MGNeKwTq2muc0tyiBPIiUzGXXWJxBOJ6TQO7FAkQqFU=; b=KTbmBiEDVD0fJuAFKOccPWJqopQNMoRzAnihflnBnQ6wtDze/nQsRAc4Xau5Jy0LYXy6Z5/ZUnQWjBFvwawKlG6BbSitLdGiZPJ1p6JtdzWgzZ4apKqxqLp5IoZ6TvNIg+MJuLtfEVEFVIFjn16c13DfEasX+gPDf91CIoTWW5Y= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:56 +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.5857.022; Sun, 27 Nov 2022 22:47:56 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 05/10] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Sun, 27 Nov 2022 14:47:29 -0800 Message-Id: <20221127224734.885526-6-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: 2161d582-849f-4dbe-c129-08dad0c96d01 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8B18hRQ87JvBQA5Mr2KODuC+Xfju9+IKJVFK1plJ7vz7RWUZ/XsIEnd5MyACQDhw5kJT1B9aBxAZWyAT9Y+acyTGJQuKoSuaYfsHaUCU+MIAH9/Rfvk2tyWD2LFCwN6XqCXjIt4N2gnbBPxI1Q7lMSba0lrNuIhN9jn5Vor7vM6KPr5elxJhkx+ydwP/ogYqSepZS1lEZ8bzFSAK33P7Au4LINZlf0i1FWT5UmvimQbk60tTwlN7YVIobzpLc/8DWThXfOgCWzmZmQWlISDGj+KKRa+maLPaIml2KBH9ByHtnSpfwXVPjdkJnNuRcCS31gSzDa3wtqpe7/d3xvvzLEeFiBwfE1/UgNOPgcE9Aocov/cPNNo6XIoIuR97+efb6RcsM2x7WRfBPc9Q2zXTFlWpO67DMXOygxWDT5SQGIWpu+lfB5jQk3nPVezv+KWi8yxzn1mdljEPl/3whqmBaG0oEzqM8EvXQw030FQHBOza0RSFWB1axnDyRTnqL5B2kzL6ZUYgqTc5z7IgslMi7kd8yPzF/b636wNO4DZrlTDibU3hIW83RCYKP2uDesp0nfrKr5kjJRBWHnqYHqfvF8VyWdlzeZWKiyKlNT7iF4C3oFI11oL7tAsezfgi8BhMTc3FhRMUgGvLHCq9kKf2KA7VFDRBJltaw4csZit9AUQ6NPXplAPKDH5Nf5h0rPKJctNdARMT4aUqysNVLwlf9g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(39830400003)(376002)(346002)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: N8MrGhIHb2ZqEShYAnl+ycBNNgjGxAdCTIBOHRauymhVkM1KOsnIvajiReumEbJv1xSoxwyC/EI7x3uvqToXlVPIvBPvnuZpSKGDQ23qHb32UrY5KYz/eCt52bL6YAowZ9e98q9ua2CcQbnk0NxvDzetfeQ9H5w3HgoT1ubzN9buCy0pbdRFeZ2N4h/OMBtdS03IEspXP5lqen5YzYjhu7JlLzfAXGW691tlubdoJfJs9EA3UKVGo3NhLDui9a1tIXBDnk+gCpbAmWIWrZVWxF8ldg+tsW7Nbcl3z3OPi3hhwHXOh2DQklJIGFbw86ODDMIHp6Of4VXspgUOAyxJMKcfN9EkqnRNQ2y9DY2tLf1NDPMl/K8QRsEHH1bOknHtyxOPPJ42FsVC73c9Oog5oXLjn0uC/8yh534Hec7EdRARdTQtNQaEgAAmCwYjtLwh3vQXueB6/the2XRr+Y832E/Cov969Y4R/cZesBtaTCgXxxuR8NvTeFC0dI8SCrPIAIJd+evio6JXg8bDfWuSH9oBU4o4Z4UI1Ocs1IRl86fJvxqblPR6y/yuEV1htZxDFJLgHHhDBfqfYqxkEfPcbOU4oC6JvIz9T0jpKNBHeIl/XKOtTs+h4PILkV9QHfhcrprZMgkULazTTiJn+WQvuvr9CA0urlOzGZezRfYAen5ZTte1JT81DcWuwcvl8qAG+UaYOwJfrxzr/DqEb6tNu+qD/HhbG4ERBQiuvCJmr7Tarcf4XPw12vZPNI0t8WZKPn/sNLHURFC3DuFIiMoOGJqiT5rXBMysiyGppdSN1Z78EsMCcHsP61yUHC9y153SZfBy2tfpgE/Dma0OOP1D0ReLFJrwJGQWqxFcJ/BLiNRHxz7t5rmGGW2mBFhuvCiXNgS4iRu4/7Heen5ol2pe3KcOnnRDD/qsIk4q7ZQ4wv2R+uO7dYHSMgTrp3aQo9nvObZ3li8F4iV7Obrgx5SLVNAYt/FgHTcsiWjBdAOdIGiGb/Omg6O137MShYYIiQTTJFDgdb88WHlQ6DMtZXSTyyQQV3PSt7+PagEsyBpNMtnEFLFaKpeHAn1hIJxPCvdrKqDs7gc0dSg9SqHwtEIZa5E7hHiijtoHafaQQByU4TXWwveOUagpRigJfEkQLcyWJ5/Ow+yoQ0eWUcQGizzw6DwEyxOYQbxeX6r/t+H+9PXEsxN+gQF+vrZYAo2+KxrwY8H7dE5J6LMAKPaNLBqmhXUkujDkIMgAgF6k78Q/Ms49bhflp64vLSiiP2hcZV+taAmiPbRv724UQHb7v8FfUAAt6nwdlc8RhYS2iVQJHv3Q3sVIjLgI+HOFzvmU/TMepSFBtuG19I6i7ycH+2NKWNS6ZBek+RUWUzPHxD7vZ2nNm1Tc85j4Vy7pQMOlv+s1OGCj7r43qCNsLN8va/MXXqdIqI9i1gnDynb8OZPMLRO7OL9+3FcdqDq6BP1Eh8ZDcksiAq6mX7YM+CpdA8IJJ4v2OM6kklZabp9U7vWTTuMyTYK76VbKwJfdaM0tNAUJ9TWT7uxOZPhsdvH4Zq3tHVA2lAhY5SdMhXkaevbhsv2NSEzyDT2LhVzKm2OektoFFNl8pfiLn8ioDzi7MTiHjQ== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2161d582-849f-4dbe-c129-08dad0c96d01 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:56.4681 (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: XJwiIpYfWDlzCIc7PUDBCinoGtQ4PLwboCWGdXaFuFNLJEheufcAXNJOepqn06WtJE9TADq5bJODK/kqE10syiUDHUpTO9GZJPzNcAHg4zE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144804_640567_DE02BBCA X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. 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 The dsa.yaml binding contains duplicated bindings for address and size cells, as well as the reference to dsa-port.yaml. Instead of duplicating this information, remove the reference to dsa-port.yaml and include the full reference to dsa.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v2 -> v3 * Remove #address-cells and #size-cells from v2. The examples were incorrect and fixed elsewhere. * Remove erroneous unevaluatedProperties: true under Ethernet Port. * Add back ref: dsa-port.yaml#. v1 -> v2 * Add #address-cells and #size-cells to the switch layer. They aren't part of dsa.yaml. * Add unevaluatedProperties: true to the ethernet-port layer so it can correctly read properties from dsa.yaml. --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 6fc9bc985726..93a9ddebcac8 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -66,20 +66,15 @@ 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: @@ -116,7 +111,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - | From patchwork Sun Nov 27 22:47:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056906 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 DCFA6C4332F for ; Sun, 27 Nov 2022 22:51:38 +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=n7WUnJBhHoE6sC2lDgXYIPV/qanNPi1WsJNitRZSSXs=; b=l/jzIjCpv8OemYE04OWPn3E/wB ooX/il6qiyWDcUoxewrPqgZyO1C+A5r3Cs/HaXFro1Igv8DD2ORrYC8qJuhghbAOV/eapt1P/CNM2 KIQgX0gX5aLv3UAFk6RnpvQCC4+pwgIUCryc8p8sdDasg/cwSkEelTK3qJQla0DyW++kXZSGQ34Q4 sfBMFjjMy7ifR8k5IL64vVFRU8UOrFiAn47pOfmM+am9eTsVTZapq+dXoOlZc8lWywxR2ludAEFgn iUiKiSunFYxF1aMz6Eis7e1JzUva/rLgiFg1AlgKaYrrXXAs+m/Z6Q+8d4mn1Arh1n0f0NZQ80t15 8l1YXo7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQUl-00E2Ae-Mx; Sun, 27 Nov 2022 22:51:31 +0000 Received: from mail-mw2nam10on20717.outbound.protection.outlook.com ([2a01:111:f400:7e89::717] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRR-00E0fb-4F; Sun, 27 Nov 2022 22:48:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FqbUU30DB4vO2QlRgDBf/6Z6JIaBe2xVjcuVMLkKNVtONhgp+c/LSzIzxEZSFiMdZKSGtbAwcSVejBsgdwCZ+eIYqqU6rkQM7UtBJIPn5RO4hwG+94Ts9Y4CWfZIeMg+/uZ7hOWRjlLpAUqSZ1KjeLmhAJD02pnSiyHT1iF6GVOilOlvTuUD0a9RhKYm7SXZRgPnEM1U33LvG3+YL0or2alvsgnMOT4HcdIOPUt/zu981f595dacvnUcCWvO7WqCxbZ4KQLXAJxfCAG0cNcVs1Lazsw9yaYf7/Tddh7kxJTUw8hNfpsRc8qsQrj4vkONyUQxGxPPvW4iPq/aRA96MQ== 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=n7WUnJBhHoE6sC2lDgXYIPV/qanNPi1WsJNitRZSSXs=; b=f/WAWjGf5YOI1V8LCrMNHEcgfHCblMmu/hW0rnjaVnEZtzooU1yuvm+FjbeXLi1iJFj8XdTIm+Qd6072TcorVPeCnmEJvhFO9P1/pDrq5o4k1cd4q8cdNsVagxJZ3NHku7xxtX3AK5eqqch2k21EtrpC5p6p4y3/XoXmomX/gZ0vxpw96f7n9/J1qdcbCWjuzdNxndPTQ82tLPb10ykfvxb78qW2+4pDY/sGDH9R6B1EyhVRlAX2JwCwXUgRumNBoPLAN0ndypV8g3QNnWlfZ2WImUIFViicif6mPWbOmAEJggetuJPWAh7QHyGT+zaQDYVnAngyhsI+4XYGsiU+sA== 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=n7WUnJBhHoE6sC2lDgXYIPV/qanNPi1WsJNitRZSSXs=; b=xu+keqpty9auSJXUbSq2K/fqyS2iopU7wvZEUsoSHvR3SdzOEOx1As9doto0TrDijEz2gsdRxnOtOI+sNlx/cndBORw4+PtL38LK/UOQZnRsMqy1Mdpcoaiwg89GhbJoqnjYDAJvf5Bcrb9sSqRrpjuBqQOHooixSta4AoWyskk= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:47:58 +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.5857.022; Sun, 27 Nov 2022 22:47:58 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v3 net-next 06/10] dt-bindings: net: dsa: mediatek,mt7530: fix port description location Date: Sun, 27 Nov 2022 14:47:30 -0800 Message-Id: <20221127224734.885526-7-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: c3ab64c2-74a8-4418-71fd-08dad0c96e3c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ORr1CTQFpZ5FV4Fio8TICAg6/GaeX5GoksaUOk6dGUpIGREZK6lhj9yGeUK1k6GIK/ttMuQeGF2rEyzLMvZAjJoZ1tCCYnsnAe56XdUvh+Gqu1YBn9NvBH9jc0tTp5RH4gb7JobTSfwPw8xeTRrZhKDo9DvPrxzKjHGWcb4hkYaqUdn3oD1DOnd20stuUZ/iQDZf7vYThS/wPf0+2o6k3XslrIBiFRN+vujzrzUVCcj4JDab2xd1vYT1JNLOBm4CRYw4mSpp+k7LnCBrPKFXqvL6gm8wzkXrRZtRDgPL89eY6J4DuZQ/qxdIlPjwe69zWhOgJMYnrbHi8g8aufu8VAO5xTo07oP9NbqOqrT2LqAIX96d2fqLmF6HrMI0A4eSbAWd4oW9y9btJLR2UBuEzC7+dzyU9lj4VALXrBPtfHRSpi9EUzlYFtYQ54OOlVrTLxwiKC6QZ8CV7ZR03kXcJWqBfo63X9enUJ6xT3UE2QAd+BWi4biRgzjlc6F7nQ5WqrdkkLmq2wlDRLbjF6tqhmFM/mV60aSlNDfuxFuLGe3503BxS2e0a8sWjbWIU5tWd0UBMXtVi2tMAM30GH4Eey8hrXHUAv9PIfW2+7pItN7MOV4U2588t71/7KOs+zclOZuQUqcpu4ldC+bgrdBy6Pf8W/dc4GMIZTzyJIqQVZehW24VFK4MSDO9LU4/qcV X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(376002)(346002)(39840400004)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JRlo1UO5Tmz7qQnkUNWbbwm8TN/Plvy0S34YRt96FcoOz2H0Sunz0j/t539FB49S3Tyv4k6mwvRgx2Q7p3vhpz94R12f2tb4zw/ZQM+GKFTOIWgBA0Q6Smgd2wIEQPwGAUZfeY7YszIsQwaFlpXQTJMLtwnxXL8xcmgNopEsZpTRTtlIyoj+VFBspE9rrHJpzxXG9lhMwn2r3ZdFh5a5IInuzeRNHgWss9TTYtrLIjNM6yUSHKiTHAlkMd2d6PsbE6SUGw0sGbCW+cjiGnX4Jrv9EShUZG2gGN/AJBxQTh8cGBXng4KWOr2AiIjsvC/SXFQAL3yDWzkhEVFpTT0v14iPseWpKLzQqy1gWdL9UxOj2+2LsrJWNPTuMMzgCht3Dejt0OMzTK8q58LIwdQqC9MvTdPuHv8iDmBt/QUdAaKamCusxs7G2vuYa5NgeHGQUJZGxwk4Lq6KaVJd/wO8ljNJKgBW521KMY4lp7W1k78MCktKIvFufI77j8lmEUsqT+zFho9+J+IUwgVAVFf8FY4+qxdCoknDnZcF8Ly6vow5rVKhdXS3/J9+eHOcPnOcyjRmYeOe7RXSCee8wHiVzrC7iSOJ1UsFGSy0P6wfFiHObkKHDZNcOhbqMgLjDlhkgZW4sEOG15Y/33A2o8ZsMpOipLGF4YuB2ENoY+QawhGJPXczZ9zYs/9nsgUg4glKUnl1XtA1Ehntuzj/daNMvPSpuHquq0/2GRLKjeWTVxgDC632yb8gIbi9aXbARzskPdX2J2rgsl4eO7tV5PM3bZt1XFtlFRilhchSboeeSWFHNhrwoo64SgDras7A5w316YXbLeBK1p7FGEfu1SWTsYnOVfxkGFM8Vync+LGezpJUfwaqLFkoEdXvkkLX0oQVIDRo3CsFa8Ka3GyrgPPLx5/bqwFCb2LUr3VpbUn46ycwKEVUILHha9ucvIKH3RG88lwU3WLtUqlM4UVpmWWHxkbFtp74AfHgfHZ3yX+6XWTqASRyfDrWaLIzw+mZl+okVjPN5PyEn4dg8Ya8gO80D31fr+6kno7qrtxnsRfvDjUS5QinIpNpqAayrOZVdgw4Xx0kAqKCnjHagjVNY4mN6Wqe3HHbeMMb4NJAyLBHh8rihYeTckzHsXVK/C++yYlaXi1rIgYaxHrlw3Sku1ZYzKmk2wRPKERZBXx/S0LhL0WPOA74toAEfV/que+COvp+IpLx4MbcQSPT5qbv3TKHVZiEGGsFeXz2KnZczxKf3hVdVxXvhMC8qvwFfbCXWSUrMLCx+JXagdIalXndUb+bwbvC+QCyw9XmEn9Xvx9OEtIpELZpSOsD0cM2S6PaNgM/Wnfs7COTvQSFT5sddjcKMCHCsaUPT2Ay04o3ikB4OmtqrX9ZAHKxzKZw8XaIm+IeM3cwZhnHyyhpMFNXFKQpwV00QHpyDjHTFts6xV6FsZ272nJBNsKokqaalh4+HqIW0xOJbQiXIi9mBfn+uqTnXJIhuIlR0MHZu97Lr2+PI/qvwEg2sSCBz9k/5EUHnWLsMAcQByISdP1f5uyQoOe8eQPcpXRpgoIEpNLBmifPQnmVk4GCzdN3PsujgCvuy5/B/LQQ8y7+1nJmJYHBG9WV5Q== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3ab64c2-74a8-4418-71fd-08dad0c96e3c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:47:58.5149 (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: Nuw15IdZag1Buj69OJINg9WsGjwBQQOX4XXzoJJZuIl3UNWfpULqQsczHRNKQzF/JLoPEX7Sw5OuB0Oiv8gD9svBZ7r+vqi0Ax7cfToFQqI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144805_219589_C94A818E X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. 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 The description property was located where it applies to every port, not just ports 5 or 6 (CPU ports). Fix this description. Suggested-by: Rob Herring Signed-off-by: Colin Foster --- v2 -> v3 * New patch. --- .../bindings/net/dsa/mediatek,mt7530.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 7df4ea1901ce..415e6c40787e 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -156,17 +156,6 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": - type: object - description: Ethernet switch ports - - unevaluatedProperties: false - - properties: - reg: - description: - Port address described must be 5 or 6 for CPU port and from 0 to 5 - for user ports. - allOf: - $ref: dsa-port.yaml# - if: @@ -174,6 +163,9 @@ patternProperties: then: properties: reg: + description: + Port address described must be 5 or 6 for CPU port and from + 0 to 5 for user ports enum: - 5 - 6 From patchwork Sun Nov 27 22:47:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056907 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 8BF48C4332F for ; Sun, 27 Nov 2022 22:52:24 +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=YWcHhtShU6stqv2sS76U1y+DSgOirDvztP2zqFgmzYg=; b=0wAz9PnlfmaeciZOL96taqpb0m 1N52vwkrDBvFM2+geDLeE3yazy7GWG+t9aFbc+zy6DZ7il1FrdljzdecONLzOCAkmbwUF9pg58Der g0R/0ZjWoTw9DM4KIzdGTP+4/yB+SvJR6XSGDv1MKJDtpgvU4EnrI1fu3ZgF47pKsivKWnywx5Qnd 58+7nRKM4pEx5R04BUJ+T/5QYlyRZy79OoqSI1+UuzEJciuY/z+uUPvKellpCoL3daODzNt0XWh0B NjFyx5/bwfeBwAKUpyprtA3wUnmZEofoM3vWgvGT0QM6Gp1WD0/rJmkf1MtmJD3FdP6GrI473OO+2 8cC7YBIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQVU-00E2S4-Ll; Sun, 27 Nov 2022 22:52:16 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRS-00E0cz-5k; Sun, 27 Nov 2022 22:48:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dtdn6VNCg38lvmche4n2Efnhl8L7XLPrLuVR4tYTWqjtGkrsFKcXPTy4leI4LDOezVdt47z8zggphChUy9Sq9aBfUk9efpLfDS6Dfmf/CxhQYGR/N9bXaqlSXU3GPz9y5iTXft3Dv6ywmoYS56jx8VzkcJ+KPFAWeTv+CSOtgtPG7Ng6tUgGhaJnrW8i2L0OI/3pbSWHBEWrOLMKj0ugUrn2vvtvHkTmA/u30nUxI6i1LyQbNJikcyA0GFeB5EuJk+kkHKdWnl0gDbkc0B+nf5F5GT7CEpTuX/YRu4PJ4Pn8rv3dwhThRfgOkwuv8auCzZQaJOUVgxAunutCHMHV9w== 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=YWcHhtShU6stqv2sS76U1y+DSgOirDvztP2zqFgmzYg=; b=DQ1jKYoMdnuVJL+iF+NDGSnUEVEWbpHs11SfU6GWs6drItMmlzkQPJPrJxC/87K52vyCO9Iubj+Ss8ht5hf37b1RCKHBET/F4Iv62OiLvAJ80iEvgNnArxvhjuUAqnLoUyQ1GcgzXVvfJgA9Pcbmeh/SS70sBLWgbt4hGfwaqh9Nx15vF/+9waRx+QzhnHWI1CEo2NuL3vxfmnY7Bt28tKRSGHtQ/pP0cYYwm/8ArfJzH5P5plfpBd4G3Wktqeoq/ky4V/fJYIaGM+g4OMqk9gwJklhlwSVfTGwCa6TSNEbvWMmkGiqDd+cLCwZE20s3oyJAjHQVBwYZ4ihyrMeneA== 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=YWcHhtShU6stqv2sS76U1y+DSgOirDvztP2zqFgmzYg=; b=krcPMak+Rz4Vh21sl2m/1ake1w6lg0RPnm9XAFXI4Irnb8N6j/IyrOFfh6wifX2yersP4AlpLVnOTrddyCQr1z5NurQt2wGSj8WtamAKJIWWg49ArG9MwmBfZABWNJ7aYh2WQdajjQfUMpjplasWZ1v4/dXjsPezfnCSZLYJsMc= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:48:00 +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.5857.022; Sun, 27 Nov 2022 22:48:00 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 07/10] dt-bindings: net: dsa: mediatek,mt7530: remove unnecessary dsa-port reference Date: Sun, 27 Nov 2022 14:47:31 -0800 Message-Id: <20221127224734.885526-8-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: e302b049-f350-4dda-fbfb-08dad0c96f6f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9hcSxbHrwxJss13KFw8GeIqnP/AOpMj9zm3UnmGcJntSeHc7KYPZ8y1eMWVpZEgbTU0icP+r/P5XbSDvs/2URpRWW1mfZoJlGOE87Gr3RzIjZd7bpQ+ll3dUQ65j/07zGbnAQ9DvoxOlh81RfcmUWVpc6XYNGgezEAk1HPzS40LRGAzJ8ivHGVcb0QoqM0PNV0bY4B7y2YrupYXccL61VD4qJ8vc0CCCJ2NRik2PQRwNaJuWFlC3GQ+QfKS57JkRDmTi2ZMtptB9R4x25uxesnyiHK/bN7BPl/2nRJ37xAIGlN2w7v7BznIjYrQ3xuBaWSpsqF0t9ATbt2jgRf6vrXVgsADWggjW+QTDzZG4CQ+h5DyvGHZMP25HZYCDSei7KK9gnyg+C8H3uQLuqHVgzLgtNeszfYW9CV3QpG0McnWX1wjIbw8jWSmYaICLeoz6aq59mVU/ZcrmGO3Zzg+tcynia/IB4f54JD2nAJvxTO+/kl+A8pLcJBN+T2UM/6Uc6zMFN6UUdS7oY0sN+BgxEByNZQ6eKdl+hRpd08k8Q6OHm2X8Wtb60GXEDOFH6/UkGVF+3auxFDnytK9Z6rWRl7A+aAePlYGIVU7OZgCHj+0ZO9vH+MIljZqfv4u5qYZ4a4Ao1jIOlHJ84JlVtQU6j1TN7gj9hR3BTkoE2uQQq1aZIxC7pbOA9DHeCZ3aEsVP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(376002)(346002)(39840400004)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(4744005)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(66574015);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?57065BPhb7tawbop7dFanR6QRB/8?= =?utf-8?q?E+s/dSYeAwljCA2yp3bZ57N8AXHfbKx1c6F7O+8ZiMKWN2+iOzmfGV44tjwWArq4o?= =?utf-8?q?Em2iOcIThF1OBsxDxfD4OfSNbr/sSTl3X/f6xuh8V8U0++u6mbDDv/ds10bIGMCZz?= =?utf-8?q?AM+bPcKSvMdGzfoWa4MkcvqGIPmBqM2DXeUTvhD35pz/VjkoF8m0EpOjsZI3JZCCl?= =?utf-8?q?munBEyjfDC6vcmlGoYz9OwvMSys0eZ097iRaJElPI9Ilt8mNZlKmFlv5hxKq4yse/?= =?utf-8?q?MVDfI1/Sx04HGB5BMRH8zPELAJ0ohCnFfyulcHqyWwdB65yeCwS7CDZPD6h8EeHf3?= =?utf-8?q?hXDPCejFKgoKSUKrvTK5ivO1PwXcaPOTBxREmBXxoMT0dOx51Y2CZgBJc/5tcxzTE?= =?utf-8?q?YTOTcq/WhOGczH2XsZ7ib5pXK3plCZzQajdRI5A3CKUIyMEVuzT5hHLqkOfOCFOKg?= =?utf-8?q?oZqggIA2SswSYkc2r0dEAUVTitacZvN3h+bU4WG2dMNL60z9wgorsSaLu0xjMcbo4?= =?utf-8?q?4/UcebVACL1/ALyV7MIT4WkQyKstbDgbYRjeGpVoFkvy03PwSrJ4NdbY8dTSEA1Jr?= =?utf-8?q?6n2mHHpRq/0lTjBrmaXwxyB6e/WJfDX12UySFIGnxnCdgyBrKPa0xot9BWq8s2bqj?= =?utf-8?q?lZ+zbW3g0mTHeQsVAF6retC5ya1ZWq1gSjS105Jw7McDMr7wRK7ODpB9B+dR0ICn6?= =?utf-8?q?ehTdz696Nk/DE+EGdwUmm5xACjeXHxa2cMSRl8ysmKyhq5hjQe+wkxhemrn3ObIYc?= =?utf-8?q?FIEesifi3zBlFtntrAHufzkyWAFtoVwrDr/QbYLH4WEE3qmdcFPU1I6vJuEtLPjRq?= =?utf-8?q?bNSDSiRxxeHASxDcnzVIsJxbhmLtZ7cn2bALOAdewf2aOdo7leKOFouN4BaPFvmN0?= =?utf-8?q?dAXoJGBODMXU0PfevkT5WuESklXJ4P1TfiELVHRo/Iw3TLhvrwLdaZlkxe3iNpXIM?= =?utf-8?q?LS+NsIVl6MRJKUYzXR8ggbLDxsLeaPtlan5Rq/qDg/8DGUCdq/FuD0S1g3GZnwO53?= =?utf-8?q?Vi+I1HUHxfD8urq7WWgzvYbM9l92/uQqwXCGUmO2oUnPxK8cH0g/MAkjt/k885UsN?= =?utf-8?q?aVc8p1OAvKHzrMBmt8nokSsLrRZvd03rTAODvZv5MVXoNHM3QgCs/8nGlVS5EXbvG?= =?utf-8?q?yWt4HGnKlyYt0kcWBMVs9UFwSXQTdFsPRFzmaTZko4YBVcYQhL3B7u6TziJjkFl5M?= =?utf-8?q?5RNwOMnVID/ks3wG+PIROSrcJGz9GyXkMKZqyZN+jkz8Krr9WTJdngD2cbCV/9U9H?= =?utf-8?q?OVrelstBSqjuJmE9xLjXghzO6tfrXuUun9Ml0vc4VmES2DX/pDMDdShrRVf8/xw1R?= =?utf-8?q?/zmJak3g5gznYjVf3hBRURQ56uLDwJzWNTZIKdAiyy4ywnFp6FftBWJWuvLRvQp6K?= =?utf-8?q?ZoNF43Qf+7u62Q0bKK6mYqlp3wMTWQZ6Fd32IVeN55mialwwF3vd/TN1bKWfKIz3u?= =?utf-8?q?rpmORJujkVcBikxijUJfE/gigllP6QlfOeFnJ09ScKu6Rz8Fwjy1sy4YDcSgqfXlr?= =?utf-8?q?CJo8+HcgqAZy60F2MCUbb9o/YXWfeMZNbA=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: e302b049-f350-4dda-fbfb-08dad0c96f6f X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:48:00.5772 (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: jxHzHrylYeaJD+SXaa9xOJyWrZJ4ZhlfPthMoKgg7/7xLZ2mg0sG1o1pYpi6DSh3Auq4IWaqXirsddGjsZTDk3mTEdZgmErAdD7dQGWkyfk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144806_258164_8376B5B7 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. 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.yaml contains a reference to dsa-port.yaml, so a duplicate reference to the binding isn't necessary. Remove this unnecessary reference. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Arınç ÜNAL Reviewed-by: Florian Fainelli --- v2 -> v3 * Keep "unevaluatedProperties: false" under the switch ports node. v1 -> v2 * Add Reviewed-by --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 415e6c40787e..44608a9b244e 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -157,7 +157,6 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": allOf: - - $ref: dsa-port.yaml# - if: required: [ ethernet ] then: From patchwork Sun Nov 27 22:47:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056912 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 43CF1C4332F for ; Sun, 27 Nov 2022 22:53: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: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=TV4JJ7A6nmPl6nnIoTAsEhnmsaWZnDYlIDIlg2n+GKI=; b=G8JE1XHJezogHzeUZRSijyy5+I OyEA1G8rhOnl7SMUXeXsEVU6vB5qEK4SUW8OW8K2L2WWEp32lm2XebVgVZjZ0QXSjz8U75ZKyaIHW WLBY3ETiX9vZHryVIsle/QOfeB6ZJF7zNegN8fA5zyBv5QwYW2qYnOaGXwYZKoEUL8nUNCdI/8c3p UIee5s2DKNvLtRKhkL6aBy0iTI3kCIFRO9rutXgT+H51yQGqqJ9bKc+PeS6nB4kXLMJK40aSzv8vH jbhxVftjJvB+e38tLYtAwoXm3Oh/zEzXRsUjzamLP/KcWssqgsgDBla+PYxhO+uy7aEXm9F3M0a7r hQs5dGoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQW7-00E2i8-Ti; Sun, 27 Nov 2022 22:52:55 +0000 Received: from mail-mw2nam10on20717.outbound.protection.outlook.com ([2a01:111:f400:7e89::717] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRS-00E0fb-M4; Sun, 27 Nov 2022 22:48:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h3tE2TGNLjJGV5OJBUi4xAuP69c48VXBSAE3qjesRGjXecz6JRhRPw+lFQj4tyW/bC0EJYKx4RmPy/EXCHGCjS7Bt25NaCENB5d0A1LGZkaxs7G+h0VNPZ0p1eEVafA/usrhFgrsH0dR5x3ziL0DYA8TakVnYgqyBmNfvOSHAmloCS+QqX2aJmTJfjdTDooZrGce9KZl5bXA1ofuLRIL5pZIAqIzpqMauJB+rHHwsgc4umnK/T2YU/8Bh52CKmwbcJpP4U1Xmhvj8rVq1oQ4mOnKnxpUSnTWipqeuLYi3dXu8HQBqNXAN+IGVbEsQYbuuPkVnshFJdm0KSaqSklb1w== 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=TV4JJ7A6nmPl6nnIoTAsEhnmsaWZnDYlIDIlg2n+GKI=; b=aBtmPNJSdG9ML3ou9H9Dahwt8/WFFkryY+RsqBSjaByaf/lh8xXeYOabS7AlDRbWqJ8eKDGG6TL/hihwmk3BV2GX/ol8y/uzC66TyrZVmdo5XCowC1QI2AkZ2372tZnHWGlEpWAAub4KzjRleceyWnpjDue4MLzUdK6dQl2QqnoqgEJsMpk3Ox13j0gERKYFzIFAi6kERvDjMVGMIiPji+hPTWz08TTIdrSWdRj1S/PGSM9mrKj8SltJVx7IgRpNph6NGfa1pqvyyQdiXIW+H33V4oIGtN2QqOxs0ICjajFAJmCeZLtX+xPfIdwve6FBip/3kJLaL61hwkzNw5YAcQ== 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=TV4JJ7A6nmPl6nnIoTAsEhnmsaWZnDYlIDIlg2n+GKI=; b=OSJrDbI/NfkraUQf9bW37MfvPXoiMwhuXjAOT5wv7ba6lgEqZR0TuqIxxsS+RH7L+PhhDJPf+WU0z30AWvfzEZuO2vSlxX13fkcnHZrw8aKk594qV2MRHfmSqjohj4DfxmT3A94YRSx55PMcr3dqFw+LqdmMM1b3KB85clwqri0= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:48:02 +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.5857.022; Sun, 27 Nov 2022 22:48:02 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 08/10] dt-bindings: net: add generic ethernet-switch Date: Sun, 27 Nov 2022 14:47:32 -0800 Message-Id: <20221127224734.885526-9-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: 26c9402d-8206-4673-4a8b-08dad0c970a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ws/G5JIFrFIjzO6FEqEEJocgFvPn3XFdMFs+Gi7IGiHJ8QIMBHG0urNkwXUgr76ReAfDXICyz1Ot20ZttHeesUXPwsZBntFTEUxK3dsK7M2SwUnl50rP7QBiXUuMiuQjC5KOxuYV6w3oVXk3krEQ5xK0JILT8RGOc1Zv9NksLVWENRkmni9kJImlLXoZwadgojIv9nM0c/2tF7KY7cvuWdWSu8uIuiAYVUbMlS5j1SFFsa77HHetp3gH8QVUHgGLU87epLNMHYEkRJZZR5tTIDVTqwAsu4WwTNA+ogoYoIzk8aCOlPLKL6NbpVMJQmyt9+S45z9ciY7tK4UyY7O3CIdtfVhktgXLhC36V7sIvvGCAl+UtEgY600jEEx6QzoVfmXMWCQM1RZ4NHVU02k3Xs8+yDjcq7CoV5Z7dCNAh94rp2sTboCqH+B2tw5IM/OeKFerRTuRNxxirxtshQ6AQBtcXpiYoCfnvJBzEqscmXBjZ30cXx6BSub1ZSN8nJRvyLGuurixTtgt/mb7S9adh/B0tEER1IuG1DfQb+D+k7A9AQ/Qrl5abEHh7JcHLHmE6BCmsWn9f/WdjVL0cRhNAK+ZtwNNpAqMgZaRiF1botA+LsAQXaDPaTuhYQnqAqh4vfpayrg781xdcCKrCwywjhRD84WnUAwyOsHGQ97SuXBCR4TOgft2Yeva/6XEaBSVvrXYBGGSpodh2j4Jzl4NNUzXnquhEPJXTImfSA266l7wWJJWBtoARnyOOMRjKqwd X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(376002)(346002)(39840400004)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(966005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o2HEXGNlTgJd1QuSyqWsJzVoxNsVJjz1cAEMaVhxqwiHN3oZsUC8eIgLyb3/EGNNG0NoaFAWbsWBtkz9ADXIo6T1l1kKjfXc0/hvNJjAVMeD2UPUL4fPSUybX64aV1JqU3LxgOIkNXUhYtY1ZQdvOXwNEWLd+/AUBDapvrLmV9n4kRiqK6J3l1KAkNuRfty0BFNJr6iuVdo0Kq1R5H2JW1I5hUaWjt+OeSah+RPOZD6/lD1IETEAnmLjN/ajjYGnntKVWzP1DG/3ViMZMHwggiA65eeAis9Ir7za0Jo6PzYhAsNx+gowv3dcBbPDtmiDXG82OuHp67tfqGXZOPzlxuYxWZs09oEHrrUcOuXimTbeup2RGYGuyEGLed9SQ7+WxyNoWl7J2DSqhzLeNw2vZacNI2PVFngjUQdyqsCnxbRNnkC7yRDUJ7UK9GZfxzfD47h9zme5kz0uHEmVHrZVkwQeqe8Le2rkmNtIt74HXfs0aMX7xwEBC2kwUNZ/MFyCFlDAve4/lB1zW7GFzNsuTHxH9Ti36gD7xz3EbXrIga9Pei6pFW20FNV8Tym/2A2fOusOUS4ysKP+tfYpvEWaE/RGdaRSK6KU/HHTxaeDco+on9q13KT9ARiITa3R9eArM6rEUdRF2UT8q0sqMp7bFAFqSv3JSxgdxCxn71mZmqBwFz2VUoBcw92gEixdIcaPKjzVHfvqqkZ5WYm+hSGrmLdhtNlPZZanGhWnrnMi9nHXN72VDdHVBucj3X0y9C17HmXvQvLROIehD0J+1j5xNOEYhk8+7Km5oke4Cf1oel5Ea1MDZILDlH+Y2H3To6i+YXO7dQoR2YZXO4GjiN2JWYWtKY/uHrHXFjXe6FXhMZylDIkMf2uJPupU3m/i5Y0XpF4Tpvz9bubDlBYU2VzRuZ3o9BXEatv9xr9vneEiB2RVCuKXVMr6htIc8jXvvtn1kFestVGC6sK6qPsnz7mMl/wtrg96/KXuvGnq1USImIvQ6wxIsOw4St1+mKncr/E8sA2sq0hSlTdOZDmyY1+H/AMyKYK2j/DkCWixxJFfZzqYckfyBCgVZ+n3FWxEyynMGCzzxWsiajbxTIFsDjaSJv1hK5V+48Hv/MYrUPwAaZM+aR3p+IpV2p2pRxxzUzREElro0VmZvGnGkxtW2TmnZixm2yTtWTJ5YQf8FRC78DluSqMNbGNPfdEEJtTCO6L6Gp86WzXNg5oB6ANnJR19aLhuVE4EAmbjA5eMoSq2aJjMm4r6ztjz1ke6pvVk0JietmEUpOsuvn1rfsVkzM/jsiMzPOLwbNYEfGVovrsS0pZDiu9s5phqfgTvNsQEfdoNE+kw5SrR+Vj6IdeKWs/6wGoGmCIr/khfaUUtolGZFCpQwPq24Jd0GsxjyIcH40PCX0iCUeBLLBWwt4HA77DbAWwRWkhT8RKVe9mAj4InLaKBZADW5FlY5zS1oUxY3YcwIt0VMMX1uBVkfd12HOQx07O3ssaJvdWTgYzVfuUHoRTtqChSUA1t4YSU/lyNyhLZX27xUdk8Rj4sSQS7sOLKG3i4ACi1eyUSeb1++DsIohbrLmICh3JdjABsmS5cRkHU246TG4fYlLtBl2J62T+Iug== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26c9402d-8206-4673-4a8b-08dad0c970a8 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:48:02.5615 (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: 8sQs8GTWZsiYoupvdHx8AWMwSXx3cKTtOjrqGkpfEaiKpkLqnN9hfi/ThyYZ+9eMjLyARwXtD+62PWRMSipS55ZVA1KMk0kf3rXrpn70c5I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144806_753673_B1F95612 X-CRM114-Status: GOOD ( 14.54 ) 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 The dsa.yaml bindings had references that can apply to non-dsa switches. To prevent duplication of this information, keep the dsa-specific information inside dsa.yaml and move the remaining generic information to the newly created ethernet-switch.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v2 -> v3 * Change ethernet-switch.yaml title from "Ethernet Switch Device Tree Bindings" to "Generic Ethernet Switch" * Rework ethernet-switch.yaml description * Add base defs structure for switches that don't have any additional properties. * Add "additionalProperties: true" under "^(ethernet-)?ports$" node * Correct port reference from /schemas/net/dsa/dsa-port.yaml# to ethernet-controller.yaml# v1 -> v2 * No net change, but deletions from dsa.yaml included the changes for "addionalProperties: true" under ports and "unevaluatedProperties: true" under port. --- .../devicetree/bindings/net/dsa/dsa.yaml | 28 +------- .../bindings/net/ethernet-switch.yaml | 64 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 67 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 87475c2ab092..616753ba85a2 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: dsa,member: minItems: 2 @@ -29,32 +31,6 @@ properties: (single device hanging off a CPU port) must not specify this property $ref: /schemas/types.yaml#/definitions/uint32-array -patternProperties: - "^(ethernet-)?ports$": - type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - - 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 $defs: diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml new file mode 100644 index 000000000000..d5bf9a2d8083 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + Ethernet switches are multi-port Ethernet controllers. Each port has + its own number and is represented as its own Ethernet controller. + The minimum required functionality is to pass packets to software. + They may or may not be able to forward packets automonously between + ports. + +select: false + +properties: + $nodename: + pattern: "^(ethernet-)?switch(@.*)?$" + +patternProperties: + "^(ethernet-)?ports$": + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + type: object + description: Ethernet switch ports + + $ref: ethernet-controller.yaml# + +oneOf: + - required: + - ports + - required: + - ethernet-ports + +additionalProperties: true + +$defs: + base: + description: An ethernet switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + description: Ethernet switch ports + $ref: ethernet-controller.yaml# + unevaluatedProperties: false + +... diff --git a/MAINTAINERS b/MAINTAINERS index 9b12d715fc66..3077c5af6072 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14332,6 +14332,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 Sun Nov 27 22:47:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056913 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 7011CC4332F for ; Sun, 27 Nov 2022 22:53:57 +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=RMf7QBd+X8dJtGT6Qj4r2JP9k1YDWoNGjjYMcR7Y4Ik=; b=mFkKDOvv1j1hrsKw0xdu+Y6I87 J/xThUOqgB+upTSVd16OX3JW/Bj/U3p55ZiGLln0aa/kql5bGc+wmdjt3xljdjMEmeboAA9zyweEM xcFZUswMYgfstvdlzV/7xV0+iEzvS4SRUuVHLHq5rCi1ugYBOG9tPdiGsgA2PUK8uZp4qKbx2xDWS XiM+HHc5vF4IBk4Tvw3CmB7riVobNVGV6jNQyequLWkeb/cWUBzZB+2zlURCchW2XVgOCLUEyqBMG sefOdubQzxhMX2wLnzKA8VBmMkJF2047BV/BnC1KvV29madaNkcJ8Hqi83GrrmuC8tYXxHzy9SXSz pKTvx+FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQWx-00E30J-42; Sun, 27 Nov 2022 22:53:47 +0000 Received: from mail-mw2nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e89::72c] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRT-00E0cz-NY; Sun, 27 Nov 2022 22:48:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NpAOLCi2Ll9errsMzUA5v0N/ryCL26uJ3PDkSA+VciWDr65plwlHp6an1exHb2Hdwi/lxrQf2DcrweE4pZAVgWmcOIV9UuWp6cnSbYtdtynZtEyvl/ZYxoKLe2Bl8hVevuHcSVpcUq4LME0e1k/jPFFcoNP9I/YYKkVWKtgEQSP5sDNXzCMiASHaUj1BqVVNpUDzE12CNXwOqomTuvQD366GQe6+CnE8P7kaKLnXKv9wsprRK5qiA7ygWMDblHXuhvu2m4deZ6HrAeyfX+6rsWsI7f0PwRExZlcEtcUdKpcKxeHaUheeSlBwev/l6R3vBwjFAFTo+1t9IMRHxn48Vg== 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=RMf7QBd+X8dJtGT6Qj4r2JP9k1YDWoNGjjYMcR7Y4Ik=; b=Cjo+gtfhaZtY3+TS4iIRuviZkSkwOZmoj83PFMG0u+ku0mAAXZ1RdDmQuM2oU18cr1KS8qass9V5GCgZH3cOpfvDgalg69L/MSMmmG2NIfmdMEmSPGZESVX8G4vIHMaUlZjkCtKZaqcveWZmgPNURGOIbENdFskPHavocom+JIhtMArr5POxE9PI2DkGMZYmj7vXw79fH+/IIHjtOzoPEsQXi2MgmQNxEm30+Co03MakRavhQvaGdKYqDXfdjxYz5eRnbw0GouCLOv9ZYuP0ADzwzZ4kVaX9N0rQqkpTwBbLKf7stL2xnPTpCIsGgxrGIjmh1o4AuLENRzRLffU8Yg== 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=RMf7QBd+X8dJtGT6Qj4r2JP9k1YDWoNGjjYMcR7Y4Ik=; b=vi2FNgVIHEMXDdv56CqlhKat1QosoZZChyiHUotQI6yCgIbjEVsNaIGgFIaRietGAUBsx/sWcMTztjPejt6QRfZ47r5UOlPCAidtrkFIbl2kPFLqHCAimRo7a/j/Q+SsZN1IXmSts66NMus72tDb2I25ls/sfeIRkLAesIrdb/g= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:48:05 +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.5857.022; Sun, 27 Nov 2022 22:48:05 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 09/10] dt-bindings: net: add generic ethernet-switch-port binding Date: Sun, 27 Nov 2022 14:47:33 -0800 Message-Id: <20221127224734.885526-10-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: 122e8ba1-722e-4bb5-36e7-08dad0c971de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nAPTf8/7vhPhHSyHpmU+xV7dV4yW6PVbhtrbSYY3G8+VTvGaujGM0/piygSVZ6Z4n3M3A9OzWCqRq2lhpNyKky8SOYuilYyghFR7WvkN9BTJr0jb7f3aMOfdNfo8LFpYKVvvdNgYb5WNayE2hG86ZPXfP4+47d8dgecF6OfwPmIEUu/ScN8RcZdeEj3S8D30DAQVQ8kC9gLLAzq/nOg0MLLhOGdWr2kuShmM9KmTAVtVgOOydo/MKVaWpY5aHfv44dz7xco5KfkG1y0gc0UP2wgiYBaIiNFHXuwMVL2fU9zQM2Gm330XYxmc6uV7Zff43Kh1hGSQpEw9m6KASj3mbHeB43zNVcOYkhBz9AilQK4/o1GFAzYfL4x70ViseWKJ07SWGb6Z28FSnragRJDrOMA4tt0VlDZK1FDxcc/kZpLjA5jNjtbGadMPaEgdCtedyHTL/2pfV776URd+9FEetPK27KgVomtUCjBdo8tDD8mYTpEhxUf6h3fyQNwY79az4GF62UYTqV5ylZBJB+ChG74BwN/0Vei25G/Of6FnQ7MwkRzquyNQMuAcq9RySXlZvOxiT7ygYQEuFiBi1xWt6ohzNPR6cejxIXfsUPcw1gePQpGBG+oELgrpjqtALURqrypKcxE8Wl53+R0/2f1RxWvvQ4G/Vyg+lNuCHgOxYmQzKYTMMKIftERE65QYOzy9G0irontRR3ErTDK0YFX32eEKDkegsY+AJ5e5dpKPDKCGTgKBZcQI1NVaBeGtNNcl X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(376002)(346002)(39840400004)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(966005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: w4hY00u+Yd0/VZf2YiSeV7mCD+gVRyflB4wvcT3WFtjHo93rom6AtiWZwI/LugTgj/NiKfAUXiwHy0d+KwZ9HFAAItSpY2oaAPzxQl4W1DyFncO8KSDWPyTG0SiHUIPPYg2u21oQMAQa8yvQ08NolN5URGzBaz6kk0QOCzQN1WBmeKtf3A5kCKBIs5ZmrnvYpZRJ1aOuleW7iNjQUhBV894Hb6xRO6ZL+aluOitpB3kmvt2IQu9r5DP5+Ty0db7QmsfbJhaZ6EhafAPJ588hDuutjO3Y4NyggiNcxL/ZndePQ14pYfr3praqMpNtKa91hEVFM30cJP7eX/g3PTcYsMBZFOdtv9o+gstBQ4MdQQf8VFBOXknaEpa9OzMqn+HufN1m/T5VKkWeLy9i3Dz6AyTx71C3rySn2qZ4UHeQkjiKeE4zSACuAUU5srpDssUU0/sXFN2il8OgEb0dbMfP0Y/mcncGeHiHKHgwKq5EbSuH8wBfstXtVLeQa5Y9jPB7vNk0Yr0ED+m8HR3e0WxsJWn5rsXplHJrwxQsY0J5jmRPOsh39wcN0l3zA1yBZY+3bxez6aQ/VxgP8stuKSOrvMf+L1+jZ4wuKS9lFta9FV0Gl42WtvC0Ho3PKLJ3b1M0xLBJckGGpdsvETO0o0+mAh9ipXtHUxBE5kybg/Gp39vXoA6ZVYlS6qmiQm+NGPiMuO6o83a+3orNYGxDCnolWR6FI+fBcs7AOB42fDoNlJjbN21WKwBDrGCAckYtBnzS8GjxZh5cIypKc522TitVghBFMbUe/IWXuSJA9XULix+PRUmovbEfIv1AovU3THIQVFBZOZ57FvJiq4mCpIPtqi0gZhdhmFxkCm4SFU5mkoxefW3VA++ct+rOYVIVIo6ZOt7hFQYw1wTJy87AViEVv64xWhcYs2IJ9gTxNLJ5lS4i5O5yoyV5HqJD+Jv+nnadMlnuhHje39RDrtcVr2n4E5T2brgchI2uXvCTfwg8UByO0c15WY3dHsYGvJ7hqMVwXPip4ZbrDrK/dTGLwk07OwTva47kfPNnNwq+vPJnKqYJUhICbIBWmub9lekm9iEf7CeBGnxM35pY9gX6XcIBPAEESta9CIZtDn8KEevAEs1A4y+aigEX5Lz5wXUDwLms5u+bbLNgSapLYlIBbpV776VAJETAHvcdj4Id4hN0V1pLlw4IC8Ja/5f7LElqSY+r8/EmzhJln6QhyO4pzRchXNAnk1niL07t4Sf/Y8s7h0dT6JAhHwk6+ePxioaKnB7Pzw80YwR5sLriiPTt73gQwb3CkFDQTgZwIH8Klk2gTRHqH8mVHcEtWWSfrZ3142AHuAVnFeNpjha4ITq+1F7n9ro0Xz8xwrK7jzvtTQuxE/ge8oDqfqBD9loUMulyVexaM20k3HtdN8z6Eqa5y+eaSAQlmAioZD0NZpPpeClV4EbjaXg1Y9uyZK2ld/Oc9jxqQPoJVbSD13CoCNSs189mXKXUsPTDAOtDteprcsDHtjSNlbjptVURui0t/DhLLt/D3WAC0npa/khsF5nUVlM6223WgBGD0p1U2R0q1krYaIJLTypoudfvDMJ0v1NsPsK9QhRQbtEkfqnkQXaAe6/q3IemrD2N9QKVuO3ZIgl8/l4= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 122e8ba1-722e-4bb5-36e7-08dad0c971de X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:48:05.0300 (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: qWlQqF/dDNQcpQmDixqP38DnuHTUfPR2UcoXvKtK9dZbslqLB/xtzmv9iERzMYl/WfHALJhTPVXoiech308feUVtRONEU3wbcX3HDe2kEHk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144807_842032_AC11E1AB X-CRM114-Status: GOOD ( 16.42 ) 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 The dsa-port.yaml binding had several references that can be common to all ethernet ports, not just dsa-specific ones. Break out the generic bindings to ethernet-switch-port.yaml they can be used by non-dsa drivers. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v2 -> v3 * Change dsa-port title from "DSA Switch port Device Tree Bindings" to "Generic DSA Switch port" * Add reference to ethernet-switch-port.yaml# in dsa-port.yaml * Change title of ethernet-switch-port.yaml from "Ethernet Switch port Device Tree Bindings" to "Generic Ethernet Switch port" * Remove most properties from ethernet-switch-port.yaml. They're all in ethernet-controller, and are all allowed. * ethernet-switch.yaml now only references ethernet-switch-port.yaml# under the port node. v1 -> v2 * Remove accidental addition of "$ref: /schemas/net/ethernet-switch-port.yaml" which should be kept out of dsa-port so that it doesn't get referenced multiple times through both ethernet-switch and dsa-port. --- .../devicetree/bindings/net/dsa/dsa-port.yaml | 24 ++---------------- .../bindings/net/ethernet-switch-port.yaml | 25 +++++++++++++++++++ .../bindings/net/ethernet-switch.yaml | 4 +-- MAINTAINERS | 1 + 4 files changed, 29 insertions(+), 25 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 9abb8eba5fad..5b457f41273a 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Ethernet Switch port Device Tree Bindings +title: Generic DSA Switch port maintainers: - Andrew Lunn @@ -14,8 +14,7 @@ maintainers: description: Ethernet switch port Description -allOf: - - $ref: /schemas/net/ethernet-controller.yaml# +$ref: /schemas/net/ethernet-switch-port.yaml# properties: reg: @@ -58,25 +57,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..3d7da6916fb8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch port + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + Ethernet switch port Description + +$ref: ethernet-controller.yaml# + +properties: + reg: + description: Port number + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index d5bf9a2d8083..ef7503eba95c 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -40,8 +40,6 @@ patternProperties: type: object description: Ethernet switch ports - $ref: ethernet-controller.yaml# - oneOf: - required: - ports @@ -58,7 +56,7 @@ $defs: patternProperties: "^(ethernet-)?port@[0-9]+$": description: Ethernet switch ports - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false ... diff --git a/MAINTAINERS b/MAINTAINERS index 3077c5af6072..59674eb07491 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14332,6 +14332,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 Sun Nov 27 22:47:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13056914 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 1AEF6C4332F for ; Sun, 27 Nov 2022 22:54:42 +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=JKRBHoo1Zn5alHlfxxHQnLRUFosT6+Rl7Z/qnLMxuq4=; b=qcnCTpQmqFvpXpDlttddMW1mjd Rv6s13e+fh6WFwieRBaD5hy3W3dc6ASS6q5vqdyjUViHGDBnTyKTL9onrPHIUhCmB82Du/tqy0Bh1 r+6BTLehvqjeuWHIRUoMcqGNmD0Ewx3NKZN1v7uN4C60SGAB1GSHAnEvbgD8wgRxDQTJGDnIUw+0v wfQCCLrvqdYtIgDIT+6/nSsuD7aI5OGe7NWTFbnQfQ1eMPbOB6EjEax0judpfyHlNI9hzZszu+Ltw 5KyF/mOM368Q66KKi+9uj65cvw19atuSw8gga4KIBuIpdtSCKN02liH04Zfll5a6dWHzYCmUJOCYI 91T8eScg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQXj-00E3Kr-A6; Sun, 27 Nov 2022 22:54:35 +0000 Received: from mail-mw2nam10on20717.outbound.protection.outlook.com ([2a01:111:f400:7e89::717] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozQRU-00E0fb-Nz; Sun, 27 Nov 2022 22:48:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bk06QBHSlMAvSySyykFQp/gs6Jag+Ho9+flAxqeKWpbO/rxPy1eOyjktc0RIKL4b9VJ5rM/xKdNtF+zqXoB39K+hlioprsoLO+j5saSsScx7OQQ0MhRDM39HnxUJXncpKoQ1nvmRSX3t5DjVvHlP9N81TUKwWNo9y6od3fRYISKDS3htAELt70scVQJSuTTb/2zEPMWNo8iOmvbLMk6M4rIcIGLO+2eI/fvuRJ1kIEBKQJ067VwtnhRyUpLgmVeJCmWnhBt1bcfybog/qi4Je+3BYuIszOqXru35WyEXHDYFzlkld2PWvCjzUffR7l1ib6Y2cw8e9ZXv9dTtvbJw/A== 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=JKRBHoo1Zn5alHlfxxHQnLRUFosT6+Rl7Z/qnLMxuq4=; b=Vve9N/vDB9kaj7yuY/L27ex6Qz6Xu6/uZ469s3CDEIBKdgBoDtXuH2pue0O+w5H4oT76eKjvoNNeWbTnljf/lyfcw93AcQFQdckkkj+BnrLWP5TS5NeskoyWMhYosSkOmlowyw9zjEkYf3tduWKcSJ7xjLeHPbp3MD0GVbYUQmuZVgkSi9erA+GGw7SmHOcyxU5ZpDe8A8riqhgzkqz3i5Gt4JgDcxEqOuNTE/FsMUGmsGCPLS7E3IApMix4Fl+vmPd/FjLdH6pfOHyn8kTzmTeIVIv8zuYXmrSbdLn9tJmdgGbCPC/FiHS+bin7HZkfMUDXB4+uje78xyUNXShFAg== 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=JKRBHoo1Zn5alHlfxxHQnLRUFosT6+Rl7Z/qnLMxuq4=; b=ZJ4xpcqCbuLR/U2xZ06+zDZlYiKaPYJl6yms7OKt6mmh92fKRwHUX8iimENTQPBPYz7B/q+sS2zb+tnhZ2Mt8Es6zrb93K2j1JP0NvmATDySSFbQAKpkdW0G0ytdttNfeVT1URdQYVO0VX3qJdNGkKWOpZB1Xw1ZqezSicgechQ= 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 BN0PR10MB4998.namprd10.prod.outlook.com (2603:10b6:408:120::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Sun, 27 Nov 2022 22:48:07 +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.5857.022; Sun, 27 Nov 2022 22:48:07 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: [PATCH v3 net-next 10/10] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Sun, 27 Nov 2022 14:47:34 -0800 Message-Id: <20221127224734.885526-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221127224734.885526-1-colin.foster@in-advantage.com> References: <20221127224734.885526-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::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_|BN0PR10MB4998:EE_ X-MS-Office365-Filtering-Correlation-Id: e67f645e-530c-4688-461f-08dad0c97359 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RiwdVUZA5oBLG+/xglwLnXmvW0b5fMfkrUpU4jCryxEsa3sXrlIABN2rGxKPSQTqEbBMzAbsG+wLT365ZMAgSX2K5wQ+Y7R9ENTObQihYYbR9rTlHpyF/dtjuMtW8pfptYjN94GIrRoZBZMqfQXuEnPqgZ00Rqf0sfFPEm8EVEwApQP6XBRa2fCrrzMlXp/tjHa8B1KWdIk7fn8d8WYbGJjDm101O39ImMcsf5D2+//PuhOxzgmyfJlBKUBK4q4ez31xJLaKSUe+VeRjWJy3IfB2bpS5lg1yRt3+ldukkRKPVVGVVrPNztFOtNbd4J2biqGIMlPrBunkCWMkHXUcyrGkKTfWiVkTlEm1RTgQRju3eBQH6214Gv4Aq00K+OM9+MR8bZ0BvvX1lfp2fylRT4APnw4uXxX36CXRcdF4xJxJY2A5r90Ot/lhDn2XnnqXV6EmmiS/2SJNvvIze5TLttZK2h+eYhEu5AFNG0IsHoChugCbCcaC0SUNKXNxr5xeslN6lMlGiEWRq6fC+Iahh55+tYy89+gxvmvR7r6IyTo9LFYizfRDbRHb5qhDADuIZAIKQ0fqxnw5DzKDeXTN4WA0hEjTX40KSWVNxb59iw5UoYq2kT8xVABrBdjhThfmlaEjzWkvckBuBlsgSTuMLglMVDmMkapx/AGr7DhUXlCsQ1t0FjX6g4E2/wiGjKykGNBiOlL1ls1ANtV/pTF7YQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(396003)(376002)(346002)(39840400004)(366004)(451199015)(6506007)(2906002)(36756003)(86362001)(7416002)(7406005)(6486002)(478600001)(52116002)(316002)(66946007)(66556008)(66476007)(6666004)(41300700001)(4326008)(5660300002)(8936002)(54906003)(8676002)(44832011)(38100700002)(38350700002)(2616005)(26005)(186003)(1076003)(83380400001)(6512007)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ccBOsnLOby3ojQT/UKtb19nOfC+7CqDhR5dOuacVM+c8m8T2tT/sVSIYRcUJZQWvRYW6nHzzFpQ4CD0J4V+rfJrqkaaExYChph1IYu0nDxD84jEmRb16L5tXA6NFz1DMbqRtmf16U2C93y6eJC3nzLcDUr8pWXYB532lmks0jKtTTGOooaPNYGi2McrgHYN2yScmsIJGHNiK+KPBlCmsVsCKAQzDNZ7/S04AIoCg4PLXkFxtvuX8Hepsu2+keUQwg2bAocvWatv9e36aZAOCMJyiT330/TbOygno0sTLBd8V716aGWrs1Zgg2OQ0sJIfm6oUAKzSSvR7UI5NGlpf5N1fkBckH9Eciui2lKEMePgxsRTwL54SSTKOhc9Z4isIvgrcM5J24s049D6DGC9w+qA8I8io0VTvbQB9rT1FSpQF53gxVGXC0GhUz736H37VUKNDBtZQiNnY0w/ZlracU7UufmGGsgo/dwO5t0p/O2tCC/pTVz+/MMGCJfiY4n/1s4DobDwVIfM0KdsxpUjfZ7TQtnSfDi/gLBBMOTi0A9i+56BjnC5nU4nojJUTyAxxkfNNUBpjw39S45JN9yTXboaBf8YTWRzv9Y+hf0Zm1lEB1AQh2+NG/7GPleyDj5oSa1VExZCEfkvBqFI7ROBJMj+kOzOGSJjI2q26rtAlkv5nD6Warx0+ybGGKld0NeweP4f/2cUBXU0oRAg3ry7zMaD6Lnmw6EGlkbfUZe1l1dexrgmrlRh+qXvyLda13/hRCWrDLM1n5u//Wh4KueVhnKw+QY8syRX1FcNWqnRGfbn6Myb+OBj+XWQgVOggcbll2tf5hnoCsT44FSy4W6IvtLGMR6e3TfK8Plho/i5LrKy6WaC1P08dDzZSuWX2sd1xbS+rIjnKhXScAyLEWMJoXeJWngJUpEMu2+dzh7aD4L6r6lOnqglEmlSxtwRCtDq5+mrRnWvpEx49kcY7tcZ7KyUi72YSGri3X8gioFnOEBZ/Hu6WJali4fgKhBStmvbinHpqCFTlxXrfnwMcVHE/y26fmCQOLzk/nPFJUG+ImVG5a6hhcCqbMkB0gfdGN1Ouw/cFBkb+5WXGXchT5HolKojXruftZkCz2phLCJOEfNnuPoySR3ED/WKoAyE6PFUoMqMQ0cdzstIQTa9sT+m04biMh/t9Mh4sRWdqG4q0wNooTpBsinQKfw7cU78PZpsctgRmQVR6qkQ25iNEAVy6jtXGOJu2PDm3Cznt04wsGSN4IMmexXwso5t2k5IYB9yFPXOVJYGhscXldmluJRV4+ql4toNpG3TlFnRsN6AN4m5M6V8rhWNH0nBO+BEVNgBJK6yF5Jepu0dtDcsFlMRGESK0ltd7vb9aDLHPPUxruL4qLtMH2hNBO2QXAdqELBo7avX+Pfx5AZH/7xmxocRvk2rYxU5HXgjPe1qIlBnZLUDVknUHcjKInSDQ9JgSLDLWq2Ohe6S/Q2vHQB2Wo58sQFUWHzsbQ7CA+nQT/001Np48U01DfKe1rwuLImuBF6BOyoC2HMLB+okN11q1HVd2GfIqNcXj3IVEg9XdnBOA44O+LtUSCNM2sudkjg6yWboBcJGs5Y1DtMcAxjGIj+Kd35ESJXYpDZD2LnoZ+jXj0ik= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: e67f645e-530c-4688-461f-08dad0c97359 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2022 22:48:07.0612 (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: M+ZEczLNcB2cNSoccORefcknYEv8iLPMkME3EyMAGPSYv3v8u26lMtzjxFrBD0ZqJP+6A/QGw2ifNe0HrEH16oR4eH0Nwulmx/YJksrWnjY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_144808_855008_36226C97 X-CRM114-Status: GOOD ( 10.10 ) 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 Several bindings for ethernet switches are available for non-dsa switches by way of ethernet-switch.yaml. Remove these duplicate entries and utilize the common bindings for the VSC7514. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v2 -> v3: * Reference ethernet-switch-port.yaml# instead of ethernet-controller * Undo the addition of "unevaluatedProperties: true" from v2. Those were only added because of my misunderstandings. * Keep #address-cells and #size-cells in the ports node. v1 -> v2: * Fix "$ref: ethernet-switch.yaml" placement. Oops. * Add "unevaluatedProperties: true" to ethernet-ports layer so it can correctly read into ethernet-switch.yaml * Add "unevaluatedProperties: true" to ethernet-port layer so it can correctly read into ethernet-controller.yaml --- .../bindings/net/mscc,vsc7514-switch.yaml | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml index ee0a504bdb24..5ffe831e59e4 100644 --- a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml +++ b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml @@ -18,10 +18,9 @@ description: | packets using CPU. Additionally, PTP is supported as well as FDMA for faster packet extraction/injection. -properties: - $nodename: - pattern: "^switch@[0-9a-f]+$" +$ref: ethernet-switch.yaml# +properties: compatible: const: mscc,vsc7514-switch @@ -100,35 +99,11 @@ properties: patternProperties: "^port@[0-9a-f]+$": - type: object - description: Ethernet ports handled by the switch - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false - properties: - reg: - description: Switch port number - - phy-handle: true - - phy-mode: true - - fixed-link: true - - mac-address: true - - required: - - reg - - phy-mode - - oneOf: - - required: - - phy-handle - - required: - - fixed-link - required: - compatible - reg