Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1470793 > unrolled thread
| Started by | Peter Griffin <peter.griffin@linaro.org> |
|---|---|
| First post | 2016-08-26 17:00 +0200 |
| Last post | 2016-09-05 17:50 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Peter Griffin <peter.griffin@linaro.org> - 2016-08-26 17:00 +0200
Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Lee Jones <lee.jones@linaro.org> - 2016-08-30 12:10 +0200
Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Peter Griffin <peter.griffin@linaro.org> - 2016-08-30 16:30 +0200
Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Lee Jones <lee.jones@linaro.org> - 2016-08-31 13:30 +0200
Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Arnaud Pouliquen <arnaud.pouliquen@st.com> - 2016-09-05 14:30 +0200
Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes Lee Jones <lee.jones@linaro.org> - 2016-09-05 17:50 +0200
| From | Peter Griffin <peter.griffin@linaro.org> |
|---|---|
| Date | 2016-08-26 17:00 +0200 |
| Subject | [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <saqLU-8tm-35@gated-at.bofh.it> |
This patch adds the DT node for the uniperif reader
IP block found on STiH407 family silicon.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
arch/arm/boot/dts/stih407-family.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index d263c96..bdddf2c 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -956,5 +956,31 @@
st,version = <5>;
st,mode = "SPDIF";
};
+
+ sti_uni_reader0: sti-uni-reader@0 {
+ compatible = "st,sti-uni-reader";
+ status = "disabled";
+ #sound-dai-cells = <0>;
+ st,syscfg = <&syscfg_core>;
+ reg = <0x8D83000 0x158>;
+ interrupts = <GIC_SPI 87 IRQ_TYPE_NONE>;
+ dmas = <&fdma0 5 0 1>;
+ dma-names = "rx";
+ dai-name = "Uni Reader #0 (PCM IN)";
+ st,version = <3>;
+ };
+
+ sti_uni_reader1: sti-uni-reader@1 {
+ compatible = "st,sti-uni-reader";
+ status = "disabled";
+ #sound-dai-cells = <0>;
+ st,syscfg = <&syscfg_core>;
+ reg = <0x8D84000 0x158>;
+ interrupts = <GIC_SPI 88 IRQ_TYPE_NONE>;
+ dmas = <&fdma0 6 0 1>;
+ dma-names = "rx";
+ dai-name = "Uni Reader #1 (HDMI RX)";
+ st,version = <3>;
+ };
};
};
--
1.9.1
[toc] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-08-30 12:10 +0200 |
| Subject | Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <sbO9r-3ob-1@gated-at.bofh.it> |
| In reply to | #1470793 |
On Fri, 26 Aug 2016, Peter Griffin wrote:
> This patch adds the DT node for the uniperif reader
> IP block found on STiH407 family silicon.
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> ---
> arch/arm/boot/dts/stih407-family.dtsi | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
> index d263c96..bdddf2c 100644
> --- a/arch/arm/boot/dts/stih407-family.dtsi
> +++ b/arch/arm/boot/dts/stih407-family.dtsi
> @@ -956,5 +956,31 @@
> st,version = <5>;
> st,mode = "SPDIF";
> };
> +
> + sti_uni_reader0: sti-uni-reader@0 {
> + compatible = "st,sti-uni-reader";
> + status = "disabled";
I find it's normally nicer to place the status of the node at the
bottom, separated by a '\n'. There isn't a functional difference
admittedly, but it would be my preference, since it's not describing
the device per se.
> + #sound-dai-cells = <0>;
> + st,syscfg = <&syscfg_core>;
> + reg = <0x8D83000 0x158>;
We usually use lower-case for the address.
Since this has a 'reg' property, the '0' in the node name does not
look appropriate.
> + interrupts = <GIC_SPI 87 IRQ_TYPE_NONE>;
> + dmas = <&fdma0 5 0 1>;
> + dma-names = "rx";
> + dai-name = "Uni Reader #0 (PCM IN)";
Oooo, not seen something like this before.
If it does not already have one, it would require a DT Ack.
> + st,version = <3>;
This will likely need a DT Ack too. We usually encode this sort of
information in the compatible string.
> + };
> +
> + sti_uni_reader1: sti-uni-reader@1 {
> + compatible = "st,sti-uni-reader";
> + status = "disabled";
> + #sound-dai-cells = <0>;
> + st,syscfg = <&syscfg_core>;
> + reg = <0x8D84000 0x158>;
> + interrupts = <GIC_SPI 88 IRQ_TYPE_NONE>;
> + dmas = <&fdma0 6 0 1>;
> + dma-names = "rx";
> + dai-name = "Uni Reader #1 (HDMI RX)";
> + st,version = <3>;
> + };
All as above.
> };
> };
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [next] | [standalone]
| From | Peter Griffin <peter.griffin@linaro.org> |
|---|---|
| Date | 2016-08-30 16:30 +0200 |
| Subject | Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <sbSd4-64E-15@gated-at.bofh.it> |
| In reply to | #1472381 |
Hi Lee,
Thanks for reviewing and your very valuable feedback.
On Tue, 30 Aug 2016, Lee Jones wrote:
> On Fri, 26 Aug 2016, Peter Griffin wrote:
>
> > This patch adds the DT node for the uniperif reader
> > IP block found on STiH407 family silicon.
> >
> > Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> > Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> > ---
> > arch/arm/boot/dts/stih407-family.dtsi | 26 ++++++++++++++++++++++++++
> > 1 file changed, 26 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
> > index d263c96..bdddf2c 100644
> > --- a/arch/arm/boot/dts/stih407-family.dtsi
> > +++ b/arch/arm/boot/dts/stih407-family.dtsi
> > @@ -956,5 +956,31 @@
> > st,version = <5>;
> > st,mode = "SPDIF";
> > };
> > +
> > + sti_uni_reader0: sti-uni-reader@0 {
> > + compatible = "st,sti-uni-reader";
> > + status = "disabled";
>
> I find it's normally nicer to place the status of the node at the
> bottom, separated by a '\n'.
Ok I'll add a superflous '\n' in the next version.
> There isn't a functional difference
> admittedly, but it would be my preference, since it's not describing
> the device per se.
Will change to your preference in the next version.
>
> > + #sound-dai-cells = <0>;
> > + st,syscfg = <&syscfg_core>;
> > + reg = <0x8D83000 0x158>;
>
> We usually use lower-case for the address.
Will fix.
>
> Since this has a 'reg' property, the '0' in the node name does not
> look appropriate.
Will fix.
>
> > + interrupts = <GIC_SPI 87 IRQ_TYPE_NONE>;
> > + dmas = <&fdma0 5 0 1>;
> > + dma-names = "rx";
> > + dai-name = "Uni Reader #0 (PCM IN)";
>
> Oooo, not seen something like this before.
>
> If it does not already have one, it would require a DT Ack.
No idea, the driver got merged 1 year ago.
Arnaud did you get a DT ack when you merged this driver & binding?
>
> > + st,version = <3>;
>
> This will likely need a DT Ack too. We usually encode this sort of
> information in the compatible string.
See 05c1b4480e86a871b18030d6f3d532dc0ecdf38c
>
> > + };
> > +
> > + sti_uni_reader1: sti-uni-reader@1 {
> > + compatible = "st,sti-uni-reader";
> > + status = "disabled";
> > + #sound-dai-cells = <0>;
> > + st,syscfg = <&syscfg_core>;
> > + reg = <0x8D84000 0x158>;
> > + interrupts = <GIC_SPI 88 IRQ_TYPE_NONE>;
> > + dmas = <&fdma0 6 0 1>;
> > + dma-names = "rx";
> > + dai-name = "Uni Reader #1 (HDMI RX)";
> > + st,version = <3>;
> > + };
>
> All as above.
>
> > };
> > };
>
Regards,
Peter.
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-08-31 13:30 +0200 |
| Subject | Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <scbSr-1Nd-43@gated-at.bofh.it> |
| In reply to | #1472513 |
On Tue, 30 Aug 2016, Peter Griffin wrote:
> Thanks for reviewing and your very valuable feedback.
> On Tue, 30 Aug 2016, Lee Jones wrote:
> > On Fri, 26 Aug 2016, Peter Griffin wrote:
> >
> > > This patch adds the DT node for the uniperif reader
> > > IP block found on STiH407 family silicon.
> > >
> > > Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> > > Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> > > ---
> > > arch/arm/boot/dts/stih407-family.dtsi | 26 ++++++++++++++++++++++++++
> > > 1 file changed, 26 insertions(+)
> > >
> > > diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
> > > index d263c96..bdddf2c 100644
> > > --- a/arch/arm/boot/dts/stih407-family.dtsi
> > > +++ b/arch/arm/boot/dts/stih407-family.dtsi
> > > @@ -956,5 +956,31 @@
> > > st,version = <5>;
> > > st,mode = "SPDIF";
> > > };
> > > +
> > > + sti_uni_reader0: sti-uni-reader@0 {
> > > + compatible = "st,sti-uni-reader";
> > > + status = "disabled";
> >
> > I find it's normally nicer to place the status of the node at the
> > bottom, separated by a '\n'.
>
> Ok I'll add a superflous '\n' in the next version.
Everyone loves a smart arse!
In this case I believe the '\n' to be a functional separator and not
superfluous at all.
> > > + dai-name = "Uni Reader #0 (PCM IN)";
> >
> > Oooo, not seen something like this before.
> >
> > If it does not already have one, it would require a DT Ack.
>
> No idea, the driver got merged 1 year ago.
>
> Arnaud did you get a DT ack when you merged this driver & binding?
> >
> > > + st,version = <3>;
> >
> > This will likely need a DT Ack too. We usually encode this sort of
> > information in the compatible string.
>
> See 05c1b4480e86a871b18030d6f3d532dc0ecdf38c
Well Rob's the boss. We certainly never used to take 'device ID' or
'version' attributes. I guess something must have changed.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [next] | [standalone]
| From | Arnaud Pouliquen <arnaud.pouliquen@st.com> |
|---|---|
| Date | 2016-09-05 14:30 +0200 |
| Subject | Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <se1cd-3Hh-3@gated-at.bofh.it> |
| In reply to | #1473341 |
Hello ptere, Lee,
Thanks for your remarks,
Regards
Arnaud
On 08/31/2016 01:28 PM, Lee Jones wrote:
> On Tue, 30 Aug 2016, Peter Griffin wrote:
>> Thanks for reviewing and your very valuable feedback.
>> On Tue, 30 Aug 2016, Lee Jones wrote:
>>> On Fri, 26 Aug 2016, Peter Griffin wrote:
>>>
>>>> This patch adds the DT node for the uniperif reader
>>>> IP block found on STiH407 family silicon.
>>>>
>>>> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
>>>> Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
>>>> ---
>>>> arch/arm/boot/dts/stih407-family.dtsi | 26 ++++++++++++++++++++++++++
>>>> 1 file changed, 26 insertions(+)
>>>>
>>>> diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
>>>> index d263c96..bdddf2c 100644
>>>> --- a/arch/arm/boot/dts/stih407-family.dtsi
>>>> +++ b/arch/arm/boot/dts/stih407-family.dtsi
>>>> @@ -956,5 +956,31 @@
>>>> st,version = <5>;
>>>> st,mode = "SPDIF";
>>>> };
>>>> +
>>>> + sti_uni_reader0: sti-uni-reader@0 {
>>>> + compatible = "st,sti-uni-reader";
>>>> + status = "disabled";
>>>
>>> I find it's normally nicer to place the status of the node at the
>>> bottom, separated by a '\n'.
>>
>> Ok I'll add a superflous '\n' in the next version.
>
> Everyone loves a smart arse!
>
> In this case I believe the '\n' to be a functional separator and not
> superfluous at all.
>
>>>> + dai-name = "Uni Reader #0 (PCM IN)";
>>>
>>> Oooo, not seen something like this before.
>>>
>>> If it does not already have one, it would require a DT Ack.
>>
>> No idea, the driver got merged 1 year ago.
This field could be suppressed and handled in source code, using
st,uniperiph-id to retreive it.
>>
>> Arnaud did you get a DT ack when you merged this driver & binding? i if i remember well, i had sent to Alsa mailing list only, I missed
this obvious...
>>>
>>>> + st,version = <3>;
>>>
>>> This will likely need a DT Ack too. We usually encode this sort of
>>> information in the compatible string.
yes, better to use compatibility
>>
>> See 05c1b4480e86a871b18030d6f3d532dc0ecdf38c
>
> Well Rob's the boss. We certainly never used to take 'device ID' or
> 'version' attributes. I guess something must have changed.
I will try to provide patches for code and bindings rework this week.
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-09-05 17:50 +0200 |
| Subject | Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes |
| Message-ID | <se4jM-5El-5@gated-at.bofh.it> |
| In reply to | #1476358 |
On Mon, 05 Sep 2016, Arnaud Pouliquen wrote: > >>>> + dai-name = "Uni Reader #0 (PCM IN)"; > >>> > >>> Oooo, not seen something like this before. > >>> > >>> If it does not already have one, it would require a DT Ack. > >> > >> No idea, the driver got merged 1 year ago. > This field could be suppressed and handled in source code, using > st,uniperiph-id to retreive it. That would be better. > >> Arnaud did you get a DT ack when you merged this driver & binding? i if i remember well, i had sent to Alsa mailing list only, I missed > this obvious... I'm surprised Mark didn't notice this. He's usually pretty good at picking stuff like that up. > >>>> + st,version = <3>; > >>> > >>> This will likely need a DT Ack too. We usually encode this sort of > >>> information in the compatible string. > yes, better to use compatibility > >> > >> See 05c1b4480e86a871b18030d6f3d532dc0ecdf38c > > > > Well Rob's the boss. We certainly never used to take 'device ID' or > > 'version' attributes. I guess something must have changed. > > I will try to provide patches for code and bindings rework this week. Wonderful.. Thanks Arnaud. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web