Add support for the Armada-370-based Seagate NAS
Subsystems (4)
cover Add support for the Armada-370-based Seagate NAS
Hi,
This patch series adds support for the Seagate machines based on the Armada-370 Marvell SoC. This includes the Personal Cloud 1 and 2-Bay and the Seagate NAS 2 and 4-Bay.
Thanks,
Simon
Simon Guinot (2):
ARM: mvebu: add DT support for Seagate Personal Cloud
ARM: mvebu: enable options for Seagate NAS in mvebu_v7_defconfig
Vincent Donnefort (1):
ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/armada-370-n090103.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++ arch/arm/configs/mvebu_v7_defconfig | 9 +- 8 files changed, 640 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsi create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi
Signature · 1 line
2.1.4
PATCH 1/3 ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
From: Vincent Donnefort <[email protected]>
This patch adds DT support for the Seagate NAS 2 and 4-Bay (n090201 and n090401).
Chipset list (common):
- SoC Marvell Armada 370 88F6707, CPU @1.2GHz
- SDRAM memory: 512MB DDR3 600MHz (16-bits bandwidth)
- NAND flash 256MB, 8-bits (Micron MT29F2G08AAB or Hinyx H27U2G8F2CTR-BC)
- 2 SATA II ports (SoC)
- 1 Ethernet Gigabit ports (PHY Marvell 88E1518)
- 2 USB3 host ports (PCIe controller ASM1042)
- GPIO fan (4 speeds)
- External I2C RTC (MCP7940NT)
- 3 push buttons (power, backup and reset)
- 2 SATA LEDs (bi-color, blue and red)
- 1 power LED (bi-color, blue and red)
Only on 4-Bay models:
- 2 extra SATA III ports (PCIe AHCI controller Marvell 88SE9170)
- 1 extra Ethernet Gigabit ports (PHY Marvell 88E1518)
- I2C GPIO expander (PCA9554A)
- 2 extra SATA LEDs (bi-color, blue and red)
Note that support for the white SATA LEDs associated with HDDs 0 and 1 is missing. A dedicated LED driver is needed.
--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsi
arch/arm/boot/dts/Makefile +2 -0
@@ -699,6 +699,8 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \ armada-370-db.dtb \ armada-370-dlink-dns327l.dtb \ armada-370-mirabox.dtb \ + armada-370-n090201.dtb \ + armada-370-n090401.dtb \ armada-370-netgear-rn102.dtb \ armada-370-netgear-rn104.dtb \ armada-370-rd.dtb \
arch/arm/boot/dts/armada-370-n090201.dts new file +28 -0
@@ -0,0 +1,28 @@ +/* + * Device Tree file for Seagate NAS 2-Bay (n090201) + * + * Copyright (C) 2015 Seagate + * + * Author: Vincent Donnefort <[email protected]> + * + * 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 kind, whether express or implied. + */ + +/dts-v1/; + +#include "armada-370-n090x01.dtsi" + +/ { + model = "Seagate NAS 2-Bay"; + compatible = "seagate,n090201", "marvell,armada370", "marvell,armada-370-xp"; + + gpio-fan { + gpio-fan,speed-map = + < 0 3 + 950 2 + 1400 1 + 1800 0>; + }; +};
arch/arm/boot/dts/armada-370-n090401.dts new file +124 -0
124 lines not on this page · raw message
arch/arm/boot/dts/armada-370-n090x01.dtsi new file +232 -0
232 lines not on this page · raw message
Signature · 1 line
2.1.4
Andrew Lunn
maintainerPATCH 1/3 ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 65 lines · Simon Guinot
From: Vincent Donnefort <[email protected]>
This patch adds DT support for the Seagate NAS 2 and 4-Bay (n090201 and n090401).
Chipset list (common):
- SoC Marvell Armada 370 88F6707, CPU @1.2GHz
- SDRAM memory: 512MB DDR3 600MHz (16-bits bandwidth)
- NAND flash 256MB, 8-bits (Micron MT29F2G08AAB or Hinyx H27U2G8F2CTR-BC)
- 2 SATA II ports (SoC)
- 1 Ethernet Gigabit ports (PHY Marvell 88E1518)
- 2 USB3 host ports (PCIe controller ASM1042)
- GPIO fan (4 speeds)
- External I2C RTC (MCP7940NT)
- 3 push buttons (power, backup and reset)
- 2 SATA LEDs (bi-color, blue and red)
- 1 power LED (bi-color, blue and red)Only on 4-Bay models:
- 2 extra SATA III ports (PCIe AHCI controller Marvell 88SE9170)
- 1 extra Ethernet Gigabit ports (PHY Marvell 88E1518)
- I2C GPIO expander (PCA9554A)
- 2 extra SATA LEDs (bi-color, blue and red)Note that support for the white SATA LEDs associated with HDDs 0 and 1 is missing. A dedicated LED driver is needed.
Signed-off-by Vincent Donnefort <[email protected]>--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsiarch/arm/boot/dts/Makefile +2
-0@@ -699,6 +699,8 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \ armada-370-db.dtb \ armada-370-dlink-dns327l.dtb \ armada-370-mirabox.dtb \ + armada-370-n090201.dtb \ + armada-370-n090401.dtb \ armada-370-netgear-rn102.dtb \ armada-370-netgear-rn104.dtb \ armada-370-rd.dtb \arch/arm/boot/dts/armada-370-n090201.dts new file +8
-0@@ -0,0 +1,28 @@ +/* + * Device Tree file for Seagate NAS 2-Bay (n090201) + * + * Copyright (C) 2015 Seagate + * + * Author: Vincent Donnefort <[email protected]> + * + * This file is licensed under the terms of the GNU General Public
arch/arm/boot/dts/armada-370-n090201.dts line 18
Quoted 10 lines
arch/arm/boot/dts/armada-370-n090201.dts new file +10
-0+ * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +/dts-v1/; + +#include "armada-370-n090x01.dtsi" + +/ { + model = "Seagate NAS 2-Bay";
On a similar line to Jason's comment. I'm sure Seagate has/is going to have more than this 2-bay NAS. Can we have a more descriptive model string here?
I could imagine an installer which looks through the list of available DT blobs and creates a list showing the model and compatible string, and asks the user, which should it use.
Andrew
PATCH 1/3 ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 68 lines · Andrew Lunn
Quoted 67 lines · Simon Guinot
From: Vincent Donnefort <[email protected]>
This patch adds DT support for the Seagate NAS 2 and 4-Bay (n090201 and n090401).
Chipset list (common):
- SoC Marvell Armada 370 88F6707, CPU @1.2GHz
- SDRAM memory: 512MB DDR3 600MHz (16-bits bandwidth)
- NAND flash 256MB, 8-bits (Micron MT29F2G08AAB or Hinyx H27U2G8F2CTR-BC)
- 2 SATA II ports (SoC)
- 1 Ethernet Gigabit ports (PHY Marvell 88E1518)
- 2 USB3 host ports (PCIe controller ASM1042)
- GPIO fan (4 speeds)
- External I2C RTC (MCP7940NT)
- 3 push buttons (power, backup and reset)
- 2 SATA LEDs (bi-color, blue and red)
- 1 power LED (bi-color, blue and red)Only on 4-Bay models:
- 2 extra SATA III ports (PCIe AHCI controller Marvell 88SE9170)
- 1 extra Ethernet Gigabit ports (PHY Marvell 88E1518)
- I2C GPIO expander (PCA9554A)
- 2 extra SATA LEDs (bi-color, blue and red)Note that support for the white SATA LEDs associated with HDDs 0 and 1 is missing. A dedicated LED driver is needed.
Signed-off-by Vincent Donnefort <[email protected]>--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsiarch/arm/boot/dts/Makefile +2
-0@@ -699,6 +699,8 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \ armada-370-db.dtb \ armada-370-dlink-dns327l.dtb \ armada-370-mirabox.dtb \ + armada-370-n090201.dtb \ + armada-370-n090401.dtb \ armada-370-netgear-rn102.dtb \ armada-370-netgear-rn104.dtb \ armada-370-rd.dtb \arch/arm/boot/dts/armada-370-n090201.dts new file +10
-0@@ -0,0 +1,28 @@ +/* + * Device Tree file for Seagate NAS 2-Bay (n090201) + * + * Copyright (C) 2015 Seagate + * + * Author: Vincent Donnefort <[email protected]> + * + * 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 kind, whether express or implied.
Quoted 8 lines
arch/arm/boot/dts/armada-370-n090201.dts line 18
Quoted 8 lines
arch/arm/boot/dts/armada-370-n090201.dts new file +8
-0+ */ + +/dts-v1/; + +#include "armada-370-n090x01.dtsi" + +/ { + model = "Seagate NAS 2-Bay";
Hi Andrew,
Quoted 4 lines
On a similar line to Jason's comment. I'm sure Seagate has/is going to have more than this 2-bay NAS. Can we have a more descriptive model string here?
It may sound crazy but I have nothing more than the hardware and product names which are respectively "n090201" and "Seagate NAS 2-Bay" for this board.
Maybe I could mix them both in the model string:
"Seagate NAS 2-Bay (n090201)" ?
Quoted 4 lines
I could imagine an installer which looks through the list of available DT blobs and creates a list showing the model and compatible string, and asks the user, which should it use.
I can too.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150831/81d47cba/attachment.sig>
Andrew Lunn
maintainerPATCH 1/3 ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 3 lines
It may sound crazy but I have nothing more than the hardware and product names which are respectively "n090201" and "Seagate NAS 2-Bay" for this board.
Does it have a plate on the back with identification information? Is this n090201 on the ID plate?
Thanks
Andrew
PATCH 1/3 ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 6 lines · Andrew Lunn
Quoted 3 lines
It may sound crazy but I have nothing more than the hardware and product names which are respectively "n090201" and "Seagate NAS 2-Bay" for this board.
Does it have a plate on the back with identification information? Is this n090201 on the ID plate?
No it is not. Else it would have been too easy :) Please, see my answer to Jason who is more or less asking for the same thing.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150831/eb3b84ca/attachment.sig>
PATCH 2/3 ARM: mvebu: add DT support for Seagate Personal Cloud
In reply to Simon GuinotThis patch adds DT support for the Seagate Personal Cloud 1 and 2-Bay (n090103 and n090203).
Chipset list:
- SoC Marvell Armada 370 88F6707, CPU @1GHz
- SDRAM memory: 512MB DDR3 667MHz (16-bits bandwidth)
- SPI flash 1MB (Macronix MX25L8006E)
- 1 or 2 SATA internal ports
- 1 Ethernet Gigabit port (PHY Marvell 88E1518)
- 1 USB3 host port (PCIe controller ASM1042)
- 1 USB2 host port (SoC)
- 2 push buttons (power and reset)
- 1 SATA LED (bi-color, white and red)
Note that support for the white SATA LED is missing. A dedicated LED driver is needed.
--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090103.dts | 28 +++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi
arch/arm/boot/dts/Makefile +2 -0
@@ -699,7 +699,9 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \ armada-370-db.dtb \ armada-370-dlink-dns327l.dtb \ armada-370-mirabox.dtb \ + armada-370-n090103.dtb \ armada-370-n090201.dtb \ + armada-370-n090203.dtb \ armada-370-n090401.dtb \ armada-370-netgear-rn102.dtb \ armada-370-netgear-rn104.dtb \
arch/arm/boot/dts/armada-370-n090103.dts new file +28 -0
@@ -0,0 +1,28 @@ +/* + * Device Tree file for Seagate Personal Cloud NAS (n090103). + * + * Copyright (C) 2015 Seagate + * + * Author: Simon Guinot <[email protected]> + * + * 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 kind, whether express or implied. + */ + +/dts-v1/; +#include "armada-370-n090x03.dtsi" + +/ { + model = "Seagate Personal Cloud"; + compatible = "seagate,n090103", "marvell,armada370", "marvell,armada-370-xp"; + + soc { + internal-regs { + sata at a0000 { + status = "okay"; + nr-ports = <1>; + }; + }; + }; +};
arch/arm/boot/dts/armada-370-n090203.dts new file +42 -0
42 lines not on this page · raw message
arch/arm/boot/dts/armada-370-n090x03.dtsi new file +174 -0
174 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 2/3 ARM: mvebu: add DT support for Seagate Personal Cloud
Quoted 13 lines · Simon Guinot
This patch adds DT support for the Seagate Personal Cloud 1 and 2-Bay (n090103 and n090203).
Chipset list:
- SoC Marvell Armada 370 88F6707, CPU @1GHz
- SDRAM memory: 512MB DDR3 667MHz (16-bits bandwidth)
- SPI flash 1MB (Macronix MX25L8006E)
- 1 or 2 SATA internal ports
- 1 Ethernet Gigabit port (PHY Marvell 88E1518)
- 1 USB3 host port (PCIe controller ASM1042)
- 1 USB2 host port (SoC)
- 2 push buttons (power and reset)
- 1 SATA LED (bi-color, white and red)
Do you have long term URLs for these products? It would be nice to add those. The best I could find is:
But none of the model numbers match what you've used in this patch series. I imagine this will make it harder for newcomers to find the relevant code.
Quoted 14 lines
Note that support for the white SATA LED is missing. A dedicated LED driver is needed.
Signed-off-by Simon Guinot <[email protected]>--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090103.dts | 28 +++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi
...
Quoted 7 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +1
-0@@ -0,0 +1,28 @@ +/*
arch/arm/boot/dts/armada-370-n090103.dts line 11
Quoted 10 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +10
-0+ * Device Tree file for Seagate Personal Cloud NAS (n090103). + * + * Copyright (C) 2015 Seagate + * + * Author: Simon Guinot <[email protected]> + * + * 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 kind, whether express or implied. + */
Based on previous discussions, I'm pretty sure I know what the answer is, but I have to at least ask in case it was accidental. All other armada-* files are dual licensed, GPLv2/X11. Was it intentional to license these as GPLv2 only?
arch/arm/boot/dts/armada-370-n090103.dts line 18
Quoted 7 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +7
-0+ +/dts-v1/; +#include "armada-370-n090x03.dtsi" + +/ { + model = "Seagate Personal Cloud"; + compatible = "seagate,n090103", "marvell,armada370", "marvell,armada-370-xp";
In line with my previous comment, can we add a compatible string here?
compatible = "seagate,n090103", "seagate,personalcloud", "marvell,armada370", "marvell,armada-370-xp";
Quoted 14 lines
arch/arm/boot/dts/armada-370-n090203.dts new file +8
-0@@ -0,0 +1,42 @@ +/* + * Device Tree file for Seagate Personnal Cloud 2-Bay NAS (n090203). + * + * Copyright (C) 2015 Seagate + * + * Author: Simon Guinot <[email protected]> + * + * This file is licensed under the terms of the GNU General Public
arch/arm/boot/dts/armada-370-n090203.dts line 18
Quoted 10 lines
arch/arm/boot/dts/armada-370-n090203.dts new file +10
-0+ * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +/dts-v1/; +#include "armada-370-n090x03.dtsi" + +/ { + model = "Seagate Personnal Cloud 2-Bay"; + compatible = "seagate,n090203", "marvell,armada370", "marvell,armada-370-xp";
And then here:
compatible = "seagate,n090103", "seagate,personalcloud2", "marvell,armada370", "marvell,armada-370-xp";
or similar.
The same comments apply to the NAS versions as well.
thx,
Jason.
PATCH 2/3 ARM: mvebu: add DT support for Seagate Personal Cloud
Quoted 15 lines · Jason Cooper
Quoted 13 lines · Simon Guinot
This patch adds DT support for the Seagate Personal Cloud 1 and 2-Bay (n090103 and n090203).
Chipset list:
- SoC Marvell Armada 370 88F6707, CPU @1GHz
- SDRAM memory: 512MB DDR3 667MHz (16-bits bandwidth)
- SPI flash 1MB (Macronix MX25L8006E)
- 1 or 2 SATA internal ports
- 1 Ethernet Gigabit port (PHY Marvell 88E1518)
- 1 USB3 host port (PCIe controller ASM1042)
- 1 USB2 host port (SoC)
- 2 push buttons (power and reset)
- 1 SATA LED (bi-color, white and red)
Quoted 4 lines
Do you have long term URLs for these products? It would be nice to add those. The best I could find is:
Definitively, it is not a long term URL. There is none available.
For the customer products such as the Personal Cloud, I don't think that the hardware specifications are available. For the professional products, it is a little bit better.
Quoted 4 lines
But none of the model numbers match what you've used in this patch series. I imagine this will make it harder for newcomers to find the relevant code.
Indeed, the model number can be used to identify the product and the hardware board. But unfortunately, I don't know how to read it. There is a lot of informations encoded inside this number and the specifications are not fully available to me. That's why I don't think it is a good idea to use it.
And indeed again, the hardware name I am using can't be found easily by a user. It is not written on the PCB nor on the casing. But the hardware name is used by the stock U-Boot image to build an environment variable:
target.dtb. This variable holds the name of the DTB file to load (armada-370-n090103.dtb for example) from hard disk during the boot process. I was hoping I could keep Linux mainline naming compatible with the stock U-Boot.
Simon
Quoted 82 lines
Quoted 15 lines
Note that support for the white SATA LED is missing. A dedicated LED driver is needed.
Signed-off-by Simon Guinot <[email protected]>--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/armada-370-n090103.dts | 28 +++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi...
Quoted 7 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +1
-0@@ -0,0 +1,28 @@ +/*arch/arm/boot/dts/armada-370-n090103.dts line 11
Quoted 10 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +10
-0+ * Device Tree file for Seagate Personal Cloud NAS (n090103). + * + * Copyright (C) 2015 Seagate + * + * Author: Simon Guinot <[email protected]> + * + * 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 kind, whether express or implied. + */Based on previous discussions, I'm pretty sure I know what the answer is, but I have to at least ask in case it was accidental. All other armada-* files are dual licensed, GPLv2/X11. Was it intentional to license these as GPLv2 only?
arch/arm/boot/dts/armada-370-n090103.dts line 18
Quoted 7 lines
arch/arm/boot/dts/armada-370-n090103.dts new file +7
-0+ +/dts-v1/; +#include "armada-370-n090x03.dtsi" + +/ { + model = "Seagate Personal Cloud"; + compatible = "seagate,n090103", "marvell,armada370", "marvell,armada-370-xp";In line with my previous comment, can we add a compatible string here?
compatible = "seagate,n090103", "seagate,personalcloud", "marvell,armada370", "marvell,armada-370-xp";Quoted 14 lines
arch/arm/boot/dts/armada-370-n090203.dts new file +8
-0@@ -0,0 +1,42 @@ +/* + * Device Tree file for Seagate Personnal Cloud 2-Bay NAS (n090203). + * + * Copyright (C) 2015 Seagate + * + * Author: Simon Guinot <[email protected]> + * + * This file is licensed under the terms of the GNU General Publicarch/arm/boot/dts/armada-370-n090203.dts line 18
Quoted 10 lines
arch/arm/boot/dts/armada-370-n090203.dts new file +10
-0+ * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +/dts-v1/; +#include "armada-370-n090x03.dtsi" + +/ { + model = "Seagate Personnal Cloud 2-Bay"; + compatible = "seagate,n090203", "marvell,armada370", "marvell,armada-370-xp";And then here:
compatible = "seagate,n090103", "seagate,personalcloud2", "marvell,armada370", "marvell,armada-370-xp";
Quoted 7 lines
or similar.
The same comments apply to the NAS versions as well.
thx,
Jason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150831/eec6621c/attachment-0001.sig>
Andrew Lunn
maintainerPATCH 2/3 ARM: mvebu: add DT support for Seagate Personal Cloud
Quoted 5 lines
But the hardware name is used by the stock U-Boot image to build an environment variable: target.dtb. This variable holds the name of the DTB file to load (armada-370-n090103.dtb for example) from hard disk during the boot process. I was hoping I could keep Linux mainline naming compatible with the stock U-Boot.
Hi Simon
Could you make the suggestion towards the product managers that future new products include seagate in the filename? That will greatly increase the chance of keeping naming compatibility.
Andrew
PATCH 3/3 ARM: mvebu: enable options for Seagate NAS in mvebu_v7_defconfig
In reply to Simon GuinotThis patch enables the following options needed by the Seagate Personal Cloud 1 and 2-Bay and the Seagate NAS 2 and 4-Bay:
SATA_AHCIPOWER_RESET_GPIORTC_DRV_DS1307RTC_DRV_PCF8563
Additionnally this patch also enables NEW_LEDS which was missing for some reasons.
--- arch/arm/configs/mvebu_v7_defconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/configs/mvebu_v7_defconfig +8 -1
@@ -61,6 +61,7 @@ CONFIG_MTD_SPI_NOR=y CONFIG_EEPROM_AT24=y CONFIG_BLK_DEV_SD=y CONFIG_ATA=y +CONFIG_SATA_AHCI=y CONFIG_AHCI_MVEBU=y CONFIG_SATA_MV=y CONFIG_NETDEVICES=y
@@ -85,6 +86,9 @@ CONFIG_SPI=y CONFIG_SPI_ORION=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_PCA953X=y +CONFIG_POWER_SUPPLY=y +CONFIG_POWER_RESET=y +CONFIG_POWER_RESET_GPIO=y CONFIG_SENSORS_GPIO_FAN=y CONFIG_THERMAL=y CONFIG_ARMADA_THERMAL=y
@@ -111,12 +115,15 @@ CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_DOVE=y CONFIG_MMC_SDHCI_PXAV3=y CONFIG_MMC_MVSDIO=y -CONFIG_LEDS_GPIO=y +CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_DS1307=y +CONFIG_RTC_DRV_PCF8563=y CONFIG_RTC_DRV_S35390A=y CONFIG_RTC_DRV_MV=y CONFIG_RTC_DRV_ARMADA38X=y
Signature · 1 line
2.1.4
cover Add support for the Armada-370-based Seagate NAS
In reply to Simon GuinotQuoted 17 lines · Simon Guinot
Hi,
This patch series adds support for the Seagate machines based on the Armada-370 Marvell SoC. This includes the Personal Cloud 1 and 2-Bay and the Seagate NAS 2 and 4-Bay.
Thanks,
Simon
Simon Guinot (2):
ARM: mvebu: add DT support for Seagate Personal Cloud
ARM: mvebu: enable options for Seagate NAS inmvebu_v7_defconfigVincent Donnefort (1):
ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 15 lines
arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/armada-370-n090103.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++ arch/arm/configs/mvebu_v7_defconfig | 9 +- 8 files changed, 640 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsi create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi
Could you please name these something more informative? e.g. armada-370-seagate-personal-cloud-{1,2}.dts, etc?
thx,
Jason.
cover Add support for the Armada-370-based Seagate NAS
Quoted 18 lines · Jason Cooper
Quoted 17 lines · Simon Guinot
Hi,
This patch series adds support for the Seagate machines based on the Armada-370 Marvell SoC. This includes the Personal Cloud 1 and 2-Bay and the Seagate NAS 2 and 4-Bay.
Thanks,
Simon
Simon Guinot (2):
ARM: mvebu: add DT support for Seagate Personal Cloud
ARM: mvebu: enable options for Seagate NAS inmvebu_v7_defconfigVincent Donnefort (1):
ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay
Quoted 15 lines
Quoted 7 lines
arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/armada-370-n090103.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++Quoted 8 lines
arch/arm/configs/mvebu_v7_defconfig | 9 +- 8 files changed, 640 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsi create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsi
Hi Jason,
Quoted 3 lines
Could you please name these something more informative? e.g. armada-370-seagate-personal-cloud-{1,2}.dts, etc?
Sure I can. But note that n090103 is an hardware name while Seagate Personal Cloud is a product name. The former is unique while the latter is not. For example, it is possible that we will see in a near future an hardware update for the Personal Cloud.
But if you still feel it is the right way to go, I'll be glad to do the changes.
Thanks,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150831/888a4915/attachment.sig>
cover Add support for the Armada-370-based Seagate NAS
Quoted 38 lines · Simon Guinot
Quoted 18 lines · Jason Cooper
Quoted 17 lines · Simon Guinot
Hi,
This patch series adds support for the Seagate machines based on the Armada-370 Marvell SoC. This includes the Personal Cloud 1 and 2-Bay and the Seagate NAS 2 and 4-Bay.
Thanks,
Simon
Simon Guinot (2):
ARM: mvebu: add DT support for Seagate Personal Cloud
ARM: mvebu: enable options for Seagate NAS inmvebu_v7_defconfigVincent Donnefort (1):
ARM: mvebu: add DT support for Seagate NAS 2 and 4-BayQuoted 15 lines
Quoted 7 lines
arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/armada-370-n090103.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090201.dts | 28 ++++ arch/arm/boot/dts/armada-370-n090203.dts | 42 ++++++ arch/arm/boot/dts/armada-370-n090401.dts | 124 ++++++++++++++++ arch/arm/boot/dts/armada-370-n090x01.dtsi | 232 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/armada-370-n090x03.dtsi | 174 ++++++++++++++++++++++Quoted 8 lines
arch/arm/configs/mvebu_v7_defconfig | 9 +- 8 files changed, 640 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-370-n090103.dts create mode 100644 arch/arm/boot/dts/armada-370-n090201.dts create mode 100644 arch/arm/boot/dts/armada-370-n090203.dts create mode 100644 arch/arm/boot/dts/armada-370-n090401.dts create mode 100644 arch/arm/boot/dts/armada-370-n090x01.dtsi create mode 100644 arch/arm/boot/dts/armada-370-n090x03.dtsiHi Jason,
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
Could you please name these something more informative? e.g. armada-370-seagate-personal-cloud-{1,2}.dts, etc?
Sure I can. But note that n090103 is an hardware name while Seagate Personal Cloud is a product name. The former is unique while the latter is not. For example, it is possible that we will see in a near future an hardware update for the Personal Cloud.
Understood, but I'd also like to make it a bit easier for hackers not intimately familiar with the tree/products to find the file they are interested in.
I've no problem with 'armada-370-seagate-personalcloud-n090103.dts' either.
thx,
Jason.