Skip to contentSkip to conversation

ARM: dts: NSP: define SATA, Reboot, RAM and new device tree files

PATCH In review Jon Mason 2 participants 13 messages Aug 3, 2016 – Aug 9, 2016

Subsystems (3)
lore
Share & tools
lore

Jon Mason

author
#0 lore raw

cover ARM: dts: NSP: define SATA, Reboot, RAM and new device tree files

This patch series adds SATA and RAM for the existing HR and XMC device tree files (as they were missed when those peices were originally added). It also adds GPIO rebooting to the platforms that support that feature. Finally, add device tree files for all known NSP based reference boards.

The only outstanding HW that isn't fully supported on all NSP boards is USB and sound. So, we're getting close :)

NOTE: SATA is not in the NSP DTSI in Florian's git tree, but it is currently in Linus' (due to it going through another maintainer). So, it won't build until the merge with Linus' tree is done. I thought it better to do it this way instead of splitting it off and sending it as a follow-on in a couple of weeks. Let me know if it is preferred I do it that way.

Thanks,
Jon

Jon Mason (11):
ARM: dts: NSP: Enable SATA on bcm958625hr
ARM: dts: NSP: Enable SATA and add i2c devices on XMC
ARM: dts: NSP: Specify RAM amount for BCM958625K board
ARM: dts: NSP: Specify RAM amount for BCM958525XMC board
ARM: dts: NSP: Add GPIO reboot method to bcm958625hr DTS file
ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file
ARM: dts: NSP: Add new DT file for bcm958525er
ARM: dts: NSP: Add new DT file for bcm958522er
ARM: dts: NSP: Add new DT file for bcm988312hr
ARM: dts: NSP: Add new DT file for bcm958623hr
ARM: dts: NSP: Add new DT file for bcm958622hr

 arch/arm/boot/dts/Makefile         |   5 +
 arch/arm/boot/dts/bcm958522er.dts  | 130 ++++++++++++++++++++++++++
 arch/arm/boot/dts/bcm958525er.dts  | 142 +++++++++++++++++++++++++++++
 arch/arm/boot/dts/bcm958525xmc.dts |  44 ++++++++-
 arch/arm/boot/dts/bcm958622hr.dts  | 170 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/bcm958623hr.dts  | 178 ++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/bcm958625hr.dts  |  19 ++++
 arch/arm/boot/dts/bcm958625k.dts   |   5 +
 arch/arm/boot/dts/bcm988312hr.dts  | 182 +++++++++++++++++++++++++++++++++++++
 9 files changed, 874 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/bcm958522er.dts
 create mode 100644 arch/arm/boot/dts/bcm958525er.dts
 create mode 100644 arch/arm/boot/dts/bcm958622hr.dts
 create mode 100644 arch/arm/boot/dts/bcm958623hr.dts
 create mode 100644 arch/arm/boot/dts/bcm988312hr.dts
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/11 ARM: dts: NSP: Enable SATA on bcm958625hr

Add SATA support to bcm958625hr DTS

---
 arch/arm/boot/dts/bcm958625hr.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/bcm958625hr.dts +12 -0
index 4239e58..78970b9 100644
@@ -158,3 +158,15 @@
 		};
 	};
 };
+
+&sata_phy0 {
+	status = "okay";
+};
+
+&sata_phy1 {
+	status = "okay";
+};
+
+&sata {
+	status = "okay";
+};
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/11 ARM: dts: NSP: Enable SATA and add i2c devices on XMC

In reply to Jon Mason

Enable SATA on bcm958625xmc and add the i2c devices present.

---
 arch/arm/boot/dts/bcm958525xmc.dts | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)
arch/arm/boot/dts/bcm958525xmc.dts +31 -1
index d257e83..a337f2d 100644
@@ -47,6 +47,24 @@
 	};
 };
 
+&i2c0 {
+	temperature-sensor at 4c {
+		compatible = "adi,adt7461a";
+		reg = <0x4c>;
+	};
+
+	eeprom at 52 {
+		compatible = "atmel,24c02";
+		reg = <0x52>;
+		pagesize = <16>;
+	};
+
+	rtc at 68 {
+		compatible = "st,m41t81";
+		reg = <0x68>;
+	};
+};
+
 &nand {
 	nandcs at 0 {
 		compatible = "brcm,nandcs";
@@ -85,7 +103,7 @@
 	};
 };
 
-/* XHCI, SATA, MMC, and Ethernet support needed to be complete */
+/* XHCI, MMC, and Ethernet support needed to be complete */
 
 &uart0 {
 	status = "okay";
@@ -99,6 +117,18 @@
 	status = "okay";
 };
 
