devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] update i.MX95 machine compatible
@ 2025-01-04 12:13 Peng Fan (OSS)
  2025-01-04 12:13 ` [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible Peng Fan (OSS)
  2025-01-04 12:13 ` [PATCH 2/2] arm64: dts: imx95-19x19-evk: Update machine compatible Peng Fan (OSS)
  0 siblings, 2 replies; 8+ messages in thread
From: Peng Fan (OSS) @ 2025-01-04 12:13 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, linux-kernel, imx, linux-arm-kernel, Peng Fan

i.MX95 features a System Controller and SCMI Spec 3.2 compatible
firmware System Manager(SM) runs on the controller.
Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
indicate it is compatible with i.MX System Manager.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (2):
      dt-bindings: arm: fsl: Update i.MX95 compatible
      arm64: dts: imx95-19x19-evk: Update machine compatible

 Documentation/devicetree/bindings/arm/fsl.yaml    | 1 +
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
change-id: 20250104-imx9-machine-b3f78ec9f5b9

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-04 12:13 [PATCH 0/2] update i.MX95 machine compatible Peng Fan (OSS)
@ 2025-01-04 12:13 ` Peng Fan (OSS)
  2025-01-04 14:43   ` Krzysztof Kozlowski
  2025-01-04 12:13 ` [PATCH 2/2] arm64: dts: imx95-19x19-evk: Update machine compatible Peng Fan (OSS)
  1 sibling, 1 reply; 8+ messages in thread
From: Peng Fan (OSS) @ 2025-01-04 12:13 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, linux-kernel, imx, linux-arm-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

i.MX95 features a System Controller and SCMI Spec 3.2 compatible
firmware System Manager(SM) runs on the controller.
Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
indicate it is compatible with i.MX System Manager.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index 3713175548637ec17561c068932123c558776435..4f4def9ccdd6211461238d90bc0d1a85fd77a440 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -1354,6 +1354,7 @@ properties:
           - enum:
               - fsl,imx95-19x19-evk       # i.MX95 19x19 EVK Board
           - const: fsl,imx95
+          - const: fsl,imx-sm
 
       - description: i.MXRT1050 based Boards
         items:

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] arm64: dts: imx95-19x19-evk: Update machine compatible
  2025-01-04 12:13 [PATCH 0/2] update i.MX95 machine compatible Peng Fan (OSS)
  2025-01-04 12:13 ` [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible Peng Fan (OSS)
@ 2025-01-04 12:13 ` Peng Fan (OSS)
  1 sibling, 0 replies; 8+ messages in thread
From: Peng Fan (OSS) @ 2025-01-04 12:13 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, linux-kernel, imx, linux-arm-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add "fsl,imx-sm" fallback compatible string per dt binding update.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 6086cb7fa5a0e14882be3a8c609725e15c179392..646b255cfc694dad2038674ce449708deb15b485 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -19,7 +19,7 @@
 
 / {
 	model = "NXP i.MX95 19X19 board";
-	compatible = "fsl,imx95-19x19-evk", "fsl,imx95";
+	compatible = "fsl,imx95-19x19-evk", "fsl,imx95", "fsl,imx-sm";
 
 	aliases {
 		gpio0 = &gpio1;

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-04 12:13 ` [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible Peng Fan (OSS)
@ 2025-01-04 14:43   ` Krzysztof Kozlowski
  2025-01-06  2:51     ` Peng Fan
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-04 14:43 UTC (permalink / raw)
  To: Peng Fan (OSS), Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, linux-kernel, imx, linux-arm-kernel, Peng Fan

On 04/01/2025 13:13, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> i.MX95 features a System Controller and SCMI Spec 3.2 compatible
> firmware System Manager(SM) runs on the controller.
> Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
> indicate it is compatible with i.MX System Manager.

I see little value in generic compatible like that. All these are
aarch64 so why not adding that compatible?

How this generic compatible would be used?

And by what exactly?

All this must be explained in the commit msg.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-04 14:43   ` Krzysztof Kozlowski
@ 2025-01-06  2:51     ` Peng Fan
  2025-01-06  6:12       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Peng Fan @ 2025-01-06  2:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Peng Fan (OSS), Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org

> Subject: Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95
> compatible
> 
> On 04/01/2025 13:13, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > i.MX95 features a System Controller and SCMI Spec 3.2 compatible
> > firmware System Manager(SM) runs on the controller.
> > Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
> > indicate it is compatible with i.MX System Manager.
> 
> I see little value in generic compatible like that. All these are
> aarch64 so why not adding that compatible?
> 
> How this generic compatible would be used?
> 
> And by what exactly?

There will be more i.MX9 chips with System Manager. I would
not expand the list here each time to support a new SoC.

https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/pinctrl-scmi.c#L508
https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/freescale/pinctrl-imx-scmi.c#L290

> 
> All this must be explained in the commit msg.

If upper is ok, I will include in V2.

Thanks,
Peng.

> 
> Best regards,
> Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-06  2:51     ` Peng Fan
@ 2025-01-06  6:12       ` Krzysztof Kozlowski
  2025-01-09  2:40         ` Peng Fan
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-06  6:12 UTC (permalink / raw)
  To: Peng Fan, Peng Fan (OSS), Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam
  Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org

On 06/01/2025 03:51, Peng Fan wrote:
>> Subject: Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95
>> compatible
>>
>> On 04/01/2025 13:13, Peng Fan (OSS) wrote:
>>> From: Peng Fan <peng.fan@nxp.com>
>>>
>>> i.MX95 features a System Controller and SCMI Spec 3.2 compatible
>>> firmware System Manager(SM) runs on the controller.
>>> Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
>>> indicate it is compatible with i.MX System Manager.
>>
>> I see little value in generic compatible like that. All these are
>> aarch64 so why not adding that compatible?
>>
>> How this generic compatible would be used?
>>
>> And by what exactly?
> 
> There will be more i.MX9 chips with System Manager. I would
> not expand the list here each time to support a new SoC.
> 
> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/pinctrl-scmi.c#L508
> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/freescale/pinctrl-imx-scmi.c#L290

Problem is that compatible is way too generic to be used by Linux drivers.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-06  6:12       ` Krzysztof Kozlowski
@ 2025-01-09  2:40         ` Peng Fan
  2025-01-13 11:35           ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Peng Fan @ 2025-01-09  2:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Peng Fan, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org

On Mon, Jan 06, 2025 at 07:12:29AM +0100, Krzysztof Kozlowski wrote:
>On 06/01/2025 03:51, Peng Fan wrote:
>>> Subject: Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95
>>> compatible
>>>
>>> On 04/01/2025 13:13, Peng Fan (OSS) wrote:
>>>> From: Peng Fan <peng.fan@nxp.com>
>>>>
>>>> i.MX95 features a System Controller and SCMI Spec 3.2 compatible
>>>> firmware System Manager(SM) runs on the controller.
>>>> Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
>>>> indicate it is compatible with i.MX System Manager.
>>>
>>> I see little value in generic compatible like that. All these are
>>> aarch64 so why not adding that compatible?
>>>
>>> How this generic compatible would be used?
>>>
>>> And by what exactly?
>> 
>> There will be more i.MX9 chips with System Manager. I would
>> not expand the list here each time to support a new SoC.
>> 
>> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/pinctrl-scmi.c#L508
>> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/freescale/pinctrl-imx-scmi.c#L290
>
>Problem is that compatible is way too generic to be used by Linux drivers.

Is "fsl,imx9-sm" feasible here?

Thanks,
Peng

>
>Best regards,
>Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible
  2025-01-09  2:40         ` Peng Fan
@ 2025-01-13 11:35           ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-13 11:35 UTC (permalink / raw)
  To: Peng Fan
  Cc: Peng Fan, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org

On 09/01/2025 03:40, Peng Fan wrote:
> On Mon, Jan 06, 2025 at 07:12:29AM +0100, Krzysztof Kozlowski wrote:
>> On 06/01/2025 03:51, Peng Fan wrote:
>>>> Subject: Re: [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95
>>>> compatible
>>>>
>>>> On 04/01/2025 13:13, Peng Fan (OSS) wrote:
>>>>> From: Peng Fan <peng.fan@nxp.com>
>>>>>
>>>>> i.MX95 features a System Controller and SCMI Spec 3.2 compatible
>>>>> firmware System Manager(SM) runs on the controller.
>>>>> Add "fsl,imx-sm" compatible string as fallback for "fsl,imx95" to
>>>>> indicate it is compatible with i.MX System Manager.
>>>>
>>>> I see little value in generic compatible like that. All these are
>>>> aarch64 so why not adding that compatible?
>>>>
>>>> How this generic compatible would be used?
>>>>
>>>> And by what exactly?
>>>
>>> There will be more i.MX9 chips with System Manager. I would
>>> not expand the list here each time to support a new SoC.
>>>
>>> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/pinctrl-scmi.c#L508
>>> https://elixir.bootlin.com/linux/v6.13-rc3/source/drivers/pinctrl/freescale/pinctrl-imx-scmi.c#L290
>>
>> Problem is that compatible is way too generic to be used by Linux drivers.
> 
> Is "fsl,imx9-sm" feasible here?

It is better, but I am still not happy with the generic meaning of it.
You claim now that certain SoCs will be compatible with imx9-sm, so with
some sort of "sm". What is the meaning of sm in terms of ABI and
interfaces? What do you exactly define here? And what happens if some
other feature will require one more compatible and then one more?

You will have:
compatible = "fsl,imx95-19x19-evk", "fsl,imx95", "fsl,imx9-sm",
"fsl,imx9-foo", "fsl,imx9-bar", "fsl,imx9-whatnot";

You add compatible for some unspecified interface called "System
Manager" just to solve Linux driver issue.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-13 11:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-04 12:13 [PATCH 0/2] update i.MX95 machine compatible Peng Fan (OSS)
2025-01-04 12:13 ` [PATCH 1/2] dt-bindings: arm: fsl: Update i.MX95 compatible Peng Fan (OSS)
2025-01-04 14:43   ` Krzysztof Kozlowski
2025-01-06  2:51     ` Peng Fan
2025-01-06  6:12       ` Krzysztof Kozlowski
2025-01-09  2:40         ` Peng Fan
2025-01-13 11:35           ` Krzysztof Kozlowski
2025-01-04 12:13 ` [PATCH 2/2] arm64: dts: imx95-19x19-evk: Update machine compatible Peng Fan (OSS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).