Thread (19 messages) 19 messages, 4 authors, 2014-12-04
STALE4211d

[PATCH 4/5] ARM: BCM5301X: Add DT for Asus RT-N18U

From: zajec5@gmail.com (Rafał Miłecki)
Date: 2014-12-04 09:12:40

On 3 December 2014 at 06:40, Rafa? Mi?ecki [off-list ref] wrote:
On 3 December 2014 at 00:19, Hauke Mehrtens [off-list ref] wrote:
quoted
On 11/30/2014 06:28 PM, Rafa? Mi?ecki wrote:
quoted
Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
 arch/arm/boot/dts/Makefile                  |  3 +-
 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 78 +++++++++++++++++++++++++++++
 arch/arm/boot/dts/bcm47081.dtsi             | 26 ++++++++++
 arch/arm/mach-bcm/bcm_5301x.c               |  1 +
 4 files changed, 107 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
 create mode 100644 arch/arm/boot/dts/bcm47081.dtsi
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 18a21d9..db51a31 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -58,7 +58,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b-plus.dtb
 dtb-$(CONFIG_ARCH_BCM_5301X) += \
      bcm4708-buffalo-wzr-1750dhp.dtb \
      bcm4708-netgear-r6250.dtb \
-     bcm4708-netgear-r6300-v2.dtb
+     bcm4708-netgear-r6300-v2.dtb \
+     bcm47081-asus-rt-n18u.dtb
 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
 dtb-$(CONFIG_ARCH_BCM_CYGNUS) += bcm911360_entphn.dtb \
      bcm911360k.dtb \
diff --git a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
new file mode 100644
index 0000000..c40ad39
--- /dev/null
+++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
@@ -0,0 +1,78 @@
+/*
+ * Broadcom BCM470X / BCM5301X ARM platform code.
+ * DTS for Asus RT-N18U
+ *
+ * Copyright ? 2014 Rafa? Mi?ecki <zajec5@gmail.com>
+ *
+ * Licensed under the GNU/GPL. See COPYING for details.
+ */
+
+/dts-v1/;
+
+#include "bcm47081.dtsi"
+
+/ {
+     compatible = "asus,rt-n18u", "brcm,bcm47081";
Instead of adding bcm47081 to the core code you can do this:

compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";

If we later need some special handling for bcm47081 we can add this but
the old dts file will still work. This is more relevant if the dts file
is in the boot loader.
I don't get it. How should I detect there is no second CPU?
Aaaah, you meant not adding *core code*, not the DTS file. I didn't
notice that in the first place. Now it's clear, thanks!

-- 
Rafa?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help