[PATCH 1/2] ARM: dts: Add dwmmc host for TINY4412

2014-01-18 Thread Alex Ling
Add dwmmc host node for to support eMMC on TINY4412 board.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
 arch/arm/boot/dts/exynos4412-tiny4412.dts |   19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
b/arch/arm/boot/dts/exynos4412-tiny4412.dts
index 0a98312..2c6bfe3 100644
--- a/arch/arm/boot/dts/exynos4412-tiny4412.dts
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -63,6 +63,25 @@
status = okay;
};
 
+   mmc@1255 {
+   num-slots = 1;
+   supports-highspeed;
+   broken-cd;
+   non-removable;
+   card-detect-delay = 200;
+   samsung,dw-mshc-ciu-div = 3;
+   samsung,dw-mshc-sdr-timing = 2 3;
+   samsung,dw-mshc-ddr-timing = 1 2;
+   pinctrl-0 = sd4_clk sd4_cmd sd4_bus4 sd4_bus8;
+   pinctrl-names = default;
+   status = okay;
+
+   slot@0 {
+   reg = 0;
+   bus-width = 8;
+   };
+   };
+
serial@1380 {
status = okay;
};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/2] ARM: dts: Add AT24C08 EEPROM support to TINY4412

2014-01-18 Thread Alex Ling
This patch adds support for AT24C08 EEPROM found on TINY4412 board.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
 arch/arm/boot/dts/exynos4412-tiny4412.dts |   12 
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
b/arch/arm/boot/dts/exynos4412-tiny4412.dts
index 2c6bfe3..9f63664 100644
--- a/arch/arm/boot/dts/exynos4412-tiny4412.dts
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -109,4 +109,16 @@
clock-frequency = 2400;
};
};
+
+   i2c@1386 {
+   status = okay;
+   samsung,i2c-sda-delay = 100;
+   samsung,i2c-max-bus-freq = 20;
+
+   eeprom@50 {
+   compatible = atmel,24c08;
+   reg = 0x50;
+   pagesize = 16;
+   };
+   };
 };
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 1/1] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-12-18 Thread Alex Ling
Add a minimal board dts file for EXYNOS4412 based FriendlyARM's
TINY4412 board. This patch including support peripherals like
UART, SD card on SDMMC2 port and GPIO connected LEDs.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
Changes for v2:
  - Clean up patch description
  - Fix LED labels as Tomasz's suggested
  - Fix style issues

 arch/arm/boot/dts/Makefile|1 +
 arch/arm/boot/dts/exynos4412-tiny4412.dts |   93 +
 2 files changed, 94 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-tiny4412.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 50fd70b..cfee1ef 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
