Re: [U-Boot] [PATCH 2/3 v2] armv8: ls1028ardb: Add support for LS1028ARDB platform

2019-04-07 Thread Prabhakar Kushwaha

> -Original Message-
> From: Yuantian Tang 
> Sent: Wednesday, April 3, 2019 12:48 PM
> To: Prabhakar Kushwaha 
> Cc: albert.u.b...@aribaud.net; Sudhanshu Gupta
> ; Harninder Rai ; Rajesh
> Bhagat ; Bhaskar Upadhaya
> ; u-boot@lists.denx.de; Andy Tang
> 
> Subject: [PATCH 2/3 v2] armv8: ls1028ardb: Add support for LS1028ARDB
> platform
> 
> From: Tang Yuantian 
> 
> LS1028A is an ARMv8 implementation. LS1028ARDB is an evaluatoin platform
> that supports the LS1028A family SoCs. This patch add basic support of the
> platform.
> 
> Signed-off-by: Sudhanshu Gupta 
> Signed-off-by: Rai Harninder 
> Signed-off-by: Rajesh Bhagat 
> Signed-off-by: Bhaskar Upadhaya 
> Signed-off-by: Tang Yuantian 
> ---
> v2:
>   - fix many issues
>  arch/arm/Kconfig|  12 ++
>  arch/arm/cpu/armv8/Kconfig  |   1 +
>  arch/arm/dts/fsl-ls1028a-rdb.dts|  92 
>  arch/arm/dts/fsl-ls1028a.dtsi   |   2 +-
>  board/freescale/ls1028a/Kconfig |  38 +
>  board/freescale/ls1028a/MAINTAINERS |  10 ++
>  board/freescale/ls1028a/Makefile|   8 +
>  board/freescale/ls1028a/README  |  79 ++
>  board/freescale/ls1028a/ddr.c   | 284
> 
>  board/freescale/ls1028a/ddr.h   |  46 ++
>  board/freescale/ls1028a/ls1028a.c   | 194 
>  configs/ls1028ardb_tfa_defconfig|  61 
>  include/configs/ls1028a_common.h| 243
> ++
>  include/configs/ls1028ardb.h|  82 +++
>  14 files changed, 1151 insertions(+), 1 deletion(-)  create mode 100644
> arch/arm/dts/fsl-ls1028a-rdb.dts  create mode 100644
> board/freescale/ls1028a/Kconfig  create mode 100644
> board/freescale/ls1028a/MAINTAINERS
>  create mode 100644 board/freescale/ls1028a/Makefile  create mode 100644
> board/freescale/ls1028a/README  create mode 100644
> board/freescale/ls1028a/ddr.c  create mode 100644
> board/freescale/ls1028a/ddr.h  create mode 100644
> board/freescale/ls1028a/ls1028a.c  create mode 100644
> configs/ls1028ardb_tfa_defconfig  create mode 100644
> include/configs/ls1028a_common.h  create mode 100644
> include/configs/ls1028ardb.h
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f42ecce..aaaf36a
> 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1203,6 +1203,17 @@ config TARGET_LS1012AFRDM
> development platform that supports the QorIQ LS1012A
> Layerscape Architecture processor.
> 
> +config TARGET_LS1028ARDB
> + bool "Support ls1028ardb"
> + select ARCH_LS1028A
> + select ARM64
> + select ARMV8_MULTIENTRY
> + help
> +   Support for Freescale LS1028ARDB platform
> +   The LS1028A Development System (RDB) is a high-performance
> +   development platform that supports the QorIQ LS1028A
> +   Layerscape Architecture processor.
> +
>  config TARGET_LS1088ARDB
>   bool "Support ls1088ardb"
>   select ARCH_LS1088A
> @@ -1585,6 +1596,7 @@ source "board/freescale/ls2080a/Kconfig"
>  source "board/freescale/ls2080aqds/Kconfig"
>  source "board/freescale/ls2080ardb/Kconfig"
>  source "board/freescale/ls1088a/Kconfig"
> +source "board/freescale/ls1028a/Kconfig"
>  source "board/freescale/ls1021aqds/Kconfig"
>  source "board/freescale/ls1043aqds/Kconfig"
>  source "board/freescale/ls1021atwr/Kconfig"
> diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig index
> f053603..a4fa63b 100644
> --- a/arch/arm/cpu/armv8/Kconfig
> +++ b/arch/arm/cpu/armv8/Kconfig
> @@ -104,6 +104,7 @@ config PSCI_RESET
>  !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
>  !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
>  !TARGET_LS1012AFRWY && \
> +!TARGET_LS1028ARDB && \
>  !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \
>  !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
>  !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \ diff --
> git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts
> new file mode 100644
> index 000..e86ba06
> --- /dev/null
> +++ b/arch/arm/dts/fsl-ls1028a-rdb.dts
> @@ -0,0 +1,92 @@
> +// SPDX-License-Identifier: GPL-2.0+ OR X11
> +/*
> + * NXP ls1028ARDB device tree source
> + *
> + * Copyright 2019 NXP
> + *
> + */
> +
> +/dts-v1/;
> +
> +#include "fsl-ls1028a.dtsi"
> +
> +/ {
> + model = "NXP Layerscape 1028a RDB Board";
> + compatible = "fsl,ls1028a-rdb", "fsl,ls1028a"; };
> +
> +&dspi0 {
> + status = "okay";
> +};
> +
> +&dspi1 {
> + status = "okay";
> +};
> +
> +&dspi2 {
> + status = "okay";
> +};
> +
> +&esdhc0 {
> + status = "okay";
> +};
> +
> +&esdhc1 {
> + status = "okay";
> +};
> +
> +&fspi {
> + status = "okay";
> +};
> +

