Patchwork [U-Boot,2/4,V2] EXYNOS5: FDT: Add serial device node values

login
register
mail settings
Submitter Rajeshwari Birje
Date March 1, 2013, 10:16 a.m.
Message ID <1362132974-15460-3-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/224268/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - March 1, 2013, 10:16 a.m.
This patch adds the device node required for serial driver

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
Changes in V2:
	- Changed the compatible string to "samsung,exynos4210-uart"
 arch/arm/dts/exynos5250.dtsi              |   27 +++++++++++++++++++++++++++
 board/samsung/dts/exynos5250-smdk5250.dts |    1 +
 2 files changed, 28 insertions(+), 0 deletions(-)
Simon Glass - March 3, 2013, 12:40 a.m.
Hi Rajeshwari,

On Fri, Mar 1, 2013 at 2:16 AM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This patch adds the device node required for serial driver
>
> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
> Changes in V2:
>         - Changed the compatible string to "samsung,exynos4210-uart"
>  arch/arm/dts/exynos5250.dtsi              |   27 +++++++++++++++++++++++++++
>  board/samsung/dts/exynos5250-smdk5250.dts |    1 +
>  2 files changed, 28 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi
> index ed8c8dd..52ce539 100644
> --- a/arch/arm/dts/exynos5250.dtsi
> +++ b/arch/arm/dts/exynos5250.dtsi
> @@ -151,4 +151,31 @@
>                 };
>         };
>
> +       serial@12C00000 {
> +               compatible = "samsung,exynos4210-uart";
> +               reg = <0x12C00000 0x100>;
> +               interrupts = <0 51 0>;
> +               id = <0>;
> +       };
> +
> +       serial@12C10000 {
> +               compatible = "samsung,exynos4210-uart";
> +               reg = <0x12C10000 0x100>;
> +               interrupts = <0 52 0>;
> +               id = <1>;
> +       };
> +
> +       serial@12C20000 {
> +               compatible = "samsung,exynos4210-uart";
> +               reg = <0x12C20000 0x100>;
> +               interrupts = <0 53 0>;
> +               id = <2>;
> +       };
> +
> +       serial@12C30000 {
> +               compatible = "samsung,exynos4210-uart";
> +               reg = <0x12C30000 0x100>;
> +               interrupts = <0 54 0>;
> +               id = <3>;
> +       };
>  };
> diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
> index cbfab6f..89db11b 100644
> --- a/board/samsung/dts/exynos5250-smdk5250.dts
> +++ b/board/samsung/dts/exynos5250-smdk5250.dts
> @@ -30,6 +30,7 @@
>                 spi2 = "/spi@12d40000";
>                 spi3 = "/spi@131a0000";
>                 spi4 = "/spi@131b0000";
> +               serial0 = "/serial@12C30000";

s/serial0/console/

Since you only support one, I think it would be better to use this as the alias.

>         };
>
>         sromc@12250000 {
> --
> 1.7.4.4
>

Regards,
Simon

Patch

diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi
index ed8c8dd..52ce539 100644
--- a/arch/arm/dts/exynos5250.dtsi
+++ b/arch/arm/dts/exynos5250.dtsi
@@ -151,4 +151,31 @@ 
 		};
 	};
 
+	serial@12C00000 {
+		compatible = "samsung,exynos4210-uart";
+		reg = <0x12C00000 0x100>;
+		interrupts = <0 51 0>;
+		id = <0>;
+	};
+
+	serial@12C10000 {
+		compatible = "samsung,exynos4210-uart";
+		reg = <0x12C10000 0x100>;
+		interrupts = <0 52 0>;
+		id = <1>;
+	};
+
+	serial@12C20000 {
+		compatible = "samsung,exynos4210-uart";
+		reg = <0x12C20000 0x100>;
+		interrupts = <0 53 0>;
+		id = <2>;
+	};
+
+	serial@12C30000 {
+		compatible = "samsung,exynos4210-uart";
+		reg = <0x12C30000 0x100>;
+		interrupts = <0 54 0>;
+		id = <3>;
+	};
 };
diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
index cbfab6f..89db11b 100644
--- a/board/samsung/dts/exynos5250-smdk5250.dts
+++ b/board/samsung/dts/exynos5250-smdk5250.dts
@@ -30,6 +30,7 @@ 
 		spi2 = "/spi@12d40000";
 		spi3 = "/spi@131a0000";
 		spi4 = "/spi@131b0000";
+		serial0 = "/serial@12C30000";
 	};
 
 	sromc@12250000 {