Re: [U-Boot] [PATCH v2] ARM: zynq: Add support for SYZYGY Hub board

2017-11-06 Thread Michal Simek
Hi,

On 2.11.2017 17:42, Tom McLeod wrote:
> Hi Michal,
> 
>> Patch looks good but only this prefix needs to be added to the Linux
>> kernel. It should be present in this file. Please send the patch and
>> when it is added to linux-next I will add your patch
> 
> It looks like our vendor prefix has been accepted into linux-next.
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/
> Documentation/devicetree/bindings/vendor-prefixes.txt?h=master
> 
> Please let me know if you need anything else to apply our u-boot patch.

Wonderful. I have updated defconfig to be aligned with the latest
version and I have applied this patch to my tree.

http://git.denx.de/?p=u-boot/u-boot-microblaze.git;a=summary

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


Re: [U-Boot] [PATCH v2] ARM: zynq: Add support for SYZYGY Hub board

2017-11-02 Thread Tom McLeod
Hi Michal,

>Patch looks good but only this prefix needs to be added to the Linux
>kernel. It should be present in this file. Please send the patch and
>when it is added to linux-next I will add your patch

It looks like our vendor prefix has been accepted into linux-next.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/
Documentation/devicetree/bindings/vendor-prefixes.txt?h=master

Please let me know if you need anything else to apply our u-boot patch.

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


Re: [U-Boot] [PATCH v2] ARM: zynq: Add support for SYZYGY Hub board

2017-10-09 Thread Michal Simek
On 28.9.2017 02:53, Tom McLeod wrote:
> Add the Zynq-based SYZYGY Hub board from Opal Kelly. The board
> contains a Xilinx Zynq xc7z012s SoC, 1GB DDR3 RAM, and supports
> booting from SD.
> 
> Signed-off-by: Tom McLeod 
> Cc: Michal Simek 
> CC: Albert Aribaud 
> ---
> Changes for v2:
>   - Append syzygy-hub dtb to the end of the Zynq section in the dts Makefile
> as this appears to be the convention, if desired I can change this
>   - Add an opalkelly,syzygy-hub compatible line to the syzygy hub dts
>   - Clean up the ps7_init_gpl sources, removing old/unnecessary/unused code
> and eliminating all checkpatch warnings/errors
> 
>  arch/arm/dts/Makefile  |   3 +-
>  arch/arm/dts/zynq-syzygy-hub.dts   |  72 
>  board/opalkelly/zynq/MAINTAINERS   |   6 +
>  board/opalkelly/zynq/Makefile  |   9 +
>  board/opalkelly/zynq/board.c   |   1 +
>  .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c  | 431 
> +
>  .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h  |  82 
>  configs/syzygy_hub_defconfig   |  57 +++
>  include/configs/syzygy_hub.h   |  72 
>  9 files changed, 732 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/dts/zynq-syzygy-hub.dts
>  create mode 100644 board/opalkelly/zynq/MAINTAINERS
>  create mode 100644 board/opalkelly/zynq/Makefile
>  create mode 100644 board/opalkelly/zynq/board.c
>  create mode 100644 board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c
>  create mode 100644 board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h
>  create mode 100644 configs/syzygy_hub_defconfig
>  create mode 100644 include/configs/syzygy_hub.h
> 
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 762429c..1a6a8ff 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -135,7 +135,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
>   zynq-zc770-xm010.dtb \
>   zynq-zc770-xm011.dtb \
>   zynq-zc770-xm012.dtb \
> - zynq-zc770-xm013.dtb
> + zynq-zc770-xm013.dtb \
> + zynq-syzygy-hub.dtb
>  dtb-$(CONFIG_ARCH_ZYNQMP) += \
>   zynqmp-ep108.dtb\
>   zynqmp-zcu102-revA.dtb  \
> diff --git a/arch/arm/dts/zynq-syzygy-hub.dts 
> b/arch/arm/dts/zynq-syzygy-hub.dts
> new file mode 100644
> index 000..ebd08b4
> --- /dev/null
> +++ b/arch/arm/dts/zynq-syzygy-hub.dts
> @@ -0,0 +1,72 @@
> +/*
> + * SYZYGY Hub DTS
> + *
> + *  Copyright (C) 2011 - 2015 Xilinx
> + *  Copyright (C) 2017 Opal Kelly Inc.
> + *
> + * SPDX-License-Identifier:  GPL-2.0+
> + */
> +/dts-v1/;
> +/include/ "zynq-7000.dtsi"
> +
> +/ {
> + model = "SYZYGY Hub";
> + compatible = "opalkelly,syzygy-hub", "xlnx,zynq-7000";

Patch looks good but only this prefix needs to be added to the Linux
kernel. It should be present in this file. Please send the patch and
when it is added to linux-next I will add your patch

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/vendor-prefixes.txt?h=next-20171009

Thanks,
Michal
-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs




signature.asc
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2] ARM: zynq: Add support for SYZYGY Hub board

2017-09-27 Thread Tom McLeod
Add the Zynq-based SYZYGY Hub board from Opal Kelly. The board
contains a Xilinx Zynq xc7z012s SoC, 1GB DDR3 RAM, and supports
booting from SD.

