From: Sebastian Reichel <sre@debian.org>
To: "Sebastian Reichel" <sre@ring0.de>,
"Tomi Valkeinen" <tomi.valkeinen@ti.com>,
"Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>
Cc: Rob Herring <rob.herring@calxeda.com>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Rob Landley <rob@landley.net>,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
Sebastian Reichel <sre@debian.org>
Subject: [PATCH 4/5] OMAPDSS: SDI: Use V28 as regulator for N900
Date: Sat, 23 Nov 2013 21:57:23 +0100 [thread overview]
Message-ID: <1385240244-28629-5-git-send-email-sre@debian.org> (raw)
In-Reply-To: <1385240244-28629-1-git-send-email-sre@debian.org>
This adds a Nokia N900 quirk, so that the V28
regulator is used for the omapdss.sdi port.
This quirk is needed until omapdss is converted
to DT, so that the regulator can be acquired via
a phandle.
On other boards the regulator can be renamed in
the DT data, but on the Nokia N900 the regulator
is also used for other hardware components.
Signed-off-by: Sebastian Reichel <sre@debian.org>
---
drivers/video/omap2/dss/sdi.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c
index ccc569a..ca8f102 100644
--- a/drivers/video/omap2/dss/sdi.c
+++ b/drivers/video/omap2/dss/sdi.c
@@ -26,6 +26,7 @@
#include <linux/export.h>
#include <linux/platform_device.h>
#include <linux/string.h>
+#include <linux/of.h>
#include <video/omapdss.h>
#include "dss.h"
@@ -263,7 +264,12 @@ static int sdi_init_regulator(void)
if (sdi.vdds_sdi_reg)
return 0;
- vdds_sdi = devm_regulator_get(&sdi.pdev->dev, "vdds_sdi");
+ /* TODO: remove this hack, once we acquire regulator via DT phandle */
+ if (of_machine_is_compatible("nokia,omap3-n900"))
+ vdds_sdi = devm_regulator_get(&sdi.pdev->dev, "V28");
+ else
+ vdds_sdi = devm_regulator_get(&sdi.pdev->dev, "vdds_sdi");
+
if (IS_ERR(vdds_sdi)) {
DSSERR("can't get VDDS_SDI regulator\n");
return PTR_ERR(vdds_sdi);
--
1.8.4.3
next prev parent reply other threads:[~2013-11-23 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-23 20:57 [PATCH 0/5] N900 DT support for N900 panel Sebastian Reichel
2013-11-23 20:57 ` [PATCH 1/5] OMAPDSS: ACX565AKM: Add basic DT support Sebastian Reichel
2013-11-23 20:57 ` [PATCH 2/5] DTS: ARM: OMAP3-N900: Add vendor prefixes to SPI devices Sebastian Reichel
2013-11-23 20:57 ` [PATCH 3/5] DTS: ARM: OMAP3-N900: Add reset gpio to lcd node Sebastian Reichel
2013-11-23 20:57 ` Sebastian Reichel [this message]
2013-11-23 20:57 ` [PATCH 5/5] Documentation: dt: Document ACX565AKM DT binding Sebastian Reichel
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=1385240244-28629-5-git-send-email-sre@debian.org \
--to=sre@debian.org \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=sre@ring0.de \
--cc=swarren@wwwdotorg.org \
--cc=tomi.valkeinen@ti.com \
--cc=tony@atomide.com \
/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).