[PATCH 1/3] arm64: dts: imx8mm: Deduplicate PCIe clock-names property
Marek Vasut
marex at denx.de
Fri Nov 11 06:03:44 PST 2022
On 11/11/22 07:33, Shawn Guo wrote:
> On Wed, Nov 02, 2022 at 10:22:46PM +0100, Marek Vasut wrote:
>> Move the PCIe clock-names property from various DTs into SoC dtsi to
>> reduce duplication. In case of a couple of boards, reorder the clock
>> so they match the order in yaml DT bindings.
>>
>> Signed-off-by: Marek Vasut <marex at denx.de>
>> ---
>> Cc: Fabio Estevam <festevam at denx.de>
>> Cc: Peng Fan <peng.fan at nxp.com>
>> Cc: Richard Zhu <hongxing.zhu at nxp.com>
>> Cc: Shawn Guo <shawnguo at kernel.org>
>> Cc: NXP Linux Team <linux-imx at nxp.com>
>> To: linux-arm-kernel at lists.infradead.org
>> ---
>> arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-innocomm-wb15.dtsi | 1 -
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 6 +++---
>> arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7903.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 5 ++---
>> arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 +
>> 15 files changed, 28 insertions(+), 40 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi
>> index 03266bd90a06b..f3cb7e27799e7 100644
>> --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi
>> +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi
>> @@ -241,9 +241,8 @@ &pcie0 {
>> pinctrl-names = "default";
>> pinctrl-0 = <&pinctrl_pcie0>;
>> reset-gpio = <&gpio4 21 GPIO_ACTIVE_LOW>;
>> - clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>,
>> - <&pcie0_refclk_gated>;
>> - clock-names = "pcie", "pcie_aux", "pcie_bus";
>> + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk_gated>,
>> + <&clk IMX8MM_CLK_PCIE1_AUX>;
>
> I'm not fond of it. I would rather keep `clocks` and `clock-names`
> appear as couple to ease the cross-checking.
The downside of such mass duplication is the arbitrarily different
ordering of clock/clock-names in some of those DTs, which needs to be
corrected for dtbs_check validation to pass anyway. Since the
clock-names are then identical across the SoC DTs, no need to duplicate
that property anymore, one can simply open imx8m*.dtsi .
Note that there is a V2 of this series.
More information about the linux-arm-kernel
mailing list