Thread (21 messages) 21 messages, 6 authors, 2018-10-18

[PATCH V2 2/4] arm64: dts: imx: add imx8qxp support

From: aisheng.dong@nxp.com (A.s. Dong)
Date: 2018-10-15 16:09:01
Also in: linux-devicetree

-----Original Message-----
From: Sascha Hauer [mailto:s.hauer at pengutronix.de]
Sent: Monday, October 15, 2018 5:41 PM
To: A.s. Dong <aisheng.dong@nxp.com>
Cc: linux-arm-kernel at lists.infradead.org; Mark Rutland
[off-list ref]; dongas86 at gmail.com; devicetree at vger.kernel.org;
catalin.marinas at arm.com; will.deacon at arm.com; robh+dt at kernel.org;
dl-linux-imx [off-list ref]; kernel at pengutronix.de; Fabio Estevam
[off-list ref]; shawnguo at kernel.org
Subject: Re: [PATCH V2 2/4] arm64: dts: imx: add imx8qxp support

On Mon, Oct 15, 2018 at 09:03:04AM +0000, A.s. Dong wrote:
quoted
quoted
-----Original Message-----
From: Sascha Hauer [mailto:s.hauer at pengutronix.de]
Sent: Monday, October 15, 2018 4:28 PM
To: A.s. Dong <aisheng.dong@nxp.com>
Cc: linux-arm-kernel at lists.infradead.org; Mark Rutland
[off-list ref]; dongas86 at gmail.com;
devicetree at vger.kernel.org; catalin.marinas at arm.com;
will.deacon at arm.com; robh+dt at kernel.org; dl-linux-imx
[off-list ref]; kernel at pengutronix.de; Fabio Estevam
[off-list ref]; shawnguo at kernel.org
Subject: Re: [PATCH V2 2/4] arm64: dts: imx: add imx8qxp support

On Mon, Oct 15, 2018 at 08:08:31AM +0000, A.s. Dong wrote:
quoted
quoted
quoted
+		imx8qx-pm {
+			compatible = "fsl,scu-pd";
I missed this earlier, but there should be a i.MX8qp specific
compatible as the SCU API might change for future SoCs.
We still do not see that requirement up till now. Not sure if it
would be possible in the future. I see low possibilities.
SCU IPC is designed to be generic to all MX8 SCU firmwares.
And i.MX9? i.MX10?
MX8DM MX8DXP
I was not talking about existing SoCs, I was talking about future SoCs.
quoted
quoted
quoted
Even it changes, SCU firmware version control may helps.
It's not the first time that the position of the version field
changes with a newer version.
I understand your worry.
Up till now all SCU firmware based SoCs are all using one generic IPC driver
internally.
quoted
And I have not heard a possible changing in the future.
I double checked the SCU firmware implementation that the IPC Is
deigned to be platform independent. So it's less to be changed.
So I wonder if this could be over worried.
Even it is changed, (quite less probility), we still can user version
To distinguish them, just like arm,scpi , arm,scmi. Right?
You can still add and use a generic compatible, but does it hurt when you add
a SoC specific one that you *can* use should you have to?
Do you mean only change "fsl,scu-pd" to "fsl,imx8qxp-scu-pd"?
And keep the "fsl,imx-scu" as it is, right?
I guess I may be over-anxious, sorry for that if it's true.
quoted
quoted
quoted
quoted
quoted
+			compatible = "fsl,imx7ulp-lpuart";
+			compatible = "fsl,imx7ulp-lpi2c";
+			compatible = "fsl,imx7d-usdhc";
All these lack the most specific imx8qp compatible.
Adding them requires binding doc update as well.
S I suppose they could be added later when the QXP specific
features are really supported by the drivers.
Do you think it's okay?
Newer Kernels should work with older device trees, so once you roll
out these compatibles it's too late already.
The backwards compatible string is used to guarantee a basic function.
Even we add qxp specific compatible string later, it still can work
with backwards function. So I'm not quite get what the real problem is.
And this is the initial support that we don't expect the full features
with such an early device tree, right?
By not adding a SoC compatible you lose the possibility to add a SoC specific
fixup without changing the device tree or you have to work with quirks like:

https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felixir.
bootlin.com%2Flinux%2Flatest%2Fsource%2Fdrivers%2Fclocksource%2Ftimer-i
mx-gpt.c%23L521&amp;data=02%7C01%7Caisheng.dong%40nxp.com%7Ce0a
58f79a6b24fd248c308d6328251f0%7C686ea1d3bc2b4c6fa92cd99c5c301635
%7C0%7C0%7C636751932632219124&amp;sdata=P9ncjvrhubRASh%2BOu7X
%2FNbAtch3aSqvqqSVLSdb%2BQ2c%3D&amp;reserved=0

or

https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felixir.
bootlin.com%2Flinux%2Flatest%2Fsource%2Fdrivers%2Fspi%2Fspi-imx.c%23L1
182&amp;data=02%7C01%7Caisheng.dong%40nxp.com%7Ce0a58f79a6b24fd
248c308d6328251f0%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7
C636751932632219124&amp;sdata=blvN1%2FBbm7hZr7ddA7MAkIuqM5wk
0%2Bv3DvifalAWV0w%3D&amp;reserved=0

So far we have added new compatibles with each new SoC type for good
reasons, so why should we change this?
Yes, I fully understand. Just was wondering whether it can be done later.
But I think there's no bad to do it right now.
So I agree with it.
Thanks for the suggestion.

Regards
Dong Aisheng
Sascha

--
Pengutronix e.K.                           |
|
Industrial Linux Solutions                 |
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
pengutronix.de%2F&amp;data=02%7C01%7Caisheng.dong%40nxp.com%7Ce0
a58f79a6b24fd248c308d6328251f0%7C686ea1d3bc2b4c6fa92cd99c5c30163
5%7C0%7C0%7C636751932632219124&amp;sdata=Qd1KhPokzveWzr%2BBo
HX%2F9jZSx3oiEkR47w4ABA1Deqg%3D&amp;reserved=0  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
|
Amtsgericht Hildesheim, HRA 2686           | Fax:
+49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help