Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1440049 > unrolled thread

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

Started byWan Zongshun <vw@iommu.org>
First post2016-07-10 09:50 +0200
Last post2016-07-13 19:30 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files Wan Zongshun <vw@iommu.org> - 2016-07-10 09:50 +0200
    Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2016-07-12 17:40 +0200
      Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files Wan Zongshun <vw@iommu.org> - 2016-07-13 09:40 +0200
        Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2016-07-13 19:30 +0200

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

FromWan Zongshun <vw@iommu.org>
Date2016-07-10 09:50 +0200
Subject[PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files
Message-ID<rThEZ-65d-3@gated-at.bofh.it>
This patch is to add dts support for nuc970 platform.

Signed-off-by: Wan Zongshun <mcuos.com@gmail.com>
---
 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 0000000..ae3fe90
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970-evb.dts
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2016 Wan Zongshun <mcuos.com@gmail.com>
+ *
+ * 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 = &uart0;
+	};
+
+	memory {
+		reg = <0x00000000 0x04000000>;
+	};
+
+	soc {
+		apb@b8000000 {
+			uart0: serial@b8000000 {
+				status = "okay";
+			};
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/nuc970.dtsi b/arch/arm/boot/dts/nuc970.dtsi
new file mode 100644
index 0000000..d476abd
--- /dev/null
+++ b/arch/arm/boot/dts/nuc970.dtsi
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2016 Wan Zongshun <mcuos.com@gmail.com>
+ *
+ * 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 <dt-bindings/clock/nuc970-clock.h>
+
+/ {
+	soc {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "simple-bus";
+		interrupt-parent = <&aic>;
+		ranges;
+
+		ahb@b0000000 {
+			compatible = "simple-bus";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			gcr: syscon@b0000000 {
+				compatible = "syscon", "nuvoton,nuc970-gcr";
+				reg = <0xb0000000 0x200>;
+			};
+
+			soc {
+				compatible = "nuvoton,nuc900-soc";
+				syscon = <&gcr>;
+			};
+
+			reset {
+				compatible = "nuvoton,nuc900-reset";
+				syscon = <&gcr>;
+			};
+
+			clks: clk@b0000200 {
+				compatible = "nuvoton,nuc970-clk";
+				reg = <0xb0000200 0x200>;
+				#clock-cells = <1>;
+			};
+
+		};
+
+		apb@b8000000 {
+			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 = <&clks TIMER0_GATE>,
+					 <&clks TIMER1_GATE>;
+				clock-names = "timer0", "timer1";
+
+			};
+
+			uart0: serial@b8000000 {
+				compatible = "nuvoton,nuc970-uart";
+				reg = <0xb8000000 0x1000>;
+				interrupts = <36>;
+				clocks = <&clks UART0_GATE>,
+					 <&clks UART0_ECLK_GATE>;
+				clock-names = "uart0", "uart0_eclk";
+				clock-frequency = <12000000>;
+				status = "disabled";
+			};
+		};
+	};
+};
-- 
2.7.4

[toc] | [next] | [standalone]


#1441509

FromAfzal Mohammed <afzal.mohd.ma@gmail.com>
Date2016-07-12 17:40 +0200
Message-ID<rU7WV-6Ps-5@gated-at.bofh.it>
In reply to#1440049
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

[toc] | [prev] | [next] | [standalone]


#1442125

FromWan Zongshun <vw@iommu.org>
Date2016-07-13 09:40 +0200
Message-ID<rUmVY-8lM-25@gated-at.bofh.it>
In reply to#1441509

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
>
>

[toc] | [prev] | [next] | [standalone]


#1442655

FromAfzal Mohammed <afzal.mohd.ma@gmail.com>
Date2016-07-13 19:30 +0200
Message-ID<rUw8V-67L-13@gated-at.bofh.it>
In reply to#1442125
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web