From: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: "A.S. Dong" <aisheng.dong-3arQi8VN3Tc@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Andy Duan <fugang.duan-3arQi8VN3Tc@public.gmane.org>,
Jacky Bai <ping.bai-3arQi8VN3Tc@public.gmane.org>,
"linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
<linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"stefan-XLVq0VzYD2Y@public.gmane.org"
<stefan-XLVq0VzYD2Y@public.gmane.org>,
"linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org"
<kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH 3/5] dt-bindings: pinctrl: add imx7ulp pinctrl binding doc
Date: Mon, 15 May 2017 20:20:33 +0800 [thread overview]
Message-ID: <20170515122032.GS8471@dragon> (raw)
In-Reply-To: <AM3PR04MB3069C90F23CF9C9CC84BA7580E10-f56W/S9L6NSIzFHTN1kKrAfhPeD8jYilXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
On Mon, May 15, 2017 at 12:06:19PM +0000, A.S. Dong wrote:
> > > @@ -0,0 +1,56 @@
> > > +* Freescale i.MX7ULP IOMUX Controller
> > > +
> > > +Please refer to fsl,imx-pinctrl.txt in this directory for common
> > > +binding part and usage.
> >
> > Are imx7ulp-pinctrl bindings more alike to fsl,imx-pinctrl.txt or generic
> > pinctrl-bindings.txt? My personal feeling is that it might be better to
> > take pinctrl-bindings.txt as the reference base and highlight how imx7ulp-
> > pinctrl bindings differ from it.
> >
>
> It seems still more like fsl,imx-pinctrl.txt.
>
> I know fsl,imx-pinctrl.txt is a bit out of date, especially after we add
> generic pinconf.
>
> I plan to update it later after adding generic pin conf support to legacy
> SoCs (MX6 & 7) as well, do you think it's ok?
Please do not. Let's use generic pinconf support only for new SoCs, and
not bother with legacy SoCs.
<snip>
> > > diff --git a/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> > > b/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> > > new file mode 100644
> > > index 0000000..b6db73f
> > > --- /dev/null
> > > +++ b/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> >
> > The header will only be used by dts files, right? If so,
> > arch/arm/boot/dts is the better place.
> >
>
> I can do it, but I'm just a bit confused that only IMX is still
> Putting pinctrl headfile under arch/arm/boot/dts/.
It makes sense to define DT constants in include/dt-bindings/pinctrl/
only when they are referenced by both kernel and dts. If it's only
included by dts, arch/arm/boot/dts/ should definitely be the better
place.
Shawn
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] dt-bindings: pinctrl: add imx7ulp pinctrl binding doc
Date: Mon, 15 May 2017 20:20:33 +0800 [thread overview]
Message-ID: <20170515122032.GS8471@dragon> (raw)
In-Reply-To: <AM3PR04MB3069C90F23CF9C9CC84BA7580E10@AM3PR04MB306.eurprd04.prod.outlook.com>
On Mon, May 15, 2017 at 12:06:19PM +0000, A.S. Dong wrote:
> > > @@ -0,0 +1,56 @@
> > > +* Freescale i.MX7ULP IOMUX Controller
> > > +
> > > +Please refer to fsl,imx-pinctrl.txt in this directory for common
> > > +binding part and usage.
> >
> > Are imx7ulp-pinctrl bindings more alike to fsl,imx-pinctrl.txt or generic
> > pinctrl-bindings.txt? My personal feeling is that it might be better to
> > take pinctrl-bindings.txt as the reference base and highlight how imx7ulp-
> > pinctrl bindings differ from it.
> >
>
> It seems still more like fsl,imx-pinctrl.txt.
>
> I know fsl,imx-pinctrl.txt is a bit out of date, especially after we add
> generic pinconf.
>
> I plan to update it later after adding generic pin conf support to legacy
> SoCs (MX6 & 7) as well, do you think it's ok?
Please do not. Let's use generic pinconf support only for new SoCs, and
not bother with legacy SoCs.
<snip>
> > > diff --git a/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> > > b/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> > > new file mode 100644
> > > index 0000000..b6db73f
> > > --- /dev/null
> > > +++ b/include/dt-bindings/pinctrl/imx7ulp-pinfunc.h
> >
> > The header will only be used by dts files, right? If so,
> > arch/arm/boot/dts is the better place.
> >
>
> I can do it, but I'm just a bit confused that only IMX is still
> Putting pinctrl headfile under arch/arm/boot/dts/.
It makes sense to define DT constants in include/dt-bindings/pinctrl/
only when they are referenced by both kernel and dts. If it's only
included by dts, arch/arm/boot/dts/ should definitely be the better
place.
Shawn
next prev parent reply other threads:[~2017-05-15 12:20 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 12:38 [PATCH 0/5] pinctrl: imx: add generic pin config and imx7ulp support Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-12 12:38 ` [PATCH 1/5] pinctrl: imx: add generic pin config core support Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-15 8:35 ` Shawn Guo
2017-05-15 8:35 ` Shawn Guo
2017-05-15 8:56 ` A.S. Dong
2017-05-15 8:56 ` A.S. Dong
2017-05-15 10:56 ` Shawn Guo
2017-05-15 10:56 ` Shawn Guo
2017-05-15 11:16 ` A.S. Dong
2017-05-15 11:16 ` A.S. Dong
2017-05-15 11:56 ` Shawn Guo
2017-05-15 11:56 ` Shawn Guo
2017-05-15 12:07 ` A.S. Dong
2017-05-15 12:07 ` A.S. Dong
2017-05-12 12:38 ` [PATCH 2/5] pinctrl: imx: add soc specific mux_mode mask and shift property Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-15 8:52 ` Shawn Guo
2017-05-15 8:52 ` Shawn Guo
2017-05-15 9:00 ` A.S. Dong
2017-05-15 9:00 ` A.S. Dong
2017-05-15 10:59 ` Shawn Guo
2017-05-15 10:59 ` Shawn Guo
2017-05-15 11:04 ` A.S. Dong
2017-05-15 11:04 ` A.S. Dong
2017-05-12 12:38 ` [PATCH 2/5] pinctrl: pinctrl-imx: " Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-12 13:32 ` A.S. Dong
2017-05-12 13:32 ` A.S. Dong
2017-05-12 12:38 ` [PATCH 3/5] dt-bindings: pinctrl: add imx7ulp pinctrl binding doc Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-15 11:43 ` Shawn Guo
2017-05-15 11:43 ` Shawn Guo
2017-05-15 12:06 ` A.S. Dong
2017-05-15 12:06 ` A.S. Dong
[not found] ` <AM3PR04MB3069C90F23CF9C9CC84BA7580E10-f56W/S9L6NSIzFHTN1kKrAfhPeD8jYilXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2017-05-15 12:20 ` Shawn Guo [this message]
2017-05-15 12:20 ` Shawn Guo
2017-05-15 12:41 ` A.S. Dong
2017-05-15 12:41 ` A.S. Dong
2017-05-15 12:59 ` Shawn Guo
2017-05-15 12:59 ` Shawn Guo
2017-05-15 13:12 ` A.S. Dong
2017-05-15 13:12 ` A.S. Dong
[not found] ` <1494592686-30967-5-git-send-email-aisheng.dong-3arQi8VN3Tc@public.gmane.org>
2017-05-15 13:31 ` Shawn Guo
2017-05-15 13:31 ` Shawn Guo
2017-05-15 13:32 ` A.S. Dong
2017-05-15 13:32 ` A.S. Dong
2017-05-12 12:38 ` [PATCH 4/5] pinctrl: imx: add imx7ulp driver Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-12 12:38 ` [PATCH 5/5] pinctrl: imx: fix debug message for SHARE_MUX_CONF_REG case Dong Aisheng
2017-05-12 12:38 ` Dong Aisheng
2017-05-15 12:05 ` Shawn Guo
2017-05-15 12:05 ` Shawn Guo
2017-05-15 12:08 ` A.S. Dong
2017-05-15 12:08 ` A.S. Dong
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=20170515122032.GS8471@dragon \
--to=shawnguo-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=aisheng.dong-3arQi8VN3Tc@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=fugang.duan-3arQi8VN3Tc@public.gmane.org \
--cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=ping.bai-3arQi8VN3Tc@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=stefan-XLVq0VzYD2Y@public.gmane.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.