Enable basic device tree support for Exynos4 smdkv310 board.
Signed-off-by: Thomas Abraham thomas.abraham@linaro.org --- .../devicetree/bindings/arm/samsung/smdkv310.txt | 14 +++++++++ arch/arm/boot/dts/exynos4-smdkv310.dts | 31 ++++++++++++++++++++ arch/arm/mach-exynos4/mach-smdkv310.c | 6 ++++ 3 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung/smdkv310.txt create mode 100644 arch/arm/boot/dts/exynos4-smdkv310.dts
diff --git a/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt new file mode 100644 index 0000000..ee9a220 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt @@ -0,0 +1,14 @@ +* Samsung's Exynos4 S5PV310 SoC based SMDKV310 eval board * + +SMDKV310 eval board is based on S5PV310 SoC which belongs to Samsung's Exynos4 +family of application processors. + +* Root node + + The root node describes the smdkv310 eval board. + + Required Properties: + + - compatible : It should be one or more of the following. + (a) "samsung,smdkv310" - for Samsung's SMDKV310 eval board. + (b) "samsung,s5pv310" - for boards based on S5PV310 SoC. diff --git a/arch/arm/boot/dts/exynos4-smdkv310.dts b/arch/arm/boot/dts/exynos4-smdkv310.dts new file mode 100644 index 0000000..9f27664 --- /dev/null +++ b/arch/arm/boot/dts/exynos4-smdkv310.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/ { + model = "Samsung Exynos4 SMDKV310 eval board"; + compatible = "samsung,smdkv310","samsung,s5pv310"; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0{ + compatible = "arm,cortex-a9"; + reg = <0x0>; + }; + + cpu@1 { + compatible = "arm,cortex-a9"; + reg = <0x1>; + }; + }; + + memory { + device_type = "memory"; + reg = <0x40000000 0x08000000>; + }; + + chosen { + }; +}; diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index 1526764..08bcc55 100644 --- a/arch/arm/mach-exynos4/mach-smdkv310.c +++ b/arch/arm/mach-exynos4/mach-smdkv310.c @@ -237,6 +237,11 @@ static void __init smdkv310_machine_init(void) platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); }
+static char const *smdkv310_dt_compat[] __initdata = { + "samsung,smdkv310", + NULL +}; + MACHINE_START(SMDKV310, "SMDKV310") /* Maintainer: Kukjin Kim kgene.kim@samsung.com */ /* Maintainer: Changhwan Youn chaos.youn@samsung.com */ @@ -245,4 +250,5 @@ MACHINE_START(SMDKV310, "SMDKV310") .map_io = smdkv310_map_io, .init_machine = smdkv310_machine_init, .timer = &exynos4_timer, + .dt_compat = smdkv310_dt_compat, MACHINE_END
On Tue, Mar 29, 2011 at 05:36:26PM +0530, Thomas Abraham wrote:
Enable basic device tree support for Exynos4 smdkv310 board.
Signed-off-by: Thomas Abraham thomas.abraham@linaro.org
Applied, thanks.
g.
.../devicetree/bindings/arm/samsung/smdkv310.txt | 14 +++++++++ arch/arm/boot/dts/exynos4-smdkv310.dts | 31 ++++++++++++++++++++ arch/arm/mach-exynos4/mach-smdkv310.c | 6 ++++ 3 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung/smdkv310.txt create mode 100644 arch/arm/boot/dts/exynos4-smdkv310.dts
diff --git a/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt new file mode 100644 index 0000000..ee9a220 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt @@ -0,0 +1,14 @@ +* Samsung's Exynos4 S5PV310 SoC based SMDKV310 eval board *
+SMDKV310 eval board is based on S5PV310 SoC which belongs to Samsung's Exynos4 +family of application processors.
+* Root node
- The root node describes the smdkv310 eval board.
- Required Properties:
- compatible : It should be one or more of the following.
(a) "samsung,smdkv310" - for Samsung's SMDKV310 eval board.
(b) "samsung,s5pv310" - for boards based on S5PV310 SoC.
diff --git a/arch/arm/boot/dts/exynos4-smdkv310.dts b/arch/arm/boot/dts/exynos4-smdkv310.dts new file mode 100644 index 0000000..9f27664 --- /dev/null +++ b/arch/arm/boot/dts/exynos4-smdkv310.dts @@ -0,0 +1,31 @@ +/dts-v1/;
+/ {
- model = "Samsung Exynos4 SMDKV310 eval board";
- compatible = "samsung,smdkv310","samsung,s5pv310";
- #address-cells = <1>;
- #size-cells = <1>;
- cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0{
compatible = "arm,cortex-a9";
reg = <0x0>;
};
cpu@1 {
compatible = "arm,cortex-a9";
reg = <0x1>;
};
- };
- memory {
device_type = "memory";
reg = <0x40000000 0x08000000>;
- };
- chosen {
- };
+}; diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index 1526764..08bcc55 100644 --- a/arch/arm/mach-exynos4/mach-smdkv310.c +++ b/arch/arm/mach-exynos4/mach-smdkv310.c @@ -237,6 +237,11 @@ static void __init smdkv310_machine_init(void) platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); } +static char const *smdkv310_dt_compat[] __initdata = {
- "samsung,smdkv310",
- NULL
+};
MACHINE_START(SMDKV310, "SMDKV310") /* Maintainer: Kukjin Kim kgene.kim@samsung.com */ /* Maintainer: Changhwan Youn chaos.youn@samsung.com */ @@ -245,4 +250,5 @@ MACHINE_START(SMDKV310, "SMDKV310") .map_io = smdkv310_map_io, .init_machine = smdkv310_machine_init, .timer = &exynos4_timer,
- .dt_compat = smdkv310_dt_compat,
MACHINE_END
1.6.6.rc2
linaro-kernel@lists.linaro.org