Signed-off-by: Tom McLeod 
Cc: Michal Simek 
CC: Albert Aribaud 
---
Changes for v2:
  - Append syzygy-hub dtb to the end of the Zynq section in the dts Makefile
as this appears to be the convention, if desired I can change this
  - Add an opalkelly,syzygy-hub compatible line to the syzygy hub dts
  - Clean up the ps7_init_gpl sources, removing old/unnecessary/unused code
and eliminating all checkpatch warnings/errors

 arch/arm/dts/Makefile  |   3 +-
 arch/arm/dts/zynq-syzygy-hub.dts   |  72 
 board/opalkelly/zynq/MAINTAINERS   |   6 +
 board/opalkelly/zynq/Makefile  |   9 +
 board/opalkelly/zynq/board.c   |   1 +
 .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c  | 431 +
 .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h  |  82 
 configs/syzygy_hub_defconfig   |  57 +++
 include/configs/syzygy_hub.h   |  72 
 9 files changed, 732 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/zynq-syzygy-hub.dts
 create mode 100644 board/opalkelly/zynq/MAINTAINERS
 create mode 100644 board/opalkelly/zynq/Makefile
 create mode 100644 board/opalkelly/zynq/board.c
 create mode 100644 board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c
 create mode 100644 board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h
 create mode 100644 configs/syzygy_hub_defconfig
 create mode 100644 include/configs/syzygy_hub.h

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 762429c..1a6a8ff 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -135,7 +135,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
zynq-zc770-xm010.dtb \
zynq-zc770-xm011.dtb \
zynq-zc770-xm012.dtb \
-   zynq-zc770-xm013.dtb
+   zynq-zc770-xm013.dtb \
+   zynq-syzygy-hub.dtb
 dtb-$(CONFIG_ARCH_ZYNQMP) += \
zynqmp-ep108.dtb\
zynqmp-zcu102-revA.dtb  \
diff --git a/arch/arm/dts/zynq-syzygy-hub.dts b/arch/arm/dts/zynq-syzygy-hub.dts
new file mode 100644
index 000..ebd08b4
--- /dev/null
+++ b/arch/arm/dts/zynq-syzygy-hub.dts
@@ -0,0 +1,72 @@
+/*
+ * SYZYGY Hub DTS
+ *
+ *  Copyright (C) 2011 - 2015 Xilinx
+ *  Copyright (C) 2017 Opal Kelly Inc.
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+   model = "SYZYGY Hub";
+   compatible = "opalkelly,syzygy-hub", "xlnx,zynq-7000";
+
+   aliases {
+   ethernet0 = 
+   serial0 = 
+   mmc0 = 
+   };
+
+   memory@0 {
+   device_type = "memory";
+   reg = <0x0 0x4000>;
+   };
+
+   chosen {
+   bootargs = "";
+   stdout-path = "serial0:115200n8";
+   };
+
+   usb_phy0: phy0 {
+   #phy-cells = <0>;
+   compatible = "usb-nop-xceiv";
+   reset-gpios = < 47 1>;
+   };
+};
+
+ {
+   ps-clk-frequency = <5000>;
+};
+
+ {
+   status = "okay";
+   phy-mode = "rgmii-id";
+   phy-handle = <_phy>;
+
+   ethernet_phy: ethernet-phy@0 {
+   reg = <0>;
+   device_type = "ethernet-phy";
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   u-boot,dm-pre-reloc;
+   status = "okay";
+};
+
+ {
+   u-boot,dm-pre-reloc;
+   status = "okay";
+};
+
+ {
+   status = "okay";
+   dr_mode = "otg";
+   usb-phy = <_phy0>;
+};
diff --git a/board/opalkelly/zynq/MAINTAINERS b/board/opalkelly/zynq/MAINTAINERS
new file mode 100644
index 000..df4b9b6
--- /dev/null
+++ b/board/opalkelly/zynq/MAINTAINERS
@@ -0,0 +1,6 @@
+ZYNQ BOARD
+M: Tom McLeod 
+S: Maintained
+F: board/opalkelly/zynq/
+F: include/configs/syzygy_hub.h
+F: configs/syzygy_hub_defconfig
diff --git a/board/opalkelly/zynq/Makefile b/board/opalkelly/zynq/Makefile
new file mode 100644
index 000..09fc788
--- /dev/null
+++ b/board/opalkelly/zynq/Makefile
@@ -0,0 +1,9 @@
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y  := board.o
+
+hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
+
+obj-$(CONFIG_SPL_BUILD) += $(hw-platform-y)/ps7_init_gpl.o
diff --git a/board/opalkelly/zynq/board.c b/board/opalkelly/zynq/board.c
new file mode 100644
index 000..a95c9d1
--- /dev/null
+++ b/board/opalkelly/zynq/board.c
@@ -0,0 +1 @@
+#include "../../xilinx/zynq/board.c"
diff --git a/board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c 
b/board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c
new file mode 100644
index 000..7ae0475
--- /dev/null
+++ b/board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c
@@ -0,0 +1,431 @@