From patchwork Thu Jan 4 17:48:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13511414 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 42C8CC47074 for ; Thu, 4 Jan 2024 17:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=jocWTRdkLJOR4wT6jLxyipVs67mdR8P2frh0NTL8Tmc=; b=Fb9u8/ijhxnS0TIDPya8u3slCj hkkV8eWKEBTzjVu+rRR7kCyRiR/7jzgJnE4Qfme+ls1s98XhlYF9L2/Ag5R9UXnh1A9svXHNkUt3B lFCuObgXEMuL+EYK94+d+vw2iZIzqHgPSqKsse8BLAiM9A5GbbnmEqfVSPl2sTDwhC+VrbbCiE7xK a84TjPbc8USX1LnkAAH1fVVivx7qxLXmzPkNd8HP3/cxLTfyJheL5beHY/uOU420SPWFQ6TLPjZuC 5xwCMpN7m7oaJZFl0ofQQOdbAqmnym61c2oYWCyYS815TuB2zOcKtg28GTaCTflZMpN1kV8g7WlSn qpR2+bEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLRpS-00Et1p-22; Thu, 04 Jan 2024 17:48:26 +0000 Received: from mail-vi1eur05on20617.outbound.protection.outlook.com ([2a01:111:f400:7d00::617] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLRpN-00Eswc-2T for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 17:48:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlMw5xj+qDd7rvDh4CnyMOQ0CQ3AIU8dMkLHGDDW+97Q2bardCEzzt34GanwoM+QRSAf6e2zi6nkK8kCUV/DXPtSkfAkrhiCG6SOUWl5w68R+E6m4BsdcjmX0fYg9h7rlqZe7pnwZBZgbwlXhHdHYpP74BqA+Qyc+ztKVYW3u4EgspTkmGihSIj8xwK5H0n8heTgDVRhhPcBhvpmaCj3EM8rgh+XFglrCEoKWcqQjRUyTUiIVPzyqrAsw2xuliKlKYIbsPV4TfLbRx5kSYmcRQ2C63bW22Q1xunouhHIatCYp7wWHzUgomr1pUTX82vDtbbvQqB9z6jr8a/NbgUGPA== 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=rsz+aAFGo4YjY2zs03h+N661ENmJZ3Rw/2R+wKByAnk=; b=M+Zd/br6phVrn1Wxt+TlOFMk1jM7bgyu4nF3BtJYWQeyUBPH9bm1ZdXJqi1sM0xgnzrYy7HZyM0jCAemfXC0a1ARGjsjCSDfO0Z73vetBNP05OkbIoe1+mPqkOaDBH+ewVx+OhWskLPPzTPh+jvTPGmGZkLQE/Mkg+OTUCfifjyfRZMdIoDJD2MvBpoX3uG9Bdg929S0GrcIHqREF3mwE+laE+J08/V/h0S8Fc4mgJozICH2xl3jxLV38vxdaIWV07em+gKZFegYk6c7yCuWgvOTr/JO8PR7scgm8dCXJYSZcKhNo0jU2efdbS3UomH5JUBOFUDwoxBCdHczgZPQ+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rsz+aAFGo4YjY2zs03h+N661ENmJZ3Rw/2R+wKByAnk=; b=k/nVesN2mQPayHbsBBsZJRNvO0D32bAl8uuHt/A2TsEe+aAZAmtHt8rMvsTI2YGBKY8EqXtMBvpsSxqzmLIXtdMzqOZ0pT3yuoHPg+hXWfRFik1UZvHg0M1/g+xkAZ7OCIgK/Z4A/l0fr+V2JPzW6zAymkQv0oys2KqokW0XDXg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) by DU0PR04MB9495.eurprd04.prod.outlook.com (2603:10a6:10:32f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Thu, 4 Jan 2024 17:48:06 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d%6]) with mapi id 15.20.7159.013; Thu, 4 Jan 2024 17:48:06 +0000 From: Josua Mayer Date: Thu, 04 Jan 2024 18:48:02 +0100 Subject: [PATCH v5 01/10] dt-bindings: marvell: a38x: convert soc compatibles to yaml Message-Id: <20240104-support-clearfog-gtr-l8-sfp-v5-1-52be60fc54e3@solid-run.com> References: <20240104-support-clearfog-gtr-l8-sfp-v5-0-52be60fc54e3@solid-run.com> In-Reply-To: <20240104-support-clearfog-gtr-l8-sfp-v5-0-52be60fc54e3@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR4P281CA0409.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:d0::9) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|DU0PR04MB9495:EE_ X-MS-Office365-Filtering-Correlation-Id: 2243c775-cc8e-476b-582a-08dc0d4d4ed6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SwyJzY7rRrsyDBTdN9P7WsWXPjmmo8pFbA9g27cBxV5PB4ACn/6NwTLwrLhnNsHMl+6IuSPtKnR8xs8crBRS9jkEOYxER/4bXptCtTIG2H0BLGHV5KUvp+HzG6Ea/NEu7FYyCykMtYqPlrl6AP1VkeB0waLcTh5dp5W2jgjBbJsOaVKtn56YQbg+oYZ/QanWWvh96X+jrJ4+Hqe6Negx6khFtp1GkjiysVYhRVNuVZYW94VgGnl5mdA8GX/86aCfQ0F1Ukmw53GFsM71JLO6KH9py+0HjjuBUiZ88cAKCtGuhguyq/kuRIXgpIMPTFAxNelRPKVUimwD5391FZMKXHf1rp7OzrIjTLdhnMUhL6Azsee+52A+fOwnyWbEY8/38clpBrXEK93q+ubLH9MxZ+uEDAgwQKm+XxMYKP0/BHhXyGh+tm0eSsPtvY5wPvF43ky6gdiqa9/1LKExEBS31MJAMBkGnxaHxz84/jIGGKMKlxNqgP6I6z0mHq8GCzy8huNZanrMBCIPvfTHilb1zA5m0+rvMIRHwZ/OXllt6IYNkOURkSI31LFQgls49GwIqxQ7C2yy2OL4RcEHFRSkchaYgDHN7r8LBnk6NaH4qdA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8963.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(136003)(39840400004)(366004)(346002)(396003)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(83380400001)(26005)(2616005)(6486002)(52116002)(6506007)(2906002)(8936002)(41300700001)(4326008)(66556008)(6512007)(7416002)(66946007)(6666004)(966005)(478600001)(5660300002)(8676002)(316002)(66476007)(86362001)(107886003)(38350700005)(36756003)(110136005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AIgjG8UOPIgiav0X7Hm9Pb2tJnya?= =?utf-8?q?B8QHdtfS/1lqVgdbDegbFXdx5TYRFdSUm+cyio/lTJDhVYF7d02Y7nYwpb3v6uvpb?= =?utf-8?q?go0AZvH80NwbMq2zGpWofBdhPN2VLAYOJ+k/bvdJhzbuWZcwTx1HfWudjAgBD1uPw?= =?utf-8?q?U7uDVu1icaVkD2tcszx1YGLWOM5iFPLBmuGVyGr9cNxtkVli7jb1QmgZo3UaohpG/?= =?utf-8?q?WMrQRmENzekrJh7zqyLgcraBBzgujT9XeZUanflETo1jxV3y6VW6aXUlv5qodwazp?= =?utf-8?q?r33vwDYa7RKbg4cr6Kpdf4JwOxwy+1ThROgNggwIZhqT0GLXvnZADb4KC5aOni2UB?= =?utf-8?q?EDgGiFhkR12U7LT6PU2HvHsfa/t+uwb2QDzlcwTcm6dwNSRNDeVAvzJ2Pv8ufqb2G?= =?utf-8?q?KchBMqiB5hcSrgmvtUgWndvg/FVDk9ofZNONUA6Xg2Li7b5KCTu7PwfDDfZVEB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q8T/QAHuWxK2UdzkNe7EF200CMUeIYjVJeuANvjEn5EUF9N0aML4NEhos1PJb?= =?utf-8?q?tyBqbnkYB/mBYxVu3PjQBNW3Zx05tKn2YrcUBvyZRN1h2iDVH+gfBGN1BlD3gYQk5?= =?utf-8?q?EqPLiSFGZSge4L5UF3olAAAsiP5TZAxoLkcQqU8ZVktmsl6hV+Rbp7tt9TpcB8nxz?= =?utf-8?q?u3Hw+rRbn79V?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2243c775-cc8e-476b-582a-08dc0d4d4ed6 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 17:48:06.7447 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FI90JnJaBCcRA+Ow8Te5BLE+z4oGeQSVnw/Tg3Qe2Fff48/lpov3hD3WgRQpqFJR6JbVRxh2VHL1kAEk1ayMdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9495 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240104_094821_809430_444D1ADF X-CRM114-Status: GOOD ( 13.02 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the existing txt binding for armada-38x socs to DT schema format. The current bindings documentation for armada-38x are only listing SoCs, but no actual boards. Only actual boards should be listed. Replace the dropped entries with some actual baords that already have valid compatibles in-tree: - armada 380 netgear switch - armada 385 marvell development boards - armada 388 development board Signed-off-by: Josua Mayer Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/arm/marvell/armada-38x.txt | 27 -------------- .../bindings/arm/marvell/armada-38x.yaml | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-38x.txt b/Documentation/devicetree/bindings/arm/marvell/armada-38x.txt deleted file mode 100644 index 202953f1887e..000000000000 --- a/Documentation/devicetree/bindings/arm/marvell/armada-38x.txt +++ /dev/null @@ -1,27 +0,0 @@ -Marvell Armada 38x Platforms Device Tree Bindings -------------------------------------------------- - -Boards with a SoC of the Marvell Armada 38x family shall have the -following property: - -Required root node property: - - - compatible: must contain "marvell,armada380" - -In addition, boards using the Marvell Armada 385 SoC shall have the -following property before the previous one: - -Required root node property: - -compatible: must contain "marvell,armada385" - -In addition, boards using the Marvell Armada 388 SoC shall have the -following property before the previous one: - -Required root node property: - -compatible: must contain "marvell,armada388" - -Example: - -compatible = "marvell,a385-rd", "marvell,armada385", "marvell,armada380"; diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-38x.yaml b/Documentation/devicetree/bindings/arm/marvell/armada-38x.yaml new file mode 100644 index 000000000000..108d665220b5 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/marvell/armada-38x.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/marvell/armada-38x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Armada 38x Platforms + +maintainers: + - Gregory CLEMENT + +properties: + $nodename: + const: '/' + compatible: + oneOf: + + - description: + Netgear Armada 380 GS110EM Managed Switch. + items: + - const: netgear,gs110emx + - const: marvell,armada380 + + - description: + Marvell Armada 385 Development Boards. + items: + - enum: + - marvell,a385-db-amc + - marvell,a385-db-ap + - const: marvell,armada385 + - const: marvell,armada380 + + - description: + Marvell Armada 388 Development Boards. + items: + - enum: + - marvell,a388-gp + - const: marvell,armada388 + - const: marvell,armada385 + - const: marvell,armada380 + +additionalProperties: true