devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philip Avinash <avinashphilip@ti.com>
To: nsekhar@ti.com, linux@arm.linux.org.uk,
	grant.likely@secretlab.ca, linus.walleij@linaro.org,
	rob.herring@calxeda.com, rob@landley.net
Cc: linux-arm-kernel@lists.infradead.org,
	davinci-linux-open-source@linux.davincidsp.com,
	linux-kernel@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org,
	avinashphilip@ti.com
Subject: [PATCH v2 4/4] ARM: davinci: da850 evm: add GPIO DT data
Date: Fri, 14 Jun 2013 15:15:56 +0530	[thread overview]
Message-ID: <1371203156-15260-5-git-send-email-avinashphilip@ti.com> (raw)
In-Reply-To: <1371203020-15092-1-git-send-email-avinashphilip@ti.com>

From: KV Sujith <sujithkv@ti.com>

- Add GPIO DT Data and pinmux for DA850 EVM. GPIO is configurable differently
  on different boards. So add GPIO pinmuxing in dts file.
- Dependency: This patch is dependent on Grab-pin-control patch;
  https://patchwork.kernel.org/patch/2013751/

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
---
 arch/arm/boot/dts/da850-evm.dts |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts
index 5bce7cc..2c127ff 100644
--- a/arch/arm/boot/dts/da850-evm.dts
+++ b/arch/arm/boot/dts/da850-evm.dts
@@ -17,6 +17,20 @@
 	soc {
 		pmx_core: pinmux@1c14120 {
 			status = "okay";
+			gpio_pins: pinmux_gpio_pins {
+				pinctrl-single,bits = <
+					/* GPIO2_4 GPIO2_6 */
+					0x18 0x00008080 0x0000f0f0
+					/* GPIO2_8 GPIO2_15 */
+					0x14 0x80000008 0xf000000f
+					/* GPIO3_12 GPIO3_13 */
+					0x1C 0x00008800 0x0000ff00
+					/* GPIO4_0 GPIO4_1 */
+					0x28 0x88000000 0xff000000
+					/* GPIO6_9 GPIO6_10 GPIO6_13 */
+					0x34 0x08800800 0x0ff00f00
+				>;
+			};
 		};
 		serial0: serial@1c42000 {
 			status = "okay";
@@ -90,6 +104,11 @@
 				};
 			};
 		};
+		gpio: gpio@1e26000 {
+			status = "okay";
+			pinctrl-names = "default";
+			pinctrl-0 = <&gpio_pins>;
+		};
 	};
 	nand_cs3@62000000 {
 		status = "okay";
-- 
1.7.9.5


      parent reply	other threads:[~2013-06-14  9:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14  9:43 [PATCH v2 0/4] GPIO DT support for da850 Philip Avinash
     [not found] ` <1371203020-15092-1-git-send-email-avinashphilip-l0cyMroinI0@public.gmane.org>
2013-06-14  9:45   ` [PATCH v2 1/4] ARM: davinci: da850: Use #include for all device trees Philip Avinash
     [not found]     ` <1371203156-15260-2-git-send-email-avinashphilip-l0cyMroinI0@public.gmane.org>
2013-06-20 11:06       ` Sekhar Nori
2013-06-14  9:45   ` [PATCH v2 3/4] ARM: davinci: da850: add GPIO DT entries Philip Avinash
2013-06-14 10:20   ` [PATCH v2 2/4] gpio: davinci: DT changes for driver Philip Avinash
2013-06-19 19:10     ` Linus Walleij
     [not found]       ` <CACRpkdbJJVKC539CAPNxxEbofVfw3Pr0gyCSZyY9YbkXneE-qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-20  4:51         ` Sekhar Nori
     [not found]     ` <1371205241-17205-3-git-send-email-avinashphilipk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-20 10:36       ` Sekhar Nori
2013-06-14 10:20   ` [PATCH v2 0/4] GPIO DT support for da850 Philip, Avinash
     [not found]     ` <518397C60809E147AF5323E0420B992E3EADAFCF-yXqyApvAXouIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2013-08-11  9:34       ` Prabhakar Lad
     [not found]         ` <CA+V-a8sNPMbQjh8uxhQ=aOgo4ZfmaKXoOnRsuurzEeWzBKW8WA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-14  4:42           ` Sekhar Nori
2013-06-14  9:45 ` Philip Avinash [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1371203156-15260-5-git-send-email-avinashphilip@ti.com \
    --to=avinashphilip@ti.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=nsekhar@ti.com \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).