Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13958007rwb; Sun, 27 Nov 2022 14:52:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zGd/La5CQ09msiU4hVaUsbZRGcBkR2ygHVavLw5N3fzD+a/1oDX7NSz2otNMoIFxnRCxn X-Received: by 2002:a17:907:774e:b0:7ae:39b4:7208 with SMTP id kx14-20020a170907774e00b007ae39b47208mr24845837ejc.766.1669589555508; Sun, 27 Nov 2022 14:52:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669589555; cv=pass; d=google.com; s=arc-20160816; b=FvPV5951pfH5uumkbMmojo/Njm+dha/grp0ur1AmGYGEzvy5A+p8z75UM8hS+DZY8j rCqCk92axBOOQNehQhmATzlnSd2aBXAakwEhQp5eJt4aG+iCOcKKrFT3bqqLLy2T+d0t sZTXPOvbbTE5nXhymi83ToiGu4pS3O5hQ1ht2t3dnWEygwuSdvjZAvTdqP97N8NbuSGY eYpFJB9PUNf1NwhtnwzpfcOWHfINy78hvPa2fdL7Lnb+tjnnkM7xbr2MHCIeH2wBzBNV BFY3cv5E5cmwhQI2JdJuqhHEV/k3Ekg0X1KT2qzM/LjM4gNEV2yIjfP4N89nJ4IDN0fV /WfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JKRBHoo1Zn5alHlfxxHQnLRUFosT6+Rl7Z/qnLMxuq4=; b=OZrQaXKgNMGTlSsLl6uTtyyU8EFY2wRJAxix4ywJnEjyB492Qsciy3nfjNCOlIxq6Y aBLBTADBUZ4I4bf35JqzyhUIwklrXJYz5iZRkwszxEHFZNqNFlcggNJs5le6h9yJTmn3 cYQbJCwmqT9n8hdXXCOfQBGnAUoXmo0XkOJFOF7vK1n7omzZtQL1vdRm7lSK1QlpSMeT DTkdNTdNBlK5VSXQkRnfDFtQw1plI+WLuVZeOZZM0R87pXbnwrTyRLkN3AEoIuyEB1U4 Pibj6QHfAamW4BGZkcCJic9fLPDrLwrkV784lJ1u4gWNNhuZUDcC3xdc5hqkZu62nqeD c31A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=ZJ4xpcqC; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020aa7d9d5000000b00461ebe2a168si7154510eds.447.2022.11.27.14.52.15; Sun, 27 Nov 2022 14:52:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=ZJ4xpcqC; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbiK0WuC (ORCPT + 84 others); Sun, 27 Nov 2022 17:50:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiK0Wtg (ORCPT ); Sun, 27 Nov 2022 17:49:36 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2128.outbound.protection.outlook.com [40.107.94.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E39DEB0; Sun, 27 Nov 2022 14:48:23 -0800 (PST) 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?q?n=C3=A7=20=C3=9CNAL?= , Vivien Didelot , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , =?UTF-8?q?Alvin=20=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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?ccBOsnLOby3ojQT/UKtb19nOfC+7CqDhR5dOuacVM+c8m8T2tT/sVSIYRcUJ?= =?us-ascii?Q?ZQWvRYW6nHzzFpQ4CD0J4V+rfJrqkaaExYChph1IYu0nDxD84jEmRb16L5tX?= =?us-ascii?Q?A6NFz1DMbqRtmf16U2C93y6eJC3nzLcDUr8pWXYB532lmks0jKtTTGOooaPN?= =?us-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+ImVG5a6hhcCqbMkB0?= =?us-ascii?Q?gfdGN1Ouw/cFBkb+5WXGXchT5HolKojXruftZkCz2phLCJOEfNnuPoySR3ED?= =?us-ascii?Q?/WKoAyE6PFUoMqMQ0cdzstIQTa9sT+m04biMh/t9Mh4sRWdqG4q0wNooTpBs?= =?us-ascii?Q?inQKfw7cU78PZpsctgRmQVR6qkQ25iNEAVy6jtXGOJu2PDm3Cznt04wsGSN4?= =?us-ascii?Q?IMmexXwso5t2k5IYB9yFPXOVJYGhscXldmluJRV4+ql4toNpG3TlFnRsN6AN?= =?us-ascii?Q?4m5M6V8rhWNH0nBO+BEVNgBJK6yF5Jepu0dtDcsFlMRGESK0ltd7vb9aDLHP?= =?us-ascii?Q?PUxruL4qLtMH2hNBO2QXAdqELBo7avX+Pfx5AZH/7xmxocRvk2rYxU5HXgjP?= =?us-ascii?Q?e1qIlBnZLUDVknUHcjKInSDQ9JgSLDLWq2Ohe6S/Q2vHQB2Wo58sQFUWHzsb?= =?us-ascii?Q?Q7CA+nQT/001Np48U01DfKe1rwuLImuBF6BOyoC2HMLB+okN11q1HVd2GfIq?= =?us-ascii?Q?NcXj3IVEg9XdnBOA44O+LtUSCNM2sudkjg6yWboBcJGs5Y1DtMcAxjGIj+Kd?= =?us-ascii?Q?35ESJXYpDZD2LnoZ+jXj0ik=3D?= 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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 -- 2.25.1