Message ID | 20191211131311.23661-1-geert+renesas@glider.be (mailing list archive) |
---|---|
State | Mainlined |
Commit | 83772e1b44231e2965d9375515e664fc3bc1247c |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | [PATCH/RFC] arm64: dts: renesas: Rename r8a7796* to r8a77960* | expand |
Hi Geert, Thank you for the patch. On Wed, Dec 11, 2019 at 02:13:11PM +0100, Geert Uytterhoeven wrote: > CONFIG_ARCH_R8A7796 was renamed to CONFIG_ARCH_R8A77960 in commit > 39e57e14d7eaf818 ("soc: renesas: Add ARCH_R8A77960 for existing R-Car > M3-W"), to avoid confusion between R-Car M3-W (R8A77960) and R-Car M3-W+ > (R8A77961). > > Rename the DTS files as well, for consistency. > > Note that DT binding headers, definitions, and compatible values were > not renamed, to preserve backward compatibility. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > I think it makes sense to do a similar but slightly different rename > dance for R-Car H3: > - Config symbols: > - CONFIG_ARCH_R8A7795 => CONFIG_ARCH_R8A77950 (ES1.x) > CONFIG_ARCH_R8A77951 (ES2.0+) > - CONFIG_PINCTRL_PFC_R8A7795 => CONFIG_PINCTRL_PFC_R8A77950 (ES1.0) > CONFIG_PINCTRL_PFC_R8A77951 (ES2.0+) > (auto-selected based on CONFIG_ARCH_R8A77950/CONFIG_ARCH_R8A77951) > - Drivers: > - drivers/pinctrl/sh-pfc/{pfc-r8a7795-es1.c => pfc-r8a77950.c} > - drivers/pinctrl/sh-pfc/{pfc-r8a7795.c => pfc-r8a77951.c} > - DTS: > - r8a7795-es1.dtsi => r8a77950.dtsi > - r8a7795.dtsi => r8a77951.dtsi > - r8a7795-es1-h3ulcb-kf.dts => r8a77950-h3ulcb-kf.dts > - r8a7795-es1-h3ulcb.dts => r8a77950-h3ulcb.dts > - r8a7795-es1-salvator-x.dts => r8a77950-salvator-x.dts > - r8a7795-h3ulcb-kf.dts => r8a77951-h3ulcb-kf.dts > - r8a7795-h3ulcb.dts => r8a77951-h3ulcb.dts > - r8a7795-salvator-x.dts => r8a77951-salvator-x.dts > - r8a7795-salvator-xs.dts => r8a77951-salvator-xs.dts > - Unchanged (auto-selected symbols, drivers and compatible values are > the same): > - CONFIG_CLK_R8A7795 > - CONFIG_SYSC_R8A7795 > - drivers/clk/renesas/r8a7795-cpg-mssr.c > - drivers/soc/renesas/r8a7795-sysc.c > - drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a7795.dts > > Advantages: > - Allow reducing kernel size (due to dropping pfc-r8a7795-es1, 47 KiB) > by not enabling support for R-Car H3 ES1.x, > - Closer correspondence with the R-Car Series, 3rd Generation > documentation, which uses 5-digit part numbers. > > Disadvantages: > - The DTB files are renamed. > > Thanks for your comments! I have no objection. > --- > arch/arm64/boot/dts/renesas/Makefile | 6 +++--- > .../{r8a7796-m3ulcb-kf.dts => r8a77960-m3ulcb-kf.dts} | 4 ++-- > .../dts/renesas/{r8a7796-m3ulcb.dts => r8a77960-m3ulcb.dts} | 4 ++-- > .../{r8a7796-salvator-x.dts => r8a77960-salvator-x.dts} | 4 ++-- > .../{r8a7796-salvator-xs.dts => r8a77960-salvator-xs.dts} | 4 ++-- > arch/arm64/boot/dts/renesas/{r8a7796.dtsi => r8a77960.dtsi} | 0 > 6 files changed, 11 insertions(+), 11 deletions(-) > rename arch/arm64/boot/dts/renesas/{r8a7796-m3ulcb-kf.dts => r8a77960-m3ulcb-kf.dts} (76%) > rename arch/arm64/boot/dts/renesas/{r8a7796-m3ulcb.dts => r8a77960-m3ulcb.dts} (90%) > rename arch/arm64/boot/dts/renesas/{r8a7796-salvator-x.dts => r8a77960-salvator-x.dts} (94%) > rename arch/arm64/boot/dts/renesas/{r8a7796-salvator-xs.dts => r8a77960-salvator-xs.dts} (94%) > rename arch/arm64/boot/dts/renesas/{r8a7796.dtsi => r8a77960.dtsi} (100%) > > diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile > index bc54041590a7ca05..6ba67ae59e052326 100644 > --- a/arch/arm64/boot/dts/renesas/Makefile > +++ b/arch/arm64/boot/dts/renesas/Makefile > @@ -9,9 +9,9 @@ dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-h3ulcb-kf.dtb > dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-salvator-xs.dtb > dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-salvator-x.dtb r8a7795-es1-h3ulcb.dtb > dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-h3ulcb-kf.dtb > -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb > -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-m3ulcb-kf.dtb > -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-salvator-xs.dtb > +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-salvator-x.dtb r8a77960-m3ulcb.dtb > +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-m3ulcb-kf.dtb > +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-salvator-xs.dtb > dtb-$(CONFIG_ARCH_R8A77961) += r8a77961-salvator-xs.dtb > dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb > dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb > diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts > similarity index 76% > rename from arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts > rename to arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts > index 2df50eb11f165aac..611dd2d4fae98d29 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts > +++ b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts > @@ -6,11 +6,11 @@ > * Copyright (C) 2017 Cogent Embedded, Inc. > */ > > -#include "r8a7796-m3ulcb.dts" > +#include "r8a77960-m3ulcb.dts" > #include "ulcb-kf.dtsi" > > / { > - model = "Renesas M3ULCB Kingfisher board based on r8a7796"; > + model = "Renesas M3ULCB Kingfisher board based on r8a77960"; > compatible = "shimafuji,kingfisher", "renesas,m3ulcb", > "renesas,r8a7796"; > }; > diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts > similarity index 90% > rename from arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts > rename to arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts > index 9e4594c27fa6c553..d041042a56192ab2 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts > +++ b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts > @@ -7,11 +7,11 @@ > */ > > /dts-v1/; > -#include "r8a7796.dtsi" > +#include "r8a77960.dtsi" > #include "ulcb.dtsi" > > / { > - model = "Renesas M3ULCB board based on r8a7796"; > + model = "Renesas M3ULCB board based on r8a77960"; > compatible = "renesas,m3ulcb", "renesas,r8a7796"; > > memory@48000000 { > diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts > similarity index 94% > rename from arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts > rename to arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts > index de37e91e3b7ac31d..ecfbeafeaf367f15 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts > +++ b/arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts > @@ -6,11 +6,11 @@ > */ > > /dts-v1/; > -#include "r8a7796.dtsi" > +#include "r8a77960.dtsi" > #include "salvator-x.dtsi" > > / { > - model = "Renesas Salvator-X board based on r8a7796"; > + model = "Renesas Salvator-X board based on r8a77960"; > compatible = "renesas,salvator-x", "renesas,r8a7796"; > > memory@48000000 { > diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts > similarity index 94% > rename from arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts > rename to arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts > index a1cbfef2053fe408..249896a38fdcc7a8 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts > +++ b/arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts > @@ -6,11 +6,11 @@ > */ > > /dts-v1/; > -#include "r8a7796.dtsi" > +#include "r8a77960.dtsi" > #include "salvator-xs.dtsi" > > / { > - model = "Renesas Salvator-X 2nd version board based on r8a7796"; > + model = "Renesas Salvator-X 2nd version board based on r8a77960"; > compatible = "renesas,salvator-xs", "renesas,r8a7796"; > > memory@48000000 { > diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a77960.dtsi > similarity index 100% > rename from arch/arm64/boot/dts/renesas/r8a7796.dtsi > rename to arch/arm64/boot/dts/renesas/r8a77960.dtsi > -- > 2.17.1 >
Hi Geert, Thank you for your time and effort to decrease the chaos in the R-Car3 DTS jungle. Just one small comment. On Wed, Dec 11, 2019 at 02:13:11PM +0100, Geert Uytterhoeven wrote: > Disadvantages: > - The DTB files are renamed. This reminded me of a past contribution [*], where, based on feedback from Laurent and Simon, the decision was to avoid DTS renaming. Does this series mean that one day, given enough time and resources, we might also eliminate the "r8a779[5-6]" and "(h3|m3|m3n)" redundancy in the naming scheme of the ULCB DTS? (not that it bothers me much) PS: [Thinking out loud] Need to get prepared for using two versions of U-Boot scripts when switching between BSP and vanilla kernels on the r8a77960 targets. This will definitely add a tiny bit of overhead, but nevertheless it looks like an investment to me, the one which users will not regret (on the contrary, will be happy about) in some years from now. Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com> [*] https://patchwork.kernel.org/patch/10555955/
Hi Eugeniu, On Wed, Dec 11, 2019 at 8:52 PM Eugeniu Rosca <erosca@de.adit-jv.com> wrote: > On Wed, Dec 11, 2019 at 02:13:11PM +0100, Geert Uytterhoeven wrote: > > Disadvantages: > > - The DTB files are renamed. > > This reminded me of a past contribution [*], where, based on feedback > from Laurent and Simon, the decision was to avoid DTS renaming. Does > this series mean that one day, given enough time and resources, we > might also eliminate the "r8a779[5-6]" and "(h3|m3|m3n)" redundancy in > the naming scheme of the ULCB DTS? (not that it bothers me much) Thanks for reminding me! At that time, the rename was considered too intrusive, compared to the slim benefit. However, if we're renaming the files anyway, and thus causing a (temporary) inconvenience for the user, I think this is a good moment to get rid of the "(h3|m3|m3n)" redundancy in the DTS naming scheme (unfortunately we cannot do that for the "renesas,(h3|m3|m3n)ulcb" compatible values). Hence for R-Car H3, I will move forward the rename of the DTS files, so all renames happen in the same kernel release time frame. Regarding the R-Car V3HSK and V3MSK boards, dropping the "v3m" resp. "v3h" from r8a77970-v3msk.dts resp. r8a77980-v3hsk.dts is IMHO different: the boards are not called "sk", and are far from identical, unlike "ulcb" and "salvator-x(s)". Renesas has lots of "sk", "rsk", and "evm" boards. Let's hope they don't plan any unrelated "ulcb" boards... > PS: [Thinking out loud] Need to get prepared for using two versions of > U-Boot scripts when switching between BSP and vanilla kernels on the > r8a77960 targets. This will definitely add a tiny bit of overhead, but > nevertheless it looks like an investment to me, the one which users > will not regret (on the contrary, will be happy about) in some years > from now. I'm fully aware of that inconvenience. > Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com> Thank you! > [*] https://patchwork.kernel.org/patch/10555955/ Gr{oetje,eeting}s, Geert
diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index bc54041590a7ca05..6ba67ae59e052326 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -9,9 +9,9 @@ dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-h3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-salvator-x.dtb r8a7795-es1-h3ulcb.dtb dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-h3ulcb-kf.dtb -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-m3ulcb-kf.dtb -dtb-$(CONFIG_ARCH_R8A77960) += r8a7796-salvator-xs.dtb +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-salvator-x.dtb r8a77960-m3ulcb.dtb +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-m3ulcb-kf.dtb +dtb-$(CONFIG_ARCH_R8A77960) += r8a77960-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77961) += r8a77961-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts similarity index 76% rename from arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts rename to arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts index 2df50eb11f165aac..611dd2d4fae98d29 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts +++ b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb-kf.dts @@ -6,11 +6,11 @@ * Copyright (C) 2017 Cogent Embedded, Inc. */ -#include "r8a7796-m3ulcb.dts" +#include "r8a77960-m3ulcb.dts" #include "ulcb-kf.dtsi" / { - model = "Renesas M3ULCB Kingfisher board based on r8a7796"; + model = "Renesas M3ULCB Kingfisher board based on r8a77960"; compatible = "shimafuji,kingfisher", "renesas,m3ulcb", "renesas,r8a7796"; }; diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts similarity index 90% rename from arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts rename to arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts index 9e4594c27fa6c553..d041042a56192ab2 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts +++ b/arch/arm64/boot/dts/renesas/r8a77960-m3ulcb.dts @@ -7,11 +7,11 @@ */ /dts-v1/; -#include "r8a7796.dtsi" +#include "r8a77960.dtsi" #include "ulcb.dtsi" / { - model = "Renesas M3ULCB board based on r8a7796"; + model = "Renesas M3ULCB board based on r8a77960"; compatible = "renesas,m3ulcb", "renesas,r8a7796"; memory@48000000 { diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts similarity index 94% rename from arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts rename to arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts index de37e91e3b7ac31d..ecfbeafeaf367f15 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a77960-salvator-x.dts @@ -6,11 +6,11 @@ */ /dts-v1/; -#include "r8a7796.dtsi" +#include "r8a77960.dtsi" #include "salvator-x.dtsi" / { - model = "Renesas Salvator-X board based on r8a7796"; + model = "Renesas Salvator-X board based on r8a77960"; compatible = "renesas,salvator-x", "renesas,r8a7796"; memory@48000000 { diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts similarity index 94% rename from arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts rename to arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts index a1cbfef2053fe408..249896a38fdcc7a8 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts +++ b/arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts @@ -6,11 +6,11 @@ */ /dts-v1/; -#include "r8a7796.dtsi" +#include "r8a77960.dtsi" #include "salvator-xs.dtsi" / { - model = "Renesas Salvator-X 2nd version board based on r8a7796"; + model = "Renesas Salvator-X 2nd version board based on r8a77960"; compatible = "renesas,salvator-xs", "renesas,r8a7796"; memory@48000000 { diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a77960.dtsi similarity index 100% rename from arch/arm64/boot/dts/renesas/r8a7796.dtsi rename to arch/arm64/boot/dts/renesas/r8a77960.dtsi
CONFIG_ARCH_R8A7796 was renamed to CONFIG_ARCH_R8A77960 in commit 39e57e14d7eaf818 ("soc: renesas: Add ARCH_R8A77960 for existing R-Car M3-W"), to avoid confusion between R-Car M3-W (R8A77960) and R-Car M3-W+ (R8A77961). Rename the DTS files as well, for consistency. Note that DT binding headers, definitions, and compatible values were not renamed, to preserve backward compatibility. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- I think it makes sense to do a similar but slightly different rename dance for R-Car H3: - Config symbols: - CONFIG_ARCH_R8A7795 => CONFIG_ARCH_R8A77950 (ES1.x) CONFIG_ARCH_R8A77951 (ES2.0+) - CONFIG_PINCTRL_PFC_R8A7795 => CONFIG_PINCTRL_PFC_R8A77950 (ES1.0) CONFIG_PINCTRL_PFC_R8A77951 (ES2.0+) (auto-selected based on CONFIG_ARCH_R8A77950/CONFIG_ARCH_R8A77951) - Drivers: - drivers/pinctrl/sh-pfc/{pfc-r8a7795-es1.c => pfc-r8a77950.c} - drivers/pinctrl/sh-pfc/{pfc-r8a7795.c => pfc-r8a77951.c} - DTS: - r8a7795-es1.dtsi => r8a77950.dtsi - r8a7795.dtsi => r8a77951.dtsi - r8a7795-es1-h3ulcb-kf.dts => r8a77950-h3ulcb-kf.dts - r8a7795-es1-h3ulcb.dts => r8a77950-h3ulcb.dts - r8a7795-es1-salvator-x.dts => r8a77950-salvator-x.dts - r8a7795-h3ulcb-kf.dts => r8a77951-h3ulcb-kf.dts - r8a7795-h3ulcb.dts => r8a77951-h3ulcb.dts - r8a7795-salvator-x.dts => r8a77951-salvator-x.dts - r8a7795-salvator-xs.dts => r8a77951-salvator-xs.dts - Unchanged (auto-selected symbols, drivers and compatible values are the same): - CONFIG_CLK_R8A7795 - CONFIG_SYSC_R8A7795 - drivers/clk/renesas/r8a7795-cpg-mssr.c - drivers/soc/renesas/r8a7795-sysc.c - drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a7795.dts Advantages: - Allow reducing kernel size (due to dropping pfc-r8a7795-es1, 47 KiB) by not enabling support for R-Car H3 ES1.x, - Closer correspondence with the R-Car Series, 3rd Generation documentation, which uses 5-digit part numbers. Disadvantages: - The DTB files are renamed. Thanks for your comments! --- arch/arm64/boot/dts/renesas/Makefile | 6 +++--- .../{r8a7796-m3ulcb-kf.dts => r8a77960-m3ulcb-kf.dts} | 4 ++-- .../dts/renesas/{r8a7796-m3ulcb.dts => r8a77960-m3ulcb.dts} | 4 ++-- .../{r8a7796-salvator-x.dts => r8a77960-salvator-x.dts} | 4 ++-- .../{r8a7796-salvator-xs.dts => r8a77960-salvator-xs.dts} | 4 ++-- arch/arm64/boot/dts/renesas/{r8a7796.dtsi => r8a77960.dtsi} | 0 6 files changed, 11 insertions(+), 11 deletions(-) rename arch/arm64/boot/dts/renesas/{r8a7796-m3ulcb-kf.dts => r8a77960-m3ulcb-kf.dts} (76%) rename arch/arm64/boot/dts/renesas/{r8a7796-m3ulcb.dts => r8a77960-m3ulcb.dts} (90%) rename arch/arm64/boot/dts/renesas/{r8a7796-salvator-x.dts => r8a77960-salvator-x.dts} (94%) rename arch/arm64/boot/dts/renesas/{r8a7796-salvator-xs.dts => r8a77960-salvator-xs.dts} (94%) rename arch/arm64/boot/dts/renesas/{r8a7796.dtsi => r8a77960.dtsi} (100%)