* [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X
@ 2012-08-07 19:12 Dongjin Kim
2012-08-08 3:47 ` Thomas Abraham
2012-08-08 4:04 ` Sachin Kamat
0 siblings, 2 replies; 4+ messages in thread
From: Dongjin Kim @ 2012-08-07 19:12 UTC (permalink / raw)
To: linux-arm-kernel
This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED
gpios base.
Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 148 ++++++++++++++++++++++++++++++
1 file changed, 148 insertions(+)
create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
new file mode 100644
index 0000000..b0a892b
--- /dev/null
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -0,0 +1,148 @@
+/*
+ * Samsung's Exynos4210 based Origen board device tree source
+ *
+ * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ * Copyright (c) 2010-2011 Linaro Ltd.
+ * www.linaro.org
+ *
+ * Device tree source file for Insignal's Origen board which is based on
+ * Samsung's Exynos4210 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"
+/include/ "max77686.dtsi"
+
+/ {
+ model = "Hardkernel ODROID-X evaluation board based on Exynos4412";
+ compatible = "hardkernel,odroidx", "samsung,exynos4412";
+
+ memory {
+ reg = <0x40000000 0x40000000>;
+ };
+
+ chosen {
+ bootargs = "root=/dev/mmcblk0p1 init=/sbin/init console=ttySAC1,115200 console=tty1 rootdalay=2";
+ };
+
+ /* sdhci0 */
+ sdhci at 12510000 {
+ status = "disabled";
+ };
+
+ /* sdhci1 */
+ sdhci at 12520000 {
+ status = "disabled";
+ };
+
+ /* sdhci2 */
+ sdhci at 12530000 {
+ samsung,sdhci-bus-width = <4>;
+ linux,mmc_cap_4_bit_data;
+ samsung,sdhci-cd-internal;
+ gpio-cd = <&gpk2 2 2 3 3>;
+ gpios = <&gpk2 0 2 0 3>,
+ <&gpk2 1 2 0 3>,
+ <&gpk2 3 2 3 3>,
+ <&gpk2 4 2 3 3>,
+ <&gpk2 5 2 3 3>,
+ <&gpk2 6 2 3 3>;
+ };
+
+ /* sdhci3 */
+ sdhci at 12540000 {
+ samsung,sdhci-bus-width = <4>;
+ linux,mmc_cap_4_bit_data;
+ samsung,sdhci-cd-internal;
+ gpio-cd = <&gpk3 2 2 3 3>;
+ gpios = <&gpk3 0 2 0 3>,
+ <&gpk3 1 2 0 3>,
+ <&gpk3 3 2 3 3>,
+ <&gpk3 4 2 3 3>,
+ <&gpk3 5 2 3 3>,
+ <&gpk3 6 2 3 3>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led1 {
+ label = "led1";
+ gpios = <&gpc1 0 1 0x10000 0>;
+ linux,default-trigger = "oneshot";
+ default-state = "off";
+ };
+
+ led2 {
+ label = "led2";
+ gpios = <&gpc1 2 1 0x10000 0>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ i2c at 13860000 { /* i2c0 */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ gpios = <&gpd1 0 2 0 0>,
+ <&gpd1 1 2 0 0>;
+ pmic at 9 {
+ compatible = "maxim,max77686";
+ reg = <9>;
+ };
+ };
+
+ i2c at 13870000 { /* i2c1 */
+ status = "disabled";
+ gpios = <&gpd1 2 2 0 0>,
+ <&gpd1 3 2 0 0>;
+ };
+
+ i2c at 13880000 { /* i2c2 */
+ status = "disabled";
+ gpios = <&gpa0 6 2 0 0>,
+ <&gpa0 7 2 0 0>;
+ };
+
+ i2c at 13890000 { /* i2c3 */
+ status = "disabled";
+ gpios = <&gpa1 2 2 0 0>,
+ <&gpa1 3 2 0 0>;
+ };
+
+ i2c at 138A0000 { /* i2c4 */
+ status = "disabled";
+ };
+
+ i2c at 138B0000 { /* i2c5 */
+ status = "disabled";
+ };
+
+ i2c at 138C0000 { /* i2c6 */
+ status = "disabled";
+ };
+
+ i2c at 138D0000 { /* i2c7 */
+ status = "disabled";
+ };
+
+ keypad at 100A0000 {
+ status = "disabled";
+ };
+
+ spi_0: spi at 13920000 {
+ status = "disabled";
+ };
+
+ spi_1: spi at 13930000 {
+ status = "disabled";
+ };
+
+ spi_2: spi at 13940000 {
+ status = "disabled";
+ };
+};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X
2012-08-07 19:12 [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X Dongjin Kim
@ 2012-08-08 3:47 ` Thomas Abraham
2012-09-19 23:26 ` Kukjin Kim
2012-08-08 4:04 ` Sachin Kamat
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Abraham @ 2012-08-08 3:47 UTC (permalink / raw)
To: linux-arm-kernel
On 8 August 2012 00:42, Dongjin Kim <tobetter@gmail.com> wrote:
> This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED
> gpios base.
>
> Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
> ---
> arch/arm/boot/dts/exynos4412-odroidx.dts | 148 ++++++++++++++++++++++++++++++
> 1 file changed, 148 insertions(+)
> create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> new file mode 100644
> index 0000000..b0a892b
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Samsung's Exynos4210 based Origen board device tree source
> + *
> + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
> + * http://www.samsung.com
> + * Copyright (c) 2010-2011 Linaro Ltd.
> + * www.linaro.org
> + *
> + * Device tree source file for Insignal's Origen board which is based on
> + * Samsung's Exynos4210 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"
> +/include/ "max77686.dtsi"
> +
> +/ {
> + model = "Hardkernel ODROID-X evaluation board based on Exynos4412";
> + compatible = "hardkernel,odroidx", "samsung,exynos4412";
The compatible value "samsung,exynos4412" can be added to the
compatible list in mach-exynos4-dt.c file. Otherwise, this looks fine.
Thanks,
Thomas.
> +
> + memory {
> + reg = <0x40000000 0x40000000>;
> + };
> +
> + chosen {
> + bootargs = "root=/dev/mmcblk0p1 init=/sbin/init console=ttySAC1,115200 console=tty1 rootdalay=2";
> + };
> +
> + /* sdhci0 */
> + sdhci at 12510000 {
> + status = "disabled";
> + };
> +
> + /* sdhci1 */
> + sdhci at 12520000 {
> + status = "disabled";
> + };
> +
> + /* sdhci2 */
> + sdhci at 12530000 {
> + samsung,sdhci-bus-width = <4>;
> + linux,mmc_cap_4_bit_data;
> + samsung,sdhci-cd-internal;
> + gpio-cd = <&gpk2 2 2 3 3>;
> + gpios = <&gpk2 0 2 0 3>,
> + <&gpk2 1 2 0 3>,
> + <&gpk2 3 2 3 3>,
> + <&gpk2 4 2 3 3>,
> + <&gpk2 5 2 3 3>,
> + <&gpk2 6 2 3 3>;
> + };
> +
> + /* sdhci3 */
> + sdhci at 12540000 {
> + samsung,sdhci-bus-width = <4>;
> + linux,mmc_cap_4_bit_data;
> + samsung,sdhci-cd-internal;
> + gpio-cd = <&gpk3 2 2 3 3>;
> + gpios = <&gpk3 0 2 0 3>,
> + <&gpk3 1 2 0 3>,
> + <&gpk3 3 2 3 3>,
> + <&gpk3 4 2 3 3>,
> + <&gpk3 5 2 3 3>,
> + <&gpk3 6 2 3 3>;
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + led1 {
> + label = "led1";
> + gpios = <&gpc1 0 1 0x10000 0>;
> + linux,default-trigger = "oneshot";
> + default-state = "off";
> + };
> +
> + led2 {
> + label = "led2";
> + gpios = <&gpc1 2 1 0x10000 0>;
> + linux,default-trigger = "heartbeat";
> + };
> + };
> +
> + i2c at 13860000 { /* i2c0 */
> + #address-cells = <1>;
> + #size-cells = <0>;
> + gpios = <&gpd1 0 2 0 0>,
> + <&gpd1 1 2 0 0>;
> + pmic at 9 {
> + compatible = "maxim,max77686";
> + reg = <9>;
> + };
> + };
> +
> + i2c at 13870000 { /* i2c1 */
> + status = "disabled";
> + gpios = <&gpd1 2 2 0 0>,
> + <&gpd1 3 2 0 0>;
> + };
> +
> + i2c at 13880000 { /* i2c2 */
> + status = "disabled";
> + gpios = <&gpa0 6 2 0 0>,
> + <&gpa0 7 2 0 0>;
> + };
> +
> + i2c at 13890000 { /* i2c3 */
> + status = "disabled";
> + gpios = <&gpa1 2 2 0 0>,
> + <&gpa1 3 2 0 0>;
> + };
> +
> + i2c at 138A0000 { /* i2c4 */
> + status = "disabled";
> + };
> +
> + i2c at 138B0000 { /* i2c5 */
> + status = "disabled";
> + };
> +
> + i2c at 138C0000 { /* i2c6 */
> + status = "disabled";
> + };
> +
> + i2c at 138D0000 { /* i2c7 */
> + status = "disabled";
> + };
> +
> + keypad at 100A0000 {
> + status = "disabled";
> + };
> +
> + spi_0: spi at 13920000 {
> + status = "disabled";
> + };
> +
> + spi_1: spi at 13930000 {
> + status = "disabled";
> + };
> +
> + spi_2: spi at 13940000 {
> + status = "disabled";
> + };
> +};
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X
2012-08-07 19:12 [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X Dongjin Kim
2012-08-08 3:47 ` Thomas Abraham
@ 2012-08-08 4:04 ` Sachin Kamat
1 sibling, 0 replies; 4+ messages in thread
From: Sachin Kamat @ 2012-08-08 4:04 UTC (permalink / raw)
To: linux-arm-kernel
On 8 August 2012 00:42, Dongjin Kim <tobetter@gmail.com> wrote:
> This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED
> gpios base.
>
> Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
> ---
> arch/arm/boot/dts/exynos4412-odroidx.dts | 148 ++++++++++++++++++++++++++++++
> 1 file changed, 148 insertions(+)
> create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> new file mode 100644
> index 0000000..b0a892b
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Samsung's Exynos4210 based Origen board device tree source
> + *
> + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
> + * http://www.samsung.com
> + * Copyright (c) 2010-2011 Linaro Ltd.
> + * www.linaro.org
> + *
> + * Device tree source file for Insignal's Origen board which is based on
> + * Samsung's Exynos4210 SoC.
Don't you think you need to update this header?
> + *
> + * 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"
> +/include/ "max77686.dtsi"
> +
> +/ {
> + model = "Hardkernel ODROID-X evaluation board based on Exynos4412";
> + compatible = "hardkernel,odroidx", "samsung,exynos4412";
> +
> + memory {
> + reg = <0x40000000 0x40000000>;
> + };
> +
> + chosen {
> + bootargs = "root=/dev/mmcblk0p1 init=/sbin/init console=ttySAC1,115200 console=tty1 rootdalay=2";
> + };
> +
> + /* sdhci0 */
> + sdhci at 12510000 {
> + status = "disabled";
> + };
> +
> + /* sdhci1 */
> + sdhci at 12520000 {
> + status = "disabled";
> + };
> +
> + /* sdhci2 */
> + sdhci at 12530000 {
> + samsung,sdhci-bus-width = <4>;
> + linux,mmc_cap_4_bit_data;
> + samsung,sdhci-cd-internal;
> + gpio-cd = <&gpk2 2 2 3 3>;
> + gpios = <&gpk2 0 2 0 3>,
> + <&gpk2 1 2 0 3>,
> + <&gpk2 3 2 3 3>,
> + <&gpk2 4 2 3 3>,
> + <&gpk2 5 2 3 3>,
> + <&gpk2 6 2 3 3>;
> + };
> +
> + /* sdhci3 */
> + sdhci at 12540000 {
> + samsung,sdhci-bus-width = <4>;
> + linux,mmc_cap_4_bit_data;
> + samsung,sdhci-cd-internal;
> + gpio-cd = <&gpk3 2 2 3 3>;
> + gpios = <&gpk3 0 2 0 3>,
> + <&gpk3 1 2 0 3>,
> + <&gpk3 3 2 3 3>,
> + <&gpk3 4 2 3 3>,
> + <&gpk3 5 2 3 3>,
> + <&gpk3 6 2 3 3>;
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + led1 {
> + label = "led1";
> + gpios = <&gpc1 0 1 0x10000 0>;
> + linux,default-trigger = "oneshot";
> + default-state = "off";
> + };
> +
> + led2 {
> + label = "led2";
> + gpios = <&gpc1 2 1 0x10000 0>;
> + linux,default-trigger = "heartbeat";
> + };
> + };
> +
> + i2c at 13860000 { /* i2c0 */
> + #address-cells = <1>;
> + #size-cells = <0>;
> + gpios = <&gpd1 0 2 0 0>,
> + <&gpd1 1 2 0 0>;
> + pmic at 9 {
> + compatible = "maxim,max77686";
> + reg = <9>;
> + };
> + };
> +
> + i2c at 13870000 { /* i2c1 */
> + status = "disabled";
> + gpios = <&gpd1 2 2 0 0>,
> + <&gpd1 3 2 0 0>;
> + };
> +
> + i2c at 13880000 { /* i2c2 */
> + status = "disabled";
> + gpios = <&gpa0 6 2 0 0>,
> + <&gpa0 7 2 0 0>;
> + };
> +
> + i2c at 13890000 { /* i2c3 */
> + status = "disabled";
> + gpios = <&gpa1 2 2 0 0>,
> + <&gpa1 3 2 0 0>;
> + };
> +
> + i2c at 138A0000 { /* i2c4 */
> + status = "disabled";
> + };
> +
> + i2c at 138B0000 { /* i2c5 */
> + status = "disabled";
> + };
> +
> + i2c at 138C0000 { /* i2c6 */
> + status = "disabled";
> + };
> +
> + i2c at 138D0000 { /* i2c7 */
> + status = "disabled";
> + };
> +
> + keypad at 100A0000 {
> + status = "disabled";
> + };
> +
> + spi_0: spi at 13920000 {
> + status = "disabled";
> + };
> +
> + spi_1: spi at 13930000 {
> + status = "disabled";
> + };
> +
> + spi_2: spi at 13940000 {
> + status = "disabled";
> + };
> +};
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
With warm regards,
Sachin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X
2012-08-08 3:47 ` Thomas Abraham
@ 2012-09-19 23:26 ` Kukjin Kim
0 siblings, 0 replies; 4+ messages in thread
From: Kukjin Kim @ 2012-09-19 23:26 UTC (permalink / raw)
To: linux-arm-kernel
Thomas Abraham wrote:
>
> On 8 August 2012 00:42, Dongjin Kim <tobetter@gmail.com> wrote:
> > This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and
> LED
> > gpios base.
> >
> > Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
> > ---
> > arch/arm/boot/dts/exynos4412-odroidx.dts | 148
> ++++++++++++++++++++++++++++++
> > 1 file changed, 148 insertions(+)
> > create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
> >
> > diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts
> b/arch/arm/boot/dts/exynos4412-odroidx.dts
> > new file mode 100644
> > index 0000000..b0a892b
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> > @@ -0,0 +1,148 @@
> > +/*
> > + * Samsung's Exynos4210 based Origen board device tree source
> > + *
> > + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
> > + * http://www.samsung.com
> > + * Copyright (c) 2010-2011 Linaro Ltd.
> > + * www.linaro.org
> > + *
> > + * Device tree source file for Insignal's Origen board which is based
> on
> > + * Samsung's Exynos4210 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"
> > +/include/ "max77686.dtsi"
> > +
> > +/ {
> > + model = "Hardkernel ODROID-X evaluation board based on
> Exynos4412";
> > + compatible = "hardkernel,odroidx", "samsung,exynos4412";
>
> The compatible value "samsung,exynos4412" can be added to the
> compatible list in mach-exynos4-dt.c file. Otherwise, this looks fine.
>
Dongjin, any updates on this?
K-Gene <kgene@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-19 23:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 19:12 [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X Dongjin Kim
2012-08-08 3:47 ` Thomas Abraham
2012-09-19 23:26 ` Kukjin Kim
2012-08-08 4:04 ` Sachin Kamat
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).