exynos4412-odroidx.dtb \
exynos4412-origen.dtb \
exynos4412-smdk4412.dtb \
+   exynos4412-tiny4412.dtb \
exynos4412-trats2.dtb \
exynos5250-arndale.dtb \
exynos5250-smdk5250.dtb \
diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
b/arch/arm/boot/dts/exynos4412-tiny4412.dts
new file mode 100644
index 000..0a98312
--- /dev/null
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -0,0 +1,93 @@
+/*
+ * FriendlyARM's Exynos4412 based TINY4412 board device tree source
+ *
+ * Copyright (c) 2013 Alex Ling kasiml...@gmail.com
+ *
+ * Device tree source file for FriendlyARM's TINY4412 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 = FriendlyARM TINY4412 board based on Exynos4412;
+   compatible = friendlyarm,tiny4412, samsung,exynos4412;
+
+   memory {
+   reg = 0x4000 0x4000;
+   };
+
+   leds {
+   compatible = gpio-leds;
+
+   led1 {
+   label = led1;
+   gpios = gpm4 0 1;
+   default-state = off;
+   linux,default-trigger = heartbeat;
+   };
+
+   led2 {
+   label = led2;
+   gpios = gpm4 1 1;
+   default-state = off;
+   };
+
+   led3 {
+   label = led3;
+   gpios = gpm4 2 1;
+   default-state = off;
+   };
+
+   led4 {
+   label = led4;
+   gpios = gpm4 3 1;
+   default-state = off;
+   linux,default-trigger = mmc0;
+   };
+   };
+
+   rtc@1007 {
+   status = okay;
+   };
+
+   sdhci@1253 {
+   bus-width = 4;
+   pinctrl-0 = sd2_clk sd2_cmd sd2_cd sd2_bus4;
+   pinctrl-names = default;
+   status = okay;
+   };
+
+   serial@1380 {
+   status = okay;
+   };
+
+   serial@1381 {
+   status = okay;
+   };
+
+   serial@1382 {
+   status = okay;
+   };
+
+   serial@1383 {
+   status = okay;
+   };
+
+   fixed-rate-clocks {
+   xxti {
+   compatible = samsung,clock-xxti;
+   clock-frequency = 0;
+   };
+
+   xusbxti {
+   compatible = samsung,clock-xusbxti;
+   clock-frequency = 2400;
+   };
+   };
+};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/1] ARM: dts: Add missing clocks for exynos4412 dwmmc node

2013-12-15 Thread Alex Ling
Thanks for pointing out this, Tomasz. I'll use those patches instead.


Regards,
Alex

On Sat, Dec 14, 2013 at 9:24 PM, Tomasz Figa tomasz.f...@gmail.com wrote:
 Hi Alex,

 On Saturday 14 of December 2013 13:21:30 Alex Ling wrote:
 This patch adds biu and ciu clocks for exynos4412 dwmmc
 node. Without this patch, dwmmc host driver will skip enabling the
 two clocks and it will break dwmmc host function on exynos4412.
 Tested on FriendlyARM TINY4412 board.

 Signed-off-by: Alex Ling kasiml...@gmail.com
 ---
 Changes for v2:
- Fix patch description as Mark Rutland suggested

  arch/arm/boot/dts/exynos4412.dtsi |2 ++
  1 file changed, 2 insertions(+)

 The patch is correct, but unfortunately it's not the only thing that
 is wrong with MSHC device tree node for Exynos4x12.

 Please refer to my series fixing DW-MSHC support on Exynos4x12 (and
 enabling it on TRATS2 board):
 http://www.spinics.net/lists/arm-kernel/msg293652.html

 Best regards,
 Tomasz

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-12-14 Thread Alex Ling
Tomasz,
Thanks for reviewing. I'll fix the patch description and style problems.


Regards,
Alex

On Sun, Dec 15, 2013 at 2:57 AM, Tomasz Figa tomasz.f...@gmail.com wrote:
 Hi Alex,

 On Friday 15 of November 2013 21:09:29 Alex Ling wrote:
 Add a minimal board dts file for EXYNOS4412 based FriendlyARM's
 TINY4412 board. This patch including adds the node to support
 peripherals like UART, SD card on SDMMC2 port, and this patch
 adds GPIO connected LEDS and configure its properties like
 following:
 LED1: use 'heartbeat' trigger, blinking while the board is running.
 LED4: use 'mmc0' trigger, on when mmc0 is accessing.
 LED2 and LED3 can be controlled from userspace.

 Well, all the LEDs can be controlled from userspace. The default trigger
 is just the initial setting, which can be changed later by userspace.
 It's just a general comment, not an issue with the patch, though.

 Anyway, you don't need such detailed patch description, as you can see
 most of the things directly from the code. In case of this patch, just the
 list of supported peripherals is fine, without going into minor details,
 such as LED triggers.

 Also, please see my comments inline.

 [snip]
 diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
 b/arch/arm/boot/dts/exynos4412-tiny4412.dts
 new file mode 100644
 index 000..78ace14
 --- /dev/null
 +++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
 [snip]
 + leds {
 + compatible = gpio-leds;

 style: A blank line should be separating properties from nodes.

 + led1 {
 + label = led1:heart;

 Are the labels for this and the LEDs below related to the hardware?
 I mean, the label should preferrably come from the board documentation,
 or a label on the PCB next to the LED. Also they shouldn't represent
 any particular use case, so you should remove the :heart suffix.

 + gpios = gpm4 0 1;
 + default-state = off;
 + linux,default-trigger = heartbeat;
 + };

 style: Subnodes should be separated with blank lines.

 Otherwise the patch looks fine.

 Best regards,
 Tomasz

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 1/1] ARM: dts: Add missing clocks for exynos4412 dwmmc node

2013-12-13 Thread Alex Ling
This patch adds biu and ciu clocks for exynos4412 dwmmc
node. Without this patch, dwmmc host driver will skip enabling the
two clocks and it will break dwmmc host function on exynos4412.
Tested on FriendlyARM TINY4412 board.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
Changes for v2:
   - Fix patch description as Mark Rutland suggested

 arch/arm/boot/dts/exynos4412.dtsi |2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412.dtsi 
b/arch/arm/boot/dts/exynos4412.dtsi
index e743e67..67bef99 100644
--- a/arch/arm/boot/dts/exynos4412.dtsi
+++ b/arch/arm/boot/dts/exynos4412.dtsi
@@ -67,5 +67,7 @@
interrupts = 0 77 0;
#address-cells = 1;
#size-cells = 0;
+   clocks = clock 301, clock 149;
+   clock-names = biu, ciu;
};
 };
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-12-13 Thread Alex Ling
Hi, Kukjin,
Could you please review this patch? Thanks!


Regards,
Alex

On Fri, Nov 15, 2013 at 9:13 PM, kasim ling kasiml...@gmail.com wrote:
 The board compatible string will be documented after the coresponding
 documentation is specified.


 Regards,
 Alex

 On Fri, Nov 15, 2013 at 9:09 PM, Alex Ling kasiml...@gmail.com wrote:
 Add a minimal board dts file for EXYNOS4412 based FriendlyARM's
 TINY4412 board. This patch including adds the node to support
 peripherals like UART, SD card on SDMMC2 port, and this patch
 adds GPIO connected LEDS and configure its properties like
 following:
 LED1: use 'heartbeat' trigger, blinking while the board is running.
 LED4: use 'mmc0' trigger, on when mmc0 is accessing.
 LED2 and LED3 can be controlled from userspace.

 Signed-off-by: Alex Ling kasiml...@gmail.com
 ---
  arch/arm/boot/dts/Makefile|1 +
  arch/arm/boot/dts/exynos4412-tiny4412.dts |   89 
 +
  2 files changed, 90 insertions(+)
  create mode 100644 arch/arm/boot/dts/exynos4412-tiny4412.dts

 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
 index 802720e..91671a2 100644
 --- a/arch/arm/boot/dts/Makefile
 +++ b/arch/arm/boot/dts/Makefile
 @@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
 exynos4412-odroidx.dtb \
 exynos4412-origen.dtb \
 exynos4412-smdk4412.dtb \
 +   exynos4412-tiny4412.dtb \
 exynos4412-trats2.dtb \
 exynos5250-arndale.dtb \
 exynos5250-smdk5250.dtb \
 diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
 b/arch/arm/boot/dts/exynos4412-tiny4412.dts
 new file mode 100644
 index 000..78ace14
 --- /dev/null
 +++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
 @@ -0,0 +1,89 @@
 +/*
 + * FriendlyARM's Exynos4412 based TINY4412 board device tree source
 + *
 + * Copyright (c) 2013 Alex Ling kasiml...@gmail.com
 + *
 + * Device tree source file for FriendlyARM's TINY4412 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 = FriendlyARM TINY4412 board based on Exynos4412;
 +   compatible = friendlyarm,tiny4412, samsung,exynos4412;
 +
 +   memory {
 +   reg = 0x4000 0x4000;
 +   };
 +
 +   leds {
 +   compatible = gpio-leds;
 +   led1 {
 +   label = led1:heart;
 +   gpios = gpm4 0 1;
 +   default-state = off;
 +   linux,default-trigger = heartbeat;
 +   };
 +   led2 {
 +   label = led2;
 +   gpios = gpm4 1 1;
 +   default-state = off;
 +   };
 +   led3 {
 +   label = led3;
 +   gpios = gpm4 2 1;
 +   default-state = off;
 +   };
 +   led4 {
 +   label = led4:mmc0;
 +   gpios = gpm4 3 1;
 +   default-state = off;
 +   linux,default-trigger = mmc0;
 +   };
 +   };
 +
 +   rtc@1007 {
 +   status = okay;
 +   };
 +
 +   sdhci@1253 {
 +   bus-width = 4;
 +   pinctrl-0 = sd2_clk sd2_cmd sd2_cd sd2_bus4;
 +   pinctrl-names = default;
 +   status = okay;
 +   };
 +
 +   serial@1380 {
 +   status = okay;
 +   };
 +
 +   serial@1381 {
 +   status = okay;
 +   };
 +
 +   serial@1382 {
 +   status = okay;
 +   };
 +
 +   serial@1383 {
 +   status = okay;
 +   };
 +
 +   fixed-rate-clocks {
 +   xxti {
 +   compatible = samsung,clock-xxti;
 +   clock-frequency = 0;
 +   };
 +
 +   xusbxti {
 +   compatible = samsung,clock-xusbxti;
 +   clock-frequency = 2400;
 +   };
 +   };
 +};
 --
 1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/1] ARM: dts: Add missing clock names for exynos4412 dwmmc node

2013-12-02 Thread Alex Ling
On Mon, Dec 2, 2013 at 5:52 PM, Mark Rutland mark.rutl...@arm.com wrote:
 On Sun, Dec 01, 2013 at 10:11:47AM +, Alex Ling wrote:
 This patch adds biu and ciu clock names for exynos4412 dwmmc
 node. Without this patch, dwmmc host driver will skip enabling the
 two clocks and it will break dwmmc host function on exynos4412.
 Tested on FriendlyARM TINY4412 board.

 The patch description is a little off; this patch adds the clocks as
 well as the clock-names.
Well noted. I'll update the description later. Thanks!

 The patch itself looks fine to me.

 Mark.


 Signed-off-by: Alex Ling kasiml...@gmail.com
 ---
  arch/arm/boot/dts/exynos4412.dtsi |2 ++
  1 file changed, 2 insertions(+)

 diff --git a/arch/arm/boot/dts/exynos4412.dtsi 
 b/arch/arm/boot/dts/exynos4412.dtsi
 index e743e67..67bef99 100644
 --- a/arch/arm/boot/dts/exynos4412.dtsi
 +++ b/arch/arm/boot/dts/exynos4412.dtsi
 @@ -67,5 +67,7 @@
   interrupts = 0 77 0;
   #address-cells = 1;
   #size-cells = 0;
 + clocks = clock 301, clock 149;
 + clock-names = biu, ciu;
   };
  };
 --
 1.7.9.5



BR,
Alex
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/1] ARM: dts: Add missing clock names for exynos4412 dwmmc node

2013-12-01 Thread Alex Ling
This patch adds biu and ciu clock names for exynos4412 dwmmc
node. Without this patch, dwmmc host driver will skip enabling the
two clocks and it will break dwmmc host function on exynos4412.
Tested on FriendlyARM TINY4412 board.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
 arch/arm/boot/dts/exynos4412.dtsi |2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412.dtsi 
b/arch/arm/boot/dts/exynos4412.dtsi
index e743e67..67bef99 100644
--- a/arch/arm/boot/dts/exynos4412.dtsi
+++ b/arch/arm/boot/dts/exynos4412.dtsi
@@ -67,5 +67,7 @@
interrupts = 0 77 0;
#address-cells = 1;
#size-cells = 0;
+   clocks = clock 301, clock 149;
+   clock-names = biu, ciu;
};
 };
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-11-15 Thread Alex Ling
Add a minimal board dts file for EXYNOS4412 based FriendlyARM's
TINY4412 board. This patch including adds the node to support
peripherals like UART, SD card on SDMMC2 port, and this patch
adds GPIO connected LEDS and configure its properties like
following:
LED1: use 'heartbeat' trigger, blinking while the board is running.
LED4: use 'mmc0' trigger, on when mmc0 is accessing.
LED2 and LED3 can be controlled from userspace.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
 arch/arm/boot/dts/Makefile|1 +
 arch/arm/boot/dts/exynos4412-tiny4412.dts |   89 +
 2 files changed, 90 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-tiny4412.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 802720e..91671a2 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
exynos4412-odroidx.dtb \
exynos4412-origen.dtb \
exynos4412-smdk4412.dtb \
+   exynos4412-tiny4412.dtb \
exynos4412-trats2.dtb \
exynos5250-arndale.dtb \
exynos5250-smdk5250.dtb \
diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
b/arch/arm/boot/dts/exynos4412-tiny4412.dts
new file mode 100644
index 000..78ace14
--- /dev/null
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -0,0 +1,89 @@
+/*
+ * FriendlyARM's Exynos4412 based TINY4412 board device tree source
+ *
+ * Copyright (c) 2013 Alex Ling kasiml...@gmail.com
+ *
+ * Device tree source file for FriendlyARM's TINY4412 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 = FriendlyARM TINY4412 board based on Exynos4412;
+   compatible = friendlyarm,tiny4412, samsung,exynos4412;
+
+   memory {
+   reg = 0x4000 0x4000;
+   };
+
+   leds {
+   compatible = gpio-leds;
+   led1 {
+   label = led1:heart;
+   gpios = gpm4 0 1;
+   default-state = off;
+   linux,default-trigger = heartbeat;
+   };
+   led2 {
+   label = led2;
+   gpios = gpm4 1 1;
+   default-state = off;
+   };
+   led3 {
+   label = led3;
+   gpios = gpm4 2 1;
+   default-state = off;
+   };
+   led4 {
+   label = led4:mmc0;
+   gpios = gpm4 3 1;
+   default-state = off;
+   linux,default-trigger = mmc0;
+   };
+   };
+
+   rtc@1007 {
+   status = okay;
+   };
+
+   sdhci@1253 {
+   bus-width = 4;
+   pinctrl-0 = sd2_clk sd2_cmd sd2_cd sd2_bus4;
+   pinctrl-names = default;
+   status = okay;
+   };
+
+   serial@1380 {
+   status = okay;
+   };
+
+   serial@1381 {
+   status = okay;
+   };
+
+   serial@1382 {
+   status = okay;
+   };
+
+   serial@1383 {
+   status = okay;
+   };
+
+   fixed-rate-clocks {
+   xxti {
+   compatible = samsung,clock-xxti;
+   clock-frequency = 0;
+   };
+
+   xusbxti {
+   compatible = samsung,clock-xusbxti;
+   clock-frequency = 2400;
+   };
+   };
+};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-11-12 Thread Alex Ling
Add a minimal board dts file for EXYNOS4412 based FriendlyARM's
TINY4412 board. This patch including adds the node to support
peripherals like UART, SD card on SDMMC2 port, and this patch
adds GPIO connected LEDS and configure its properties like
following:
LED1: use 'heartbeat' trigger, blinking while the board is running.
LED4: use 'mmc0' trigger, on when mmc0 is accessing.
LED2 and LED3 can be controlled from userspace.

Signed-off-by: Alex Ling kasiml...@gmail.com
---
 arch/arm/boot/dts/Makefile|1 +
 arch/arm/boot/dts/exynos4412-tiny4412.dts |   89 +
 2 files changed, 90 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-tiny4412.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 802720e..91671a2 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
exynos4412-odroidx.dtb \
exynos4412-origen.dtb \
exynos4412-smdk4412.dtb \
+   exynos4412-tiny4412.dtb \
exynos4412-trats2.dtb \
exynos5250-arndale.dtb \
exynos5250-smdk5250.dtb \
diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts 
b/arch/arm/boot/dts/exynos4412-tiny4412.dts
new file mode 100644
index 000..78ace14
--- /dev/null
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -0,0 +1,89 @@
+/*
+ * FriendlyARM's Exynos4412 based TINY4412 board device tree source
+ *
+ * Copyright (c) 2013 Alex Ling kasiml...@gmail.com
+ *
+ * Device tree source file for FriendlyARM's TINY4412 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 = FriendlyARM TINY4412 board based on Exynos4412;
+   compatible = friendlyarm,tiny4412, samsung,exynos4412;
+
+   memory {
+   reg = 0x4000 0x4000;
+   };
+
+   leds {
+   compatible = gpio-leds;
+   led1 {
+   label = led1:heart;
+   gpios = gpm4 0 1;
+   default-state = off;
+   linux,default-trigger = heartbeat;
+   };
+   led2 {
+   label = led2;
+   gpios = gpm4 1 1;
+   default-state = off;
+   };
+   led3 {
+   label = led3;
+   gpios = gpm4 2 1;
+   default-state = off;
+   };
+   led4 {
+   label = led4:mmc0;
+   gpios = gpm4 3 1;
+   default-state = off;
+   linux,default-trigger = mmc0;
+   };
+   };
+
+   rtc@1007 {
+   status = okay;
+   };
+
+   sdhci@1253 {
+   bus-width = 4;
+   pinctrl-0 = sd2_clk sd2_cmd sd2_cd sd2_bus4;
+   pinctrl-names = default;
+   status = okay;
+   };
+
+   serial@1380 {
+   status = okay;
+   };
+
+   serial@1381 {
+   status = okay;
+   };
+
+   serial@1382 {
+   status = okay;
+   };
+
+   serial@1383 {
+   status = okay;
+   };
+
+   fixed-rate-clocks {
+   xxti {
+   compatible = samsung,clock-xxti;
+   clock-frequency = 0;
+   };
+
+   xusbxti {
+   compatible = samsung,clock-xusbxti;
+   clock-frequency = 2400;
+   };
+   };
+};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html