Skip to content

Commit

Permalink
stv0991: fdt: add stv0991 device tree
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
vikasmanocha authored and trini committed May 10, 2015
1 parent 2a3c25d commit 0a836ce
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dtb-$(CONFIG_ARCH_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
Expand Down
23 changes: 23 additions & 0 deletions arch/arm/dts/stv0991.dts
Original file line number Diff line number Diff line change
@@ -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>;
};
};
1 change: 1 addition & 0 deletions configs/stv0991_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 3 additions & 1 deletion include/configs/stv0991.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@
#define CONFIG_AUTOBOOT_STOP_STR " "
#define CONFIG_AUTOBOOT_PROMPT \
"Hit SPACE in %d seconds to stop autoboot.\n", bootdelay

#define CONFIG_OF_SEPARATE
#define CONFIG_OF_CONTROL
#define CONFIG_OF_LIBFDT
#endif /* __CONFIG_H */

0 comments on commit 0a836ce

Please sign in to comment.