[v3,1/8] dt-bindings: marvell: a38x: convert the soc compatibles description to yaml
Message ID | 20231226-support-clearfog-gtr-l8-sfp-v3-1-fd1ac2d6bf2e@solid-run.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1028367dyb; Tue, 26 Dec 2023 10:22:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7ISaAYNpl1estkZCvL2G6GioQxEL6fWyS2IM/WBBiVjL2p+CQ5+y+OFBjgxQTXvIf8YyH X-Received: by 2002:a05:6a20:7a22:b0:190:921b:89c4 with SMTP id t34-20020a056a207a2200b00190921b89c4mr8493551pzh.18.1703614924262; Tue, 26 Dec 2023 10:22:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703614924; cv=pass; d=google.com; s=arc-20160816; b=WDlqysWypPd6BA3Mb19vefwZoxe725iIkibao0WXo6k3aRiT+G/xRNEPLP4BADnKQP pojOatixOCyyz9nTwHwFoEr9evyezkk81+JrlC5g4dbN6pavuYI5twZ+sejDyuW5qjck haQSc+gV2xxyWmXeDMGJTQC8E47eqp839HOgp2XrWbVSNKqSTTs9rvhy4iG8CIYSkO1r yxD75gu0oAfsaDe3EtDnfDJLXCNjSc0J65GMoDZx5PK4DNXJKl49mNITyyD797WyzjTh OkjEHEaSzX+SPCH/oCKc/Y1lbQWfOgNZBxLkve0dWc6s8kU2MTUuqh6C5HY01x1r5OHh CQNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence:cc :to:in-reply-to:references:message-id:content-transfer-encoding :subject:date:from:dkim-signature; bh=xr6Vk83GmnL+VkJ2sRAU6nYvmN34VDs9J2G1/cdoA74=; fh=LZ3+8MPuo3SMsa6OKaa4nXkr9HAal1HR+rgsxxjlDOA=; b=mTZGT6jVP9qdapGAqPv330mr2I8+OwrH2XrfT8uO+5NJY6vGB2S4zWuAOT0l1adWBI CnsztvO8Qzac0u+tOK/XxwMTarDbiWa2URJHZLQGEcMTFzDbqWD3MdTjUT2ssb68mVkI ZeQiZyZ6y5qtwKH/c2hv5iCpVIl+Ddym7mZoN2SZqTlvkE34Y+K/yZp+ZEiIW9qLKzZb 3zuPgXPvN0x5wq2QS/4grHaHFcgJNN9/dr3eakyHDWBsjyJL/R/SkD9i0aXmvpu3lvdT vkXhN8S+FFosVQjvm8KqPHZOGulOWDHAH7+sxaURh2u8kJy6p/euVBgEOVxDHgVZFTMc N/ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=WlZHB7vP; arc=pass (i=1 spf=pass spfdomain=solid-run.com dkim=pass dkdomain=solid-run.com dmarc=pass fromdomain=solid-run.com); spf=pass (google.com: domain of linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e3-20020a636903000000b005cdde899923si4130694pgc.758.2023.12.26.10.22.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 10:22:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=WlZHB7vP; arc=pass (i=1 spf=pass spfdomain=solid-run.com dkim=pass dkdomain=solid-run.com dmarc=pass fromdomain=solid-run.com); spf=pass (google.com: domain of linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11607-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DE11283C8C for <ouuuleilei@gmail.com>; Tue, 26 Dec 2023 18:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52B3553808; Tue, 26 Dec 2023 18:11:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="WlZHB7vP" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2068.outbound.protection.outlook.com [40.107.20.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C808F51C27; Tue, 26 Dec 2023 18:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bekqBRIJlOp0wXqUUM+IkuuxxJQJWUvJfzt+Knrna2mHQJgIlxEYoc/kaZzoP+TCYUv56inyTKf6JgHV2nmIvHk6HPB/r19Wi4tkt6feBOfspLJ1QPlDT+bOsKLv89BB5jVGzFex1tFigYpc2LHfwBYex8nqnUKRUDpPnQXoWjSgeV8xkKpY4lCJdYgdilvgvXIGD8CgoBPMLLbYoRtIqUuo2CJueyP90vpu0cxUf1vKfuosdF1EkM+KF3OItTyjfG4N3/SN8FfSKBHOvCJuwn1AdNOiSuu+OXqzIQ0nW7PaQ98Dxoi1lG94AiGveYLZVtnQnkpGU8msYvFk330p7w== 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=xr6Vk83GmnL+VkJ2sRAU6nYvmN34VDs9J2G1/cdoA74=; b=A1t4L+pruR6EMhFWHxFAaLupkmt1RVwcacGZE6D+pZu1Y62jZoiYT9buFtzHC0yaxLa67073tSr46+aD/Zpbb13jANSwUUX+5pgW3HxUNCmy76WW5VtrBK91nv7Ln3fhrJR5yGdbbWS2lkGSqMAX0dWU8Md2icrrDGdoJP9bA4vIwdYbEc0O0YUnrOsHk49jLsBNm+zWnLOYRv/PLVFpnQqoROf6/R18ot1hlDebd+32QsROm91aJ6vmeeDdIQ7rKO/r1ymO+GAnocNuAL60CTLsl/yLcAGRKawfPBbS6eOLmFoYdLuzzFGMM6px7zOwJIznfAsowJSwRP/03olx6Q== 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=xr6Vk83GmnL+VkJ2sRAU6nYvmN34VDs9J2G1/cdoA74=; b=WlZHB7vPI8+w1MoY4IcsJ6+/gONwDzTNrAP7Tcyn2t2gQV57oY0hw/3dn8ct1fg598OHozenpLzRwsaGRjOms04tgp0YjVjjQ1XtIFqMrDbaAl98l0ybr6TxnDiYubBQVV/DfJmeBcL/sgr82UHTP+ZzXLA82VVYw9Ej2cjVtKg= 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 DB9PR04MB9868.eurprd04.prod.outlook.com (2603:10a6:10:4c3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.27; Tue, 26 Dec 2023 18:11:52 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::4db1:aae8:c643:2e73]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::4db1:aae8:c643:2e73%6]) with mapi id 15.20.7113.027; Tue, 26 Dec 2023 18:11:52 +0000 From: Josua Mayer <josua@solid-run.com> Date: Tue, 26 Dec 2023 19:11:32 +0100 Subject: [PATCH v3 1/8] dt-bindings: marvell: a38x: convert the soc compatibles description to yaml Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231226-support-clearfog-gtr-l8-sfp-v3-1-fd1ac2d6bf2e@solid-run.com> References: <20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com> In-Reply-To: <20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com> To: Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer <josua@solid-run.com> X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR0P281CA0038.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::21) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|DB9PR04MB9868:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d16dbc3-cc47-496d-16d2-08dc063e227e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lpLZrrEJWmu+109troNnY2elx+8m22MlhFEFKe9SHkIH6z3HpxoK46u7fF9SQp5e78befoo4t86jfx4FjqZK6sa1BTxDRFhAjlkWtB0gGwcVVozzLqG99Pi89LSCA6pfX5dRCEKcJSqGrN86fadtmt9QM+Dkz7YDkke60oSnLyZQ5fTsXEu+OQjMEeyReLu1x9OPGptRJdUyWCTtxJJfUgwWQYqcYA4m3AnKH8ESnRNvDRSrRT9qZpa4XBFnHuCJujjzqi1NKk18ODnUuwVKc/WVOxJukpkTf6kz8dtZFE4keExgCxicSo/nDW5HB896HuM7MEM/jDJHmHLEb0nQXz3kEd2JdzvlCA+Q87bCn3gg07BMlXcZzUM8YA8JVB9lieIkvrMQcpD+3iirWErZ7haqekLbFvKyCA95bBxuii+cGnqyJL/od6D9DVFh1jOQM4ody4Bms2cAnRScnj/Bsd2UlbKVRADxToz1A9faqaq7pGW4SBtJk71q5DK3btMI3h7OP9f+3QkomgbxaMqYd6bLTH3V0S5F5/XcRn0lXYdGUYDPJfaxF9RWAYW/v7JDNhjKidpkMe8BU6F3qWB6bgniENZrh/LKQruTDJxV4ds= 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)(136003)(366004)(376002)(346002)(39840400004)(396003)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(26005)(6512007)(2616005)(4326008)(8676002)(110136005)(66946007)(66476007)(66556008)(316002)(83380400001)(52116002)(6506007)(107886003)(6666004)(38100700002)(86362001)(8936002)(478600001)(966005)(6486002)(5660300002)(2906002)(36756003)(41300700001)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dmGrJBNvzdRuc8S39hpf/7IaNF8F?= =?utf-8?q?b0UlnUZg0/7p1bkECNrHx8Q5AE4jAdMLTVr62vX5CFxYmkCeURMx3jPhme4/CTRog?= =?utf-8?q?A7th0hPRy/GeEA3Nl1xHtUz6c4DxypuT3OWQTJ3Yu3hGl+TmIYc37Cg/l8x0LYhWs?= =?utf-8?q?D9hA6Pr/gkGMT8ZkZ9EMH0h2s9TMGMQOOydSm07vwj67ypxopcC7Ap7xurADBxgSJ?= =?utf-8?q?LMe2g7GHpHbdp3LopkTu4f2B1/j7mWvNydYFJjF+qBHHafYfetTEPdF9+IWzN+9zj?= =?utf-8?q?z1XlXi/733aseqNAauF3yFx1OOxVFkWPrbD+Qyn0nCEbWEVW/YkjYJyKBe8tu1BSr?= =?utf-8?q?gK4IsMwc266XjPhE+8rPBD9lbiKraFxTrTIWUeRSlFFTERZWPbnsz3OSi+vD4YsaT?= =?utf-8?q?Zj4rU4hM0ruNcJuPQd3NAS79dXYb1QHTINvk4ed6QM+oAiPOHLSLTddJDVUxyku1M?= =?utf-8?q?xiV133aXgS3lPwb3eAF0FlMYIPgqlqAJw5ME3TtSeJ68SAT4uD/8WakzEDs+25YiG?= =?utf-8?q?JKHlNtvR6lD1Y20gklvEKjhZ8me66zoZlHHDKaoKQwErXVOhoLyYbD6+IQTHt/8Ow?= =?utf-8?q?U13rNPxq0uOTy6wLSPvrr1oNJPvzA4466Fue0r8jr87qLg83A+ymKxKC5+JmxzSnM?= =?utf-8?q?iTytyGOplkk+2ZsIPrdkDfZksAcOhbGnr9KkgjkfTesqLUoDzzIhM4ZV/JGfRYqlN?= =?utf-8?q?R8+BIOCJWzi9tFTTDTPBAjsOo1B574Tr95oneyFsN46I9amXT+a/bKjBQD2Nf1qhB?= =?utf-8?q?8jNcdjtybOfNIVuZSiC+8Ori229lWNQcdDsNmi7lrDlRvRkrO2h2UthsY/mmkbhA1?= =?utf-8?q?GipjidK4rmrzGB7sjyArBYIqhAxQo5Q4INMt/j8ap+5hrxld2RGhqOy9xm6a9dR5+?= =?utf-8?q?oYU5sgbqsWJwmDwuLM+Ud73jumtbErSWW8OQWwyh5EQgztsUeT8P9YglhJwHtobnM?= =?utf-8?q?wUT/KVTbN/sK/AmdAj4wSFDL83i1QpRCaWt5Vh3RlWHIFCO4jgifCCQnKOa+qeCnL?= =?utf-8?q?ecJGSAezztgvGGS8eE2bMFXNLtmP/dqpo+8S8M0UaKeDidWytbL7KdhUIaSTosUnv?= =?utf-8?q?fL8g0DHRN6xngenmSWDO7aLz2wHudQkDmy670a4bOHfvTyHDuwE1MZ2fSr1fHuIPn?= =?utf-8?q?fqiPX89IzP9Uto7JYfjwhWRinOc7j86J1NYOBc1r7OC3YCRgXreVo7hM5T2weddaH?= =?utf-8?q?OaEPcvrY6UWEpASYB6zGpm7Ed6jePO7ja/yUudlxqs7l54G9Eh0uOgnS4xF9nARlN?= =?utf-8?q?e+DrDgz7byQHqn7uhi1fz97BubMY+pB93OkXzMRypescIxTRSc+T2rRRZ+5bveXKe?= =?utf-8?q?xjkCa3HzNqQCg11nyXhwZhuJFLP31Q0XBgHCQMolV4QbpCq3Ujna8ENyVsKG7uWnv?= =?utf-8?q?COHpIfdI25f2YWvzAdW/qSk0svF+EW+fuhHas2Sjcy4KNTzSDMHcrBq/DNOvVleJS?= =?utf-8?q?I1OSMDOoLLEaDL1R9uY6xtpbD1NIVDbOYHBP4+OKu4nFXf49s54O7AxbijajzBLTf?= =?utf-8?q?UtW3UqKbnjqe?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d16dbc3-cc47-496d-16d2-08dc063e227e X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2023 18:11:51.7248 (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: /MP41SN52GfrVADvkwPTruAKbLWU2dB2rZ/lzOacmvQr5kofGB7y/Q3lAF/eIUGvVGDal/OOsC20vrhhvObSgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9868 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786369722330266088 X-GMAIL-MSGID: 1786369722330266088 |
Series |
dt-bindings: marvell: a38x: add solidrun armada 388 clearfog boards
|
|
Commit Message
Josua Mayer
Dec. 26, 2023, 6:11 p.m. UTC
Convert the existing txt binding for armada-38x socs to DT schema
format.
Note that the current bindings only document the SoC (armada380,
armada385, armada388). This is undesirable, instead there should be
entries for actual boards.
For now only convert to yaml, the content can be corrected separately.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
.../devicetree/bindings/arm/marvell/armada-38x.txt | 27 ------------------
.../bindings/arm/marvell/armada-38x.yaml | 33 ++++++++++++++++++++++
2 files changed, 33 insertions(+), 27 deletions(-)
Comments
On 26/12/2023 19:11, Josua Mayer wrote: > Convert the existing txt binding for armada-38x socs to DT schema > format. ... > +--- > +$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 <gregory.clement@bootlin.com> > + > +properties: > + $nodename: > + const: '/' > + compatible: > + oneOf: > + > + - description: Armada 380 SoC > + items: > + - const: marvell,armada380 > + Thanks for the conversion. I think this is still not what we want. The main problem is of course in the original binding, not your conversion. Compatible armada380 above alone is not correct. This is SoC and SoC compatible cannot be used alone, because it is not specific enough to differentiate boards. Same applies for further lists, which I removed from the quote, for the same reasons. What we could do here is to fix this instead of pure conversion: 1. Add this binding file with new compatibles for existing boards and drop the TXT file, with explanation that you actually document properly all existing board compatibles. 2. Add compatibles to existing DTS. 3. Add your new board compatibles. At least this is what I would do for typical cases, but as I said before, Marvell here is in some surprising limbo state. Best regards, Krzysztof
Am 27.12.23 um 12:49 schrieb Krzysztof Kozlowski: > On 26/12/2023 19:11, Josua Mayer wrote: >> Convert the existing txt binding for armada-38x socs to DT schema >> format. > ... > >> +--- >> +$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 <gregory.clement@bootlin.com> >> + >> +properties: >> + $nodename: >> + const: '/' >> + compatible: >> + oneOf: >> + >> + - description: Armada 380 SoC >> + items: >> + - const: marvell,armada380 >> + > Thanks for the conversion. I think this is still not what we want. The > main problem is of course in the original binding, not your conversion. > Compatible armada380 above alone is not correct. This is SoC and SoC > compatible cannot be used alone, because it is not specific enough to > differentiate boards. Same applies for further lists, which I removed > from the quote, for the same reasons. > > What we could do here is to fix this instead of pure conversion: > 1. Add this binding file with new compatibles for existing boards and > drop the TXT file, with explanation that you actually document properly > all existing board compatibles. So - we could add a boilerplate yaml with zero boards in conversion commit, and then add new or existing boards through separate commits? I feel that collecting / fixing the compatibles for all a38x based boards might be a lot of effort. Would it be acceptable to start with the few that I know / use myself? In addition to those already submitted I could include armada-388-helios4.dts. > 2. Add compatibles to existing DTS. For boards I do not know / using codenames - is there a template / generic description string? > 3. Add your new board compatibles. > > At least this is what I would do for typical cases, but as I said > before, Marvell here is in some surprising limbo state. Thank you for the constructive notes! > Best regards, > Krzysztof >
On 27/12/2023 13:05, Josua Mayer wrote: >>> + - description: Armada 380 SoC >>> + items: >>> + - const: marvell,armada380 >>> + >> Thanks for the conversion. I think this is still not what we want. The >> main problem is of course in the original binding, not your conversion. >> Compatible armada380 above alone is not correct. This is SoC and SoC >> compatible cannot be used alone, because it is not specific enough to >> differentiate boards. Same applies for further lists, which I removed >> from the quote, for the same reasons. >> >> What we could do here is to fix this instead of pure conversion: >> 1. Add this binding file with new compatibles for existing boards and >> drop the TXT file, with explanation that you actually document properly >> all existing board compatibles. > So - we could add a boilerplate yaml with zero boards in conversion commit, > and then add new or existing boards through separate commits? boilerplate YAML file is kind of useless. It's like writing new driver with adding empty C file and Makefile entry. I understand you want to split logical items, but there is no logical action as "empty binding file". > > I feel that collecting / fixing the compatibles for all a38x based > boards might be a lot of effort. > Would it be acceptable to start with the few that I know / use myself? > In addition to those already submitted I could include > armada-388-helios4.dts. Yes, it's fine. > >> 2. Add compatibles to existing DTS. > For boards I do not know / using codenames - is there a template / > generic description string? >> 3. Add your new board compatibles. >> >> At least this is what I would do for typical cases, but as I said >> before, Marvell here is in some surprising limbo state. > Best regards, Krzysztof
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..5af222e6db18 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/marvell/armada-38x.yaml @@ -0,0 +1,33 @@ +# 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 <gregory.clement@bootlin.com> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + + - description: Armada 380 SoC + items: + - const: marvell,armada380 + + - description: Armada 385 SoC + items: + - const: marvell,armada385 + - const: marvell,armada380 + + - description: Armada 388 SoC + items: + - const: marvell,armada388 + - const: marvell,armada385 + - const: marvell,armada380 + +additionalProperties: true