From: mpa@pengutronix.de (Markus Pargmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/7] ARM: dts: imx27 pinctrl
Date: Sat, 31 Aug 2013 08:31:03 +0200 [thread overview]
Message-ID: <20130831063103.GV20071@s25.your-server.de> (raw)
In-Reply-To: <20130821013035.GB30533@S2101-09.ap.freescale.net>
On Wed, Aug 21, 2013 at 09:30:36AM +0800, Shawn Guo wrote:
> On Mon, Aug 19, 2013 at 04:07:11PM +0200, Markus Pargmann wrote:
> > Pinctrl driver node and pin group definitions for other driver nodes.
> >
> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> > ---
> > arch/arm/boot/dts/imx27.dtsi | 84 ++++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 84 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
> > index 76cd89f..b9477d6 100644
> > --- a/arch/arm/boot/dts/imx27.dtsi
> > +++ b/arch/arm/boot/dts/imx27.dtsi
> > @@ -10,6 +10,7 @@
> > */
> >
> > #include "skeleton.dtsi"
> > +#include "imx27-pinfunc.h"
> >
> > / {
> > aliases {
> > @@ -235,6 +236,89 @@
> > status = "disabled";
> > };
> >
> > + iomuxc: iomuxc at 10015000 {
> > + compatible = "fsl,imx27-iomuxc";
> > + reg = <0x10015000 0x600>;
> > +
> > + fec {
> > + pinctrl_fec_1: fec-1 {
> > + fsl,pins = <
> > + MX27_PAD_SD3_CMD__FEC_TXD0 0x0
> > + MX27_PAD_SD3_CLK__FEC_TXD1 0x0
> > + MX27_PAD_ATA_DATA0__FEC_TXD2 0x0
> > + MX27_PAD_ATA_DATA1__FEC_TXD3 0x0
> > + MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0
> > + MX27_PAD_ATA_DATA3__FEC_RXD1 0x0
> > + MX27_PAD_ATA_DATA4__FEC_RXD2 0x0
> > + MX27_PAD_ATA_DATA5__FEC_RXD3 0x0
> > + MX27_PAD_ATA_DATA6__FEC_MDIO 0x0
> > + MX27_PAD_ATA_DATA7__FEC_MDC 0x0
> > + MX27_PAD_ATA_DATA8__FEC_CRS 0x0
> > + MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0
> > + MX27_PAD_ATA_DATA10__FEC_RXD0 0x0
> > + MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0
> > + MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0
> > + MX27_PAD_ATA_DATA13__FEC_COL 0x0
> > + MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0
> > + MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0
> > + >;
> > + };
> > + };
>
> I like the idea [1] from Alexander Shiyan that maintains all these
> pinctrl setting entries outside the main device nodes structure. Can
> you please do that for imx27.dtsi from the beginning?
Yes, the seperation looks better, I changed it.
Regards,
Markus
>
> Shawn
>
> [1] http://article.gmane.org/gmane.linux.ports.arm.kernel/260404
>
> > +
> > + i2c {
> > + pinctrl_i2c_1: i2c-1 {
> > + fsl,pins = <
> > + MX27_PAD_I2C_DATA__I2C_DATA 0x0
> > + MX27_PAD_I2C_CLK__I2C_CLK 0x0
> > + >;
> > + };
> > +
> > + pinctrl_i2c_2: i2c-2 {
> > + fsl,pins = <
> > + MX27_PAD_I2C2_SDA__I2C2_SDA 0x0
> > + MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
> > + >;
> > + };
> > + };
> > +
> > + owire {
> > + pinctrl_owire_1: owire-1 {
> > + fsl,pins = <
> > + MX27_PAD_RTCK__OWIRE 0x0
> > + >;
> > + };
> > + };
> > +
> > + uart {
> > + pinctrl_uart_1: uart-1 {
> > + fsl,pins = <
> > + MX27_PAD_UART1_TXD__UART1_TXD 0x0
> > + MX27_PAD_UART1_RXD__UART1_RXD 0x0
> > + MX27_PAD_UART1_CTS__UART1_CTS 0x0
> > + MX27_PAD_UART1_RTS__UART1_RTS 0x0
> > + >;
> > + };
> > +
> > + pinctrl_uart_2: uart-2 {
> > + fsl,pins = <
> > + MX27_PAD_UART2_TXD__UART2_TXD 0x0
> > + MX27_PAD_UART2_RXD__UART2_RXD 0x0
> > + MX27_PAD_UART2_CTS__UART2_CTS 0x0
> > + MX27_PAD_UART2_RTS__UART2_RTS 0x0
> > + >;
> > + };
> > +
> > + pinctrl_uart_3: uart-3 {
> > + fsl,pins = <
> > + MX27_PAD_UART3_TXD__UART3_TXD 0x0
> > + MX27_PAD_UART3_RXD__UART3_RXD 0x0
> > + MX27_PAD_UART3_CTS__UART3_CTS 0x0
> > + MX27_PAD_UART3_RTS__UART3_RTS 0x0
> > + >;
> > + };
> > + };
> > + };
> > +
> > gpio1: gpio at 10015000 {
> > compatible = "fsl,imx27-gpio", "fsl,imx21-gpio";
> > reg = <0x10015000 0x100>;
> > --
> > 1.8.4.rc3
> >
>
>
--
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 |
WARNING: multiple messages have this Message-ID (diff)
From: Markus Pargmann <mpa@pengutronix.de>
To: Shawn Guo <shawn.guo@linaro.org>
Cc: devicetree@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
Sascha Hauer <kernel@pengutronix.de>,
Grant Likely <grant.likely@linaro.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 4/7] ARM: dts: imx27 pinctrl
Date: Sat, 31 Aug 2013 08:31:03 +0200 [thread overview]
Message-ID: <20130831063103.GV20071@s25.your-server.de> (raw)
In-Reply-To: <20130821013035.GB30533@S2101-09.ap.freescale.net>
On Wed, Aug 21, 2013 at 09:30:36AM +0800, Shawn Guo wrote:
> On Mon, Aug 19, 2013 at 04:07:11PM +0200, Markus Pargmann wrote:
> > Pinctrl driver node and pin group definitions for other driver nodes.
> >
> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> > ---
> > arch/arm/boot/dts/imx27.dtsi | 84 ++++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 84 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
> > index 76cd89f..b9477d6 100644
> > --- a/arch/arm/boot/dts/imx27.dtsi
> > +++ b/arch/arm/boot/dts/imx27.dtsi
> > @@ -10,6 +10,7 @@
> > */
> >
> > #include "skeleton.dtsi"
> > +#include "imx27-pinfunc.h"
> >
> > / {
> > aliases {
> > @@ -235,6 +236,89 @@
> > status = "disabled";
> > };
> >
> > + iomuxc: iomuxc@10015000 {
> > + compatible = "fsl,imx27-iomuxc";
> > + reg = <0x10015000 0x600>;
> > +
> > + fec {
> > + pinctrl_fec_1: fec-1 {
> > + fsl,pins = <
> > + MX27_PAD_SD3_CMD__FEC_TXD0 0x0
> > + MX27_PAD_SD3_CLK__FEC_TXD1 0x0
> > + MX27_PAD_ATA_DATA0__FEC_TXD2 0x0
> > + MX27_PAD_ATA_DATA1__FEC_TXD3 0x0
> > + MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0
> > + MX27_PAD_ATA_DATA3__FEC_RXD1 0x0
> > + MX27_PAD_ATA_DATA4__FEC_RXD2 0x0
> > + MX27_PAD_ATA_DATA5__FEC_RXD3 0x0
> > + MX27_PAD_ATA_DATA6__FEC_MDIO 0x0
> > + MX27_PAD_ATA_DATA7__FEC_MDC 0x0
> > + MX27_PAD_ATA_DATA8__FEC_CRS 0x0
> > + MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0
> > + MX27_PAD_ATA_DATA10__FEC_RXD0 0x0
> > + MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0
> > + MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0
> > + MX27_PAD_ATA_DATA13__FEC_COL 0x0
> > + MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0
> > + MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0
> > + >;
> > + };
> > + };
>
> I like the idea [1] from Alexander Shiyan that maintains all these
> pinctrl setting entries outside the main device nodes structure. Can
> you please do that for imx27.dtsi from the beginning?
Yes, the seperation looks better, I changed it.
Regards,
Markus
>
> Shawn
>
> [1] http://article.gmane.org/gmane.linux.ports.arm.kernel/260404
>
> > +
> > + i2c {
> > + pinctrl_i2c_1: i2c-1 {
> > + fsl,pins = <
> > + MX27_PAD_I2C_DATA__I2C_DATA 0x0
> > + MX27_PAD_I2C_CLK__I2C_CLK 0x0
> > + >;
> > + };
> > +
> > + pinctrl_i2c_2: i2c-2 {
> > + fsl,pins = <
> > + MX27_PAD_I2C2_SDA__I2C2_SDA 0x0
> > + MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
> > + >;
> > + };
> > + };
> > +
> > + owire {
> > + pinctrl_owire_1: owire-1 {
> > + fsl,pins = <
> > + MX27_PAD_RTCK__OWIRE 0x0
> > + >;
> > + };
> > + };
> > +
> > + uart {
> > + pinctrl_uart_1: uart-1 {
> > + fsl,pins = <
> > + MX27_PAD_UART1_TXD__UART1_TXD 0x0
> > + MX27_PAD_UART1_RXD__UART1_RXD 0x0
> > + MX27_PAD_UART1_CTS__UART1_CTS 0x0
> > + MX27_PAD_UART1_RTS__UART1_RTS 0x0
> > + >;
> > + };
> > +
> > + pinctrl_uart_2: uart-2 {
> > + fsl,pins = <
> > + MX27_PAD_UART2_TXD__UART2_TXD 0x0
> > + MX27_PAD_UART2_RXD__UART2_RXD 0x0
> > + MX27_PAD_UART2_CTS__UART2_CTS 0x0
> > + MX27_PAD_UART2_RTS__UART2_RTS 0x0
> > + >;
> > + };
> > +
> > + pinctrl_uart_3: uart-3 {
> > + fsl,pins = <
> > + MX27_PAD_UART3_TXD__UART3_TXD 0x0
> > + MX27_PAD_UART3_RXD__UART3_RXD 0x0
> > + MX27_PAD_UART3_CTS__UART3_CTS 0x0
> > + MX27_PAD_UART3_RTS__UART3_RTS 0x0
> > + >;
> > + };
> > + };
> > + };
> > +
> > gpio1: gpio@10015000 {
> > compatible = "fsl,imx27-gpio", "fsl,imx21-gpio";
> > reg = <0x10015000 0x100>;
> > --
> > 1.8.4.rc3
> >
>
>
--
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:[~2013-08-31 6:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 14:07 [PATCH v2 0/7] ARM: imx27 pinctrl Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 1/7] pinctrl: imx1 core driver Markus Pargmann
2013-08-20 12:56 ` Shawn Guo
2013-08-30 12:17 ` Markus Pargmann
2013-08-30 12:17 ` Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 2/7] pinctrl: imx27: imx27 pincontrol driver Markus Pargmann
2013-08-19 14:45 ` Alexander Shiyan
2013-08-19 15:13 ` Markus Pargmann
2013-08-21 1:23 ` Shawn Guo
2013-08-31 6:49 ` Markus Pargmann
2013-08-31 6:49 ` Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 3/7] ARM: dts: imx27 pin functions Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 4/7] ARM: dts: imx27 pinctrl Markus Pargmann
2013-08-20 7:14 ` Sascha Hauer
2013-08-31 6:29 ` Markus Pargmann
2013-08-31 6:29 ` Markus Pargmann
2013-08-21 1:30 ` Shawn Guo
2013-08-31 6:31 ` Markus Pargmann [this message]
2013-08-31 6:31 ` Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 5/7] ARM: dts: imx27 phyCARD-S pinctrl Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 6/7] ARM: dts: imx27 phycore pinctrl Markus Pargmann
2013-08-19 14:07 ` [PATCH v2 7/7] ARM: imx27: enable pinctrl Markus Pargmann
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=20130831063103.GV20071@s25.your-server.de \
--to=mpa@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.