devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories
@ 2014-12-22 23:27 Andrew Bresticker
  2014-12-22 23:27 ` [PATCH 2/2] MIPS: Add dtbs_install target Andrew Bresticker
       [not found] ` <1419290863-19788-1-git-send-email-abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Bresticker @ 2014-12-22 23:27 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Andrew Bresticker

Move the MIPS device-trees into the appropriate vendor sub-directories.

Signed-off-by: Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
---
 arch/mips/Makefile                                 |  2 +-
 arch/mips/boot/dts/Makefile                        | 33 ++++++++--------------
 arch/mips/boot/dts/bcm/Makefile                    |  9 ++++++
 arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi          |  0
 arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts       |  0
 arch/mips/boot/dts/cavium-octeon/Makefile          |  9 ++++++
 .../boot/dts/{ => cavium-octeon}/octeon_3xxx.dts   |  0
 .../boot/dts/{ => cavium-octeon}/octeon_68xx.dts   |  0
 arch/mips/boot/dts/lantiq/Makefile                 |  9 ++++++
 arch/mips/boot/dts/{ => lantiq}/danube.dtsi        |  0
 arch/mips/boot/dts/{ => lantiq}/easy50712.dts      |  0
 arch/mips/boot/dts/mti/Makefile                    |  9 ++++++
 arch/mips/boot/dts/{ => mti}/sead3.dts             |  0
 arch/mips/boot/dts/netlogic/Makefile               | 12 ++++++++
 arch/mips/boot/dts/{ => netlogic}/xlp_evp.dts      |  0
 arch/mips/boot/dts/{ => netlogic}/xlp_fvp.dts      |  0
 arch/mips/boot/dts/{ => netlogic}/xlp_gvp.dts      |  0
 arch/mips/boot/dts/{ => netlogic}/xlp_svp.dts      |  0
 arch/mips/boot/dts/ralink/Makefile                 | 12 ++++++++
 arch/mips/boot/dts/{ => ralink}/mt7620a.dtsi       |  0
 arch/mips/boot/dts/{ => ralink}/mt7620a_eval.dts   |  0
 arch/mips/boot/dts/{ => ralink}/rt2880.dtsi        |  0
 arch/mips/boot/dts/{ => ralink}/rt2880_eval.dts    |  0
 arch/mips/boot/dts/{ => ralink}/rt3050.dtsi        |  0
 arch/mips/boot/dts/{ => ralink}/rt3052_eval.dts    |  0
 arch/mips/boot/dts/{ => ralink}/rt3883.dtsi        |  0
 arch/mips/boot/dts/{ => ralink}/rt3883_eval.dts    |  0
 27 files changed, 73 insertions(+), 22 deletions(-)
 create mode 100644 arch/mips/boot/dts/bcm/Makefile
 rename arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi (100%)
 rename arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts (100%)
 create mode 100644 arch/mips/boot/dts/cavium-octeon/Makefile
 rename arch/mips/boot/dts/{ => cavium-octeon}/octeon_3xxx.dts (100%)
 rename arch/mips/boot/dts/{ => cavium-octeon}/octeon_68xx.dts (100%)
 create mode 100644 arch/mips/boot/dts/lantiq/Makefile
 rename arch/mips/boot/dts/{ => lantiq}/danube.dtsi (100%)
 rename arch/mips/boot/dts/{ => lantiq}/easy50712.dts (100%)
 create mode 100644 arch/mips/boot/dts/mti/Makefile
 rename arch/mips/boot/dts/{ => mti}/sead3.dts (100%)
 create mode 100644 arch/mips/boot/dts/netlogic/Makefile
 rename arch/mips/boot/dts/{ => netlogic}/xlp_evp.dts (100%)
 rename arch/mips/boot/dts/{ => netlogic}/xlp_fvp.dts (100%)
 rename arch/mips/boot/dts/{ => netlogic}/xlp_gvp.dts (100%)
 rename arch/mips/boot/dts/{ => netlogic}/xlp_svp.dts (100%)
 create mode 100644 arch/mips/boot/dts/ralink/Makefile
 rename arch/mips/boot/dts/{ => ralink}/mt7620a.dtsi (100%)
 rename arch/mips/boot/dts/{ => ralink}/mt7620a_eval.dts (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt2880.dtsi (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt2880_eval.dts (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt3050.dtsi (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt3052_eval.dts (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt3883.dtsi (100%)
 rename arch/mips/boot/dts/{ => ralink}/rt3883_eval.dts (100%)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 37fce70..9c4b9c8 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -354,7 +354,7 @@ core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/
 
 PHONY += dtbs
 dtbs: scripts
-	$(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs
+	$(Q)$(MAKE) $(build)=arch/mips/boot/dts
 
 archprepare:
 ifdef CONFIG_MIPS32_N32
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index 4f49fa4..90d1fbc 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -1,21 +1,12 @@
-dtb-$(CONFIG_BCM3384)			+= bcm93384wvg.dtb
-dtb-$(CONFIG_CAVIUM_OCTEON_SOC)		+= octeon_3xxx.dtb octeon_68xx.dtb
-dtb-$(CONFIG_DT_EASY50712)		+= easy50712.dtb
-dtb-$(CONFIG_DT_XLP_EVP)		+= xlp_evp.dtb
-dtb-$(CONFIG_DT_XLP_SVP)		+= xlp_svp.dtb
-dtb-$(CONFIG_DT_XLP_FVP)		+= xlp_fvp.dtb
-dtb-$(CONFIG_DT_XLP_GVP)		+= xlp_gvp.dtb
-dtb-$(CONFIG_DTB_RT2880_EVAL)		+= rt2880_eval.dtb
-dtb-$(CONFIG_DTB_RT305X_EVAL)		+= rt3052_eval.dtb
-dtb-$(CONFIG_DTB_RT3883_EVAL)		+= rt3883_eval.dtb
-dtb-$(CONFIG_DTB_MT7620A_EVAL)		+= mt7620a_eval.dtb
-dtb-$(CONFIG_MIPS_SEAD3)		+= sead3.dtb
-
-obj-y		+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
-
-targets		+= dtbs
-targets		+= $(dtb-y)
-
-dtbs: $(addprefix $(obj)/, $(dtb-y))
-
-clean-files	+= *.dtb *.dtb.S
+dts-dirs	+= bcm
+dts-dirs	+= cavium-octeon
+dts-dirs	+= lantiq
+dts-dirs	+= mti
+dts-dirs	+= netlogic
+dts-dirs	+= ralink
+
+obj-y		:= $(addsuffix /, $(dts-dirs))
+
+always		:= $(dtb-y)
+subdir-y	:= $(dts-dirs)
+clean-files	:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/bcm/Makefile b/arch/mips/boot/dts/bcm/Makefile
new file mode 100644
index 0000000..a353d4e
--- /dev/null
+++ b/arch/mips/boot/dts/bcm/Makefile
@@ -0,0 +1,9 @@
+dtb-$(CONFIG_BCM3384)		+= bcm93384wvg.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/bcm3384.dtsi b/arch/mips/boot/dts/bcm/bcm3384.dtsi
similarity index 100%
rename from arch/mips/boot/dts/bcm3384.dtsi
rename to arch/mips/boot/dts/bcm/bcm3384.dtsi
diff --git a/arch/mips/boot/dts/bcm93384wvg.dts b/arch/mips/boot/dts/bcm/bcm93384wvg.dts
similarity index 100%
rename from arch/mips/boot/dts/bcm93384wvg.dts
rename to arch/mips/boot/dts/bcm/bcm93384wvg.dts
diff --git a/arch/mips/boot/dts/cavium-octeon/Makefile b/arch/mips/boot/dts/cavium-octeon/Makefile
new file mode 100644
index 0000000..5b99c40
--- /dev/null
+++ b/arch/mips/boot/dts/cavium-octeon/Makefile
@@ -0,0 +1,9 @@
+dtb-$(CONFIG_CAVIUM_OCTEON_SOC)	+= octeon_3xxx.dtb octeon_68xx.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
similarity index 100%
rename from arch/mips/boot/dts/octeon_3xxx.dts
rename to arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
diff --git a/arch/mips/boot/dts/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
similarity index 100%
rename from arch/mips/boot/dts/octeon_68xx.dts
rename to arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
diff --git a/arch/mips/boot/dts/lantiq/Makefile b/arch/mips/boot/dts/lantiq/Makefile
new file mode 100644
index 0000000..0906c62
--- /dev/null
+++ b/arch/mips/boot/dts/lantiq/Makefile
@@ -0,0 +1,9 @@
+dtb-$(CONFIG_DT_EASY50712)	+= easy50712.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi
similarity index 100%
rename from arch/mips/boot/dts/danube.dtsi
rename to arch/mips/boot/dts/lantiq/danube.dtsi
diff --git a/arch/mips/boot/dts/easy50712.dts b/arch/mips/boot/dts/lantiq/easy50712.dts
similarity index 100%
rename from arch/mips/boot/dts/easy50712.dts
rename to arch/mips/boot/dts/lantiq/easy50712.dts
diff --git a/arch/mips/boot/dts/mti/Makefile b/arch/mips/boot/dts/mti/Makefile
new file mode 100644
index 0000000..ef1f3db
--- /dev/null
+++ b/arch/mips/boot/dts/mti/Makefile
@@ -0,0 +1,9 @@
+dtb-$(CONFIG_MIPS_SEAD3)	+= sead3.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/sead3.dts b/arch/mips/boot/dts/mti/sead3.dts
similarity index 100%
rename from arch/mips/boot/dts/sead3.dts
rename to arch/mips/boot/dts/mti/sead3.dts
diff --git a/arch/mips/boot/dts/netlogic/Makefile b/arch/mips/boot/dts/netlogic/Makefile
new file mode 100644
index 0000000..e126cd3
--- /dev/null
+++ b/arch/mips/boot/dts/netlogic/Makefile
@@ -0,0 +1,12 @@
+dtb-$(CONFIG_DT_XLP_EVP)	+= xlp_evp.dtb
+dtb-$(CONFIG_DT_XLP_SVP)	+= xlp_svp.dtb
+dtb-$(CONFIG_DT_XLP_FVP)	+= xlp_fvp.dtb
+dtb-$(CONFIG_DT_XLP_GVP)	+= xlp_gvp.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/xlp_evp.dts b/arch/mips/boot/dts/netlogic/xlp_evp.dts
similarity index 100%
rename from arch/mips/boot/dts/xlp_evp.dts
rename to arch/mips/boot/dts/netlogic/xlp_evp.dts
diff --git a/arch/mips/boot/dts/xlp_fvp.dts b/arch/mips/boot/dts/netlogic/xlp_fvp.dts
similarity index 100%
rename from arch/mips/boot/dts/xlp_fvp.dts
rename to arch/mips/boot/dts/netlogic/xlp_fvp.dts
diff --git a/arch/mips/boot/dts/xlp_gvp.dts b/arch/mips/boot/dts/netlogic/xlp_gvp.dts
similarity index 100%
rename from arch/mips/boot/dts/xlp_gvp.dts
rename to arch/mips/boot/dts/netlogic/xlp_gvp.dts
diff --git a/arch/mips/boot/dts/xlp_svp.dts b/arch/mips/boot/dts/netlogic/xlp_svp.dts
similarity index 100%
rename from arch/mips/boot/dts/xlp_svp.dts
rename to arch/mips/boot/dts/netlogic/xlp_svp.dts
diff --git a/arch/mips/boot/dts/ralink/Makefile b/arch/mips/boot/dts/ralink/Makefile
new file mode 100644
index 0000000..2a72259
--- /dev/null
+++ b/arch/mips/boot/dts/ralink/Makefile
@@ -0,0 +1,12 @@
+dtb-$(CONFIG_DTB_RT2880_EVAL)	+= rt2880_eval.dtb
+dtb-$(CONFIG_DTB_RT305X_EVAL)	+= rt3052_eval.dtb
+dtb-$(CONFIG_DTB_RT3883_EVAL)	+= rt3883_eval.dtb
+dtb-$(CONFIG_DTB_MT7620A_EVAL)	+= mt7620a_eval.dtb
+
+obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
+
+# Force kbuild to make empty built-in.o if necessary
+obj-				+= dummy.o
+
+always				:= $(dtb-y)
+clean-files			:= *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/mt7620a.dtsi b/arch/mips/boot/dts/ralink/mt7620a.dtsi
similarity index 100%
rename from arch/mips/boot/dts/mt7620a.dtsi
rename to arch/mips/boot/dts/ralink/mt7620a.dtsi
diff --git a/arch/mips/boot/dts/mt7620a_eval.dts b/arch/mips/boot/dts/ralink/mt7620a_eval.dts
similarity index 100%
rename from arch/mips/boot/dts/mt7620a_eval.dts
rename to arch/mips/boot/dts/ralink/mt7620a_eval.dts
diff --git a/arch/mips/boot/dts/rt2880.dtsi b/arch/mips/boot/dts/ralink/rt2880.dtsi
similarity index 100%
rename from arch/mips/boot/dts/rt2880.dtsi
rename to arch/mips/boot/dts/ralink/rt2880.dtsi
diff --git a/arch/mips/boot/dts/rt2880_eval.dts b/arch/mips/boot/dts/ralink/rt2880_eval.dts
similarity index 100%
rename from arch/mips/boot/dts/rt2880_eval.dts
rename to arch/mips/boot/dts/ralink/rt2880_eval.dts
diff --git a/arch/mips/boot/dts/rt3050.dtsi b/arch/mips/boot/dts/ralink/rt3050.dtsi
similarity index 100%
rename from arch/mips/boot/dts/rt3050.dtsi
rename to arch/mips/boot/dts/ralink/rt3050.dtsi
diff --git a/arch/mips/boot/dts/rt3052_eval.dts b/arch/mips/boot/dts/ralink/rt3052_eval.dts
similarity index 100%
rename from arch/mips/boot/dts/rt3052_eval.dts
rename to arch/mips/boot/dts/ralink/rt3052_eval.dts
diff --git a/arch/mips/boot/dts/rt3883.dtsi b/arch/mips/boot/dts/ralink/rt3883.dtsi
similarity index 100%
rename from arch/mips/boot/dts/rt3883.dtsi
rename to arch/mips/boot/dts/ralink/rt3883.dtsi
diff --git a/arch/mips/boot/dts/rt3883_eval.dts b/arch/mips/boot/dts/ralink/rt3883_eval.dts
similarity index 100%
rename from arch/mips/boot/dts/rt3883_eval.dts
rename to arch/mips/boot/dts/ralink/rt3883_eval.dts
-- 
2.2.0.rc0.207.ga3a616c

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH 2/2] MIPS: Add dtbs_install target
  2014-12-22 23:27 [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories Andrew Bresticker
@ 2014-12-22 23:27 ` Andrew Bresticker
       [not found] ` <1419290863-19788-1-git-send-email-abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Bresticker @ 2014-12-22 23:27 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, devicetree, linux-kernel, Andrew Bresticker

Add the dtbs_install Makefile target to install the dtb files into
$INSTALL_DTBS_PATH.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
---
 arch/mips/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 9c4b9c8..6ff26bc 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -356,6 +356,10 @@ PHONY += dtbs
 dtbs: scripts
 	$(Q)$(MAKE) $(build)=arch/mips/boot/dts
 
+PHONY += dtbs_install
+dtbs_install:
+	$(Q)$(MAKE) $(dtbinst)=arch/mips/boot/dts
+
 archprepare:
 ifdef CONFIG_MIPS32_N32
 	@echo '  Checking missing-syscalls for N32'
@@ -392,6 +396,7 @@ define archhelp
 	echo '  uImage               - U-Boot image'
 	echo '  uImage.gz            - U-Boot image (gzip)'
 	echo '  dtbs                 - Device-tree blobs for enabled boards'
+	echo '  dtbs_install         - Install dtbs to $(INSTALL_DTBS_PATH)'
 	echo
 	echo '  These will be default as appropriate for a configured platform.'
 endef
-- 
2.2.0.rc0.207.ga3a616c

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

* Re: [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories
       [not found] ` <1419290863-19788-1-git-send-email-abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2014-12-23 16:07   ` Florian Fainelli
       [not found]     ` <CAGVrzcZPODEbQBF8Z+_r-6H3A_S-4Mi=1ALBf87ZmEngWzDpyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2014-12-23 16:07 UTC (permalink / raw)
  To: Andrew Bresticker
  Cc: Ralf Baechle, Linux-MIPS,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Kevin Cernekee

2014-12-22 15:27 GMT-08:00 Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>:
> Move the MIPS device-trees into the appropriate vendor sub-directories.
>
> Signed-off-by: Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> ---
>  arch/mips/Makefile                                 |  2 +-
>  arch/mips/boot/dts/Makefile                        | 33 ++++++++--------------
>  arch/mips/boot/dts/bcm/Makefile                    |  9 ++++++
>  arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi          |  0
>  arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts       |  0

Let's use brcm here, which is the DT vendor prefix, or go full name
with broadcom, there has been enough debate in the past about this ;)

Thanks!

>  arch/mips/boot/dts/cavium-octeon/Makefile          |  9 ++++++
>  .../boot/dts/{ => cavium-octeon}/octeon_3xxx.dts   |  0
>  .../boot/dts/{ => cavium-octeon}/octeon_68xx.dts   |  0
>  arch/mips/boot/dts/lantiq/Makefile                 |  9 ++++++
>  arch/mips/boot/dts/{ => lantiq}/danube.dtsi        |  0
>  arch/mips/boot/dts/{ => lantiq}/easy50712.dts      |  0
>  arch/mips/boot/dts/mti/Makefile                    |  9 ++++++
>  arch/mips/boot/dts/{ => mti}/sead3.dts             |  0
>  arch/mips/boot/dts/netlogic/Makefile               | 12 ++++++++
>  arch/mips/boot/dts/{ => netlogic}/xlp_evp.dts      |  0
>  arch/mips/boot/dts/{ => netlogic}/xlp_fvp.dts      |  0
>  arch/mips/boot/dts/{ => netlogic}/xlp_gvp.dts      |  0
>  arch/mips/boot/dts/{ => netlogic}/xlp_svp.dts      |  0
>  arch/mips/boot/dts/ralink/Makefile                 | 12 ++++++++
>  arch/mips/boot/dts/{ => ralink}/mt7620a.dtsi       |  0
>  arch/mips/boot/dts/{ => ralink}/mt7620a_eval.dts   |  0
>  arch/mips/boot/dts/{ => ralink}/rt2880.dtsi        |  0
>  arch/mips/boot/dts/{ => ralink}/rt2880_eval.dts    |  0
>  arch/mips/boot/dts/{ => ralink}/rt3050.dtsi        |  0
>  arch/mips/boot/dts/{ => ralink}/rt3052_eval.dts    |  0
>  arch/mips/boot/dts/{ => ralink}/rt3883.dtsi        |  0
>  arch/mips/boot/dts/{ => ralink}/rt3883_eval.dts    |  0
>  27 files changed, 73 insertions(+), 22 deletions(-)
>  create mode 100644 arch/mips/boot/dts/bcm/Makefile
>  rename arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi (100%)
>  rename arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts (100%)
>  create mode 100644 arch/mips/boot/dts/cavium-octeon/Makefile
>  rename arch/mips/boot/dts/{ => cavium-octeon}/octeon_3xxx.dts (100%)
>  rename arch/mips/boot/dts/{ => cavium-octeon}/octeon_68xx.dts (100%)
>  create mode 100644 arch/mips/boot/dts/lantiq/Makefile
>  rename arch/mips/boot/dts/{ => lantiq}/danube.dtsi (100%)
>  rename arch/mips/boot/dts/{ => lantiq}/easy50712.dts (100%)
>  create mode 100644 arch/mips/boot/dts/mti/Makefile
>  rename arch/mips/boot/dts/{ => mti}/sead3.dts (100%)
>  create mode 100644 arch/mips/boot/dts/netlogic/Makefile
>  rename arch/mips/boot/dts/{ => netlogic}/xlp_evp.dts (100%)
>  rename arch/mips/boot/dts/{ => netlogic}/xlp_fvp.dts (100%)
>  rename arch/mips/boot/dts/{ => netlogic}/xlp_gvp.dts (100%)
>  rename arch/mips/boot/dts/{ => netlogic}/xlp_svp.dts (100%)
>  create mode 100644 arch/mips/boot/dts/ralink/Makefile
>  rename arch/mips/boot/dts/{ => ralink}/mt7620a.dtsi (100%)
>  rename arch/mips/boot/dts/{ => ralink}/mt7620a_eval.dts (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt2880.dtsi (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt2880_eval.dts (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt3050.dtsi (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt3052_eval.dts (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt3883.dtsi (100%)
>  rename arch/mips/boot/dts/{ => ralink}/rt3883_eval.dts (100%)
>
> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
> index 37fce70..9c4b9c8 100644
> --- a/arch/mips/Makefile
> +++ b/arch/mips/Makefile
> @@ -354,7 +354,7 @@ core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/
>
>  PHONY += dtbs
>  dtbs: scripts
> -       $(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs
> +       $(Q)$(MAKE) $(build)=arch/mips/boot/dts
>
>  archprepare:
>  ifdef CONFIG_MIPS32_N32
> diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
> index 4f49fa4..90d1fbc 100644
> --- a/arch/mips/boot/dts/Makefile
> +++ b/arch/mips/boot/dts/Makefile
> @@ -1,21 +1,12 @@
> -dtb-$(CONFIG_BCM3384)                  += bcm93384wvg.dtb
> -dtb-$(CONFIG_CAVIUM_OCTEON_SOC)                += octeon_3xxx.dtb octeon_68xx.dtb
> -dtb-$(CONFIG_DT_EASY50712)             += easy50712.dtb
> -dtb-$(CONFIG_DT_XLP_EVP)               += xlp_evp.dtb
> -dtb-$(CONFIG_DT_XLP_SVP)               += xlp_svp.dtb
> -dtb-$(CONFIG_DT_XLP_FVP)               += xlp_fvp.dtb
> -dtb-$(CONFIG_DT_XLP_GVP)               += xlp_gvp.dtb
> -dtb-$(CONFIG_DTB_RT2880_EVAL)          += rt2880_eval.dtb
> -dtb-$(CONFIG_DTB_RT305X_EVAL)          += rt3052_eval.dtb
> -dtb-$(CONFIG_DTB_RT3883_EVAL)          += rt3883_eval.dtb
> -dtb-$(CONFIG_DTB_MT7620A_EVAL)         += mt7620a_eval.dtb
> -dtb-$(CONFIG_MIPS_SEAD3)               += sead3.dtb
> -
> -obj-y          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> -
> -targets                += dtbs
> -targets                += $(dtb-y)
> -
> -dtbs: $(addprefix $(obj)/, $(dtb-y))
> -
> -clean-files    += *.dtb *.dtb.S
> +dts-dirs       += bcm
> +dts-dirs       += cavium-octeon
> +dts-dirs       += lantiq
> +dts-dirs       += mti
> +dts-dirs       += netlogic
> +dts-dirs       += ralink
> +
> +obj-y          := $(addsuffix /, $(dts-dirs))
> +
> +always         := $(dtb-y)
> +subdir-y       := $(dts-dirs)
> +clean-files    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/bcm/Makefile b/arch/mips/boot/dts/bcm/Makefile
> new file mode 100644
> index 0000000..a353d4e
> --- /dev/null
> +++ b/arch/mips/boot/dts/bcm/Makefile
> @@ -0,0 +1,9 @@
> +dtb-$(CONFIG_BCM3384)          += bcm93384wvg.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/bcm3384.dtsi b/arch/mips/boot/dts/bcm/bcm3384.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/bcm3384.dtsi
> rename to arch/mips/boot/dts/bcm/bcm3384.dtsi
> diff --git a/arch/mips/boot/dts/bcm93384wvg.dts b/arch/mips/boot/dts/bcm/bcm93384wvg.dts
> similarity index 100%
> rename from arch/mips/boot/dts/bcm93384wvg.dts
> rename to arch/mips/boot/dts/bcm/bcm93384wvg.dts
> diff --git a/arch/mips/boot/dts/cavium-octeon/Makefile b/arch/mips/boot/dts/cavium-octeon/Makefile
> new file mode 100644
> index 0000000..5b99c40
> --- /dev/null
> +++ b/arch/mips/boot/dts/cavium-octeon/Makefile
> @@ -0,0 +1,9 @@
> +dtb-$(CONFIG_CAVIUM_OCTEON_SOC)        += octeon_3xxx.dtb octeon_68xx.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> similarity index 100%
> rename from arch/mips/boot/dts/octeon_3xxx.dts
> rename to arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> diff --git a/arch/mips/boot/dts/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> similarity index 100%
> rename from arch/mips/boot/dts/octeon_68xx.dts
> rename to arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> diff --git a/arch/mips/boot/dts/lantiq/Makefile b/arch/mips/boot/dts/lantiq/Makefile
> new file mode 100644
> index 0000000..0906c62
> --- /dev/null
> +++ b/arch/mips/boot/dts/lantiq/Makefile
> @@ -0,0 +1,9 @@
> +dtb-$(CONFIG_DT_EASY50712)     += easy50712.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/danube.dtsi
> rename to arch/mips/boot/dts/lantiq/danube.dtsi
> diff --git a/arch/mips/boot/dts/easy50712.dts b/arch/mips/boot/dts/lantiq/easy50712.dts
> similarity index 100%
> rename from arch/mips/boot/dts/easy50712.dts
> rename to arch/mips/boot/dts/lantiq/easy50712.dts
> diff --git a/arch/mips/boot/dts/mti/Makefile b/arch/mips/boot/dts/mti/Makefile
> new file mode 100644
> index 0000000..ef1f3db
> --- /dev/null
> +++ b/arch/mips/boot/dts/mti/Makefile
> @@ -0,0 +1,9 @@
> +dtb-$(CONFIG_MIPS_SEAD3)       += sead3.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/sead3.dts b/arch/mips/boot/dts/mti/sead3.dts
> similarity index 100%
> rename from arch/mips/boot/dts/sead3.dts
> rename to arch/mips/boot/dts/mti/sead3.dts
> diff --git a/arch/mips/boot/dts/netlogic/Makefile b/arch/mips/boot/dts/netlogic/Makefile
> new file mode 100644
> index 0000000..e126cd3
> --- /dev/null
> +++ b/arch/mips/boot/dts/netlogic/Makefile
> @@ -0,0 +1,12 @@
> +dtb-$(CONFIG_DT_XLP_EVP)       += xlp_evp.dtb
> +dtb-$(CONFIG_DT_XLP_SVP)       += xlp_svp.dtb
> +dtb-$(CONFIG_DT_XLP_FVP)       += xlp_fvp.dtb
> +dtb-$(CONFIG_DT_XLP_GVP)       += xlp_gvp.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/xlp_evp.dts b/arch/mips/boot/dts/netlogic/xlp_evp.dts
> similarity index 100%
> rename from arch/mips/boot/dts/xlp_evp.dts
> rename to arch/mips/boot/dts/netlogic/xlp_evp.dts
> diff --git a/arch/mips/boot/dts/xlp_fvp.dts b/arch/mips/boot/dts/netlogic/xlp_fvp.dts
> similarity index 100%
> rename from arch/mips/boot/dts/xlp_fvp.dts
> rename to arch/mips/boot/dts/netlogic/xlp_fvp.dts
> diff --git a/arch/mips/boot/dts/xlp_gvp.dts b/arch/mips/boot/dts/netlogic/xlp_gvp.dts
> similarity index 100%
> rename from arch/mips/boot/dts/xlp_gvp.dts
> rename to arch/mips/boot/dts/netlogic/xlp_gvp.dts
> diff --git a/arch/mips/boot/dts/xlp_svp.dts b/arch/mips/boot/dts/netlogic/xlp_svp.dts
> similarity index 100%
> rename from arch/mips/boot/dts/xlp_svp.dts
> rename to arch/mips/boot/dts/netlogic/xlp_svp.dts
> diff --git a/arch/mips/boot/dts/ralink/Makefile b/arch/mips/boot/dts/ralink/Makefile
> new file mode 100644
> index 0000000..2a72259
> --- /dev/null
> +++ b/arch/mips/boot/dts/ralink/Makefile
> @@ -0,0 +1,12 @@
> +dtb-$(CONFIG_DTB_RT2880_EVAL)  += rt2880_eval.dtb
> +dtb-$(CONFIG_DTB_RT305X_EVAL)  += rt3052_eval.dtb
> +dtb-$(CONFIG_DTB_RT3883_EVAL)  += rt3883_eval.dtb
> +dtb-$(CONFIG_DTB_MT7620A_EVAL) += mt7620a_eval.dtb
> +
> +obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
> +
> +# Force kbuild to make empty built-in.o if necessary
> +obj-                           += dummy.o
> +
> +always                         := $(dtb-y)
> +clean-files                    := *.dtb *.dtb.S
> diff --git a/arch/mips/boot/dts/mt7620a.dtsi b/arch/mips/boot/dts/ralink/mt7620a.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/mt7620a.dtsi
> rename to arch/mips/boot/dts/ralink/mt7620a.dtsi
> diff --git a/arch/mips/boot/dts/mt7620a_eval.dts b/arch/mips/boot/dts/ralink/mt7620a_eval.dts
> similarity index 100%
> rename from arch/mips/boot/dts/mt7620a_eval.dts
> rename to arch/mips/boot/dts/ralink/mt7620a_eval.dts
> diff --git a/arch/mips/boot/dts/rt2880.dtsi b/arch/mips/boot/dts/ralink/rt2880.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/rt2880.dtsi
> rename to arch/mips/boot/dts/ralink/rt2880.dtsi
> diff --git a/arch/mips/boot/dts/rt2880_eval.dts b/arch/mips/boot/dts/ralink/rt2880_eval.dts
> similarity index 100%
> rename from arch/mips/boot/dts/rt2880_eval.dts
> rename to arch/mips/boot/dts/ralink/rt2880_eval.dts
> diff --git a/arch/mips/boot/dts/rt3050.dtsi b/arch/mips/boot/dts/ralink/rt3050.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/rt3050.dtsi
> rename to arch/mips/boot/dts/ralink/rt3050.dtsi
> diff --git a/arch/mips/boot/dts/rt3052_eval.dts b/arch/mips/boot/dts/ralink/rt3052_eval.dts
> similarity index 100%
> rename from arch/mips/boot/dts/rt3052_eval.dts
> rename to arch/mips/boot/dts/ralink/rt3052_eval.dts
> diff --git a/arch/mips/boot/dts/rt3883.dtsi b/arch/mips/boot/dts/ralink/rt3883.dtsi
> similarity index 100%
> rename from arch/mips/boot/dts/rt3883.dtsi
> rename to arch/mips/boot/dts/ralink/rt3883.dtsi
> diff --git a/arch/mips/boot/dts/rt3883_eval.dts b/arch/mips/boot/dts/ralink/rt3883_eval.dts
> similarity index 100%
> rename from arch/mips/boot/dts/rt3883_eval.dts
> rename to arch/mips/boot/dts/ralink/rt3883_eval.dts
> --
> 2.2.0.rc0.207.ga3a616c
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Florian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories
       [not found]     ` <CAGVrzcZPODEbQBF8Z+_r-6H3A_S-4Mi=1ALBf87ZmEngWzDpyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-12-23 16:20       ` Kevin Cernekee
  2014-12-23 16:41         ` Andrew Bresticker
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Cernekee @ 2014-12-23 16:20 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Andrew Bresticker, Ralf Baechle, Linux-MIPS,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Arend van Spriel

On Tue, Dec 23, 2014 at 8:07 AM, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 2014-12-22 15:27 GMT-08:00 Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>:
>> Move the MIPS device-trees into the appropriate vendor sub-directories.
>>
>> Signed-off-by: Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
>> ---
>>  arch/mips/Makefile                                 |  2 +-
>>  arch/mips/boot/dts/Makefile                        | 33 ++++++++--------------
>>  arch/mips/boot/dts/bcm/Makefile                    |  9 ++++++
>>  arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi          |  0
>>  arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts       |  0
>
> Let's use brcm here, which is the DT vendor prefix, or go full name
> with broadcom, there has been enough debate in the past about this ;)

IOW we want to see:

arch/mips/boot/dts/brcm/bcm3384.dtsi
arch/mips/boot/dts/brcm/bcm93384wvg.dts

right?  "brcm" for the vendor name, "bcmXXXX[X[X]]" for the chip
names, just like the compatible strings.

BTW, this will again create an ordering dependency with respect to my
Generic BMIPS patch series.  If Ralf can take Andrew's updated patches
ASAP (since they're straightforward renamings) it will make it easier
to add/rename platforms without having to fix up merge conflicts.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories
  2014-12-23 16:20       ` Kevin Cernekee
@ 2014-12-23 16:41         ` Andrew Bresticker
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Bresticker @ 2014-12-23 16:41 UTC (permalink / raw)
  To: Kevin Cernekee
  Cc: Florian Fainelli, Ralf Baechle, Linux-MIPS,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Arend van Spriel

On Tue, Dec 23, 2014 at 8:20 AM, Kevin Cernekee <cernekee@gmail.com> wrote:
> On Tue, Dec 23, 2014 at 8:07 AM, Florian Fainelli <f.fainelli@gmail.com> wrote:
>> 2014-12-22 15:27 GMT-08:00 Andrew Bresticker <abrestic@chromium.org>:
>>> Move the MIPS device-trees into the appropriate vendor sub-directories.
>>>
>>> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
>>> ---
>>>  arch/mips/Makefile                                 |  2 +-
>>>  arch/mips/boot/dts/Makefile                        | 33 ++++++++--------------
>>>  arch/mips/boot/dts/bcm/Makefile                    |  9 ++++++
>>>  arch/mips/boot/dts/{ => bcm}/bcm3384.dtsi          |  0
>>>  arch/mips/boot/dts/{ => bcm}/bcm93384wvg.dts       |  0
>>
>> Let's use brcm here, which is the DT vendor prefix, or go full name
>> with broadcom, there has been enough debate in the past about this ;)
>
> IOW we want to see:
>
> arch/mips/boot/dts/brcm/bcm3384.dtsi
> arch/mips/boot/dts/brcm/bcm93384wvg.dts
>
> right?  "brcm" for the vendor name, "bcmXXXX[X[X]]" for the chip
> names, just like the compatible strings.

Ok, I've renamed the "bcm" directory to "brcm" as you've described above.

> BTW, this will again create an ordering dependency with respect to my
> Generic BMIPS patch series.  If Ralf can take Andrew's updated patches
> ASAP (since they're straightforward renamings) it will make it easier
> to add/rename platforms without having to fix up merge conflicts.

Yes, I'd like to get these in -next ASAP as I have work based on them
as well.  V2 incoming...

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

end of thread, other threads:[~2014-12-23 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 23:27 [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories Andrew Bresticker
2014-12-22 23:27 ` [PATCH 2/2] MIPS: Add dtbs_install target Andrew Bresticker
     [not found] ` <1419290863-19788-1-git-send-email-abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-12-23 16:07   ` [PATCH 1/2] MIPS: Move device-trees into vendor sub-directories Florian Fainelli
     [not found]     ` <CAGVrzcZPODEbQBF8Z+_r-6H3A_S-4Mi=1ALBf87ZmEngWzDpyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-23 16:20       ` Kevin Cernekee
2014-12-23 16:41         ` Andrew Bresticker

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).