+&sata_phy0 {
+	status = "okay";
+};
+
+&sata_phy1 {
+	status = "okay";
+};
+
+&sata {
+	status = "okay";
+};
+
 &pinctrl {
 	pinctrl-names = "default";
 	pinctrl-0 = <&nand_sel>;
Signature · 1 line
2.7.4
author
#3 lore raw

PATCH 3/11 ARM: dts: NSP: Specify RAM amount for BCM958625K board

In reply to Jon Mason

Add 2GB of memory starting at physical offset 0x6000_0000.

---
 arch/arm/boot/dts/bcm958625k.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/bcm958625k.dts +5 -0
index f41a13b..feed1b7 100644
@@ -46,6 +46,11 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x60000000 0x80000000>;
+	};
 };
 
 &uart0 {
Signature · 1 line
2.7.4
author
#4 lore raw

PATCH 4/11 ARM: dts: NSP: Specify RAM amount for BCM958525XMC board

In reply to Jon Mason

Add 1GB of memory starting at physical offset 0x6000_0000.

---
 arch/arm/boot/dts/bcm958525xmc.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/bcm958525xmc.dts +5 -0
index a337f2d..9517360 100644
@@ -45,6 +45,11 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x60000000 0x40000000>;
+	};
 };
 
 &i2c0 {
Signature · 1 line
2.7.4
author
#5 lore raw

PATCH 5/11 ARM: dts: NSP: Add GPIO reboot method to bcm958625hr DTS file

In reply to Jon Mason

Add the ability to reboot the bcm958625hr board via GPIO. Unfortunately, not all of the NSP based boards use the same GPIO pin and one doesn't have the ability to reboot via GPIO at all. So, this will need to be specified per DTS file.

---
 arch/arm/boot/dts/bcm958625hr.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/bcm958625hr.dts +7 -0
index 78970b9..d72baf7 100644
@@ -33,6 +33,7 @@
 /dts-v1/;
 
 #include "bcm-nsp.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "NorthStar Plus SVK (BCM958625HR)";
@@ -49,6 +50,12 @@
 	memory {
 		reg = <0x60000000 0x20000000>;
 	};
+
+	gpio-restart {
+		compatible = "gpio-restart";
+		gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
+		priority = <200>;
+	};
 };
 
 &nand {
Signature · 1 line
2.7.4
author
#6 lore raw

PATCH 6/11 ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file

In reply to Jon Mason

Add the ability to reboot the bcm958625xmc board via GPIO. Unfortunately, not all of the NSP based boards use the same GPIO pin and one doesn't have the ability to reboot via GPIO at all. So, this will need to be specified per DTS file.

---
 arch/arm/boot/dts/bcm958525xmc.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/bcm958525xmc.dts +7 -0
index 9517360..959cde9 100644
@@ -33,6 +33,7 @@
 /dts-v1/;
 
 #include "bcm-nsp.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "NorthStar Plus XMC (BCM958525xmc)";
@@ -50,6 +51,12 @@
 		device_type = "memory";
 		reg = <0x60000000 0x40000000>;
 	};
