Skip to contentSkip to conversation

MIPS: BMIPS: Add device tree example for BCM3368

PATCH In review Álvaro Fernández Rojas 1 participant 1 message Aug 3, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 5/7 MIPS: BMIPS: Add device tree example for BCM3368

This adds a device tree example for Netgear CVG834G.

---
 arch/mips/bmips/Kconfig                            |   4 +
 arch/mips/boot/dts/brcm/Makefile                   |   2 +
 .../mips/boot/dts/brcm/bcm3368-netgear-cvg834g.dts |  22 +++++
 arch/mips/boot/dts/brcm/bcm3368.dtsi               | 101 +++++++++++++++++++++
 4 files changed, 129 insertions(+)
 create mode 100644 arch/mips/boot/dts/brcm/bcm3368-netgear-cvg834g.dts
 create mode 100644 arch/mips/boot/dts/brcm/bcm3368.dtsi
arch/mips/bmips/Kconfig +4 -0
index 6a0946c..f499fd2 100644
@@ -65,6 +65,10 @@ config DT_COMTREND_VR3032U
 	bool "Comtrend VR-3032u"
 	select BUILTIN_DTB
 
+config DT_NETGEAR_CVG834G
+	bool "NETGEAR CVG834G"
+	select BUILTIN_DTB
+
 config DT_SFR_NEUFBOX4_SERCOMM
 	bool "SFR Neufbox 4 (Sercomm)"
 	select BUILTIN_DTB
arch/mips/boot/dts/brcm/Makefile +2 -0
index 8281ec6..a698e84 100644
@@ -11,9 +11,11 @@ dtb-$(CONFIG_DT_BCM97420C)		+= bcm97420c.dtb
 dtb-$(CONFIG_DT_BCM97425SVMB)		+= bcm97425svmb.dtb
 dtb-$(CONFIG_DT_BCM97435SVMB)		+= bcm97435svmb.dtb
 dtb-$(CONFIG_DT_COMTREND_VR3032U)	+= bcm63268-comtrend-vr-3032u.dtb
+dtb-$(CONFIG_DT_NETGEAR_CVG834G)	+= bcm3368-netgear-cvg834g.dtb
 dtb-$(CONFIG_DT_SFR_NEUFBOX4_SERCOMM)	+= bcm6358-neufbox4-sercomm.dtb
 
 dtb-$(CONFIG_DT_NONE) += \
+	bcm3368-netgear-cvg834g.dtb \
 	bcm6358-neufbox4-sercomm.dtb \
 	bcm63268-comtrend-vr-3032u.dtb \
 	bcm93384wvg.dtb \
arch/mips/boot/dts/brcm/bcm3368-netgear-cvg834g.dts new file +22 -0
new file mode 100644
index 0000000..2f2e80f
@@ -0,0 +1,22 @@
+/dts-v1/;
+
+/include/ "bcm3368.dtsi"
+
+/ {
+	compatible = "netgear,cvg834g", "brcm,bcm3368";
+	model = "NETGEAR CVG834G";
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x00000000 0x02000000>;
+	};
+
+	chosen {
+		bootargs = "console=ttyS0,115200";
+		stdout-path = &uart0;
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/mips/boot/dts/brcm/bcm3368.dtsi new file +101 -0

101 lines not on this page · raw message

Signature · 1 line
2.1.4