Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Afzal Mohammed
Hi,

On Wed, Jul 13, 2016 at 03:26:40PM +0800, Wan Zongshun wrote:
> Do you mean I should add cpus into soc

yes

Regards
afzal


Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Afzal Mohammed
Hi,

On Wed, Jul 13, 2016 at 03:26:40PM +0800, Wan Zongshun wrote:
> Do you mean I should add cpus into soc

yes

Regards
afzal


Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Wan Zongshun



On 2016年07月12日 23:39, Afzal Mohammed wrote:

Hi,

On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote:

This patch is to add dts support for nuc970 platform.


cpu ! in soc ? lost in fab ? ;)


Do you mean I should add cpus into soc like?


cpus {
#address-cells = <0>;
#size-cells = <0>;

cpu {
compatible = "arm,arm926ej-s";
device_type = "cpu";
};
};



Regards
afzal




Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Wan Zongshun



On 2016年07月12日 23:39, Afzal Mohammed wrote:

Hi,

On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote:

This patch is to add dts support for nuc970 platform.


cpu ! in soc ? lost in fab ? ;)


Do you mean I should add cpus into soc like?


cpus {
#address-cells = <0>;
#size-cells = <0>;

cpu {
compatible = "arm,arm926ej-s";
device_type = "cpu";
};
};



Regards
afzal




Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-12 Thread Afzal Mohammed
Hi,

On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote:
> This patch is to add dts support for nuc970 platform.

cpu ! in soc ? lost in fab ? ;)

Regards
afzal


Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-12 Thread Afzal Mohammed
Hi,

On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote:
> This patch is to add dts support for nuc970 platform.

cpu ! in soc ? lost in fab ? ;)

Regards
afzal


[PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-10 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform.

Signed-off-by: Wan Zongshun 
---
 arch/arm/boot/dts/Makefile   |  1 +
 arch/arm/boot/dts/nuc970-evb.dts | 34 
 arch/arm/boot/dts/nuc970.dtsi| 88 
 3 files changed, 123 insertions(+)
 create mode 100644 arch/arm/boot/dts/nuc970-evb.dts
 create mode 100644 arch/arm/boot/dts/nuc970.dtsi

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 414b427..557477d 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -892,6 +892,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
 dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-ast2500-evb.dtb
+dtb-$(CONFIG_SOC_NUC970) += nuc970-evb.dtb
 endif
 
 dtstree:= $(srctree)/$(src)
diff --git a/arch/arm/boot/dts/nuc970-evb.dts b/arch/arm/boot/dts/nuc970-evb.dts
new file mode 100644
index 000..ae3fe90
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970-evb.dts
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2016 Wan Zongshun 
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "nuc970.dtsi"
+
+/ {
+   model = "Nuvoton NUC970 Development Board";
+   compatible = "nuvoton,nuc970";
+
+   aliases {
+   serial0 = 
+   };
+
+   memory {
+   reg = <0x 0x0400>;
+   };
+
+   soc {
+   apb@b800 {
+   uart0: serial@b800 {
+   status = "okay";
+   };
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/nuc970.dtsi b/arch/arm/boot/dts/nuc970.dtsi
new file mode 100644
index 000..d476abd
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970.dtsi
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2016 Wan Zongshun 
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#include "skeleton.dtsi"
+#include 
+
+/ {
+   soc {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "simple-bus";
+   interrupt-parent = <>;
+   ranges;
+
+   ahb@b000 {
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   gcr: syscon@b000 {
+   compatible = "syscon", "nuvoton,nuc970-gcr";
+   reg = <0xb000 0x200>;
+   };
+
+   soc {
+   compatible = "nuvoton,nuc900-soc";
+   syscon = <>;
+   };
+
+   reset {
+   compatible = "nuvoton,nuc900-reset";
+   syscon = <>;
+   };
+
+   clks: clk@b200 {
+   compatible = "nuvoton,nuc970-clk";
+   reg = <0xb200 0x200>;
+   #clock-cells = <1>;
+   };
+
+   };
+
+   apb@b800 {
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   aic: interrupt-controller@b8002000 {
+   compatible = "nuvoton,nuc900-aic";
+   interrupt-controller;
+   #interrupt-cells = <1>;
+   reg = <0xb8002000 0x1000>;
+   };
+
+
+   tmr@0xb8001000 {
+   compatible = "nuvoton,nuc970-tmr";
+   reg = <0xb8001000 0x1000>;
+   interrupts = <16>;
+   clocks = < TIMER0_GATE>,
+< TIMER1_GATE>;
+   clock-names = "timer0", "timer1";
+
+   };
+
+   uart0: serial@b800 {
+   compatible = "nuvoton,nuc970-uart";
+   reg = <0xb800 0x1000>;
+   interrupts = <36>;
+   clocks = < UART0_GATE>,
+   

[PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-10 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform.

Signed-off-by: Wan Zongshun 
---
 arch/arm/boot/dts/Makefile   |  1 +
 arch/arm/boot/dts/nuc970-evb.dts | 34 
 arch/arm/boot/dts/nuc970.dtsi| 88 
 3 files changed, 123 insertions(+)
 create mode 100644 arch/arm/boot/dts/nuc970-evb.dts
 create mode 100644 arch/arm/boot/dts/nuc970.dtsi

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 414b427..557477d 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -892,6 +892,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
 dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-ast2500-evb.dtb
+dtb-$(CONFIG_SOC_NUC970) += nuc970-evb.dtb
 endif
 
 dtstree:= $(srctree)/$(src)
diff --git a/arch/arm/boot/dts/nuc970-evb.dts b/arch/arm/boot/dts/nuc970-evb.dts
new file mode 100644
index 000..ae3fe90
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970-evb.dts
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2016 Wan Zongshun 
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+#include "nuc970.dtsi"
+
+/ {
+   model = "Nuvoton NUC970 Development Board";
+   compatible = "nuvoton,nuc970";
+
+   aliases {
+   serial0 = 
+   };
+
+   memory {
+   reg = <0x 0x0400>;
+   };
+
+   soc {
+   apb@b800 {
+   uart0: serial@b800 {
+   status = "okay";
+   };
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/nuc970.dtsi b/arch/arm/boot/dts/nuc970.dtsi
new file mode 100644
index 000..d476abd
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970.dtsi
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2016 Wan Zongshun 
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#include "skeleton.dtsi"
+#include 
+
+/ {
+   soc {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "simple-bus";
+   interrupt-parent = <>;
+   ranges;
+
+   ahb@b000 {
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   gcr: syscon@b000 {
+   compatible = "syscon", "nuvoton,nuc970-gcr";
+   reg = <0xb000 0x200>;
+   };
+
+   soc {
+   compatible = "nuvoton,nuc900-soc";
+   syscon = <>;
+   };
+
+   reset {
+   compatible = "nuvoton,nuc900-reset";
+   syscon = <>;
+   };
+
+   clks: clk@b200 {
+   compatible = "nuvoton,nuc970-clk";
+   reg = <0xb200 0x200>;
+   #clock-cells = <1>;
+   };
+
+   };
+
+   apb@b800 {
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   aic: interrupt-controller@b8002000 {
+   compatible = "nuvoton,nuc900-aic";
+   interrupt-controller;
+   #interrupt-cells = <1>;
+   reg = <0xb8002000 0x1000>;
+   };
+
+
+   tmr@0xb8001000 {
+   compatible = "nuvoton,nuc970-tmr";
+   reg = <0xb8001000 0x1000>;
+   interrupts = <16>;
+   clocks = < TIMER0_GATE>,
+< TIMER1_GATE>;
+   clock-names = "timer0", "timer1";
+
+   };
+
+   uart0: serial@b800 {
+   compatible = "nuvoton,nuc970-uart";
+   reg = <0xb800 0x1000>;
+   interrupts = <36>;
+   clocks = < UART0_GATE>,
+< UART0_ECLK_GATE>;
+