linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3] ARM: dts: add minimal DT support for DevKit8000
@ 2013-02-16  7:19 Anil Kumar
  2013-02-20 11:58 ` Manish Badarkhe
  0 siblings, 1 reply; 3+ messages in thread
From: Anil Kumar @ 2013-02-16  7:19 UTC (permalink / raw)
  To: devicetree-discuss, linux-omap, linux-kernel, linux-arm-kernel
  Cc: linux, b-cousson, tony, grant.likely, thomas, anilk4.v

DevKit8000 is a beagle board clone from Timll, sold by
armkits.com. The DevKit8000 has RS232 serial port, LCD, DVI-D,
S-Video, Ethernet, SD/MMC, keyboard, camera, SPI, I2C, USB and
JTAG interface.

This patch adds the basic DT support for devkit8000. At this time, Information
of twl4030 (PMIC), MMC1, I2C1 and leds are added.

Signed-off-by: Anil Kumar <anilk4.v@gmail.com>
Tested-by: Thomas Weber <thomas@tomweber.eu>
---
 -This patch is based on top of kernel 3.8-rc5.

 -Tested on Devkit8000.

For V3:
 - Remove pin mux as done at device boot time by default.

For V2:
 - Change model name as "TimLL OMAP3 Devkit8000"
 - Change compatible as "timll,omap3-devkit8000"
 - Doing i2c1 pinmux default with pinctrl-single driver instead of i2c1
   driver probe time.

:100644 100644 5ebb44f... 22ebc76... M	arch/arm/boot/dts/Makefile
:000000 100644 0000000... 6338993... A	arch/arm/boot/dts/omap3-devkit8000.dts
:100644 100644 53cb380b.. ccecb76... M	arch/arm/mach-omap2/board-generic.c
 arch/arm/boot/dts/Makefile             |    1 +
 arch/arm/boot/dts/omap3-devkit8000.dts |  103 ++++++++++++++++++++++++++++++++
 arch/arm/mach-omap2/board-generic.c    |    1 +
 3 files changed, 105 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 5ebb44f..22ebc76 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
 	imx28-tx28.dtb
 dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap3-beagle.dtb \
+	omap3-devkit8000.dtb \
 	omap3-beagle-xm.dtb \
 	omap3-evm.dtb \
 	omap3-tobi.dtb \
diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
new file mode 100644
index 0000000..6338993
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-devkit8000.dts
@@ -0,0 +1,103 @@
+/*
+ * Author: Anil Kumar <anilk4.v@gmail.com>
+ *
+ * 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/ "omap3.dtsi"
+/ {
+	model = "TimLL OMAP3 Devkit8000";
+	compatible = "timll,omap3-devkit8000", "ti,omap3";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x10000000>;	/* 256 MB */
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		heartbeat {
+			label = "devkit8000::led1";
+			gpios = <&gpio6 26 0>;	/* 186 -> LED1 */
+			default-state = "on";
+			linux,default-trigger = "heartbeat";
+		};
+
+		mmc {
+			label = "devkit8000::led2";
+			gpios = <&gpio6 3 0>;	/* 163 -> LED2 */
+			default-state = "on";
+			linux,default-trigger = "none";
+		};
+
+		usr {
+			label = "devkit8000::led3";
+			gpios = <&gpio6 4 0>;	/* 164 -> LED3 */
+			default-state = "on";
+			linux,default-trigger = "usr";
+                };
+
+	};
+};
+
+&i2c1 {
+	clock-frequency = <2600000>;
+
+	twl: twl@48 {
+		reg = <0x48>;
+		interrupts = <7>;	/* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+	};
+};
+
+&i2c2 {
+	status = "disabled";
+};
+
+&i2c3 {
+	status = "disabled";
+};
+
+/include/ "twl4030.dtsi"
+
+&mmc1 {
+	vmmc-supply = <&vmmc1>;
+	vmmc_aux-supply = <&vsim>;
+	bus-width = <8>;
+};
+
+&mmc2 {
+	status = "disabled";
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+&wdt2 {
+	status = "disabled";
+};
+
+&mcbsp1 {
+	status = "disabled";
+};
+
+&mcbsp2 {
+	status = "disabled";
+};
+
+&mcbsp3 {
+	status = "disabled";
+};
+
+&mcbsp4 {
+	status = "disabled";
+};
+
+&mcbsp5 {
+	status = "disabled";
+};
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 53cb380..ccecb76 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -110,6 +110,7 @@ MACHINE_END
 
 static const char *omap3_gp_boards_compat[] __initdata = {
 	"ti,omap3-beagle",
+	"timll,omap3-devkit8000",
 	NULL,
 };
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] ARM: dts: add minimal DT support for DevKit8000
  2013-02-16  7:19 [PATCH V3] ARM: dts: add minimal DT support for DevKit8000 Anil Kumar
@ 2013-02-20 11:58 ` Manish Badarkhe
  2013-02-20 13:00   ` Anil Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Manish Badarkhe @ 2013-02-20 11:58 UTC (permalink / raw)
  To: Anil Kumar
  Cc: devicetree-discuss, linux-omap, linux-kernel, linux-arm-kernel,
	linux, b-cousson, tony, grant.likely, thomas

On Sat, Feb 16, 2013 at 12:49 PM, Anil Kumar <anilk4.v@gmail.com> wrote:
> DevKit8000 is a beagle board clone from Timll, sold by
> armkits.com. The DevKit8000 has RS232 serial port, LCD, DVI-D,
> S-Video, Ethernet, SD/MMC, keyboard, camera, SPI, I2C, USB and
> JTAG interface.
>
> This patch adds the basic DT support for devkit8000. At this time,
> Information
> of twl4030 (PMIC), MMC1, I2C1 and leds are added.
>
> Signed-off-by: Anil Kumar <anilk4.v@gmail.com>
> Tested-by: Thomas Weber <thomas@tomweber.eu>
> ---
>  -This patch is based on top of kernel 3.8-rc5.
>
>  -Tested on Devkit8000.
>
> For V3:
>  - Remove pin mux as done at device boot time by default.
>
> For V2:
>  - Change model name as "TimLL OMAP3 Devkit8000"
>  - Change compatible as "timll,omap3-devkit8000"
>  - Doing i2c1 pinmux default with pinctrl-single driver instead of i2c1
>    driver probe time.
>
> :100644 100644 5ebb44f... 22ebc76... M  arch/arm/boot/dts/Makefile
> :000000 100644 0000000... 6338993... A
> arch/arm/boot/dts/omap3-devkit8000.dts
> :100644 100644 53cb380b.. ccecb76... M
> arch/arm/mach-omap2/board-generic.c
>  arch/arm/boot/dts/Makefile             |    1 +
>  arch/arm/boot/dts/omap3-devkit8000.dts |  103
> ++++++++++++++++++++++++++++++++
>  arch/arm/mach-omap2/board-generic.c    |    1 +
>  3 files changed, 105 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 5ebb44f..22ebc76 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
>         imx28-tx28.dtb
>  dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
>         omap3-beagle.dtb \
> +       omap3-devkit8000.dtb \
>         omap3-beagle-xm.dtb \
>         omap3-evm.dtb \
>         omap3-tobi.dtb \
> diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts
> b/arch/arm/boot/dts/omap3-devkit8000.dts
> new file mode 100644
> index 0000000..6338993
> --- /dev/null
> +++ b/arch/arm/boot/dts/omap3-devkit8000.dts
> @@ -0,0 +1,103 @@
> +/*
> + * Author: Anil Kumar <anilk4.v@gmail.com>
> + *
> + * 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/ "omap3.dtsi"
> +/ {
> +       model = "TimLL OMAP3 Devkit8000";
> +       compatible = "timll,omap3-devkit8000", "ti,omap3";
> +
> +       memory {
> +               device_type = "memory";
> +               reg = <0x80000000 0x10000000>;  /* 256 MB */
> +       };
> +
> +       leds {
> +               compatible = "gpio-leds";
> +
> +               heartbeat {
> +                       label = "devkit8000::led1";
> +                       gpios = <&gpio6 26 0>;  /* 186 -> LED1 */
> +                       default-state = "on";
> +                       linux,default-trigger = "heartbeat";
> +               };
> +
> +               mmc {
> +                       label = "devkit8000::led2";
> +                       gpios = <&gpio6 3 0>;   /* 163 -> LED2 */
> +                       default-state = "on";
> +                       linux,default-trigger = "none";
> +               };
> +
> +               usr {
> +                       label = "devkit8000::led3";
> +                       gpios = <&gpio6 4 0>;   /* 164 -> LED3 */
> +                       default-state = "on";
> +                       linux,default-trigger = "usr";
> +                };
> +

No need of extra line over here.

Thanks
Manish Badarkhe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] ARM: dts: add minimal DT support for DevKit8000
  2013-02-20 11:58 ` Manish Badarkhe
