Message ID | 20221202204559.162619-1-colin.foster@in-advantage.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1063193wrr; Fri, 2 Dec 2022 12:49:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Rl9xju/3ET6g9lrSv+VfbsWtv9shtgd2MNAVhdlwesI6yH+AusdikSDcXNwIQKChOVuoF X-Received: by 2002:a63:2361:0:b0:45f:f8df:108e with SMTP id u33-20020a632361000000b0045ff8df108emr45593968pgm.127.1670014175936; Fri, 02 Dec 2022 12:49:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670014175; cv=pass; d=google.com; s=arc-20160816; b=B2NcksF7/0mJyCRVUS7TWrvkkROW2mNU1dG+3WOKx6a8aqfgurP+LBwmGl+AdDg4wZ Q6F+doOu68Gi64tuk6NySlOaoBWEmqlzrSJUPtcFOVemyBphb137D7CD10PtVz8wMSrx xV+LoS7IfQhogNtYt3VmsYzOa1HzEhBfQ8Urq/OMeAxx/jj5hmYFc7NSTwzYMh+cweMA N/J4eSnrpYfg46BuHoVObAySWi3p7bkhntYop2cBPmDTFG6zY8bJVmJ1omC8e4UlNgpy YXK1u2KV0P9FQBt3rq7qsIWR3MVoEfBVS55CSaN7SmxBTlYXSlBaTPkFBvCbxiN4wfHC Pk9A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1HBXXg1r2A4uybuMXNStoqOwoaPoUvQ07N5h0rGmIMA=; b=1F1FEwJPTKuawEYpk+Ig7XJ1y0WIfVz2SkNXpwRh+zj5BgvEuxDsVyWc0Y+uCRPNcG L6m+Kuxo+7KQQP/w4vJHbENwkaZJ+sc2qRc5JJZklzU6N1DR9VTuKz8WPJUa47DkNeAw XZbhctBlGnvoSec8IbgKe2EwKGjAFehG0YPkpORJdxmFi7bK4SRjyZVG/P8v5uO9Oj9D 2eKdCi6IySg0dnaL2p3UEII62qHwLSGCDH36U971u8+xWJXIstQQkllg2NVmiMwtDAlD AvNg6MuhTTy7rxzn/Zp9x3QtVPz5G8cXfr9vywrfIp0JiXQOSvqaVcfouw2ZR3tiDKXs xcqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=aTZ0uMYW; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q80-20020a632a53000000b00434ffe3cc11si8256628pgq.870.2022.12.02.12.49.23; Fri, 02 Dec 2022 12:49: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=aTZ0uMYW; 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 S234913AbiLBUqY (ORCPT <rfc822;lhua1029@gmail.com> + 99 others); Fri, 2 Dec 2022 15:46:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234361AbiLBUqS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 2 Dec 2022 15:46:18 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F18E61EA; Fri, 2 Dec 2022 12:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tf4VvIDxCfxOfUBGzDzEhC+Th4d1XhztTgh5IMJkGTZDRTKbC+7Rh5DT6rm0E1FM4cQoPvS0iMX1fGISXQCeFK8ve5XSIBhq9KsPpLm9adDOcRdfBFBwuuqx2jgRRpkocaZvA3JO/sJWUEVY//fp2uvCW83MoLvgMA3Vd1saKP9LADp66ZKlNKTRdM2/+2D1Waij0utgZdXvbl6zFdcD+qm8tPy1mHNEOc4Hy5k+836Y4B8e1noA3KxW2izWkgOfM9eaRKOgX2PHG083GAwy2qbephw5za0/w5k7R3K4rLhNU3JRuTnxq2C8Lq44T9TYjyeUZxP6jrSnSZaWQmKLYg== 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=1HBXXg1r2A4uybuMXNStoqOwoaPoUvQ07N5h0rGmIMA=; b=TcT2lyX2BFZl3/dUFoIBbzTHQwN7Q+9hjnNxBhnyR6CbnrKx5eVY4eN3cpjG6LsgNBBGwTEHlPYbmRcm3O7Cu5h6bYz93On3yj8mHN0oNk/6c1BBWqwmCV0O5On8LhHnMuw1AWMoOzxnpkJkTdhSt37Kr/lqzwc4xS3uKSRnvqOw17cp4uR+UmL2gSneFC4h9lYn3BOhTlGgvsqNr1LF51Kz3lHCI3Qu6kIxIgzBmjMY/1BcMvSa05wOzdutnhmWLoadlY86jWYC+ToPDmZ+H4enCcGXFQTBhF3oY+SapwBF3EYOtOnginyLY7FplOTkXmAwCVLdlmVqUuh0vuOxNA== 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=1HBXXg1r2A4uybuMXNStoqOwoaPoUvQ07N5h0rGmIMA=; b=aTZ0uMYWLOKLpP8p2R37PJWK/SYfrLC8FzJS6wXWx7oDjYeOAeFQlT22V/eo1G/S0yX3X3MShBJZa1Yoq2PyNzZ3qg1QJBhekGwEXKI6TYekbHQxgdy7odgzh1iIG93rc3vouRsoBehd8/1D36zz8sM3BJYpFMZAqGlz87mh7QM= 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 BL3PR10MB6258.namprd10.prod.outlook.com (2603:10b6:208:38d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Fri, 2 Dec 2022 20:46:12 +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.023; Fri, 2 Dec 2022 20:46:12 +0000 From: Colin Foster <colin.foster@in-advantage.com> 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 <john@phrozen.org>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Manoil <claudiu.manoil@nxp.com>, Marek Vasut <marex@denx.de>, Sean Wang <sean.wang@mediatek.com>, DENG Qingfang <dqfext@gmail.com>, Landen Chao <Landen.Chao@mediatek.com>, =?utf-8?b?bsOnIMOcTkFM?= <arinc.unal@arinc9.com>, Vivien Didelot <vivien.didelot@gmail.com>, =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <clement.leger@bootlin.com>, =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= <alsi@bang-olufsen.dk>, Linus Walleij <linus.walleij@linaro.org>, UNGLinuxDriver@microchip.com, Woojung Huh <woojung.huh@microchip.com>, Matthias Brugger <matthias.bgg@gmail.com>, Kurt Kanzenbach <kurt@linutronix.de>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>, Eric Dumazet <edumazet@google.com>, "David S. Miller" <davem@davemloft.net>, Vladimir Oltean <olteanv@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>, George McCollister <george.mccollister@gmail.com> Subject: [PATCH v4 net-next 0/9] dt-binding preparation for ocelot switches Date: Fri, 2 Dec 2022 12:45:50 -0800 Message-Id: <20221202204559.162619-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0201.namprd03.prod.outlook.com (2603:10b6:303:b8::26) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|BL3PR10MB6258:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b600fe8-beb5-49b1-23dd-08dad4a63f5d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uNch4x3y/4stmroYJbqItYPaL8GS6o4iLHiYVXPPNOI40ZJc719HY0ED/6Y5MXCcxmAz8MFxt517XcXcckwO8YbFDDCvhxqznBtujlkE+Zh7LpimlpHXNwMTO5ToZTuEmgeBiuhMWhL/20IMNYQHt9LaTMhlRdA/uK3Hp53VysuLpsZe9cHVJs6urXeGl7FaubDf0pX0NGfwgg0r+nHW81YPsvG6dw0YSshou8T1IVI+4QRsLl23DTlXlxeYdtRwHsxV6KT7HmUZTjkLDbUOdSbW/6dBlUHdoXJO7YUhY3obO504p3v5I2E3T8+APtOOiCNo4d3R+Use0EOdkIPdGm5HA5U8G/BD+bPN4JEK5wV4NQW0WHTFMigO/ZZYoxy3Cc6xJoDQ3rDkGOMA6LCZL22Zzas5xLc3X58FOvMScTp8zfrwB0FTmLpCbYOuO/6dD6c2KM17gZHanuVUnfBq79yy4IJj0TRr4V9iul0DMlZxNlvMDyNPNp/t8DvP+dUXptuaRUJM61mkicadQNGReSu2trNsVHcZW9uPaOjBIlsz6j2asxFenMHPSwxQ9soFZaO2QTx7ElnTCtVaQkfswqHvKsdiZQ8CCF/+L1JyUKxUnrNbbfCw2/EeoSjBEFZ0oWgAg3VzuU2AcUvN9OfIeHnmrdL5u5LWRXsROeAOQK0bnVdPNYxOTPUhVallFI+H 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)(396003)(39840400004)(346002)(376002)(136003)(366004)(451199015)(36756003)(86362001)(6512007)(54906003)(6486002)(6506007)(52116002)(44832011)(478600001)(7416002)(5660300002)(41300700001)(6666004)(7406005)(66556008)(316002)(4326008)(2906002)(8676002)(66946007)(66476007)(8936002)(38100700002)(38350700002)(1076003)(26005)(186003)(2616005)(83380400001)(66899015);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lhLcM76TrlaktomlN44flhMH8hDO?= =?utf-8?q?8ska1kkfa6I0K2SLHe0hbp49ELes9oQ5gOpaMt9tWTvyq9xSxUJCUz6KZoAwfN1f/?= =?utf-8?q?wq9PnP9v2kxTVkPjUQzVwrIBeGOSMl4RJ54uYaIPOUWVYdbhb1q+flPeo1S+AVuoY?= =?utf-8?q?Y5MBCEzs4Q+iSP6Wa4F0kUyWOF027/+qxBvn3f8XwirnUwNKltpbC3Duy6guzlm2k?= =?utf-8?q?jrwoUZfzhKDEYON+AyGJa0fmNmPxwXuuSd+oJPO0YuFNHBAicZ7uQO4ymCopsCvlY?= =?utf-8?q?F5nKO4IDsWScNhB/dwAxSpY2Na4147V5FwYSTZx14/ubLpR7oBgEm3/tCxLkVVuO6?= =?utf-8?q?o7XGGD+FqKYuFqo+RQUAvdKGd8LwDXx2RmjdbCAVfnM6B4KA3MXuaINOwMBMUkp2Y?= =?utf-8?q?lkHd4gxE9XWWoU6nxdoyg9bOfj3fkzWQzkl8PRR0EO3horYdBH2ff4Lqw++qrNDO7?= =?utf-8?q?Zn9Ki2ejRVVgzSGjQejqGQ/bTiFKG+ZTxWUEKRpQhivzt8Soce6SDMmIrG72MMwH7?= =?utf-8?q?Fu7AYoVu8FrNv51ZXInf+YXQ2oWFwreHs2Sym7PNenkl8C2dZ870c53vVtLiJEImp?= =?utf-8?q?tFXAuLBL30OBbYWRrxI3weAswwn5CLtsH0o8LQoRNW79rXE243lGBGdK+MTzsVb9u?= =?utf-8?q?k5Jj/F9s6rfVPIdNLkZ1SlHvEUnOalCHSRrJed9KmYtqP8c9b+bXoOjZygj3YPjXA?= =?utf-8?q?PzHtBIVgk8AmjF5+/foPP7TpA6iVyZZ2XNxDGVUaFJO5HZn0URbsEf8Ljpz/HakGZ?= =?utf-8?q?6YiXJLwc0Nms5NEqq9PI4yd0TiFwYIY8zmu3KHYFqS+nu0H+qtO3toqCA9EocvoKn?= =?utf-8?q?vprhIgCkI87k+tr/a9P3qpiVKsDigZl4klSb7DU/lExKGjWO9qt3KbGWeTC/NXbyR?= =?utf-8?q?SG1RuSSRLuGmKcYXqNXdC6ANnStBtY5i0XdyGy1sqxcf7qx5kcaCMJDvfIRKYUBVY?= =?utf-8?q?d6YNPxnqkZDQCEhVKRyplzSCKnaSpGpvWfx1uInXJ67JwAKmv568kurqxmyZ3SFTE?= =?utf-8?q?+ib0w4/eJzkPBhFVnRrCc/O4pcmwq7YQe/n+83uLxFPe9MY2Av9Zyppz9s15KzElL?= =?utf-8?q?ZOyJh0KZzE31lYFLt3Eji/NuMAUEKwNjiyL6jvZZuq9Vao8iu375dx5ZL64EGFMV2?= =?utf-8?q?clnVuXslqcXvnb/Fa+sJzmhbFQHUC5cYz8hu0iM8C4gPSXFDJvZ/gO42rVEpbrNvb?= =?utf-8?q?nA2zpAHfy5hK+pyUBFxgGzGeNZMsAFb5xC9tpYBSPBWR9xk2oeEopRo/a33QUp/ku?= =?utf-8?q?9UOM+ni8MStMx3mMRV9F09pvfhmqEuYmLsbJbVYpKk5YqgQmiW3qWIVFnAS270UTz?= =?utf-8?q?YmA3GOGQy+n1xfndzCZhhYQOxmoVBsyuFKZbV3DrpmTlecR19gfhCvJCDV9boP2Dj?= =?utf-8?q?DexfOSEBFOr7lNxor3m5N7fR6g8sER8B9vZdWolkDdH82xqAhQ0ZKtskeWttgb8ht?= =?utf-8?q?uwJ8HU1FXejCtj7ko+eSR+6Qx02ojfpHSSizy4lC0byy5Iccsbir+9bNmWlc41Jqr?= =?utf-8?q?5bQQPinfrS2mWuGWZtB5QfBF5kKmTk23xw=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b600fe8-beb5-49b1-23dd-08dad4a63f5d X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2022 20:46:12.1418 (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: oU0UPrvK7/bYX9FsRY8rrTpGYgXcamszs2uMGF9VKWQv8ThDe8r6txD3oEoi8/TypKTlUrhET+J47WIdUgcZvCl7jExY4yIpPrtp+Sp/iBU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6258 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751136784586530589?= X-GMAIL-MSGID: =?utf-8?q?1751136784586530589?= |
Series |
dt-binding preparation for ocelot switches
|
|
Message
Colin Foster
Dec. 2, 2022, 8:45 p.m. UTC
Ocelot switches have the abilitiy to be used internally via memory-mapped IO or externally via SPI or PCIe. This brings up issues for documentation, where the same chip might be accessed internally in a switchdev manner, or externally in a DSA configuration. This patch set is perparation to bring DSA functionality to the VSC7512, utilizing as much as possible with an almost identical VSC7514 chip. This patch set changed quite a bit from v2, so I'll omit the background of how those sets came to be. Rob offered a lot of very useful guidance. My thanks. At the end of the day, with this patch set, there should be a framework to document Ocelot switches (and any switch) in scenarios where they can be controlled internally (ethernet-switch) or externally (dsa-switch). --- v3 -> v4 * Renamed "base" to "ethernet-ports" to avoid confusion with the concept of a base class. * Squash ("dt-bindings: net: dsa: mediatek,mt7530: fix port description location") patch into ("dt-bindings: net: dsa: utilize base definitions for standard dsa switches") * Corrections to fix confusion about additonalProperties vs unevaluatedProperties. See specific patches for details. v2 -> v3 * Restructured everything to use a "base" iref for devices that don't have additional properties, and simply a "ref" for devices that do. * New patches to fix up brcm,sf2, qca8k, and mt7530 * Fix unevaluatedProperties errors from previous sets (see specific patches for more detail) * Removed redundant "Device Tree Binding" from titles, where applicable. v1 -> v2 * Two MFD patches were brought into the MFD tree, so are dropped * Add first patch 1/6 to allow DSA devices to add ports and port properties * Test qca8k against new dt-bindings and fix warnings. (patch 2/6) * Add tags (patch 3/6) * Fix vsc7514 refs and properties --- Colin Foster (9): dt-bindings: net: dsa: sf2: fix brcm,use-bcm-hdr documentation dt-bindings: net: dsa: qca8k: remove address-cells and size-cells from switch node dt-bindings: net: dsa: utilize base definitions for standard dsa switches dt-bindings: net: dsa: allow additional ethernet-port properties dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml dt-bindings: net: dsa: mediatek,mt7530: remove unnecessary dsa-port reference dt-bindings: net: add generic ethernet-switch dt-bindings: net: add generic ethernet-switch-port binding dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml .../bindings/net/dsa/arrow,xrs700x.yaml | 2 +- .../devicetree/bindings/net/dsa/brcm,b53.yaml | 2 +- .../devicetree/bindings/net/dsa/brcm,sf2.yaml | 15 +++-- .../devicetree/bindings/net/dsa/dsa-port.yaml | 24 +------ .../devicetree/bindings/net/dsa/dsa.yaml | 47 +++++++------- .../net/dsa/hirschmann,hellcreek.yaml | 2 +- .../bindings/net/dsa/mediatek,mt7530.yaml | 17 ++--- .../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/qca8k.yaml | 14 +---- .../devicetree/bindings/net/dsa/realtek.yaml | 2 +- .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 2 +- .../bindings/net/ethernet-switch-port.yaml | 25 ++++++++ .../bindings/net/ethernet-switch.yaml | 62 +++++++++++++++++++ .../bindings/net/mscc,vsc7514-switch.yaml | 31 +--------- MAINTAINERS | 2 + 18 files changed, 142 insertions(+), 113 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch-port.yaml create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch.yaml
Comments
Hi Colin, On Fri, Dec 02, 2022 at 12:45:50PM -0800, Colin Foster wrote: > Ocelot switches have the abilitiy to be used internally via > memory-mapped IO or externally via SPI or PCIe. This brings up issues > for documentation, where the same chip might be accessed internally in a > switchdev manner, or externally in a DSA configuration. This patch set > is perparation to bring DSA functionality to the VSC7512, utilizing as > much as possible with an almost identical VSC7514 chip. > > This patch set changed quite a bit from v2, so I'll omit the background > of how those sets came to be. Rob offered a lot of very useful guidance. > My thanks. > > At the end of the day, with this patch set, there should be a framework > to document Ocelot switches (and any switch) in scenarios where they can > be controlled internally (ethernet-switch) or externally (dsa-switch). > > --- This looks like a very clean implementation of what I had in mind (better than I could have done it). Sorry for not being able to help with the json-schema bits and thanks to Rob for doing so. Would you mind adding one more patch at the beginning of the series which syncs the maintainers from the DSA (and now also ethernet-switch) dt-bindings with the MAINTAINERS file? That would mean removing Vivien (see commit 6ce3df596be2 ("MAINTAINERS: Move Vivien to CREDITS")) and adding myself. This is in principle such that you don't carry around a not-up-to-date list of maintainers when adding new schemas. I don't know if we could do something about maintainer entries in schemas not becoming out of date w.r.t. the MAINTAINERS file.
On Tue, Dec 06, 2022 at 06:04:30PM +0200, Vladimir Oltean wrote: > Hi Colin, > > On Fri, Dec 02, 2022 at 12:45:50PM -0800, Colin Foster wrote: > > Ocelot switches have the abilitiy to be used internally via > > memory-mapped IO or externally via SPI or PCIe. This brings up issues > > for documentation, where the same chip might be accessed internally in a > > switchdev manner, or externally in a DSA configuration. This patch set > > is perparation to bring DSA functionality to the VSC7512, utilizing as > > much as possible with an almost identical VSC7514 chip. > > > > This patch set changed quite a bit from v2, so I'll omit the background > > of how those sets came to be. Rob offered a lot of very useful guidance. > > My thanks. > > > > At the end of the day, with this patch set, there should be a framework > > to document Ocelot switches (and any switch) in scenarios where they can > > be controlled internally (ethernet-switch) or externally (dsa-switch). > > > > --- > > This looks like a very clean implementation of what I had in mind > (better than I could have done it). Sorry for not being able to help > with the json-schema bits and thanks to Rob for doing so. It seems like it worked out well. Thanks Rob for all the help on this! > > Would you mind adding one more patch at the beginning of the series > which syncs the maintainers from the DSA (and now also ethernet-switch) > dt-bindings with the MAINTAINERS file? That would mean removing Vivien > (see commit 6ce3df596be2 ("MAINTAINERS: Move Vivien to CREDITS")) and > adding myself. This is in principle such that you don't carry around a > not-up-to-date list of maintainers when adding new schemas. Yep. I'll get that in the next set. > > I don't know if we could do something about maintainer entries in > schemas not becoming out of date w.r.t. the MAINTAINERS file. Sounds like a nice feature. Maybe part of dt_binding_check / checkpatch? I'm running out of hours in a day...