+
+	gpio-restart {
+		compatible = "gpio-restart";
+		gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
+		priority = <200>;
+	};
 };
 
 &i2c0 {
Signature · 1 line
2.7.4
author
#7 lore raw

PATCH 7/11 ARM: dts: NSP: Add new DT file for bcm958525er

In reply to Jon Mason

Create a new device tree file for the Broadcom Northstar Plus bcm958525er SVK. This SVK has 2GB RAM, 2 ports Ethernet, 2 eSATA, 2 PCI slots, and 1 UART. Also, it has the ability to reboot via GPIO. To be added in the future is support for the USB.

---
 arch/arm/boot/dts/Makefile        |   1 +
 arch/arm/boot/dts/bcm958525er.dts | 142 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 143 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm958525er.dts
arch/arm/boot/dts/Makefile +1 -0
index 973b0da..8a05bf6 100644
@@ -99,6 +99,7 @@ dtb-$(CONFIG_ARCH_BCM_MOBILE) += \
 	bcm21664-garnet.dtb \
 	bcm23550-sparrow.dtb
 dtb-$(CONFIG_ARCH_BCM_NSP) += \
+	bcm958525er.dtb \
 	bcm958525xmc.dtb \
 	bcm958625hr.dtb \
 	bcm958625k.dtb
arch/arm/boot/dts/bcm958525er.dts new file +142 -0

142 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#8 lore raw

PATCH 8/11 ARM: dts: NSP: Add new DT file for bcm958522er

In reply to Jon Mason

Create a new device tree file for the Broadcom Northstar Plus bcm958522er SVK. This SVK has 2GB RAM, 2 ports Ethernet, 2 PCI slots, and 1 UART. Also, it has the ability to reboot via GPIO. To be added in the future is support for the USB.

---
 arch/arm/boot/dts/Makefile        |   1 +
 arch/arm/boot/dts/bcm958522er.dts | 130 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm958522er.dts
arch/arm/boot/dts/Makefile +1 -0
index 8a05bf6..7c04e31 100644
@@ -99,6 +99,7 @@ dtb-$(CONFIG_ARCH_BCM_MOBILE) += \
 	bcm21664-garnet.dtb \
 	bcm23550-sparrow.dtb
 dtb-$(CONFIG_ARCH_BCM_NSP) += \
+	bcm958522er.dtb \
 	bcm958525er.dtb \
 	bcm958525xmc.dtb \
 	bcm958625hr.dtb \
arch/arm/boot/dts/bcm958522er.dts new file +130 -0

130 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#9 lore raw

PATCH 9/11 ARM: dts: NSP: Add new DT file for bcm988312hr

In reply to Jon Mason

Create a new device tree file for the Broadcom Northstar Plus bcm988312hr SVK. This SVK has 2GB RAM, 5 ports Ethernet, 2 eSATA, 2 PCI slots, and 1 UART. Also, it has the ability to reboot via GPIO. To be added in the future is support for the USB.

---
 arch/arm/boot/dts/Makefile        |   1 +
 arch/arm/boot/dts/bcm988312hr.dts | 182 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 183 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm988312hr.dts
arch/arm/boot/dts/Makefile +1 -0
index 7c04e31..190528d 100644
@@ -103,6 +103,7 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
 	bcm958525er.dtb \
 	bcm958525xmc.dtb \
 	bcm958625hr.dtb \
+	bcm988312hr.dtb \
 	bcm958625k.dtb
 dtb-$(CONFIG_ARCH_BERLIN) += \
 	berlin2-sony-nsz-gs7.dtb \
arch/arm/boot/dts/bcm988312hr.dts new file +182 -0

182 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#10 lore raw

PATCH 10/11 ARM: dts: NSP: Add new DT file for bcm958623hr

In reply to Jon Mason

Create a new device tree file for the Broadcom Northstar Plus bcm958623hr SVK. This SVK has 2GB RAM, 5 ports Ethernet, SATA, 2 PCI slots, and 1 UART. Also, it has the ability to reboot via GPIO. To be added in the future are support for the USB and SLIC audio.

---
 arch/arm/boot/dts/Makefile        |   1 +
 arch/arm/boot/dts/bcm958623hr.dts | 178 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 179 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm958623hr.dts
arch/arm/boot/dts/Makefile +1 -0
index 190528d..6e41b49 100644
@@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
 	bcm958522er.dtb \
 	bcm958525er.dtb \
 	bcm958525xmc.dtb \
+	bcm958623hr.dtb \
 	bcm958625hr.dtb \
 	bcm988312hr.dtb \
 	bcm958625k.dtb
arch/arm/boot/dts/bcm958623hr.dts new file +178 -0

178 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#11 lore raw

PATCH 11/11 ARM: dts: NSP: Add new DT file for bcm958622hr

In reply to Jon Mason

Create a new device tree file for the Broadcom Northstar Plus bcm958622hr SVK. This SVK has 2GB RAM, 5 port Ethernet, 2 PCI slots, and 1 UART. Also, it has the ability to reboot via GPIO. To be added in the future are support for the USB and SLIC audio.

---
 arch/arm/boot/dts/Makefile        |   1 +
 arch/arm/boot/dts/bcm958622hr.dts | 170 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm958622hr.dts
arch/arm/boot/dts/Makefile +1 -0
index 6e41b49..291b551 100644
@@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
 	bcm958522er.dtb \
 	bcm958525er.dtb \
 	bcm958525xmc.dtb \
+	bcm958622hr.dtb \
 	bcm958623hr.dtb \
 	bcm958625hr.dtb \
 	bcm988312hr.dtb \
arch/arm/boot/dts/bcm958622hr.dts new file +170 -0

170 lines not on this page · raw message

Signature · 1 line
2.7.4
#12 lore raw
In reply to Jon Mason
Quoted 9 lines · Jon Mason

This patch series adds SATA and RAM for the existing HR and XMC device tree files (as they were missed when those peices were originally added). It also adds GPIO rebooting to the platforms that support that feature. Finally, add device tree files for all known NSP based reference boards.

The only outstanding HW that isn't fully supported on all NSP boards is USB and sound. So, we're getting close :)

Quoted 6 lines

NOTE: SATA is not in the NSP DTSI in Florian's git tree, but it is currently in Linus' (due to it going through another maintainer). So, it won't build until the merge with Linus' tree is done. I thought it better to do it this way instead of splitting it off and sending it as a follow-on in a couple of weeks. Let me know if it is preferred I do it that way.

Series applied, thanks Jon!

Signature · 1 line
Florian