devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aaro Koskinen <aaro.koskinen@iki.fi>
To: Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Subject: [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration
Date: Tue, 12 Jan 2016 22:07:33 +0200	[thread overview]
Message-ID: <1452629253-21748-2-git-send-email-aaro.koskinen@iki.fi> (raw)
In-Reply-To: <1452629253-21748-1-git-send-email-aaro.koskinen@iki.fi>

The SD card slot was enabled by default with legacy booting.
It does not work anymore with DT boot. Fix by providing GPIO configuration
that matches the old default.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 arch/arm/boot/dts/kirkwood-openrd.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
index 2a3dafd..f65b727 100644
--- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
+++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
@@ -65,6 +65,14 @@
 			status = "okay";
 			cd-gpios = <&gpio0 29 9>;
 		};
+		gpio@10140 {
+			p2 {
+				gpio-hog;
+				gpios = <2 GPIO_ACTIVE_HIGH>;
+				output-high; /* Select SD by default */
+				line-name = "SelUARTorSD";
+			};
+		};
 	};
 };
 
-- 
2.4.0

  reply	other threads:[~2016-01-12 20:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 20:07 [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Aaro Koskinen
2016-01-12 20:07 ` Aaro Koskinen [this message]
2016-01-17 22:43   ` [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration Martin Michlmayr
     [not found]   ` <1452629253-21748-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-25 13:41     ` Gregory CLEMENT
     [not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-17 23:03   ` [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Martin Michlmayr
2016-01-24 17:30   ` Andrew Lunn
2016-01-25 13:39   ` Gregory CLEMENT

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=1452629253-21748-2-git-send-email-aaro.koskinen@iki.fi \
    --to=aaro.koskinen@iki.fi \
    --cc=andrew@lunn.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=jason@lakedaemon.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).