@ 2013-02-20 13:00   ` Anil Kumar
  0 siblings, 0 replies; 3+ messages in thread
From: Anil Kumar @ 2013-02-20 13:00 UTC (permalink / raw)
  To: Manish Badarkhe
  Cc: devicetree-discuss, linux-omap, linux-kernel, linux-arm-kernel,
	linux, b-cousson, Tony Lindgren, Grant Likely, thomas

Hi Manish,

On Wed, Feb 20, 2013 at 5:28 PM, Manish Badarkhe
<badarkhe.manish@gmail.com> wrote:
> On Sat, Feb 16, 2013 at 12:49 PM, Anil Kumar <anilk4.v@gmail.com> wrote:
>> DevKit8000 is a beagle board clone from Timll, sold by
>> armkits.com. The DevKit8000 has RS232 serial port, LCD, DVI-D,
>> S-Video, Ethernet, SD/MMC, keyboard, camera, SPI, I2C, USB and
>> JTAG interface.
>>
>> This patch adds the basic DT support for devkit8000. At this time,
>> Information
>> of twl4030 (PMIC), MMC1, I2C1 and leds are added.
>>
>> Signed-off-by: Anil Kumar <anilk4.v@gmail.com>
>> Tested-by: Thomas Weber <thomas@tomweber.eu>
>> ---
>>  -This patch is based on top of kernel 3.8-rc5.
>>
>>  -Tested on Devkit8000.
>>
>> For V3:
>>  - Remove pin mux as done at device boot time by default.
>>
>> For V2:
>>  - Change model name as "TimLL OMAP3 Devkit8000"
>>  - Change compatible as "timll,omap3-devkit8000"
>>  - Doing i2c1 pinmux default with pinctrl-single driver instead of i2c1
>>    driver probe time.
>>
>> :100644 100644 5ebb44f... 22ebc76... M  arch/arm/boot/dts/Makefile
>> :000000 100644 0000000... 6338993... A
>> arch/arm/boot/dts/omap3-devkit8000.dts
>> :100644 100644 53cb380b.. ccecb76... M
>> arch/arm/mach-omap2/board-generic.c
>>  arch/arm/boot/dts/Makefile             |    1 +
>>  arch/arm/boot/dts/omap3-devkit8000.dts |  103
>> ++++++++++++++++++++++++++++++++
>>  arch/arm/mach-omap2/board-generic.c    |    1 +
>>  3 files changed, 105 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>> index 5ebb44f..22ebc76 100644
>> --- a/arch/arm/boot/dts/Makefile
>> +++ b/arch/arm/boot/dts/Makefile
>> @@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
>>         imx28-tx28.dtb
>>  dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
>>         omap3-beagle.dtb \
>> +       omap3-devkit8000.dtb \
>>         omap3-beagle-xm.dtb \
>>         omap3-evm.dtb \
>>         omap3-tobi.dtb \
>> diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts
>> b/arch/arm/boot/dts/omap3-devkit8000.dts
>> new file mode 100644
>> index 0000000..6338993
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/omap3-devkit8000.dts
>> @@ -0,0 +1,103 @@
>> +/*
>> + * Author: Anil Kumar <anilk4.v@gmail.com>
>> + *
>> + * 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/ "omap3.dtsi"
>> +/ {
>> +       model = "TimLL OMAP3 Devkit8000";
>> +       compatible = "timll,omap3-devkit8000", "ti,omap3";
>> +
>> +       memory {
>> +               device_type = "memory";
>> +               reg = <0x80000000 0x10000000>;  /* 256 MB */
>> +       };
>> +
>> +       leds {
>> +               compatible = "gpio-leds";
>> +
>> +               heartbeat {
>> +                       label = "devkit8000::led1";
>> +                       gpios = <&gpio6 26 0>;  /* 186 -> LED1 */
>> +                       default-state = "on";
>> +                       linux,default-trigger = "heartbeat";
>> +               };
>> +
>> +               mmc {
>> +                       label = "devkit8000::led2";
>> +                       gpios = <&gpio6 3 0>;   /* 163 -> LED2 */
>> +                       default-state = "on";
>> +                       linux,default-trigger = "none";
>> +               };
>> +
>> +               usr {
>> +                       label = "devkit8000::led3";
>> +                       gpios = <&gpio6 4 0>;   /* 164 -> LED3 */
>> +                       default-state = "on";
>> +                       linux,default-trigger = "usr";
>> +                };
>> +
>
> No need of extra line over here.

ok,

Thanks,
Anil

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-20 13:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-16  7:19 [PATCH V3] ARM: dts: add minimal DT support for DevKit8000 Anil Kumar
2013-02-20 11:58 ` Manish Badarkhe
2013-02-20 13:00   ` Anil Kumar

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).