From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 6/6] [RFC] arm: shmobile: genmai reference: Add RSPI nodes
Date: Sat, 28 Dec 2013 11:48:27 +0000 [thread overview]
Message-ID: <1503028.o7PtQzEmGv@avalon> (raw)
In-Reply-To: <CAMuHMdVH4PyhxR3JLLPX9a3fKaEgdpQpd2aa4YKL6DUD8+Pw2Q@mail.gmail.com>
Hi Geert,
On Friday 27 December 2013 20:08:18 Geert Uytterhoeven wrote:
> On Fri, Dec 27, 2013 at 5:20 PM, Laurent Pinchart wrote:
> > On Tuesday 24 December 2013 12:56:50 Geert Uytterhoeven wrote:
> >> Add pinctrl and SPI devices for RSPI on Genmai.
> >>
> >> On this board, only rspi4 is in use. It's bus contains a single device
> >> (a wm8978 audio codec), for which no bindings are defined yet.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
> >> Cc: devicetree@vger.kernel.org
> >> ---
> >>
> >> arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++-
> >> 1 file changed, 17 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> b/arch/arm/boot/dts/r7s72100-genmai-reference.dts index
> >> 114510f8bf09..6d99630627e4 100644
> >> --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> @@ -43,7 +43,7 @@
> >> };
> >>
> >> &pfc {
> >> - pinctrl-0 = <&scif2_pins ðernet_pins>;
> >> + pinctrl-0 = <&scif2_pins ðernet_pins &rspi4_pins>;
> >
> > You should add pinctrl-0 and pinctrl-names properties to the spi4 node
> > instead. Device nodes should reference their pinctrl configuration
> > directly, scif2 and ethernet are exceptions as DT bindings for those
> > devices are not in mainline yet.
>
> I put it there because the actual driver doesn't use DT yet. Is that OK?
I had missed that. That's fine, but shouldn't you then delay patch 5/6 until
the driver gets DT support ?
You've already sent a DT bindings proposal (thanks for that !), wouldn't it
make sense to implement support in the driver before this patch ? We're pretty
close to that from what I can see.
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
To: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
Cc: Geert Uytterhoeven
<geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>,
Linux-sh list <linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 6/6] [RFC] arm: shmobile: genmai reference: Add RSPI nodes
Date: Sat, 28 Dec 2013 12:48:27 +0100 [thread overview]
Message-ID: <1503028.o7PtQzEmGv@avalon> (raw)
In-Reply-To: <CAMuHMdVH4PyhxR3JLLPX9a3fKaEgdpQpd2aa4YKL6DUD8+Pw2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Geert,
On Friday 27 December 2013 20:08:18 Geert Uytterhoeven wrote:
> On Fri, Dec 27, 2013 at 5:20 PM, Laurent Pinchart wrote:
> > On Tuesday 24 December 2013 12:56:50 Geert Uytterhoeven wrote:
> >> Add pinctrl and SPI devices for RSPI on Genmai.
> >>
> >> On this board, only rspi4 is in use. It's bus contains a single device
> >> (a wm8978 audio codec), for which no bindings are defined yet.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
> >> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> >> ---
> >>
> >> arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++-
> >> 1 file changed, 17 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> b/arch/arm/boot/dts/r7s72100-genmai-reference.dts index
> >> 114510f8bf09..6d99630627e4 100644
> >> --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> @@ -43,7 +43,7 @@
> >> };
> >>
> >> &pfc {
> >> - pinctrl-0 = <&scif2_pins ðernet_pins>;
> >> + pinctrl-0 = <&scif2_pins ðernet_pins &rspi4_pins>;
> >
> > You should add pinctrl-0 and pinctrl-names properties to the spi4 node
> > instead. Device nodes should reference their pinctrl configuration
> > directly, scif2 and ethernet are exceptions as DT bindings for those
> > devices are not in mainline yet.
>
> I put it there because the actual driver doesn't use DT yet. Is that OK?
I had missed that. That's fine, but shouldn't you then delay patch 5/6 until
the driver gets DT support ?
You've already sent a DT bindings proposal (thanks for that !), wouldn't it
make sense to implement support in the driver before this patch ? We're pretty
close to that from what I can see.
--
Regards,
Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" 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: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/6] [RFC] arm: shmobile: genmai reference: Add RSPI nodes
Date: Sat, 28 Dec 2013 12:48:27 +0100 [thread overview]
Message-ID: <1503028.o7PtQzEmGv@avalon> (raw)
In-Reply-To: <CAMuHMdVH4PyhxR3JLLPX9a3fKaEgdpQpd2aa4YKL6DUD8+Pw2Q@mail.gmail.com>
Hi Geert,
On Friday 27 December 2013 20:08:18 Geert Uytterhoeven wrote:
> On Fri, Dec 27, 2013 at 5:20 PM, Laurent Pinchart wrote:
> > On Tuesday 24 December 2013 12:56:50 Geert Uytterhoeven wrote:
> >> Add pinctrl and SPI devices for RSPI on Genmai.
> >>
> >> On this board, only rspi4 is in use. It's bus contains a single device
> >> (a wm8978 audio codec), for which no bindings are defined yet.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
> >> Cc: devicetree at vger.kernel.org
> >> ---
> >>
> >> arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++-
> >> 1 file changed, 17 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> b/arch/arm/boot/dts/r7s72100-genmai-reference.dts index
> >> 114510f8bf09..6d99630627e4 100644
> >> --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> >> @@ -43,7 +43,7 @@
> >> };
> >>
> >> &pfc {
> >> - pinctrl-0 = <&scif2_pins ðernet_pins>;
> >> + pinctrl-0 = <&scif2_pins ðernet_pins &rspi4_pins>;
> >
> > You should add pinctrl-0 and pinctrl-names properties to the spi4 node
> > instead. Device nodes should reference their pinctrl configuration
> > directly, scif2 and ethernet are exceptions as DT bindings for those
> > devices are not in mainline yet.
>
> I put it there because the actual driver doesn't use DT yet. Is that OK?
I had missed that. That's fine, but shouldn't you then delay patch 5/6 until
the driver gets DT support ?
You've already sent a DT bindings proposal (thanks for that !), wouldn't it
make sense to implement support in the driver before this patch ? We're pretty
close to that from what I can see.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-12-28 11:48 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-24 11:56 [PATCH 0/6] Preliminary SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` [PATCH 1/6] pinctrl: sh-pfc: r7s72100: Add RSPI support Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2014-01-07 19:03 ` Linus Walleij
2014-01-07 19:03 ` Linus Walleij
2014-01-07 19:03 ` Linus Walleij
2014-01-07 19:07 ` Geert Uytterhoeven
2014-01-07 19:07 ` Geert Uytterhoeven
2014-01-07 19:07 ` Geert Uytterhoeven
2013-12-24 11:56 ` [PATCH 2/6] ARM: shmobile: r7s72100: Add RSPI clocks Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-25 0:51 ` Kuninori Morimoto
2013-12-25 0:51 ` Kuninori Morimoto
2013-12-25 0:51 ` Kuninori Morimoto
2013-12-24 11:56 ` [PATCH 3/6] ARM: shmobile: r7s72100: Add RSPI resources Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 15:41 ` Sergei Shtylyov
2013-12-24 15:41 ` Sergei Shtylyov
2013-12-24 15:41 ` Sergei Shtylyov
2013-12-24 11:56 ` [PATCH 4/6] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-27 16:18 ` Laurent Pinchart
2013-12-27 16:18 ` Laurent Pinchart
2013-12-27 16:18 ` Laurent Pinchart
2013-12-27 19:01 ` Geert Uytterhoeven
2013-12-27 19:01 ` Geert Uytterhoeven
2013-12-27 19:01 ` Geert Uytterhoeven
2013-12-29 23:22 ` Laurent Pinchart
2013-12-29 23:22 ` Laurent Pinchart
2013-12-29 23:22 ` Laurent Pinchart
2013-12-30 9:37 ` Geert Uytterhoeven
2013-12-30 9:37 ` Geert Uytterhoeven
2013-12-30 9:37 ` Geert Uytterhoeven
2013-12-30 15:18 ` Laurent Pinchart
2013-12-30 15:18 ` Laurent Pinchart
2013-12-30 15:18 ` Laurent Pinchart
2013-12-30 17:20 ` Geert Uytterhoeven
2013-12-30 17:20 ` Geert Uytterhoeven
2013-12-30 17:20 ` Geert Uytterhoeven
2013-12-24 11:56 ` [PATCH 5/6] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` [PATCH 6/6] [RFC] arm: shmobile: genmai reference: " Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 11:56 ` Geert Uytterhoeven
2013-12-24 15:45 ` Sergei Shtylyov
2013-12-24 15:45 ` Sergei Shtylyov
2013-12-24 15:45 ` Sergei Shtylyov
2013-12-24 19:46 ` Geert Uytterhoeven
2013-12-24 19:46 ` Geert Uytterhoeven
2013-12-24 19:46 ` Geert Uytterhoeven
2013-12-27 16:20 ` Laurent Pinchart
2013-12-27 16:20 ` Laurent Pinchart
2013-12-27 16:20 ` Laurent Pinchart
2013-12-27 19:08 ` Geert Uytterhoeven
2013-12-27 19:08 ` Geert Uytterhoeven
2013-12-27 19:08 ` Geert Uytterhoeven
2013-12-28 11:48 ` Laurent Pinchart [this message]
2013-12-28 11:48 ` Laurent Pinchart
2013-12-28 11:48 ` Laurent Pinchart
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=1503028.o7PtQzEmGv@avalon \
--to=laurent.pinchart@ideasonboard.com \
--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.