stv0991: Add flat device tree support
cover stv0991: Add flat device tree support
This patchset adds device tree support for stv0991 soc.
Vikas Manocha (2):
stv0991: fdt: add stv0991 device tree
stv0991: use fdt for serial port platform data
arch/arm/dts/Makefile | 1 + arch/arm/dts/stv0991.dts | 23 +++++++++++++++++++++++ board/st/stv0991/stv0991.c | 2 ++ configs/stv0991_defconfig | 1 + include/configs/stv0991.h | 3 +++ 5 files changed, 30 insertions(+) create mode 100644 arch/arm/dts/stv0991.dts
Signature · 1 line
1.7.9.5
PATCH 1/2 stv0991: fdt: add stv0991 device tree
--- 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
arch/arm/dts/Makefile +1 -0
@@ -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
arch/arm/dts/stv0991.dts new file +23 -0
@@ -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 at 0x80406000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80406000 0x1000>; + clock = <2700000>; + }; +};
configs/stv0991_defconfig +1 -0
@@ -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"
include/configs/stv0991.h +3 -0
@@ -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_EMBED +#define CONFIG_OF_CONTROL +#define CONFIG_OF_LIBFDT #endif /* __CONFIG_H */
Signature · 1 line
1.7.9.5
PATCH 1/2 stv0991: fdt: add stv0991 device tree
Hi Vikas,
On 1 May 2015 at 16:43, Vikas Manocha <[email protected]> wrote:
<commit message here>
Quoted 14 lines
Signed-off-by Vikas Manocha <[email protected]>--- 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.dtsarch/arm/dts/Makefile +0
-0
arch/arm/dts/Makefile dtb-$(CONFIG_SOCFPGA) += \ · line 57
Quoted 4 lines
arch/arm/dts/Makefile +1
-0@@ -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
Is this the only chip in this soc family? If so fine. If not, could your CONFIG be a little broader so we can (later) list all the DTBs here?
Quoted 54 lines
arch/arm/dts/Makefile +0
-0dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \ ls1021a-twr.dtbarch/arm/dts/stv0991.dts new file +23
-0@@ -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 at 0x80406000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80406000 0x1000>; + clock = <2700000>; + }; +};configs/stv0991_defconfig +1
-0@@ -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"include/configs/stv0991.h +3
-1@@ -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_EMBED +#define CONFIG_OF_CONTROL +#define CONFIG_OF_LIBFDT #endif /* __CONFIG_H */ --
Quoted 2 lines
1.7.9.5
Regards,
Simon
PATCH 1/2 stv0991: fdt: add stv0991 device tree
Thanks Simon,
Quoted 5 lines · Simon Glass
Hi Vikas,
On 1 May 2015 at 16:43, Vikas Manocha <[email protected]> wrote:
<commit message here>
There is not much to add in the commit message apart from info in the title, that is why i didn't add any message in the body. Please let me know if i am missing something ?
Quoted 10 lines
Quoted 10 lines
Signed-off-by Vikas Manocha <[email protected]>--- 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
Quoted 12 lines
arch/arm/dts/Makefile dtb-$(CONFIG_SOCFPGA) += \ · line 57
Quoted 9 lines
arch/arm/dts/Makefile +1
-0@@ -54,6 +54,7 @@ dtb-$(CONFIG_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ socfpga_cyclone5_socdk.dtb \ socfpga_cyclone5_socrates.dtb +dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtbIs this the only chip in this soc family? If so fine. If not, could your CONFIG be a little broader so we can (later) list all the DTBs here?
Yes, it is the only chip :-(, hope there will be more.
Rgds,
Vikas
Quoted 57 lines
Quoted 53 lines
arch/arm/dts/Makefile +0
-0dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \ ls1021a-twr.dtbarch/arm/dts/stv0991.dts new file +23
-0@@ -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 at 0x80406000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80406000 0x1000>; + clock = <2700000>; + }; +};configs/stv0991_defconfig +1
-0@@ -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"include/configs/stv0991.h +3
-1@@ -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_EMBED +#define CONFIG_OF_CONTROL +#define CONFIG_OF_LIBFDT #endif /* __CONFIG_H */ --Quoted 2 lines
1.7.9.5
Regards,
Simon
PATCH 1/2 stv0991: fdt: add stv0991 device tree
Hi Vikas,
Quoted 5 lines · vikasm
Thanks Simon,
Quoted 2 lines · Simon Glass
Hi Vikas,
Quoted 7 lines
Quoted 3 lines · Vikas Manocha
<commit message here>
There is not much to add in the commit message apart from info in the title, that is why i didn't add any message in the body. Please let me know if i am missing something ?
How about:
"Add a device tree for the St Micro STV0991 board and enable device tree control. We will progressively add device tree support to drivers used by this board"
Quoted 24 lines
Quoted 11 lines
Quoted 11 lines
Signed-off-by Vikas Manocha <[email protected]>--- 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.dtsQuoted 12 lines
arch/arm/dts/Makefile dtb-$(CONFIG_SOCFPGA) += \ · line 57
Quoted 9 lines
arch/arm/dts/Makefile +1
-0@@ -54,6 +54,7 @@ dtb-$(CONFIG_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ socfpga_cyclone5_socdk.dtb \ socfpga_cyclone5_socrates.dtb +dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtbIs this the only chip in this soc family? If so fine. If not, could your CONFIG be a little broader so we can (later) list all the DTBs here?
Quoted 1 line
Yes, it is the only chip :-(, hope there will be more.
OK.
Quoted 62 lines
Rgds,
VikasQuoted 57 lines
Quoted 53 lines
arch/arm/dts/Makefile +0
-0dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \ ls1021a-twr.dtbarch/arm/dts/stv0991.dts new file +23
-0@@ -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 at 0x80406000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80406000 0x1000>; + clock = <2700000>; + }; +};configs/stv0991_defconfig +1
-0@@ -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"include/configs/stv0991.h +3
-1@@ -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_EMBED +#define CONFIG_OF_CONTROL +#define CONFIG_OF_LIBFDT #endif /* __CONFIG_H */ --Quoted 2 lines
1.7.9.5
Regards,
Simon
Regards,
Simon
PATCH 1/2 stv0991: fdt: add stv0991 device tree
Hi Simon,
Quoted 11 lines · Simon Glass
Hi Vikas,
Quoted 8 lines · vikasm
Thanks Simon,
Quoted 5 lines · Simon Glass
Hi Vikas,
On 1 May 2015 at 16:43, Vikas Manocha <[email protected]> wrote:
<commit message here>
Quoted 8 lines
Quoted 3 lines
There is not much to add in the commit message apart from info in the title, that is why i didn't add any message in the body. Please let me know if i am missing something ?
How about:
"Add a device tree for the St Micro STV0991 board and enable device tree control. We will progressively add device tree support to drivers used by this board"
Thanks, i will send V2.
Rgds,
Vikas
Quoted 87 lines
Quoted 22 lines
Quoted 10 lines
Quoted 10 lines
Signed-off-by Vikas Manocha <[email protected]>--- 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.dtsQuoted 12 lines
arch/arm/dts/Makefile dtb-$(CONFIG_SOCFPGA) += \ · line 57
Quoted 9 lines
arch/arm/dts/Makefile +1
-0@@ -54,6 +54,7 @@ dtb-$(CONFIG_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ socfpga_cyclone5_socdk.dtb \ socfpga_cyclone5_socrates.dtb +dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtbIs this the only chip in this soc family? If so fine. If not, could your CONFIG be a little broader so we can (later) list all the DTBs here?
Quoted 1 line
Yes, it is the only chip :-(, hope there will be more.
OK.
Quoted 60 lines
Rgds,
VikasQuoted 57 lines
Quoted 53 lines
arch/arm/dts/Makefile +0
-0dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \ ls1021a-twr.dtbarch/arm/dts/stv0991.dts new file +23
-0@@ -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 at 0x80406000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80406000 0x1000>; + clock = <2700000>; + }; +};configs/stv0991_defconfig +1
-0@@ -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"include/configs/stv0991.h +3
-1@@ -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_EMBED +#define CONFIG_OF_CONTROL +#define CONFIG_OF_LIBFDT #endif /* __CONFIG_H */ --Quoted 2 lines
1.7.9.5
Regards,
SimonRegards,
Simon
PATCH 2/2 stv0991: use fdt for serial port platform data
In reply to Vikas Manocha--- board/st/stv0991/stv0991.c | 2 ++ 1 file changed, 2 insertions(+)
board/st/stv0991/stv0991.c +2 -0
@@ -21,6 +21,7 @@ DECLARE_GLOBAL_DATA_PTR;struct gpio_regs *const gpioa_regs = (struct gpio_regs *)GPIOA_BASE_ADDR ; +#ifndef CONFIG_OF_CONTROL static const struct pl01x_serial_platdata serial_platdata = { .base =0x80406000 , .type = TYPE_PL011,
@@ -31,6 +32,7 @@ U_BOOT_DEVICE(stv09911_serials) = { .name = "serial_pl01x", .platdata = &serial_platdata, }; +#endif #ifdef CONFIG_SHOW_BOOT_PROGRESS void show_boot_progress (int progress)
Signature · 1 line
1.7.9.5
PATCH 2/2 stv0991: use fdt for serial port platform data
Quoted 4 lines · Vikas Manocha
Signed-off-by Vikas Manocha <[email protected]>--- board/st/stv0991/stv0991.c | 2 ++ 1 file changed, 2 insertions(+)
Needs a commit message. With that:
Quoted 24 lines
board/st/stv0991/stv0991.c +2
-1@@ -21,6 +21,7 @@ DECLARE_GLOBAL_DATA_PTR;struct gpio_regs *const gpioa_regs = (struct gpio_regs *)GPIOA_BASE_ADDR ; +#ifndef CONFIG_OF_CONTROL static const struct pl01x_serial_platdata serial_platdata = { .base =0x80406000 , .type = TYPE_PL011,@@ -31,6 +32,7 @@ U_BOOT_DEVICE(stv09911_serials) = { .name = "serial_pl01x", .platdata = &serial_platdata, }; +#endif #ifdef CONFIG_SHOW_BOOT_PROGRESS void show_boot_progress (int progress) --1.7.9.5