* [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support
@ 2012-12-17 19:55 Dongjin Kim
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Dongjin Kim @ 2012-12-17 19:55 UTC (permalink / raw)
To: linux-arm-kernel
This patch set adds DT-based board file for Hardkernel's ODROID-X which is
based on Samsung's Exynos4412 SoC. In the current version had been tested
supporting SDCARD, eMMC and LED blinking.
Dongjin Kim (4):
ODROID-X: dts: Add board dts file for ODROID-X
ODROID-X: dts: Add fixed-regulator for peripherals.
ODROID-X: dts: Add nodes for leds based on GPIO.
ODROID-X: dts: Add mshc node for ODROID-X board
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/exynos4412-odroidx.dts | 97 ++++++++++++++++++++++++++++++
2 files changed, 98 insertions(+)
create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
--
1.7.9.5
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
@ 2012-12-17 19:55 ` Dongjin Kim
2012-12-18 1:22 ` Thomas Abraham
2012-12-18 1:56 ` Olof Johansson
2012-12-17 19:55 ` [PATCH 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim
` (2 subsequent siblings)
3 siblings, 2 replies; 11+ messages in thread
From: Dongjin Kim @ 2012-12-17 19:55 UTC (permalink / raw)
To: linux-arm-kernel
Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index ca6fb8e..3355af9 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
exynos5250-smdk5250.dtb \
exynos5440-ssdk5440.dtb \
exynos4412-smdk4412.dtb \
+ exynos4412-odroidx.dtb \
exynos5250-smdk5250.dtb \
exynos5250-snow.dtb
dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
new file mode 100644
index 0000000..786ddd7
--- /dev/null
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -0,0 +1,52 @@
+/*
+ * Hardkernel's Exynos4412 based ODROID-X board device tree source
+ *
+ * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
+ *
+ * Device tree source file for Hardkernel's ODROID-X board which is based on
+ * Samsung's Exynos4412 SoC.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+/dts-v1/;
+/include/ "exynos4412.dtsi"
+
+/ {
+ model = "Hardkernel ODROID-X board based on Exynos4412";
+ compatible = "samsung,exynos4412";
+
+ memory {
+ reg = <0x40000000 0x40000000>;
+ };
+
+ chosen {
+ bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
+ };
+
+ serial at 13800000 {
+ status = "okay";
+ };
+
+ serial at 13810000 {
+ status = "okay";
+ };
+
+ serial at 13820000 {
+ status = "okay";
+ };
+
+ serial at 13830000 {
+ status = "okay";
+ };
+
+ sdhci at 12530000 {
+ bus-width = <4>;
+ samsung,cd-pinmux-gpio = <&gpk2 2 2 3 3>;
+ pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
+ pinctrl-names = "default";
+ status = "okay";
+ };
+};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/4] ODROID-X: dts: Add fixed-regulator for peripherals.
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
@ 2012-12-17 19:55 ` Dongjin Kim
2012-12-17 19:55 ` [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim
2012-12-17 19:55 ` [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
3 siblings, 0 replies; 11+ messages in thread
From: Dongjin Kim @ 2012-12-17 19:55 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds the node to support fixed voltage for peripherals like LED,
ethernet controller.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 786ddd7..2d45dcb 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -49,4 +49,14 @@
pinctrl-names = "default";
status = "okay";
};
+
+ regulator_p3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "p3v3_en";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&gpa1 1 0>;
+ enable-active-high;
+ regulator-boot-on;
+ };
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO.
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
2012-12-17 19:55 ` [PATCH 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim
@ 2012-12-17 19:55 ` Dongjin Kim
2012-12-17 19:55 ` [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
3 siblings, 0 replies; 11+ messages in thread
From: Dongjin Kim @ 2012-12-17 19:55 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds GPIO connected LEDS on ODROID-X board, and describe its
properties.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 2d45dcb..3943011 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -59,4 +59,18 @@
enable-active-high;
regulator-boot-on;
};
+
+ leds {
+ compatible = "gpio-leds";
+ led1 {
+ label = "led1:heart";
+ gpios = <&gpc1 0 0>;
+ linux,default-trigger = "heartbeat";
+ };
+ led2 {
+ label = "led2:mmc0";
+ gpios = <&gpc1 2 0>;
+ linux,default-trigger = "mmc0";
+ };
+ };
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
` (2 preceding siblings ...)
2012-12-17 19:55 ` [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim
@ 2012-12-17 19:55 ` Dongjin Kim
2012-12-17 21:40 ` Tomasz Figa
3 siblings, 1 reply; 11+ messages in thread
From: Dongjin Kim @ 2012-12-17 19:55 UTC (permalink / raw)
To: linux-arm-kernel
Adding the device node to support eMMC storage on SDCARD4 ports, controlled by
Mobile Storage Host Controller.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 3943011..fbd0b51 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -73,4 +73,25 @@
linux,default-trigger = "mmc0";
};
};
+
+ mshc at 12550000 {
+ num-slots = <1>;
+ supports-highspeed;
+ broken-cd;
+ fifo-depth = <0x80>;
+ card-detect-delay = <200>;
+ samsung,dw-mshc-ciu-div = <3>;
+ samsung,dw-mshc-sdr-timing = <2 3 3>;
+ samsung,dw-mshc-ddr-timing = <1 2 3>;
+
+ slot at 0 {
+ reg = <0>;
+ bus-width = <8>;
+ gpios = <&gpk0 0 3>, <&gpk0 1 3>,
+ <&gpk0 3 3>, <&gpk0 4 3>,
+ <&gpk0 5 3>, <&gpk0 6 3>,
+ <&gpk1 3 4>, <&gpk1 4 4>,
+ <&gpk1 5 4>, <&gpk1 6 4>;
+ };
+ };
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board
2012-12-17 19:55 ` [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
@ 2012-12-17 21:40 ` Tomasz Figa
0 siblings, 0 replies; 11+ messages in thread
From: Tomasz Figa @ 2012-12-17 21:40 UTC (permalink / raw)
To: linux-arm-kernel
Hi Dongjin,
On Tuesday 18 of December 2012 04:55:07 Dongjin Kim wrote:
> Adding the device node to support eMMC storage on SDCARD4 ports,
> controlled by Mobile Storage Host Controller.
>
> Signed-off-by: Dongjin Kim <tobetter@gmail.com>
> ---
> arch/arm/boot/dts/exynos4412-odroidx.dts | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts
> b/arch/arm/boot/dts/exynos4412-odroidx.dts index 3943011..fbd0b51
> 100644
> --- a/arch/arm/boot/dts/exynos4412-odroidx.dts
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -73,4 +73,25 @@
> linux,default-trigger = "mmc0";
> };
> };
> +
> + mshc at 12550000 {
> + num-slots = <1>;
> + supports-highspeed;
> + broken-cd;
> + fifo-depth = <0x80>;
> + card-detect-delay = <200>;
> + samsung,dw-mshc-ciu-div = <3>;
> + samsung,dw-mshc-sdr-timing = <2 3 3>;
> + samsung,dw-mshc-ddr-timing = <1 2 3>;
> +
> + slot at 0 {
> + reg = <0>;
> + bus-width = <8>;
> + gpios = <&gpk0 0 3>, <&gpk0 1 3>,
> + <&gpk0 3 3>, <&gpk0 4 3>,
> + <&gpk0 5 3>, <&gpk0 6 3>,
> + <&gpk1 3 4>, <&gpk1 4 4>,
> + <&gpk1 5 4>, <&gpk1 6 4>;
What is the gpios property for in this node? Pin configuration using
legacy GPIO bindings is not supported anymore on Exynos4. Pin control
bindings must be used.
Best regards,
Tomasz Figa
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
@ 2012-12-18 1:22 ` Thomas Abraham
2012-12-18 1:56 ` Olof Johansson
1 sibling, 0 replies; 11+ messages in thread
From: Thomas Abraham @ 2012-12-18 1:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi Dongjin,
On 17 December 2012 13:55, Dongjin Kim <tobetter@gmail.com> wrote:
> Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
>
> Signed-off-by: Dongjin Kim <tobetter@gmail.com>
> ---
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
> 2 files changed, 53 insertions(+)
> create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index ca6fb8e..3355af9 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
> exynos5250-smdk5250.dtb \
> exynos5440-ssdk5440.dtb \
> exynos4412-smdk4412.dtb \
> + exynos4412-odroidx.dtb \
> exynos5250-smdk5250.dtb \
> exynos5250-snow.dtb
> dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> new file mode 100644
> index 0000000..786ddd7
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -0,0 +1,52 @@
> +/*
> + * Hardkernel's Exynos4412 based ODROID-X board device tree source
> + *
> + * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
> + *
> + * Device tree source file for Hardkernel's ODROID-X board which is based on
> + * Samsung's Exynos4412 SoC.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> +*/
> +
> +/dts-v1/;
> +/include/ "exynos4412.dtsi"
> +
> +/ {
> + model = "Hardkernel ODROID-X board based on Exynos4412";
> + compatible = "samsung,exynos4412";
> +
> + memory {
> + reg = <0x40000000 0x40000000>;
> + };
> +
> + chosen {
> + bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
> + };
> +
> + serial at 13800000 {
> + status = "okay";
> + };
> +
> + serial at 13810000 {
> + status = "okay";
> + };
> +
> + serial at 13820000 {
> + status = "okay";
> + };
> +
> + serial at 13830000 {
> + status = "okay";
> + };
> +
> + sdhci at 12530000 {
> + bus-width = <4>;
> + samsung,cd-pinmux-gpio = <&gpk2 2 2 3 3>;
The card detect line should also be configured using pinctrl
interface. When pinctrl is enabled on Exynos, the old-style gpio
bindings is not supported. So a pinctrl node for sd2_cmd should be
defined which then can be listed in pinctrl-0.
> + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
> + pinctrl-names = "default";
> + status = "okay";
> + };
> +};
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
2012-12-18 1:22 ` Thomas Abraham
@ 2012-12-18 1:56 ` Olof Johansson
2012-12-18 6:00 ` Jean-Christophe PLAGNIOL-VILLARD
1 sibling, 1 reply; 11+ messages in thread
From: Olof Johansson @ 2012-12-18 1:56 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Dec 17, 2012 at 11:55 AM, Dongjin Kim <tobetter@gmail.com> wrote:
> Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
>
> Signed-off-by: Dongjin Kim <tobetter@gmail.com>
> ---
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
> 2 files changed, 53 insertions(+)
> create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index ca6fb8e..3355af9 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
> exynos5250-smdk5250.dtb \
> exynos5440-ssdk5440.dtb \
> exynos4412-smdk4412.dtb \
> + exynos4412-odroidx.dtb \
Please add them alphabetically, so before smdk.
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> new file mode 100644
> index 0000000..786ddd7
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -0,0 +1,52 @@
> +/*
> + * Hardkernel's Exynos4412 based ODROID-X board device tree source
> + *
> + * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
Are you from the future?
> + *
> + * Device tree source file for Hardkernel's ODROID-X board which is based on
> + * Samsung's Exynos4412 SoC.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> +*/
> +
> +/dts-v1/;
> +/include/ "exynos4412.dtsi"
> +
> +/ {
> + model = "Hardkernel ODROID-X board based on Exynos4412";
> + compatible = "samsung,exynos4412";
It should have a more specific compatible value first, i.e.
"hardkernel,odroid-x" or similar.
> + memory {
> + reg = <0x40000000 0x40000000>;
> + };
> +
> + chosen {
> + bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
Bootargs should be passed in from u-boot, don't specify them in the
static device tree.
-Olof
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-18 1:56 ` Olof Johansson
@ 2012-12-18 6:00 ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-18 6:14 ` Olof Johansson
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-12-18 6:00 UTC (permalink / raw)
To: linux-arm-kernel
On 17:56 Mon 17 Dec , Olof Johansson wrote:
> On Mon, Dec 17, 2012 at 11:55 AM, Dongjin Kim <tobetter@gmail.com> wrote:
> > Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
> >
> > Signed-off-by: Dongjin Kim <tobetter@gmail.com>
> > ---
> > arch/arm/boot/dts/Makefile | 1 +
> > arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
> > 2 files changed, 53 insertions(+)
> > create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
> >
> > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> > index ca6fb8e..3355af9 100644
> > --- a/arch/arm/boot/dts/Makefile
> > +++ b/arch/arm/boot/dts/Makefile
> > @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
> > exynos5250-smdk5250.dtb \
> > exynos5440-ssdk5440.dtb \
> > exynos4412-smdk4412.dtb \
> > + exynos4412-odroidx.dtb \
>
> Please add them alphabetically, so before smdk.
we need to drop the \ \ stuff it will end with merge conflict
as if you add 2 dtb at the end you will end with 2 patch that touch the same
previous line
>
> > diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> > new file mode 100644
> > index 0000000..786ddd7
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> > @@ -0,0 +1,52 @@
> > +/*
> > + * Hardkernel's Exynos4412 based ODROID-X board device tree source
> > + *
> > + * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
>
> Are you from the future?
>
> > + *
> > + * Device tree source file for Hardkernel's ODROID-X board which is based on
> > + * Samsung's Exynos4412 SoC.
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > +*/
> > +
> > +/dts-v1/;
> > +/include/ "exynos4412.dtsi"
> > +
> > +/ {
> > + model = "Hardkernel ODROID-X board based on Exynos4412";
> > + compatible = "samsung,exynos4412";
>
> It should have a more specific compatible value first, i.e.
> "hardkernel,odroid-x" or similar.
>
>
> > + memory {
> > + reg = <0x40000000 0x40000000>;
> > + };
> > +
> > + chosen {
> > + bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
>
> Bootargs should be passed in from u-boot, don't specify them in the
> static device tree.
why not we can choose to have a default cmdline and even usit as a complement
of the bootloader one
it's up to the dts maintainer to choose
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-18 6:00 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-12-18 6:14 ` Olof Johansson
2012-12-18 6:47 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Olof Johansson @ 2012-12-18 6:14 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Dec 17, 2012 at 10:00 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com> wrote:
> On 17:56 Mon 17 Dec , Olof Johansson wrote:
>> On Mon, Dec 17, 2012 at 11:55 AM, Dongjin Kim <tobetter@gmail.com> wrote:
>> > Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
>> >
>> > Signed-off-by: Dongjin Kim <tobetter@gmail.com>
>> > ---
>> > arch/arm/boot/dts/Makefile | 1 +
>> > arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
>> > 2 files changed, 53 insertions(+)
>> > create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
>> >
>> > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>> > index ca6fb8e..3355af9 100644
>> > --- a/arch/arm/boot/dts/Makefile
>> > +++ b/arch/arm/boot/dts/Makefile
>> > @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
>> > exynos5250-smdk5250.dtb \
>> > exynos5440-ssdk5440.dtb \
>> > exynos4412-smdk4412.dtb \
>> > + exynos4412-odroidx.dtb \
>>
>> Please add them alphabetically, so before smdk.
> we need to drop the \ \ stuff it will end with merge conflict
> as if you add 2 dtb at the end you will end with 2 patch that touch the same
> previous line
..which is why the dts files should be added alphabetically instead of
just appended to the list.
>> > diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
>> > new file mode 100644
>> > index 0000000..786ddd7
>> > --- /dev/null
>> > +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
>> > @@ -0,0 +1,52 @@
>> > +/*
>> > + * Hardkernel's Exynos4412 based ODROID-X board device tree source
>> > + *
>> > + * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
>>
>> Are you from the future?
>>
>> > + *
>> > + * Device tree source file for Hardkernel's ODROID-X board which is based on
>> > + * Samsung's Exynos4412 SoC.
>> > + *
>> > + * This program is free software; you can redistribute it and/or modify
>> > + * it under the terms of the GNU General Public License version 2 as
>> > + * published by the Free Software Foundation.
>> > +*/
>> > +
>> > +/dts-v1/;
>> > +/include/ "exynos4412.dtsi"
>> > +
>> > +/ {
>> > + model = "Hardkernel ODROID-X board based on Exynos4412";
>> > + compatible = "samsung,exynos4412";
>>
>> It should have a more specific compatible value first, i.e.
>> "hardkernel,odroid-x" or similar.
>>
>>
>> > + memory {
>> > + reg = <0x40000000 0x40000000>;
>> > + };
>> > +
>> > + chosen {
>> > + bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
>>
>> Bootargs should be passed in from u-boot, don't specify them in the
>> static device tree.
>
> why not we can choose to have a default cmdline and even usit as a complement
> of the bootloader one
>
> it's up to the dts maintainer to choose
The chance of having a valid generic command line that will work for
everyone with that hardware is fairly small, especially on more
generic systems that might have a regular distro installed on them.
-Olof
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X
2012-12-18 6:14 ` Olof Johansson
@ 2012-12-18 6:47 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-12-18 6:47 UTC (permalink / raw)
To: linux-arm-kernel
On 22:14 Mon 17 Dec , Olof Johansson wrote:
> On Mon, Dec 17, 2012 at 10:00 PM, Jean-Christophe PLAGNIOL-VILLARD
> <plagnioj@jcrosoft.com> wrote:
> > On 17:56 Mon 17 Dec , Olof Johansson wrote:
> >> On Mon, Dec 17, 2012 at 11:55 AM, Dongjin Kim <tobetter@gmail.com> wrote:
> >> > Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.
> >> >
> >> > Signed-off-by: Dongjin Kim <tobetter@gmail.com>
> >> > ---
> >> > arch/arm/boot/dts/Makefile | 1 +
> >> > arch/arm/boot/dts/exynos4412-odroidx.dts | 52 ++++++++++++++++++++++++++++++
> >> > 2 files changed, 53 insertions(+)
> >> > create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
> >> >
> >> > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> >> > index ca6fb8e..3355af9 100644
> >> > --- a/arch/arm/boot/dts/Makefile
> >> > +++ b/arch/arm/boot/dts/Makefile
> >> > @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
> >> > exynos5250-smdk5250.dtb \
> >> > exynos5440-ssdk5440.dtb \
> >> > exynos4412-smdk4412.dtb \
> >> > + exynos4412-odroidx.dtb \
> >>
> >> Please add them alphabetically, so before smdk.
> > we need to drop the \ \ stuff it will end with merge conflict
> > as if you add 2 dtb at the end you will end with 2 patch that touch the same
> > previous line
>
> ..which is why the dts files should be added alphabetically instead of
> just appended to the list.
we need to drop this \
and use this syntax and keep ordered
dtb-$() +=
>
> >> > diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> >> > new file mode 100644
> >> > index 0000000..786ddd7
> >> > --- /dev/null
> >> > +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> >> > @@ -0,0 +1,52 @@
> >> > +/*
> >> > + * Hardkernel's Exynos4412 based ODROID-X board device tree source
> >> > + *
> >> > + * Copyright (c) 2012-2013 Dongjin Kim <tobetter@gmail.com>
> >>
> >> Are you from the future?
> >>
> >> > + *
> >> > + * Device tree source file for Hardkernel's ODROID-X board which is based on
> >> > + * Samsung's Exynos4412 SoC.
> >> > + *
> >> > + * This program is free software; you can redistribute it and/or modify
> >> > + * it under the terms of the GNU General Public License version 2 as
> >> > + * published by the Free Software Foundation.
> >> > +*/
> >> > +
> >> > +/dts-v1/;
> >> > +/include/ "exynos4412.dtsi"
> >> > +
> >> > +/ {
> >> > + model = "Hardkernel ODROID-X board based on Exynos4412";
> >> > + compatible = "samsung,exynos4412";
> >>
> >> It should have a more specific compatible value first, i.e.
> >> "hardkernel,odroid-x" or similar.
> >>
> >>
> >> > + memory {
> >> > + reg = <0x40000000 0x40000000>;
> >> > + };
> >> > +
> >> > + chosen {
> >> > + bootargs ="root=/dev/mmcblk0p3 rw console=ttySAC1,115200 init=/sbin/init delay=2";
> >>
> >> Bootargs should be passed in from u-boot, don't specify them in the
> >> static device tree.
> >
> > why not we can choose to have a default cmdline and even usit as a complement
> > of the bootloader one
> >
> > it's up to the dts maintainer to choose
>
> The chance of having a valid generic command line that will work for
> everyone with that hardware is fairly small, especially on more
> generic systems that might have a regular distro installed on them.
this does not hurt anyone 99% of the people will overwrite you can just see as
a cmdline example
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-12-18 6:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
2012-12-18 1:22 ` Thomas Abraham
2012-12-18 1:56 ` Olof Johansson
2012-12-18 6:00 ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-18 6:14 ` Olof Johansson
2012-12-18 6:47 ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-17 19:55 ` [PATCH 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim
2012-12-17 19:55 ` [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim
2012-12-17 19:55 ` [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
2012-12-17 21:40 ` Tomasz Figa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).