public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andes <uboot@andestech.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 03/12] riscv: nx25: dts: Add AE250 dts to support RISC-V
Date: Tue, 26 Dec 2017 13:55:50 +0800	[thread overview]
Message-ID: <1514267759-3508-4-git-send-email-uboot@andestech.com> (raw)
In-Reply-To: <1514267759-3508-1-git-send-email-uboot@andestech.com>

From: Rick Chen <rick@andestech.com>

AE250 is the Soc using NX25 cpu core base on RISC-V arch.
Details please see the doc/README.ae250.

Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
Signed-off-by: Greentime Hu <green.hu@gmail.com>
---
 arch/riscv/dts/Makefile  | 14 +++++++
 arch/riscv/dts/ae250.dts | 96 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)
 create mode 100644 arch/riscv/dts/Makefile
 create mode 100644 arch/riscv/dts/ae250.dts

diff --git a/arch/riscv/dts/Makefile b/arch/riscv/dts/Makefile
new file mode 100644
index 0000000..718b99f
--- /dev/null
+++ b/arch/riscv/dts/Makefile
@@ -0,0 +1,14 @@
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+dtb-$(CONFIG_TARGET_NX25_AE250) += ae250.dtb
+targets += $(dtb-y)
+
+DTC_FLAGS += -R 4 -p 0x1000
+
+PHONY += dtbs
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+	@:
+
+clean-files := *.dtb
diff --git a/arch/riscv/dts/ae250.dts b/arch/riscv/dts/ae250.dts
new file mode 100644
index 0000000..5dc4fb0
--- /dev/null
+++ b/arch/riscv/dts/ae250.dts
@@ -0,0 +1,96 @@
+/dts-v1/;
+/ {
+	compatible = "riscv32 nx25";
+	#address-cells = <1>;
+	#size-cells = <1>;
+	interrupt-parent = <&intc>;
+
+	aliases {
+		uart0 = &serial0;
+		ethernet0 = &mac0;
+		spi0 = &spi;
+	} ;
+
+	chosen {
+		bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug loglevel=7";
+		stdout-path = "uart0:38400n8";
+		tick-timer = &timer0;
+	};
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x00000000 0x40000000>;
+	};
+
+	spiclk: virt_100mhz {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <100000000>;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		cpu at 0 {
+			compatible = "andestech,n13";
+			reg = <0>;
+			/* FIXME: to fill correct frqeuency */
+			clock-frequency = <60000000>;
+		};
+	};
+
+	intc: interrupt-controller {
+		compatible = "andestech,atnointc010";
+		#interrupt-cells = <1>;
+		interrupt-controller;
+	};
+
+	serial0: serial at f0300000 {
+		compatible = "andestech,uart16550", "ns16550a";
+		reg = <0xf0300000 0x1000>;
+		interrupts = <7 4>;
+		clock-frequency = <19660800>;
+		reg-shift = <2>;
+		reg-offset = <32>;
+		no-loopback-test = <1>;
+	};
+
+	timer0: timer at f0400000 {
+		compatible = "andestech,atcpit100";
+		reg = <0xf0400000 0x1000>;
+		interrupts = <2 4>;
+		clock-frequency = <40000000>;
+	};
+
+	mac0: mac at e0100000 {
+		compatible = "andestech,atmac100";
+		reg = <0xe0100000 0x1000>;
+		interrupts = <25 4>;
+	};
+
+	mmc0: mmc at f0e00000 {
+		compatible = "andestech,atsdc010";
+		max-frequency = <100000000>;
+		fifo-depth = <0x10>;
+		reg = <0xf0e00000 0x1000>;
+		interrupts = <17 4>;
+	};
+
+	spi: spi at f0b00000 {
+		compatible = "andestech,atcspi200";
+		reg = <0xf0b00000 0x1000>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		num-cs = <1>;
+		clocks = <&spiclk>;
+		interrupts = <3 4>;
+			flash at 0 {
+			compatible = "spi-flash";
+			spi-max-frequency = <50000000>;
+			reg = <0>;
+			spi-cpol;
+			spi-cpha;
+		};
+	};
+
+};
-- 
2.7.4

  parent reply	other threads:[~2017-12-26  5:55 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-26  5:55 [U-Boot] [PATCH v2 00/12] Add NX25 to support RISC-V Andes
2017-12-26  5:55 ` [U-Boot] [PATCH v2 01/12] riscv: cpu: Add nx25 " Andes
2018-01-09  5:47   ` 陳建志
2018-01-09 13:46     ` Tom Rini
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-16  6:52     ` 陳建志
2018-02-02  8:20       ` 陳建志
2018-02-08  1:43         ` 陳建志
2017-12-26  5:55 ` [U-Boot] [PATCH v2 02/12] riscv: nx25: lib: Add relative lib funcs " Andes
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` Andes [this message]
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, 03/12] riscv: nx25: dts: Add AE250 dts " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 04/12] riscv: nx25: include: Add header files " Andes
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 05/12] riscv: Add Kconfig " Andes
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 06/12] riscv: board: Add nx25-ae250 " Andes
2018-01-15 13:52   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 07/12] riscv: configs: Add nx25-ae250.h " Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 08/12] riscv: defconfig: Add nx25-ae250 defconfig " Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 09/12] riscv: tools: Prelink u-boot Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot,v2,09/12] " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 10/12] riscv: Support standalone Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot,v2,10/12] " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 11/12] riscv: Modify generic codes to support RISC-V Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26  5:55 ` [U-Boot] [PATCH v2 12/12] riscv: doc: Add relative doc to describe RISC-V Andes
2018-01-15 13:53   ` [U-Boot] [U-Boot, v2, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1514267759-3508-4-git-send-email-uboot@andestech.com \
    --to=uboot@andestech.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox