Message ID | 20230704184109.991104-1-m.felsch@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1407020vqx; Tue, 4 Jul 2023 11:55:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuUCoVUl8NResRSHZvuJ+QOj1A7AQEKws01VxnGgSDRJFtX7UTUnnRqnhD39TJUr5qlP1L X-Received: by 2002:a05:6358:705e:b0:125:a552:4389 with SMTP id 30-20020a056358705e00b00125a5524389mr9429852rwp.22.1688496957407; Tue, 04 Jul 2023 11:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688496957; cv=none; d=google.com; s=arc-20160816; b=FibQpQhVQYlW7QrNddtFXA+s6xJS1e6g882UnFylShLLdm+mc5Gt5VR80+uKVkmtkQ R08t+Fa6y+BaE8k4QOlUNc0JKQ6mn5gPCMA6oOXjkhZQftHPJ7daJ8Su/IyWNbNvLWsF 5l/ICtvTxO+HOMbbSvj3ONb1Un+gl1kfaRwT+M6WkGGFKkSF4pLg/uakzWtxKaVx4cbA 5wPZBWc75mMqq/AZFlqs4TFl2Xjq4dcK4SqCEjJ51/LxSd8aZRbfzy9x5ja8HEWCFlYf MpePsB1r5Ka5iOCAL2hQcm7zNJ24Fj5amaxDcumEeJdhoCX/1NvkKwnXl8cUM9Vb9Tkf IRJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UXjfCvSbEMNk16gyDC8r0Ti5HztrQVz2dAgB+GgzZ7M=; fh=LImhgENCA9c0Bi5Ijwdv12vm6vLO0unfoEgqQIXZXxM=; b=Me23ldS1DGEeuwEKDh3K842VpRKF6d1xZKPujHQHNUOqPVaKJZi2dqxH7c7EpexWFw 07IKuM4EIdA0XFuvykYlY1eTsVTm/v+YYhSZbdZrrqYjxSOwzmeSDbMp8ZfHc/jOgWOK MPfXMjv9qjMJVuKFI0KhNG4g4DKPJlPMvf0i7P08xcnvRaeEG3RgKeU+uOlGKt54RFCf D7LjFc0Y4Av/l678WeJJK+CsuTboKB6FXgruA6ccRUIbWSz1Z6dPhdV1l9Az2Y+VAMK8 ZtgrRu84HT5pYoRoLt4LrTmSewJneztY46cyduGDGz876qQ8PXimV4ovxWATy4LT2H1l eHsw== ARC-Authentication-Results: i=1; mx.google.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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170902e80d00b001b89bc24ddcsi4954354plg.355.2023.07.04.11.55.45; Tue, 04 Jul 2023 11:55:57 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231267AbjGDSle (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 14:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjGDSlb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 14:41:31 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 066CF10DC for <linux-kernel@vger.kernel.org>; Tue, 4 Jul 2023 11:41:30 -0700 (PDT) Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from <m.felsch@pengutronix.de>) id 1qGkxi-00040x-4O; Tue, 04 Jul 2023 20:41:18 +0200 From: Marco Felsch <m.felsch@pengutronix.de> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, marex@denx.de, frieder.schrempf@kontron.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] dt-bindings: arm: fsl: fix DEBIX binding Date: Tue, 4 Jul 2023 20:41:07 +0200 Message-Id: <20230704184109.991104-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1770517385413743306?= X-GMAIL-MSGID: =?utf-8?q?1770517385413743306?= |
Series |
[1/3] dt-bindings: arm: fsl: fix DEBIX binding
|
|
Commit Message
Marco Felsch
July 4, 2023, 6:41 p.m. UTC
The current imx8mp-debix-model-a.dts uses all three compatibles. Fix the
corresponding bindings by adding an own entry for it.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
Documentation/devicetree/bindings/arm/fsl.yaml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Comments
On 04/07/2023 20:41, Marco Felsch wrote: > The current imx8mp-debix-model-a.dts uses all three compatibles. Fix the > corresponding bindings by adding an own entry for it. > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml > index 15d4110840654..d9e763ef932e5 100644 > --- a/Documentation/devicetree/bindings/arm/fsl.yaml > +++ b/Documentation/devicetree/bindings/arm/fsl.yaml > @@ -1019,8 +1019,6 @@ properties: > - dmo,imx8mp-data-modul-edm-sbc # i.MX8MP eDM SBC > - fsl,imx8mp-evk # i.MX8MP EVK Board > - gateworks,imx8mp-gw74xx # i.MX8MP Gateworks Board > - - polyhex,imx8mp-debix # Polyhex Debix boards > - - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board > - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules > - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT > - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules > @@ -1054,6 +1052,13 @@ properties: > - const: phytec,imx8mp-phycore-som # phyCORE-i.MX8MP SoM > - const: fsl,imx8mp > > + - description: Polyhex DEBIX i.MX8MP based SBCs > + items: > + - enum: > + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board > + - const: polyhex,imx8mp-debix # Polyhex Debix boards Same comments as for patch #2. I think this should be rather deprecated - not a good pattern. Best regards, Krzysztof
Hi Krzysztof, On 23-07-05, Krzysztof Kozlowski wrote: > On 04/07/2023 20:41, Marco Felsch wrote: > > The current imx8mp-debix-model-a.dts uses all three compatibles. Fix the > > corresponding bindings by adding an own entry for it. > > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > --- > > Documentation/devicetree/bindings/arm/fsl.yaml | 9 +++++++-- > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml > > index 15d4110840654..d9e763ef932e5 100644 > > --- a/Documentation/devicetree/bindings/arm/fsl.yaml > > +++ b/Documentation/devicetree/bindings/arm/fsl.yaml > > @@ -1019,8 +1019,6 @@ properties: > > - dmo,imx8mp-data-modul-edm-sbc # i.MX8MP eDM SBC > > - fsl,imx8mp-evk # i.MX8MP EVK Board > > - gateworks,imx8mp-gw74xx # i.MX8MP Gateworks Board > > - - polyhex,imx8mp-debix # Polyhex Debix boards > > - - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board > > - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules > > - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT > > - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules > > @@ -1054,6 +1052,13 @@ properties: > > - const: phytec,imx8mp-phycore-som # phyCORE-i.MX8MP SoM > > - const: fsl,imx8mp > > > > + - description: Polyhex DEBIX i.MX8MP based SBCs > > + items: > > + - enum: > > + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board > > + - const: polyhex,imx8mp-debix # Polyhex Debix boards > > Same comments as for patch #2. I think this should be rather deprecated > - not a good pattern. How can we deprecate a binding? Regards, Marco
On 05/07/2023 10:28, Marco Felsch wrote: > Hi Krzysztof, > > On 23-07-05, Krzysztof Kozlowski wrote: >> On 04/07/2023 20:41, Marco Felsch wrote: >>> The current imx8mp-debix-model-a.dts uses all three compatibles. Fix the >>> corresponding bindings by adding an own entry for it. >>> >>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> >>> --- >>> Documentation/devicetree/bindings/arm/fsl.yaml | 9 +++++++-- >>> 1 file changed, 7 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml >>> index 15d4110840654..d9e763ef932e5 100644 >>> --- a/Documentation/devicetree/bindings/arm/fsl.yaml >>> +++ b/Documentation/devicetree/bindings/arm/fsl.yaml >>> @@ -1019,8 +1019,6 @@ properties: >>> - dmo,imx8mp-data-modul-edm-sbc # i.MX8MP eDM SBC >>> - fsl,imx8mp-evk # i.MX8MP EVK Board >>> - gateworks,imx8mp-gw74xx # i.MX8MP Gateworks Board >>> - - polyhex,imx8mp-debix # Polyhex Debix boards >>> - - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board >>> - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules >>> - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT >>> - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules >>> @@ -1054,6 +1052,13 @@ properties: >>> - const: phytec,imx8mp-phycore-som # phyCORE-i.MX8MP SoM >>> - const: fsl,imx8mp >>> >>> + - description: Polyhex DEBIX i.MX8MP based SBCs >>> + items: >>> + - enum: >>> + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board >>> + - const: polyhex,imx8mp-debix # Polyhex Debix boards >> >> Same comments as for patch #2. I think this should be rather deprecated >> - not a good pattern. > > How can we deprecate a binding? git grep "deprecated:" -- Documentation/devicetree/ Best regards, Krzysztof
On 05.07.23 08:35, Krzysztof Kozlowski wrote: > On 04/07/2023 20:41, Marco Felsch wrote: >> The current imx8mp-debix-model-a.dts uses all three compatibles. Fix the >> corresponding bindings by adding an own entry for it. >> >> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> >> --- >> Documentation/devicetree/bindings/arm/fsl.yaml | 9 +++++++-- >> 1 file changed, 7 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml >> index 15d4110840654..d9e763ef932e5 100644 >> --- a/Documentation/devicetree/bindings/arm/fsl.yaml >> +++ b/Documentation/devicetree/bindings/arm/fsl.yaml >> @@ -1019,8 +1019,6 @@ properties: >> - dmo,imx8mp-data-modul-edm-sbc # i.MX8MP eDM SBC >> - fsl,imx8mp-evk # i.MX8MP EVK Board >> - gateworks,imx8mp-gw74xx # i.MX8MP Gateworks Board >> - - polyhex,imx8mp-debix # Polyhex Debix boards >> - - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board >> - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules >> - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT >> - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules >> @@ -1054,6 +1052,13 @@ properties: >> - const: phytec,imx8mp-phycore-som # phyCORE-i.MX8MP SoM >> - const: fsl,imx8mp >> >> + - description: Polyhex DEBIX i.MX8MP based SBCs >> + items: >> + - enum: >> + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board >> + - const: polyhex,imx8mp-debix # Polyhex Debix boards > > Same comments as for patch #2. I think this should be rather deprecated > - not a good pattern. The middle compatible was my suggestion, because there's also the Debix Model B Standard and Model B SE, which is the same board, but different SoC variant: Model A: Commercial Temperature Grade Model B Standard: Industrial Temperature Grade Model B SE: Industrial Temperature Grate, but i.MX8MP Lite (No Neural/Video/Image accelerators). As everything outside the SoC is the same, I wanted a generic board compatible that bootloaders can match against. The SoMs should probably not reuse it, but I think it should be kept (perhaps renamed?) for the SBCs that don't utilize the Debix SoM. Cheers, Ahmad > > Best regards, > Krzysztof > > >
On 05/07/2023 11:28, Ahmad Fatoum wrote: >>> + items: >>> + - enum: >>> + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board >>> + - const: polyhex,imx8mp-debix # Polyhex Debix boards >> >> Same comments as for patch #2. I think this should be rather deprecated >> - not a good pattern. > > The middle compatible was my suggestion, because there's also the Debix Model > B Standard and Model B SE, which is the same board, but different SoC variant: > > Model A: Commercial Temperature Grade > Model B Standard: Industrial Temperature Grade > Model B SE: Industrial Temperature Grate, but i.MX8MP Lite > (No Neural/Video/Image accelerators). > > As everything outside the SoC is the same, I wanted a generic board > compatible that bootloaders can match against. The SoMs should probably > not reuse it, but I think it should be kept (perhaps renamed?) for the > SBCs that don't utilize the Debix SoM. The order of compatibles in patch two does not really look correct, although it is accepted in some cases (e.g. Renesas). But anyway "Debix" sounds like a vendor - they even have website - so compatible for all boards seems too generic. This should be compatible for one specific board. I understand that one board can have different SoMs (it is common, just look at Toradex or Variscite), but it does not mean that board should be unspecific. Best regards, Krzysztof
On 23-07-05, Krzysztof Kozlowski wrote: > On 05/07/2023 11:28, Ahmad Fatoum wrote: > >>> + items: > >>> + - enum: > >>> + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board > >>> + - const: polyhex,imx8mp-debix # Polyhex Debix boards > >> > >> Same comments as for patch #2. I think this should be rather deprecated > >> - not a good pattern. > > > > The middle compatible was my suggestion, because there's also the Debix Model > > B Standard and Model B SE, which is the same board, but different SoC variant: > > > > Model A: Commercial Temperature Grade > > Model B Standard: Industrial Temperature Grade > > Model B SE: Industrial Temperature Grate, but i.MX8MP Lite > > (No Neural/Video/Image accelerators). > > > > As everything outside the SoC is the same, I wanted a generic board > > compatible that bootloaders can match against. The SoMs should probably > > not reuse it, but I think it should be kept (perhaps renamed?) for the > > SBCs that don't utilize the Debix SoM. The SoM may come also in a 'Standard' and 'SE' edition. > The order of compatibles in patch two does not really look correct, > although it is accepted in some cases (e.g. Renesas). But anyway "Debix" > sounds like a vendor - they even have website - so compatible for all > boards seems too generic. This should be compatible for one specific > board. I understand that one board can have different SoMs (it is > common, just look at Toradex or Variscite), but it does not mean that > board should be unspecific. I reused the "polyhex,imx8mp-debix" compatible since we already have a user [1] and there are no differences. I can drop it for the SoM case but for the SBC case I can't since this would break current users [1]. Regards, Marco [1] https://elixir.bootlin.com/barebox/v2023.07.1/source/arch/arm/boards/polyhex-debix/board.c#L38
diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 15d4110840654..d9e763ef932e5 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -1019,8 +1019,6 @@ properties: - dmo,imx8mp-data-modul-edm-sbc # i.MX8MP eDM SBC - fsl,imx8mp-evk # i.MX8MP EVK Board - gateworks,imx8mp-gw74xx # i.MX8MP Gateworks Board - - polyhex,imx8mp-debix # Polyhex Debix boards - - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules @@ -1054,6 +1052,13 @@ properties: - const: phytec,imx8mp-phycore-som # phyCORE-i.MX8MP SoM - const: fsl,imx8mp + - description: Polyhex DEBIX i.MX8MP based SBCs + items: + - enum: + - polyhex,imx8mp-debix-model-a # Polyhex Debix Model A Board + - const: polyhex,imx8mp-debix # Polyhex Debix boards + - const: fsl,imx8mp + - description: Toradex Boards with Verdin iMX8M Plus Modules items: - enum: