Re: [U-Boot] [PATCH v2 2/2] ARM: add SBx81LIFKW board

2018-06-05 Thread Stefan Roese

On 30.05.2018 10:14, Chris Packham wrote:

This is a series of line cards for Allied Telesis's SBx8100 chassis
switch. The CPU block is common to the SBx81GS24a, SBx81XS6, SBx81XS16
and SBx81GT40 cards collectively referred to as SBx81LIFKW in u-boot.

Reviewed-by: Stefan Roese 
Signed-off-by: Chris Packham 


Applied to u-boot-marvell/master.

Thanks,
Stefan
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 2/2] ARM: add SBx81LIFKW board

2018-05-30 Thread Chris Packham
This is a series of line cards for Allied Telesis's SBx8100 chassis
switch. The CPU block is common to the SBx81GS24a, SBx81XS6, SBx81XS16
and SBx81GT40 cards collectively referred to as SBx81LIFKW in u-boot.

Reviewed-by: Stefan Roese 
Signed-off-by: Chris Packham 
---
This is the board I've been using for testing the device tree support
for kirkwood. The Ethernet arrangement is a bit complicated and doesn't
currently work on u-boot#master but I can test SPI and I2C.

Changes in v2:
- remove unnecessary platform.S

 arch/arm/dts/kirkwood-atl-sbx81lifkw.dts| 133 ++
 arch/arm/mach-kirkwood/Kconfig  |   4 +
 board/alliedtelesis/SBx81LIFKW/Kconfig  |  12 ++
 board/alliedtelesis/SBx81LIFKW/MAINTAINERS  |   7 +
 board/alliedtelesis/SBx81LIFKW/Makefile |   7 +
 board/alliedtelesis/SBx81LIFKW/kwbimage.cfg |  47 +
 board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c | 187 
 configs/SBx81LIFKW_defconfig|  33 
 include/configs/SBx81LIFKW.h| 124 +
 9 files changed, 554 insertions(+)
 create mode 100644 arch/arm/dts/kirkwood-atl-sbx81lifkw.dts
 create mode 100644 board/alliedtelesis/SBx81LIFKW/Kconfig
 create mode 100644 board/alliedtelesis/SBx81LIFKW/MAINTAINERS
 create mode 100644 board/alliedtelesis/SBx81LIFKW/Makefile
 create mode 100644 board/alliedtelesis/SBx81LIFKW/kwbimage.cfg
 create mode 100644 board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
 create mode 100644 configs/SBx81LIFKW_defconfig
 create mode 100644 include/configs/SBx81LIFKW.h

diff --git a/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts 
b/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts
new file mode 100644
index ..e5b1efa1415a
--- /dev/null
+++ b/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts
@@ -0,0 +1,133 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "kirkwood.dtsi"
+#include "kirkwood-6281.dtsi"
+
+/ {
+   model = "Allied Telesis SBx81LIFKW Board";
+   compatible = "atl,SBx81LIFKW", "marvell,kirkwood-88f6281",
+"marvell,kirkwood";
+
+   memory {
+   device_type = "memory";
+   reg = <0x 0x0800>; /* 128 MB */
+   };
+
+   chosen {
+   bootargs = "console=ttyS0,115200n8 earlyprintk";
+   stdout-path = 
+   };
+
+   aliases {
+   ethernet0 = 
+   i2c0 = 
+   spi0 = 
+   };
+
+   dsa {
+   compatible = "marvell,dsa";
+   #address-cells = <2>;
+   #size-cells = <0>;
+   dsa,ethernet = <>;
+   dsa,mii-bus = <>;
+   status = "okay";
+
+   switch@0 {
+   #address-cells =  <1>;
+   #size-cells = <0>;
+   reg = <1 0>;
+
+   port@0 {
+   reg = <0>;
+   label = "internal0";
+   };
+   port@1 {
+   reg = <1>;
+   label = "internal1";
+   };
+   port@8 {
+   reg = <8>;
+   label = "internal8";
+   phy-mode = "rgmii-id";
+   fixed-link {
+   speed = <1000>;
+   full-duplex;
+   };
+   };
+   port@9 {
+   reg = <9>;
+   label = "internal9";
+   phy-mode = "rgmii-id";
+   fixed-link {
+   speed = <1000>;
+   full-duplex;
+   };
+   };
+   port@10 {
+   reg = <10>;
+   label = "cpu";
+   };
+   };
+   };
+};
+
+ {
+   status = "okay";
+
+   flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";
+   reg = <0>;
+   spi-max-frequency = <5000>;
+   mode = <0>;
+
+   partition@u-boot {
+   reg = <0x 0x00c0>;
+   label = "u-boot";
+   };
+   partition@u-boot-env {
+   reg = <0x00c0 0x0004>;
+   label = "u-boot-env";
+   };
+   partition@unused {
+   reg = <0x0010 0x00f0>;
+   label = "unused";
+   };
+   };
+};
+
+ {
+   status = "okay";
+
+   eeprom@52 {
+   compatible = "atmel,24c04";
+