* [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X [not found] <1356111423-3454-1-git-send-email-tobetter@gmail.com> @ 2012-12-21 17:37 ` Dongjin Kim 2012-12-21 18:13 ` Kukjin Kim 2012-12-21 17:37 ` [PATCH v2 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim ` (2 subsequent siblings) 3 siblings, 1 reply; 6+ messages in thread From: Dongjin Kim @ 2012-12-21 17:37 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 | 47 ++++++++++++++++++++++++++++++ 2 files changed, 48 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 d077ef8..364d67b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \ exynos4210-trats.dtb \ exynos5250-smdk5250.dtb \ exynos5440-ssdk5440.dtb \ + exynos4412-odroidx.dtb \ exynos4412-smdk4412.dtb \ exynos5250-smdk5250.dtb \ exynos5250-snow.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..323ed177 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -0,0 +1,47 @@ +/* + * Hardkernel's Exynos4412 based ODROID-X board device tree source + * + * Copyright (c) 2012 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 = "hardkernel,exynos4412", "samsung,exynos4412"; + + memory { + reg = <0x40000000 0x40000000>; + }; + + 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>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; + pinctrl-names = "default"; + status = "okay"; + }; +}; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X 2012-12-21 17:37 ` [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim @ 2012-12-21 18:13 ` Kukjin Kim 2012-12-22 3:02 ` Dongjin Kim 0 siblings, 1 reply; 6+ messages in thread From: Kukjin Kim @ 2012-12-21 18:13 UTC (permalink / raw) To: linux-arm-kernel Dongjin Kim 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 | 47 > ++++++++++++++++++++++++++++++ > 2 files changed, 48 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 d077ef8..364d67b 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210- > origen.dtb \ > exynos4210-trats.dtb \ > exynos5250-smdk5250.dtb \ > exynos5440-ssdk5440.dtb \ > + exynos4412-odroidx.dtb \ > exynos4412-smdk4412.dtb \ > exynos5250-smdk5250.dtb \ > exynos5250-snow.dtb Just now, I sorted out the ordering alphabetically and submitted. > diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts > b/arch/arm/boot/dts/exynos4412-odroidx.dts > new file mode 100644 > index 0000000..323ed177 > --- /dev/null > +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts > @@ -0,0 +1,47 @@ > +/* > + * Hardkernel's Exynos4412 based ODROID-X board device tree source > + * > + * Copyright (c) 2012 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 = "hardkernel,exynos4412", "samsung,exynos4412"; Probably, + compatible = "hardkernel,odroid-x", "samsung,exynos4412"; > + > + memory { > + reg = <0x40000000 0x40000000>; If you can't see any error message in kernel boot, boot-loader should inform the memory size and bank information to the kernel. So should be separated with bank size, 256MiB. But I need to think again as Olof said in other thread. > + }; > + > + 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>; > + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; > + pinctrl-names = "default"; > + status = "okay"; > + }; > +}; > -- > 1.7.9.5 BTW, you don't need any bootargs as default? - Kukjin ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X 2012-12-21 18:13 ` Kukjin Kim @ 2012-12-22 3:02 ` Dongjin Kim 0 siblings, 0 replies; 6+ messages in thread From: Dongjin Kim @ 2012-12-22 3:02 UTC (permalink / raw) To: linux-arm-kernel Hi Kukjin, Thank you for your review. I was confused a little bit about bootargs what is better removing or including it in the board file, obviously I saw error message failing mount the root file system if I remove bootargs from board file and with default bootargs from u-boot. What I thought is passing bootargs from boot-loader would be better to give more options like boot device and partition setup to the developers. If board file has fixed bootargs, then DTS file has to be updated whenever boot partition is changed or arguments need to be changed. And bootargs and other boot configuration could be set up from u-boot itself with certain script as well, I believe that this is much easier and comfortable rather than changing DTS file. We also can start the hardware with initramfs with default bootargs like "boot=/dev/ram0 rw ramdisk=8192..." and mount the expected boot partition for rootfs, anyhow real boot media has to be specified in bootargs as well. Thanks and any advice will be welcomed a lot. Best regrds, Dongjin. On Sat, Dec 22, 2012 at 3:13 AM, Kukjin Kim <kgene.kim@samsung.com> wrote: > Dongjin Kim 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 | 47 >> ++++++++++++++++++++++++++++++ >> 2 files changed, 48 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 d077ef8..364d67b 100644 >> --- a/arch/arm/boot/dts/Makefile >> +++ b/arch/arm/boot/dts/Makefile >> @@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210- >> origen.dtb \ >> exynos4210-trats.dtb \ >> exynos5250-smdk5250.dtb \ >> exynos5440-ssdk5440.dtb \ >> + exynos4412-odroidx.dtb \ >> exynos4412-smdk4412.dtb \ >> exynos5250-smdk5250.dtb \ >> exynos5250-snow.dtb > > Just now, I sorted out the ordering alphabetically and submitted. > >> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts >> b/arch/arm/boot/dts/exynos4412-odroidx.dts >> new file mode 100644 >> index 0000000..323ed177 >> --- /dev/null >> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts >> @@ -0,0 +1,47 @@ >> +/* >> + * Hardkernel's Exynos4412 based ODROID-X board device tree source >> + * >> + * Copyright (c) 2012 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 = "hardkernel,exynos4412", "samsung,exynos4412"; > > Probably, > > + compatible = "hardkernel,odroid-x", "samsung,exynos4412"; > >> + >> + memory { >> + reg = <0x40000000 0x40000000>; > > If you can't see any error message in kernel boot, boot-loader should inform > the memory size and bank information to the kernel. So should be separated > with bank size, 256MiB. But I need to think again as Olof said in other > thread. > >> + }; >> + >> + 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>; >> + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; >> + pinctrl-names = "default"; >> + status = "okay"; >> + }; >> +}; >> -- >> 1.7.9.5 > > BTW, you don't need any bootargs as default? > > - Kukjin > ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] ODROID-X: dts: Add fixed-regulator for peripherals. [not found] <1356111423-3454-1-git-send-email-tobetter@gmail.com> 2012-12-21 17:37 ` [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim @ 2012-12-21 17:37 ` Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim 3 siblings, 0 replies; 6+ messages in thread From: Dongjin Kim @ 2012-12-21 17:37 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 323ed177..3d53663 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -44,4 +44,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] 6+ messages in thread
* [PATCH v2 3/4] ODROID-X: dts: Add nodes for leds based on GPIO. [not found] <1356111423-3454-1-git-send-email-tobetter@gmail.com> 2012-12-21 17:37 ` [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim @ 2012-12-21 17:37 ` Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim 3 siblings, 0 replies; 6+ messages in thread From: Dongjin Kim @ 2012-12-21 17:37 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 3d53663..e5c57c1 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -54,4 +54,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] 6+ messages in thread
* [PATCH v2 4/4] ODROID-X: dts: Add mshc node for ODROID-X board [not found] <1356111423-3454-1-git-send-email-tobetter@gmail.com> ` (2 preceding siblings ...) 2012-12-21 17:37 ` [PATCH v2 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim @ 2012-12-21 17:37 ` Dongjin Kim 3 siblings, 0 replies; 6+ messages in thread From: Dongjin Kim @ 2012-12-21 17:37 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts index e5c57c1..7a2df8e 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -68,4 +68,24 @@ linux,default-trigger = "mmc0"; }; }; + + mshc at 12550000 { + bus-width = <8>; + pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; + pinctrl-names = "default"; + status = "okay"; + + 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>; + }; + }; }; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-22 3:02 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1356111423-3454-1-git-send-email-tobetter@gmail.com> 2012-12-21 17:37 ` [PATCH v2 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim 2012-12-21 18:13 ` Kukjin Kim 2012-12-22 3:02 ` Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim 2012-12-21 17:37 ` [PATCH v2 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
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).