ARM: shmobile: KZM9D Multiplatform update
Subsystems (6)
Magnus Damm
maintainercover ARM: shmobile: KZM9D Multiplatform update
ARM: shmobile: KZM9D Multiplatform update
[PATCH 01/05] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS [PATCH 02/05] ARM: shmobile: Use KZM9D without reference for multiplatform [PATCH 03/05] ARM: shmobile: Remove non-multiplatform KZM9D reference support [PATCH 04/05] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB [PATCH 05/05] ARM: shmobile: Remove KDM9D reference DTS
This series updates mach-shmobile and the KZM9D board code to propose a way forward for future CCF-enabled multiplatform board support.
With this series applied the following rules apply:
- CONFIG_ARCH_MULTIPLATFORM=y is used to enable multiplatform
- CONFIG_ARCH_SHMOBILE_MULTI=y is used in case of multiplatform build
- CONFIG_ARCH SHMOBILE=y is used in case of legacy non-multiplatform build
- CONFIG_MACH_KZM9D=y enables KZM9D board support regardless of multiplatform
- In case of multiplatform build board-kzm9d-reference.c is used
- In case of legacy non-multiplatform build board-kzm9d.c is used
- KZM9D reference can no longer be built for non-multiplatform
- CONFIG_MACH_KZM9D_REFERENCE actually no longer exists
- emev2-kzm9d-reference.dts has been removed, use emev2-kzm9d.dts instead
- The same emev2-kzm9d.dts is used regardless of kernel configuration
- emev2-kzm9d.dtb can be used with legacy non-multiplatform
- emev2-kzm9d.dtb can be used with multiplatform
In practice the above means that legacy board code users can keep on using existing emev2-kzm9d.dtb as-is, but when updating to multiplatform kernel the DTB needs to be updated as well and from that point the DTB needs to be updated whenever new hardware is added.
The above seems pretty straight forward from my point of view, so I propose that we follow the same style for future multiplatform board support.
Before merging this series I'd like to see Yoshii-san's CCF patches for KZM9D and EMEV2 to be finalized and picked up.
---
Written against renesas.git tag renesas-devel-20131001 and [PATCH 00/10] ARM: shmobile: r8a7791 SoC and Koelsch update V2 plus selected CCF patches from Yoshii-san.
arch/arm/boot/dts/Makefile | 3 - arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 ------------------------ arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++ arch/arm/mach-shmobile/Kconfig | 22 --------- arch/arm/mach-shmobile/Makefile | 5 +- arch/arm/mach-shmobile/Makefile.boot | 1 arch/arm/mach-shmobile/board-kzm9d-reference.c | 1
Magnus Damm
maintainerPATCH 1/5 ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS
From: Magnus Damm <[email protected]>
Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used.
---
arch/arm/boot/dts/emev2-kzm9d.dts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)
arch/arm/boot/dts/emev2-kzm9d.dts +32 -1
@@ -1,7 +1,7 @@ /* * Device Tree Source for the KZM9D board * - * Copyright (C) 2012 Renesas Solutions Corp. + * Copyright (C) 2013 Renesas Solutions Corp. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any
@@ -23,4 +23,35 @@ chosen { bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; }; + + reg_1p8v: regulator at 0 { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_3p3v: regulator at 1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + lan9220 at 20000000 { + compatible = "smsc,lan9220", "smsc,lan9115"; + reg = <0x20000000 0x10000>; + phy-mode = "mii"; + interrupt-parent = <&gpio0>; + interrupts = <1 1>; /* active high */ + reg-io-width = <4>; + smsc,irq-active-high; + smsc,irq-push-pull; + vddvario-supply = <®_1p8v>; + vdd33a-supply = <®_3p3v>; + }; };
PATCH 1/5 ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS
Quoted 8 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used.
Quoted 5 lines
Signed-off-by Magnus Damm <[email protected]>---
arch/arm/boot/dts/emev2-kzm9d.dts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)
Thanks, I have queued this up in the dt3 branch.
It should make it into v3.13 but if not I'll rename the branch dt after rebasing it on v3.13-rcX which will then be targeted at v3.14.
PATCH 1/5 ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS
Hi Simon,
Quoted 9 lines · On Thursday 03 October 2013 12:49:48 Simon Horman wrote:
Quoted 8 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Magnus Damm <[email protected]>---
arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)Thanks, I have queued this up in the dt3 branch.
Splitting the series across two branches would result in bisection breakages I'm afraid. Would it be an issue to queue all patches to a single branch ?
Quoted 2 lines
It should make it into v3.13 but if not I'll rename the branch dt after rebasing it on v3.13-rcX which will then be targeted at v3.14.
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 1/5 ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS
Quoted 15 lines · Laurent Pinchart
Hi Simon,
Quoted 12 lines · On Thursday 03 October 2013 12:49:48 Simon Horman wrote:
Quoted 11 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used.
Signed-off-by Magnus Damm <[email protected]>---
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)Thanks, I have queued this up in the dt3 branch.
Splitting the series across two branches would result in bisection breakages I'm afraid. Would it be an issue to queue all patches to a single branch ?
Sure, I will re-arrange things accordingly.
Magnus Damm
maintainerPATCH 2/5 ARM: shmobile: Use KZM9D without reference for multiplatform
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Change the multiplatform kconfig bits for KZM9D from CONFIG_MACH_KZM9D_REFERENCE into CONFIG_MACH_KZM9D to match the non-multiplatform case.
---
arch/arm/mach-shmobile/Kconfig | 10 ++-------- arch/arm/mach-shmobile/Makefile | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-)
arch/arm/mach-shmobile/Kconfig +2 -8
@@ -22,16 +22,10 @@ config ARCH_EMEV2 comment "SH-Mobile Board Type" -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" +config MACH_KZM9D + bool "KZM9D board" depends on ARCH_EMEV2 select REGULATOR_FIXED_VOLTAGE if REGULATOR - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers comment "SH-Mobile System Configuration" endif
arch/arm/mach-shmobile/Makefile +4 -0
@@ -52,6 +52,9 @@ obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740 obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o # Board objects +ifdef CONFIG_ARCH_SHMOBILE_MULTI +obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o +else obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o
@@ -68,6 +71,7 @@ obj-$(CONFIG_MACH_KZM9D) += board-kzm9d. obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o +endif # Framework support obj-$(CONFIG_SMP) += $(smp-y)
PATCH 2/5 ARM: shmobile: Use KZM9D without reference for multiplatform
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Change the multiplatform kconfig bits for KZM9D from
CONFIG_MACH_KZM9D_REFERENCEintoCONFIG_MACH_KZM9Dto match the non-multiplatform case.
Quoted 6 lines
Signed-off-by Magnus Damm <[email protected]>---
arch/arm/mach-shmobile/Kconfig | 10 ++-------- arch/arm/mach-shmobile/Makefile | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-)
Thanks, I have queued this up in the boards3 branch.
It should make it into v3.13 but if not I'll rename the branch soc after rebasing it on v3.13-rcX which will then be targeted at v3.14.
Magnus Damm
maintainerPATCH 3/5 ARM: shmobile: Remove non-multiplatform KZM9D reference support
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Now when CCF is supported remove the legacy KZM9D reference Kconfig bits CONFIG_MACH_KZM9D_REFERENCE for the non-multiplatform case.
Starting from this commit KZM9D board support is always enabled via CONFIG_MACH_KZM9D, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-kzm9d.c and board-kzm9d-reference.c
The file board-kzm9d-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used.
---
arch/arm/mach-shmobile/Kconfig | 12 ------------ arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 3 files changed, 14 deletions(-)
arch/arm/mach-shmobile/Kconfig +0 -12
@@ -226,18 +226,6 @@ config MACH_KZM9D select REGULATOR_FIXED_VOLTAGE if REGULATOR select USE_OF -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" - depends on ARCH_EMEV2 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_KZM9G bool "KZM-A9-GT board" depends on ARCH_SH73A0
arch/arm/mach-shmobile/Makefile +0 -1
@@ -68,7 +68,6 @@ obj-$(CONFIG_MACH_ARMADILLO800EVA) += bo obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o -obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o endif
arch/arm/mach-shmobile/Makefile.boot +0 -1
@@ -8,7 +8,6 @@ loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 -loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000
PATCH 3/5 ARM: shmobile: Remove non-multiplatform KZM9D reference support
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Now when CCF is supported remove the legacy KZM9D reference
KconfigbitsCONFIG_MACH_KZM9D_REFERENCEfor the non-multiplatform case.
Quoted 8 lines
Starting from this commit KZM9D board support is always enabled via
CONFIG_MACH_KZM9D, andCONFIG_ARCH_MULTIPLATFORMis used to select betweenboard-kzm9d.candboard-kzm9d-reference.cThe file
board-kzm9d-reference.ccan no longer be used together with the legacy sh-clk clock framework, instead CCF is used.Signed-off-by Magnus Damm <[email protected]>
Thanks, I have queued this up in the boards3 branch.
It should make it into v3.13 but if not I'll rename the branch soc after rebasing it on v3.13-rcX which will then be targeted at v3.14.
There was some fuzz when applying each of the hunks of the patch. I have queued up the following, please check that it is correct.
From: Magnus Damm <[email protected]>
[PATCH] ARM: shmobile: Remove non-multiplatform KZM9D reference support
Now when CCF is supported remove the legacy KZM9D reference Kconfig bits CONFIG_MACH_KZM9D_REFERENCE for the non-multiplatform case.
Starting from this commit KZM9D board support is always enabled via CONFIG_MACH_KZM9D, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-kzm9d.c and board-kzm9d-reference.c
The file board-kzm9d-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used.
--- arch/arm/mach-shmobile/Kconfig | 12 ------------ arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 3 files changed, 14 deletions(-)
arch/arm/mach-shmobile/Kconfig +0 -12
@@ -237,18 +237,6 @@ config MACH_KZM9D select REGULATOR_FIXED_VOLTAGE if REGULATOR select USE_OF -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" - depends on ARCH_EMEV2 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_KZM9G bool "KZM-A9-GT board" depends on ARCH_SH73A0
arch/arm/mach-shmobile/Makefile +0 -1
@@ -71,7 +71,6 @@ obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o -obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o endif
arch/arm/mach-shmobile/Makefile.boot +0 -1
@@ -9,7 +9,6 @@ loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 -loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000
Signature · 1 line
1.8.4
Magnus Damm
maintainerPATCH 4/5 ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Let the multiplatform KZM9D support boot with the legacy DTS for KZM9D as well as the KZM9D reference DTS.
---
arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-shmobile/board-kzm9d-reference.c +1 -0
@@ -33,6 +33,7 @@ static void __init kzm9d_add_standard_de }static const char *kzm9d_boards_compat_dt[]__initdata = { +"renesas,kzm9d" ,"renesas,kzm9d-reference" ,NULL , };
PATCH 4/5 ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Let the multiplatform KZM9D support boot with the legacy DTS for KZM9D as well as the KZM9D reference DTS.
Signed-off-by Magnus Damm <[email protected]>
Thanks, I have queued this up in the boards3 branch.
It should make it into v3.13 but if not I'll rename the branch soc after rebasing it on v3.13-rcX which will then be targeted at v3.14.
Magnus Damm
maintainerPATCH 5/5 ARM: shmobile: Remove KDM9D reference DTS
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Now when the legacy DTS file emev2-kzm9d.dts can be used with board-kzm9d.c and board-kzm9d-reference.c proceed with removing emev-kzm9d-reference.dts.
---
arch/arm/boot/dts/Makefile | 3 - arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 --------------------------- 2 files changed, 1 insertion(+), 59 deletions(-)
arch/arm/boot/dts/Makefile +1 -2
@@ -195,7 +195,6 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball ste-ccu9540.dtb dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ - emev2-kzm9d-reference.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \
@@ -210,7 +209,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm r8a73a4-ape6evm.dtb \ r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb -dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb +dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ socfpga_vt.dtb dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \
arch/arm/boot/dts/emev2-kzm9d-reference.dts deleted +0 -57
57 lines not on this page · raw message
PATCH 5/5 ARM: shmobile: Remove KDM9D reference DTS
Quoted 7 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Now when the legacy DTS file
emev2-kzm9d.dtscan be used withboard-kzm9d.candboard-kzm9d-reference.cproceed with removingemev-kzm9d-reference.dts.Signed-off-by Magnus Damm <[email protected]>
Thanks, I have queued this up in the dt3 branch.
It should make it into v3.13 but if not I'll rename the branch dt after rebasing it on v3.13-rcX which will then be targeted at v3.14.
cover ARM: shmobile: KZM9D Multiplatform update
In reply to Magnus DammHi Magnus,
Thank you for the patches.
Quoted 8 lines · On Tuesday 01 October 2013 19:32:55 Magnus Damm wrote:
ARM: shmobile: KZM9D Multiplatform update
[PATCH 01/05] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS [PATCH 02/05] ARM: shmobile: Use KZM9D without reference for multiplatform [PATCH 03/05] ARM: shmobile: Remove non-multiplatform KZM9D reference support
[PATCH 04/05] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB [PATCH 05/05] ARM: shmobile: Remove KDM9D reference DTS
I've reviewed the patches and they look fine to me.
Does this call for the following patch on top of 05/05 ?
Quoted 1 line
From
b167bcd3182f0310b91e502672547e58addf17efMon Sep 17 00:00:00 2001
From: Laurent Pinchart <[email protected]>
Date: Fri, 4 Oct 2013 09:44:34 +0200
Subject: [PATCH] ARM: shmobile: kzm9d-reference: Drop -reference compatible
string
The only system compatible string used for the KZM9D board is "renesas,kzm9d". Drop support for the old "renesas,kzm9d-reference" compatible string.
--- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-shmobile/board-kzm9d-reference.c +0 -1
@@ -34,7 +34,6 @@ static void __init kzm9d_add_standard_devices(void)static const char *kzm9d_boards_compat_dt[]__initdata = {"renesas,kzm9d" , -"renesas,kzm9d-reference" ,NULL , };
Quoted 45 lines
This series updates mach-shmobile and the KZM9D board code to propose a way forward for future CCF-enabled multiplatform board support.
With this series applied the following rules apply:
-
CONFIG_ARCH_MULTIPLATFORM=yis used to enable multiplatform
-CONFIG_ARCH_SHMOBILE_MULTI=yis used in case of multiplatform build
-CONFIG_ARCHSHMOBILE=y is used in case of legacy non-multiplatform build
-CONFIG_MACH_KZM9D=yenables KZM9D board support regardless of
multiplatform
- In case of multiplatform buildboard-kzm9d-reference.cis used
- In case of legacy non-multiplatform buildboard-kzm9d.cis used
- KZM9D reference can no longer be built for non-multiplatform
-CONFIG_MACH_KZM9D_REFERENCEactually no longer exists
-emev2-kzm9d-reference.dtshas been removed, useemev2-kzm9d.dtsinstead
- The sameemev2-kzm9d.dtsis used regardless of kernel configuration
- emev2-kzm9d.dtb can be used with legacy non-multiplatform
- emev2-kzm9d.dtb can be used with multiplatformIn practice the above means that legacy board code users can keep on using existing emev2-kzm9d.dtb as-is, but when updating to multiplatform kernel the DTB needs to be updated as well and from that point the DTB needs to be updated whenever new hardware is added.
The above seems pretty straight forward from my point of view, so I propose that we follow the same style for future multiplatform board support.
Before merging this series I'd like to see Yoshii-san's CCF patches for KZM9D and EMEV2 to be finalized and picked up.
Signed-off-by Magnus Damm <[email protected]>---
Written against renesas.git tag renesas-devel-20131001 and [PATCH 00/10] ARM: shmobile: r8a7791 SoC and Koelsch update V2 plus selected CCF patches from Yoshii-san.
arch/arm/boot/dts/Makefile | 3 - arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 --------------------- arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++ arch/arm/mach-shmobile/Kconfig | 22 --------- arch/arm/mach-shmobile/Makefile | 5 +- arch/arm/mach-shmobile/Makefile.boot | 1 arch/arm/mach-shmobile/board-kzm9d-reference.c | 1
Signature · 3 lines
Regards, Laurent Pinchart
cover ARM: shmobile: KZM9D Multiplatform update
Quoted 40 lines · Laurent Pinchart
Hi Magnus,
Thank you for the patches.
Quoted 8 lines · On Tuesday 01 October 2013 19:32:55 Magnus Damm wrote:
ARM: shmobile: KZM9D Multiplatform update
[PATCH 01/05] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS [PATCH 02/05] ARM: shmobile: Use KZM9D without reference for multiplatform [PATCH 03/05] ARM: shmobile: Remove non-multiplatform KZM9D reference support
[PATCH 04/05] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB [PATCH 05/05] ARM: shmobile: Remove KDM9D reference DTSI've reviewed the patches and they look fine to me.
Acked-by Laurent Pinchart <[email protected]>Does this call for the following patch on top of 05/05 ?
Quoted 1 line
From
b167bcd3182f0310b91e502672547e58addf17efMon Sep 17 00:00:00 2001From: Laurent Pinchart <[email protected]>
Date: Fri, 4 Oct 2013 09:44:34 +0200
Subject: [PATCH] ARM: shmobile: kzm9d-reference: Drop -reference compatible
stringThe only system compatible string used for the KZM9D board is "renesas,kzm9d". Drop support for the old "renesas,kzm9d-reference" compatible string.
Signed-off-by Laurent Pinchart <[email protected]>--- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-0
arch/arm/mach-shmobile/board-kzm9d-reference.c static void __init kzm9d_add_standard_devices(void) · line 38
Quoted 6 lines
arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-1@@ -34,7 +34,6 @@ static void __init kzm9d_add_standard_devices(void)static const char *kzm9d_boards_compat_dt[]__initdata = {"renesas,kzm9d" , -"renesas,kzm9d-reference" ,NULL , };
In theory no because someone might be using a DTS with renesas,kzm9d-reference in the wild. In practice I don't think that is the case so I feel ok about this patch. Magnus, what do you think?
Magnus Damm
maintainercover ARM: shmobile: KZM9D Multiplatform update
Quoted 42 lines · Simon Horman
Quoted 41 lines · Laurent Pinchart
Hi Magnus,
Thank you for the patches.
Quoted 8 lines · On Tuesday 01 October 2013 19:32:55 Magnus Damm wrote:
ARM: shmobile: KZM9D Multiplatform update
[PATCH 01/05] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS [PATCH 02/05] ARM: shmobile: Use KZM9D without reference for multiplatform [PATCH 03/05] ARM: shmobile: Remove non-multiplatform KZM9D reference support
[PATCH 04/05] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB [PATCH 05/05] ARM: shmobile: Remove KDM9D reference DTSI've reviewed the patches and they look fine to me.
Acked-by Laurent Pinchart <[email protected]>Does this call for the following patch on top of 05/05 ?
Quoted 1 line
From
b167bcd3182f0310b91e502672547e58addf17efMon Sep 17 00:00:00 2001From: Laurent Pinchart <[email protected]>
Date: Fri, 4 Oct 2013 09:44:34 +0200
Subject: [PATCH] ARM: shmobile: kzm9d-reference: Drop -reference compatible
stringThe only system compatible string used for the KZM9D board is "renesas,kzm9d". Drop support for the old "renesas,kzm9d-reference" compatible string.
Signed-off-by Laurent Pinchart <[email protected]>--- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-0@@ -34,7 +34,6 @@ static void __init kzm9d_add_standard_devices(void)
Quoted 10 lines
arch/arm/mach-shmobile/board-kzm9d-reference.c static void __init kzm9d_add_standard_devices(void) · line 38
Quoted 5 lines
arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-1static const char *kzm9d_boards_compat_dt[]__initdata = {"renesas,kzm9d" , -"renesas,kzm9d-reference" ,NULL , };In theory no because someone might be using a DTS with renesas,kzm9d-reference in the wild. In practice I don't think that is the case so I feel ok about this patch. Magnus, what do you think?
Hi Simon and Laurent,
Thanks for the patch and the comments. I agree with Laurent that this patch series isn't complete without that patch, but at the same time I agree with Simon about current state. =) So I propose that this patch should be merged later on - in say half a year or so.
Perhaps we should aim that the kernel used for the LTSI after LTSI-3.10 should include this fix?
Another activity we need to deal with in the future is to depreciate the non-multiplatform board support. It's probably good to hear from the ARM SoC guys what kind of schedule they have in mind for the common ARM architecture bits.
Cheers,
/ magnus
cover ARM: shmobile: KZM9D Multiplatform update
Quoted 54 lines · Magnus Damm
Quoted 42 lines · Simon Horman
Quoted 41 lines · Laurent Pinchart
Hi Magnus,
Thank you for the patches.
Quoted 8 lines · On Tuesday 01 October 2013 19:32:55 Magnus Damm wrote:
ARM: shmobile: KZM9D Multiplatform update
[PATCH 01/05] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS [PATCH 02/05] ARM: shmobile: Use KZM9D without reference for multiplatform [PATCH 03/05] ARM: shmobile: Remove non-multiplatform KZM9D reference support
[PATCH 04/05] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB [PATCH 05/05] ARM: shmobile: Remove KDM9D reference DTSI've reviewed the patches and they look fine to me.
Acked-by Laurent Pinchart <[email protected]>Does this call for the following patch on top of 05/05 ?
Quoted 1 line
From
b167bcd3182f0310b91e502672547e58addf17efMon Sep 17 00:00:00 2001From: Laurent Pinchart <[email protected]>
Date: Fri, 4 Oct 2013 09:44:34 +0200
Subject: [PATCH] ARM: shmobile: kzm9d-reference: Drop -reference compatible
stringThe only system compatible string used for the KZM9D board is "renesas,kzm9d". Drop support for the old "renesas,kzm9d-reference" compatible string.
Signed-off-by Laurent Pinchart <[email protected]>--- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-0@@ -34,7 +34,6 @@ static void __init kzm9d_add_standard_devices(void)Quoted 10 lines
arch/arm/mach-shmobile/board-kzm9d-reference.c static void __init kzm9d_add_standard_devices(void) · line 38
Quoted 5 lines
arch/arm/mach-shmobile/board-kzm9d-reference.c +0
-1static const char *kzm9d_boards_compat_dt[]__initdata = {"renesas,kzm9d" , -"renesas,kzm9d-reference" ,NULL , };In theory no because someone might be using a DTS with renesas,kzm9d-reference in the wild. In practice I don't think that is the case so I feel ok about this patch. Magnus, what do you think?
Quoted 6 lines
Hi Simon and Laurent,
Thanks for the patch and the comments. I agree with Laurent that this patch series isn't complete without that patch, but at the same time I agree with Simon about current state. =) So I propose that this patch should be merged later on - in say half a year or so.
Sure. I will leave it hanging around in patchwork to try and remind us (me) to do something with it later.
Quoted 2 lines
Perhaps we should aim that the kernel used for the LTSI after LTSI-3.10 should include this fix?
Sounds reasonable.
Quoted 4 lines
Another activity we need to deal with in the future is to depreciate the non-multiplatform board support. It's probably good to hear from the ARM SoC guys what kind of schedule they have in mind for the common ARM architecture bits.
Perhaps a discussion for another thread?