From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] imx27-dt: configure i2c1 gpio on armadeus apf27
Date: Mon, 26 Nov 2012 10:59:56 +0100 [thread overview]
Message-ID: <20121126095956.GD10369@pengutronix.de> (raw)
In-Reply-To: <20121126102858.4ba818b0@skate>
On Mon, Nov 26, 2012 at 10:28:58AM +0100, Thomas Petazzoni wrote:
> Dear Philippe Reynes,
>
> On Sun, 25 Nov 2012 21:17:04 +0100, Philippe Reynes wrote:
>
> > static const struct of_dev_auxdata imx27_auxdata_lookup[] __initconst = {
> > @@ -48,6 +49,10 @@ int apf27_lan8700_wakeup(struct phy_device *phydev)
> > static void __init apf27_init(void)
> > {
> > phy_register_fixup_for_id("imx27-fec.0-1:1f", apf27_lan8700_wakeup);
> > +
> > + /* configure i2c1 gpio */
> > + mxc_gpio_mode((GPIO_PORTD | GPIO_OUT | GPIO_PF | 17));
> > + mxc_gpio_mode((GPIO_PORTD | GPIO_OUT | GPIO_PF | 18));
> > }
>
> I haven't followed i.MX 27 support lately, but this surely should be
> done using a pinctrl driver. I see that there is a general pinctrl
> driver for i.MX, but a drivers/pinctrl/pinctrl-imx27.c might be
> missing. It would probably be a better idea to implement the missing
> pinctrl driver, if not already available?
It's not available, and yes, it should be implemented. Adding the iomux
setup to a i.MX27 SoC specific file is not a good idea.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-11-26 9:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-25 20:17 [PATCH 0/4] apf27: enable Ethernet PHY and add support of ds1374 rtc Philippe Reynes
2012-11-25 20:17 ` [PATCH 1/4] apf27: enable Ethernet PHY Philippe Reynes
2012-11-25 20:17 ` [PATCH 2/4] ds1374: add support of device tree Philippe Reynes
2012-11-26 9:08 ` Thomas Petazzoni
2012-11-25 20:17 ` [PATCH 3/4] imx27-dt: configure i2c1 gpio on armadeus apf27 Philippe Reynes
2012-11-26 9:28 ` Thomas Petazzoni
2012-11-26 9:59 ` Sascha Hauer [this message]
2012-11-25 20:17 ` [PATCH 4/4] apf27: add rtc ds1374 to the device tree Philippe Reynes
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=20121126095956.GD10369@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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).