diff mbox

[U-Boot,v3,1/2] stv0991: fdt: add stv0991 device tree

Message ID 1430687435-22818-2-git-send-email-vikas.manocha@st.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Vikas MANOCHA May 3, 2015, 9:10 p.m. UTC
This patch adds device tree for the ST Micro stv0991 board & enables
device tree control. Progressively device tree support for the drivers
being used will also be added.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
---

Changes in v3:
- CONFIG_OF_EMBED replaced with CONFIG_OF_SEPARATE

Changes in v2:
- added commit message.

 arch/arm/dts/Makefile     |    1 +
 arch/arm/dts/stv0991.dts  |   23 +++++++++++++++++++++++
 configs/stv0991_defconfig |    1 +
 include/configs/stv0991.h |    3 +++
 4 files changed, 28 insertions(+)
 create mode 100644 arch/arm/dts/stv0991.dts

Comments

Simon Glass May 4, 2015, 2:16 p.m. UTC | #1
On 3 May 2015 at 15:10, Vikas Manocha <vikas.manocha@st.com> wrote:
> This patch adds device tree for the ST Micro stv0991 board & enables
> device tree control. Progressively device tree support for the drivers
> being used will also be added.
>
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
> ---
>
> Changes in v3:
> - CONFIG_OF_EMBED replaced with CONFIG_OF_SEPARATE
>
> Changes in v2:
> - added commit message.
>
>  arch/arm/dts/Makefile     |    1 +
>  arch/arm/dts/stv0991.dts  |   23 +++++++++++++++++++++++
>  configs/stv0991_defconfig |    1 +
>  include/configs/stv0991.h |    3 +++
>  4 files changed, 28 insertions(+)
>  create mode 100644 arch/arm/dts/stv0991.dts

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini May 10, 2015, 2:09 p.m. UTC | #2
On Sun, May 03, 2015 at 02:10:34PM -0700, Vikas Manocha wrote:

> This patch adds device tree for the ST Micro stv0991 board & enables
> device tree control. Progressively device tree support for the drivers
> being used will also be added.
> 
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 46a6171..86faf58 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -54,6 +54,7 @@  dtb-$(CONFIG_SOCFPGA) +=				\
 	socfpga_arria5_socdk.dtb			\
 	socfpga_cyclone5_socdk.dtb			\
 	socfpga_cyclone5_socrates.dtb
+dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \
 	ls1021a-twr.dtb
diff --git a/arch/arm/dts/stv0991.dts b/arch/arm/dts/stv0991.dts
new file mode 100644
index 0000000..b25c48b
--- /dev/null
+++ b/arch/arm/dts/stv0991.dts
@@ -0,0 +1,23 @@ 
+/dts-v1/;
+
+/ {
+	model = "ST STV0991 application board";
+	compatible = "st,stv0991";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	chosen {
+		stdout-path = &uart0;
+	};
+
+	memory {
+		device_type="memory";
+		reg = <0x0 0x198000>;
+	};
+
+	uart0: serial@0x80406000 {
+		compatible = "arm,pl011", "arm,primecell";
+		reg = <0x80406000 0x1000>;
+		clock = <2700000>;
+	};
+};
diff --git a/configs/stv0991_defconfig b/configs/stv0991_defconfig
index 76ba41b..d9edc06 100644
--- a/configs/stv0991_defconfig
+++ b/configs/stv0991_defconfig
@@ -5,3 +5,4 @@  CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_NETDEVICES=y
 CONFIG_NET=y
+CONFIG_DEFAULT_DEVICE_TREE="stv0991"
diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index 2f65eda..dc1ac6d 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -80,4 +80,7 @@ 
 #define CONFIG_AUTOBOOT_PROMPT                 \
 	"Hit SPACE in %d seconds to stop autoboot.\n", bootdelay
 #undef CONFIG_HAS_VBAR
+#define CONFIG_OF_SEPARATE
+#define CONFIG_OF_CONTROL
+#define CONFIG_OF_LIBFDT
 #endif /* __CONFIG_H */