From patchwork Sat Dec 10 03:30: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: 13070237 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 5FBA7C4332F for ; Sat, 10 Dec 2022 03:37:40 +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=sO/kjobORaTlv7uA7a6FbeR+ard1OYGe3jZg3deg7XI=; b=KG6akn/x1HAdWXR1FvA2RUMJ8C vIbslm6ytv7lUhDIFqNH7WtOlkfbMYigFq6XpPJXnEEdsxeQmyYyAz+to+Ai+5NcyPPDq28nbsRb7 LkmaB09ZEu/pVoGuIyA5+EeNFFV/z1pxduEeWigPK+uYLANR34VIxTSl8BQIqlHdiJAzp0Fht6lMA Smrab5rK3jurcJd1zvVBJDc29jkfCLvwvEYr3NlPiOLMYcfpX8F3wW3Yt52jx1AlAVQr+PrmEn7sZ tRHXvhHIvVh812EpVKPN7FFLdHnQMSE20QtEtU2fGq11kIJqudHgmD+Pc9j7KfZt5xU9uGYoKMoa8 P0zPYFQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3qg8-00Ds9i-DK; Sat, 10 Dec 2022 03:37:32 +0000 Received: from mail-dm6nam11on2114.outbound.protection.outlook.com ([40.107.223.114] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3qa3-00DpXH-IM; Sat, 10 Dec 2022 03:31:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7Qj1ADOfsMcPw/eDDPkTBAFT2lmgEbqc/SLiublEAJL4yEZzpvK42ejQ/mdc/SFIk9yJVmhn9GKpwA0q9SytNrHZwVRNFeh3mDLNTZskW1++ARxjvUQOsLN3Uk82bR6HTSO1MY7X/DfWuWrPOXzK+qtQU7xrpPdM7PH554rqkOk/rVp1N+UvBv8LnACADtQeJ2GFp51bpvh+B8cxSo4F/AJ8IbG2w76rtKUbD1p8X+ZnW2iLl7JtXSpo5tzxYtPZdKBRu+/sx56gNI1Njo5wtB6mrHAah1zw9KrtuNJzi6qFpY3lUobp2g3OcpPhFwZUZ3uRqW/tzfyqOAaRpaaAQ== 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=sO/kjobORaTlv7uA7a6FbeR+ard1OYGe3jZg3deg7XI=; b=gUsr0xCIKT4TgEE/7dHIUTgPNEDbbWp9Gg2ZvGmjz1DeVZ3yoPlxYg0gZ1BwiziuRuxBwdL6RJzQGtHJthrzhVtbKyZu3V04WRLJCCTH5zNDo/410B+aycKqTL7mdyojwFCdf3Os1uo8odl3osQ7liLnaEhMlGMgYYBIgSxPDU1x3HsCEzIPLhVQrCtzWRrftwqwLZiAoweU/1GSkYO0Ane2v4H4gTofhhwCZx6ynDQ0FoSJYTVqFQIP4wKiTrXgtPjCDHmVp0QHOLmXrnB44l2d3MAkWAKs5X+MHvJk9ff2DltYrnjeENIIueKbl8WNI0QV2rOSbgA26ERobx8VDw== 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=sO/kjobORaTlv7uA7a6FbeR+ard1OYGe3jZg3deg7XI=; b=vDxFxZLOye633VfzGbXf9IkWCOMYMEfXeDK2HoCcrPaTvYbTExGoIGN3wF9gTy8+70NaOJnVYjiGD8fj6Lae6AauYpTqBkGc+1mvZU4GpKhN+vzqydIlnE5q4c15QmMQu7kruWE/TeqNjmwHukYxqjcJ25mMoBRcrecUY8xHIqU= 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 SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 03:31:11 +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.5880.014; Sat, 10 Dec 2022 03:31:11 +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 v5 net-next 10/10] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Fri, 9 Dec 2022 19:30:33 -0800 Message-Id: <20221210033033.662553-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: f4efedc1-b5c2-41bb-7b96-08dada5efbd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n0jcqVItjZwVaDUgtPK4scFfre9XBG0Bz6xMs2THsb4z1DNTfQbDj+kpcUzs+KsnxkV5EkmLloGFgm45unsycqwYg9qSuK/EK2frGfmMIRzAHrJbk2A9jxE7/turfRrcPzHlD6pJ5RBRfDtc+dqYxESgauRNm3qXL4gCGbY0OiC+V1yGH1mpiIjmkRJA96VdIxF5E0KWYY8K6nU4S6okfy2GQiVaSKQ9uBSuQy93toexUW6MEGoJbf+2NCaOxDwaNXIFTJ41d15594R4MGDwTtKezY+mCgBsLlTmPvaWsYzx/mhr/hL+HstKPWy8HxxgDRxTfDrCYpxwKXPAcq6ZUrL0lKpTYfFzvvZHPp7ZttAvI+NdHJCAE3EfsrOLiZT2vZlCW2vm0SQcACTmtOIvdS+LIgOh8bMwUQg+hJ/2mVzeVYyruwBIEZKUq5RTPtQoXPheQyU/4WJgQv6rpGc/K0hV9bA2Sq9NP35jeK1/IKw0LTTYnaEjQxuLWTnS1w8KqF3PWR5dPMU7JD3fCUOfHqsOLFdYMH1L1zSUNUx9gIOxnAXcBxTWFtwjyXzkToOb8bHOpzmSTyRcB4s+OWzLMH5Dbt3ysVTS5MUAg6pO94jEf0AMz80+cL/rMY7SKElxMrKNqyU3+CPNtMRBD+pgJg0/KwVm7m09A6w+iZRpGTAP4QqX6iKVvpP7FFTP06ZoI3oxqtNbIhmlwcS/XZiupA== 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)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GQAztZu1tE9JYxPv3QwjdnOjHZGyVET+2ItAUMHTOd1qD87I9O5/CpfrqBMpL2J0dn3Nk8ahwDRVuNkNugQPEl2YHKB18uumDXEGMjukP8fNm33NlZ6gjn8ntDTiYkVz8B73BamWHvxSFiFI6RFimGYqUnydnWExE9VRTsysIuW+izKm8iiPeNKCTX0WDBLzKP5NKz8vPzY5Aie8KG9EMQH1N5R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XacToxu0m2MOOd4YIunQzg9OBcaQwXZPP5XVPAd2RfjZ4XqjwI9vLvCnJw0vtSLJevdBmCgEB4qzj2pl7c1ruA2VSXunsp+cbFQKJmWhgzGTeyjjrh6nLGvzEHjLaV/5VSiiZk5ndVtHYNDeovhuWh+nfHvMqIxU/3mV8aLek9ThhEH0jGO+8fszu06uVy/pFMfcFng5xzmBQ/BOzjYRAtlFV3x72vSjw55waiokxwnUtl2RFXUXWIWl6AZvycPbiuP/ieAcpDc1Kd9RDpz3+CjxCpzgV4wq+o/jUDFfL9naYL4oDZEMJmDkKvY+t3bnNtYcUW6SLRaC8Iln5z11XcK9qnNWM= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4efedc1-b5c2-41bb-7b96-08dada5efbd1 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:11.4499 (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: o0JwQw5kEtAlB3nLVohMtu7etW1hv+Qe/+OEVBTivh9x6HcVwg10nPomBEhyG4r4FZ4toopMgYU5ue3ImKeuZ8jjkfPxhFlfY86Cfddvhk8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_193115_642164_7483B424 X-CRM114-Status: UNSURE ( 9.72 ) 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 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 --- 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