Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11411110rwl; Mon, 2 Jan 2023 21:23:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvYY3P5UCWrBZbpYAQCdBsjFPyIkWZ/yDTB55hAGzSOJN2I7CJJXqbxOqiRjrixAR8iEfKl X-Received: by 2002:a17:907:d311:b0:7c4:e7b0:8491 with SMTP id vg17-20020a170907d31100b007c4e7b08491mr38233986ejc.61.1672723392582; Mon, 02 Jan 2023 21:23:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672723392; cv=pass; d=google.com; s=arc-20160816; b=HRo9wsg+LgY5IJTm93JSVJbacf6d/oq/EmZelyqFUvgkLJmc3d0DrC2TtuNquAOPuK YWXkunVMFUV/LDEOVwaIsTB/e8bQEcJAroMTdi+yyik8vd6X4etPmkSOiD/1GAkekmMp wRxa5dBueDHkcg6V8K82tBJzq/yDtJTnnOcgIgrmfcGTWyRSksPxJendIwEmMj/t+6/S E4FGhRXSV0Zo4dmQnyURQcdDdYLHtr26C00/y83gNpkkzvSbE6UvO5J39xvdM7JF9Ofw LHfG+RxpPgsLPaK03rMxkozt0lPfXD/GnFdUn0y67FI4PNi2coWn2c+S2vcQdS7eYTlg B3qA== 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=FGEnWSPxHtuwJwaravH52It3HEmuyMSjOlO1B9SS70A=; b=JcAtDa2oPBSktH8Oya8fvbsmAXP+9KsFOedanNf2mJuN0v/F0J/8nvo1p9QOU5GfbT OaDQZLd30LQa28vOQhBPtWY7lEYuZPuh7rmBzXlAxzzuBawBLhGsa5c5WxsAQ4uwuWON cwJzFW4V4DfZ6TMPdNKPcQXwCBLg0NCGlFNpFZY65cVXizML+7g7WYFgzMW1qneNON7b Xf4qa0mdCK7Dbf3sLCaM0vDDGkaY0P8uTzm/yPXLw74RbAd/dX+bthiiHQHhizgAoU+S Z32s8g+EBxAnMn1iWONVppjolaRJdMxXr5zg+SUH7qYF8gUIGxGqYYvoVwjh7h+bAyua 4Vqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=OriSyn5T; 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 hr22-20020a1709073f9600b008334aeea096si28054170ejc.240.2023.01.02.21.22.58; Mon, 02 Jan 2023 21:23:12 -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=OriSyn5T; 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 S236775AbjACFQg (ORCPT + 63 others); Tue, 3 Jan 2023 00:16:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236882AbjACFQO (ORCPT ); Tue, 3 Jan 2023 00:16:14 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2115.outbound.protection.outlook.com [40.107.92.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B379FDF06; Mon, 2 Jan 2023 21:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UBJUwws6iN/LmP+Us+imF5gdoNtME8beRxXtuxuVqPnqR3MNcAyxiB2/c23iH6Q0IKxps2KdvVBTFhhMZiiPlda8VteM5SnpsjcMHxXDNJ3vgYs5S89EAtpkwGPlNWCFSNZBVg0mhtVU7+gqZO/rPhyTVQGX32HOD34qxt6esQKE/GU1q0+ISA6OqTKAO1NX7/DQAq6Tj874kc83JHo6Uov7r2Pgvdk64AG9p1jSuOURfR9trtQzlb+uWnmx3gwuiXzV8wUVJlrW3l7QrzvwjqeJFRL4cr0U0vHHtPMdgTyTq/O+1acoUTqkufePJ7++4WhlLaA2TN7kfxY+Dfvujw== 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=FGEnWSPxHtuwJwaravH52It3HEmuyMSjOlO1B9SS70A=; b=hk5AwTSVHjgGKgEvaCkRjiaa59N3NnP+Ku16lYvE/hV2sd11HDfIIGDYhNj06Rp+3cMbqQnFPlohN1no/2qPbA9+2nRBttWlxxF46AXg0gvQmIdQz2jqSGc6gfMTRdxuKU5bUZ8EabWD/LCZH/Gsz2PFEtKtPZ23hsatLszHkCHfbEI5yrZqhSn+ksOPr3qJbR7pemWIms9XAoxLzCVQAnZ+dMsLCdyhbmO9+YzqTTZ84HvlXdzMNH+KubWlPiieaLGA5X4uw06tmWQ1zGV6jdRNQ0Ttm/QehsayOUklPqfHRhzO8nkBYWQWRqDWE0ryfqHr4Z/wse7v/NoauBZ05A== 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=FGEnWSPxHtuwJwaravH52It3HEmuyMSjOlO1B9SS70A=; b=OriSyn5T3tXr50cSvGD73inLSZYnCEGI3r1tEDEZwiAocHCpn75CRQOXS9gxDmpQXG2b7hrXOtWWj/UpAZmxEyKzfYeVOINMIFxlLCN2QBMWWtbxmLeaGAr4yeAhfv7WHOBvJiymimrwhn7tHACA9snHl0uMmJ5JoVIW+VDo0l4= 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 PH7PR10MB6252.namprd10.prod.outlook.com (2603:10b6:510:210::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 05:14:36 +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.5944.019; Tue, 3 Jan 2023 05:14:36 +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?= , =?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 , Rob Herring Subject: [PATCH v6 net-next 10/10] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Mon, 2 Jan 2023 21:14:01 -0800 Message-Id: <20230103051401.2265961-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230103051401.2265961-1-colin.foster@in-advantage.com> References: <20230103051401.2265961-1-colin.foster@in-advantage.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0057.namprd13.prod.outlook.com (2603:10b6:a03:2c2::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_|PH7PR10MB6252:EE_ X-MS-Office365-Filtering-Correlation-Id: 502d8494-b63b-4ace-bb41-08daed4967d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zKY1XVfkkexloecLiHu7+1x8HyRzWVvTg78iwzoWwBIgyCTNPr2sITBqYaw6R0e+G28sbwHFyBpMpp5iKezKf/4FMTnehj63vYlL74IXcJIxpWc7qxDC7MtyNSxe0CXCI7EZCHmrdFg7Rl+j5IGVEo9AiapiMzEGHI8u3xujRtuYqW46chuzlqaFHCEmW3X/414bnB3q5UeKTEKPBXB0ePiHYyvgUFHN5D41G1kvLYyRE3CydygZhYAfH+0S1AL61thYXCt4R7k2zo1ljb2lmaAvR+8VbvuSr1FucLxNqNc2ZwAzbUuwwFwwztjZSJMSfz0q1ZUsMqCjjaQpfSzHCQ84yn5cmgWp89/E7Fei2aRUkv2jFHq9oHaizqDjRimLUl5k0iEMjUz+nZUz38F4YP/hiQs+9YGw9AHyx1EBzUtQgX9h5RBxJ113eiAYPJY5FpVcsWoC0EDEauOX0DpLcxeL9ePD6lUPleAbPSd9ufBUIbV5HD/lZUBuQ1iCVTS7Uco1cK++4BDwTdeS5zWe2QDMoja4xNJTxwnvleeik2IQnB0DorxIf8Co35uDsuW+lEaPOxBLa15qTZVeihkfu1sxzJoqw6Xv/dV7UJW08o6WYnplGkGcI9UXtopc6cRLrMLNeZza/QZw8uk2mbDKtnw5BhaR1gDPYNN5burfpt/DnFsVEnouCP2nY+xUB3C9g4GCQinv3uKo7djCxycpXIAvk02p/9+5w0b51DsoSqWl0J6JjMHqwuxOdVW3aw/N 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)(366004)(396003)(136003)(376002)(346002)(39830400003)(451199015)(41300700001)(4326008)(8936002)(66946007)(7406005)(8676002)(7416002)(5660300002)(316002)(54906003)(2906002)(6486002)(52116002)(6506007)(478600001)(6666004)(66556008)(66476007)(1076003)(2616005)(186003)(86362001)(26005)(6512007)(83380400001)(38350700002)(38100700002)(36756003)(44832011)(22166006)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZHhZl41mnTjP1Hby/gle1Pq7YPhi+dhVNnMVnupqYljkFeDDgra4PIvsoeJp?= =?us-ascii?Q?vaIzO0DItdG/ypMndqGfpQcrDa51LL9CBbmkw/HdNtiETDZCvf2Ar8GvoQbK?= =?us-ascii?Q?huI1CWBuxWdaOaC4r+JY0xRWN1s3l0WBdzYnGnjIx4FQvQtXZZpf7es/4E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Km0zszhRvY88S9k+WxEKLPWIGyoFGTui?= =?us-ascii?Q?6jj7L6pe6ri47+6qD2CNV3gbhV7fRL9ApCblJJm3vNfWX56p8xLRTD+wRttM?= =?us-ascii?Q?xrRnk1X6D4t2Cvx11/Tji0psLzF1+CBWg5Hv4fYnaSF1WtWMGst+By27JiLB?= =?us-ascii?Q?rTHxeK2hfBBLWkzTvyG+kzYF3RVeojdh+rafPwqmlxTe4AKxHglBerH8yR4z?= =?us-ascii?Q?q+Pt7ME5LjhJ3ibBSxKmS+YuxfRb/1xQo2f0Ucm/jp8jOlDkfz8tG5ZeWgHN?= =?us-ascii?Q?eeMUEd0G2HHdsDsMGjt4kDA4NMQewSQglTSILCF2b8XVGyOuVOsnDuM/YkLS?= =?us-ascii?Q?fwRug78rR3mYzUkaRSR8E00lVqT3OLojoOBNIW8YuXfq9v5xeqpZPCcTx5Jh?= =?us-ascii?Q?CuKYU/C24AWB8ZozjhRzAx+VHnd5Voe/kF9GGailO5xSHUffaf9d6253LfmE?= =?us-ascii?Q?Me4c0kT4T752+/BETRrzKaoTdQvXjtuHGiKprRq/s+T5lcQhtod7wZyjY9wT?= =?us-ascii?Q?1V7obdUV86n1C1+k0atyUYNM9jsDS1vIGJZfc1Xcpl5Uou96hWJkrQdgMuF0?= =?us-ascii?Q?YD5EJypPBEL487oqSVQwzZQ=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 502d8494-b63b-4ace-bb41-08daed4967d8 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 05:14:35.9030 (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: rszj/minMArC6hY9eLehksenvIA8tSJpoHO7bwrrBAJRRJ1bb8AWFr4ZeU4i3ohnwtZBJiB2sqZJZfCWFrrgPQFVrC6GZOf43yTzAjhMkjI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6252 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 Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v5 -> v6 * No change v4 -> v5 * Add Rob Reviewed tag v3 -> v4 * Add Florian Reviewed tag 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