From: linus.walleij@linaro.org (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/10] ARM: ux500: move AB8500 YCBCR settings to device tree
Date: Tue, 4 Feb 2014 20:52:18 +0100 [thread overview]
Message-ID: <1391543546-11158-2-git-send-email-linus.walleij@linaro.org> (raw)
In-Reply-To: <1391543546-11158-1-git-send-email-linus.walleij@linaro.org>
This moves the pin control settings for the YCBCR connector
on the AB8500 over to the device tree as a hog.
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
arch/arm/boot/dts/ste-href-ab8500.dtsi | 23 ++++++++++++++++++++++-
arch/arm/mach-ux500/board-mop500-pins.c | 10 ----------
2 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/arch/arm/boot/dts/ste-href-ab8500.dtsi b/arch/arm/boot/dts/ste-href-ab8500.dtsi
index 58b00d0f023e..2b548e90878e 100644
--- a/arch/arm/boot/dts/ste-href-ab8500.dtsi
+++ b/arch/arm/boot/dts/ste-href-ab8500.dtsi
@@ -31,7 +31,8 @@
<&gpio39_default_mode>,
<&gpio42_default_mode>,
<&gpio26_default_mode>,
- <&gpio35_default_mode>;
+ <&gpio35_default_mode>,
+ <&ycbcr_default_mode>;
/*
* Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
@@ -246,6 +247,26 @@
};
};
};
+ /*
+ * This sets up the YCBCR connector pins, i.e. analog video out.
+ * Set as input with no bias.
+ */
+ ycbcr {
+ ycbcr_default_mode: ycbcr_default {
+ default_mux {
+ ste,function = "ycbcr";
+ ste,pins = "ycbcr0123_d_1";
+ };
+ default_cfg {
+ ste,pins = "GPIO6_Y18",
+ "GPIO7_AA20",
+ "GPIO8_W18",
+ "GPIO9_AA19";
+ input-enable;
+ bias-disable;
+ };
+ };
+ };
};
};
};
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c
index 139298043685..d58513b08a6d 100644
--- a/arch/arm/mach-ux500/board-mop500-pins.c
+++ b/arch/arm/mach-ux500/board-mop500-pins.c
@@ -57,16 +57,6 @@ static struct pinctrl_map __initdata ab8500_pinmap[] = {
AB8500_PIN_STATE("GPIO3_U9", in_pd, "regulator.36", PINCTRL_STATE_SLEEP),
/*
- * pins 6,7,8 and 9 are muxed in YCBCR0123
- * configured in INPUT PULL UP
- */
- AB8500_MUX_HOG("ycbcr0123_d_1", "ycbcr"),
- AB8500_PIN_HOG("GPIO6_Y18", in_nopull),
- AB8500_PIN_HOG("GPIO7_AA20", in_nopull),
- AB8500_PIN_HOG("GPIO8_W18", in_nopull),
- AB8500_PIN_HOG("GPIO9_AA19", in_nopull),
-
- /*
* pins 14,15 are muxed in PWM1 and PWM2
* configured in INPUT PULL DOWN
*/
--
1.8.5.3
next prev parent reply other threads:[~2014-02-04 19:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 19:52 [PATCH 01/10] ARM: ux500: move AB8500 GPIOs to device tree Linus Walleij
2014-02-04 19:52 ` Linus Walleij [this message]
2014-02-04 19:52 ` [PATCH 03/10] ARM: ux500: move AB8500 PWM out settings " Linus Walleij
2014-02-04 19:52 ` [PATCH 04/10] ARM: ux500: move AB8500 audio interface 1 settings to DT Linus Walleij
2014-02-04 19:52 ` [PATCH 05/10] ARM: ux500: move AB8500 USB UICC " Linus Walleij
2014-02-04 19:52 ` [PATCH 06/10] ARM: ux500: move AB8500 DMIC " Linus Walleij
2014-02-04 19:52 ` [PATCH 07/10] ARM: ux500: move AB8500 EXTCPENA from board file " Linus Walleij
2014-02-04 19:52 ` [PATCH 08/10] ARM: ux500: move AB8500 modem I2C settings " Linus Walleij
2014-02-04 19:52 ` [PATCH 09/10] ARM: ux500: move AB8500 clock out pins " Linus Walleij
2014-02-04 19:52 ` [PATCH 10/10] ARM: ux500: move last AB8505 set-up " Linus Walleij
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=1391543546-11158-2-git-send-email-linus.walleij@linaro.org \
--to=linus.walleij@linaro.org \
--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).