When flexspi driver is not in upstream. Then why fspi status is getting changed 
to "ok"


> +&i2c0 {
> + status = "okay";
> +};
> +
> +&i2c1 {
> + status = "okay";
> +};
> +
> +&i2c2 {
> + stat

[U-Boot] [PATCH 2/3 v2] armv8: ls1028ardb: Add support for LS1028ARDB platform

2019-04-03 Thread Yuantian Tang
From: Tang Yuantian 

LS1028A is an ARMv8 implementation. LS1028ARDB is an evaluatoin
platform that supports the LS1028A family SoCs. This patch add basic
support of the platform.

Signed-off-by: Sudhanshu Gupta 
Signed-off-by: Rai Harninder 
Signed-off-by: Rajesh Bhagat 
Signed-off-by: Bhaskar Upadhaya 
Signed-off-by: Tang Yuantian 
---
v2:
- fix many issues
 arch/arm/Kconfig|  12 ++
 arch/arm/cpu/armv8/Kconfig  |   1 +
 arch/arm/dts/fsl-ls1028a-rdb.dts|  92 
 arch/arm/dts/fsl-ls1028a.dtsi   |   2 +-
 board/freescale/ls1028a/Kconfig |  38 +
 board/freescale/ls1028a/MAINTAINERS |  10 ++
 board/freescale/ls1028a/Makefile|   8 +
 board/freescale/ls1028a/README  |  79 ++
 board/freescale/ls1028a/ddr.c   | 284 
 board/freescale/ls1028a/ddr.h   |  46 ++
 board/freescale/ls1028a/ls1028a.c   | 194 
 configs/ls1028ardb_tfa_defconfig|  61 
 include/configs/ls1028a_common.h| 243 ++
 include/configs/ls1028ardb.h|  82 +++
 14 files changed, 1151 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/fsl-ls1028a-rdb.dts
 create mode 100644 board/freescale/ls1028a/Kconfig
 create mode 100644 board/freescale/ls1028a/MAINTAINERS
 create mode 100644 board/freescale/ls1028a/Makefile
 create mode 100644 board/freescale/ls1028a/README
 create mode 100644 board/freescale/ls1028a/ddr.c
 create mode 100644 board/freescale/ls1028a/ddr.h
 create mode 100644 board/freescale/ls1028a/ls1028a.c
 create mode 100644 configs/ls1028ardb_tfa_defconfig
 create mode 100644 include/configs/ls1028a_common.h
 create mode 100644 include/configs/ls1028ardb.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f42ecce..aaaf36a 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1203,6 +1203,17 @@ config TARGET_LS1012AFRDM
  development platform that supports the QorIQ LS1012A
  Layerscape Architecture processor.
 
+config TARGET_LS1028ARDB
+   bool "Support ls1028ardb"
+   select ARCH_LS1028A
+   select ARM64
+   select ARMV8_MULTIENTRY
+   help
+ Support for Freescale LS1028ARDB platform
+ The LS1028A Development System (RDB) is a high-performance
+ development platform that supports the QorIQ LS1028A
+ Layerscape Architecture processor.
+
 config TARGET_LS1088ARDB
bool "Support ls1088ardb"
select ARCH_LS1088A
@@ -1585,6 +1596,7 @@ source "board/freescale/ls2080a/Kconfig"
 source "board/freescale/ls2080aqds/Kconfig"
 source "board/freescale/ls2080ardb/Kconfig"
 source "board/freescale/ls1088a/Kconfig"
+source "board/freescale/ls1028a/Kconfig"
 source "board/freescale/ls1021aqds/Kconfig"
 source "board/freescale/ls1043aqds/Kconfig"
 source "board/freescale/ls1021atwr/Kconfig"
diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig
index f053603..a4fa63b 100644
--- a/arch/arm/cpu/armv8/Kconfig
+++ b/arch/arm/cpu/armv8/Kconfig
@@ -104,6 +104,7 @@ config PSCI_RESET
   !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
   !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
   !TARGET_LS1012AFRWY && \
+  !TARGET_LS1028ARDB && \
   !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \
   !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
   !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
diff --git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts
new file mode 100644
index 000..e86ba06
--- /dev/null
+++ b/arch/arm/dts/fsl-ls1028a-rdb.dts
@@ -0,0 +1,92 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP ls1028ARDB device tree source
+ *
+ * Copyright 2019 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-ls1028a.dtsi"
+
+/ {
+   model = "NXP Layerscape 1028a RDB Board";
+   compatible = "fsl,ls1028a-rdb", "fsl,ls1028a";
+};
+
+&dspi0 {
+   status = "okay";
+};
+
+&dspi1 {
+   status = "okay";
+};
+
+&dspi2 {
+   status = "okay";
+};
+
+&esdhc0 {
+   status = "okay";
+};
+
+&esdhc1 {
+   status = "okay";
+};
+
+&fspi {
+   status = "okay";
+};
+
+&i2c0 {
+   status = "okay";
+};
+
+&i2c1 {
+   status = "okay";
+};
+
+&i2c2 {
+   status = "okay";
+};
+
+&i2c3 {
+   status = "okay";
+};
+
+&i2c4 {
+   status = "okay";
+};
+
+&i2c5 {
+   status = "okay";
+};
+
+&i2c6 {
+   status = "okay";
+};
+
+&i2c7 {
+   status = "okay";
+};
+
+&sata {
+   status = "okay";
+};
+
+&serial0 {
+   status = "okay";
+};
+
+&serial1 {
+   status = "okay";
+};
+
+&usb1 {
+   status = "okay";
+};
+
+&usb2 {
+   status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi
index a38c8ce..31e1aef 100644
--- a/arch/arm/dts/fsl-ls1028a.dtsi
+++ b/arch/arm/dts/fsl-ls1028a.dtsi
@@ -276,5 +276,5 @@
interrupts = <0 133 4>;