* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
@ 2014-01-14 17:23 ` Laurent Pinchart
2014-01-14 18:04 ` Valentine
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Laurent Pinchart @ 2014-01-14 17:23 UTC (permalink / raw)
To: linux-sh
Hi Valentine,
Thank you for the patch.
On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
> This adds SATA[01] device nodes to r8a7790.dtsi
>
> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> ---
> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
> index b2c2845..f2f5394 100644
> --- a/arch/arm/boot/dts/r8a7790.dtsi
> +++ b/arch/arm/boot/dts/r8a7790.dtsi
> @@ -400,6 +400,24 @@
> status = "disabled";
> };
>
> + sata0: sata@ee300000 {
> + compatible = "renesas,sata-r8a7790";
> + reg = <0 0xee300000 0 0x2000>;
> + interrupt-parent = <&gic>;
> + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
If I'm not mistaken the RCar SATA DT bindings don't document the clocks
property. Could you please submit a patch to fix that ?
There's no need to delay this patch set.
> + status = "disabled";
> + };
> +
> + sata1: sata@ee500000 {
> + compatible = "renesas,sata-r8a7790";
> + reg = <0 0xee500000 0 0x2000>;
> + interrupt-parent = <&gic>;
> + interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
> + status = "disabled";
> + };
> +
> clocks {
> #address-cells = <2>;
> #size-cells = <2>;
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
2014-01-14 17:23 ` Laurent Pinchart
@ 2014-01-14 18:04 ` Valentine
2014-01-15 0:02 ` Simon Horman
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Valentine @ 2014-01-14 18:04 UTC (permalink / raw)
To: linux-sh
On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
> Hi Valentine,
>
> Thank you for the patch.
>
> On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
>> This adds SATA[01] device nodes to r8a7790.dtsi
>>
>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>> ---
>> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
>> 1 file changed, 18 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
>> index b2c2845..f2f5394 100644
>> --- a/arch/arm/boot/dts/r8a7790.dtsi
>> +++ b/arch/arm/boot/dts/r8a7790.dtsi
>> @@ -400,6 +400,24 @@
>> status = "disabled";
>> };
>>
>> + sata0: sata@ee300000 {
>> + compatible = "renesas,sata-r8a7790";
>> + reg = <0 0xee300000 0 0x2000>;
>> + interrupt-parent = <&gic>;
>> + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
>
> If I'm not mistaken the RCar SATA DT bindings don't document the clocks
> property.
Yes, they don't, cause at that time the clocks were not supported.
> Could you please submit a patch to fix that ?
I could, but the patch that adds the description is still available only
in the for-3.14 branch of the libata repo.
The other thing is that the clocks are not yet included in the r8a7779.dtsi,
a snippet from which is used as an example of SATA bindings.
So we probably have to wait until both are available in 3.14.
Thanks,
Val.
>
> There's no need to delay this patch set.
> for-3.14
>> + status = "disabled";
>> + };
>> +
>> + sata1: sata@ee500000 {
>> + compatible = "renesas,sata-r8a7790";
>> + reg = <0 0xee500000 0 0x2000>;
>> + interrupt-parent = <&gic>;
>> + interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
>> + status = "disabled";
>> + };
>> +
>> clocks {
>> #address-cells = <2>;
>> #size-cells = <2>;
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
2014-01-14 17:23 ` Laurent Pinchart
2014-01-14 18:04 ` Valentine
@ 2014-01-15 0:02 ` Simon Horman
2014-01-15 8:28 ` Geert Uytterhoeven
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2014-01-15 0:02 UTC (permalink / raw)
To: linux-sh
On Tue, Jan 14, 2014 at 10:04:12PM +0400, Valentine wrote:
> On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
> >Hi Valentine,
> >
> >Thank you for the patch.
> >
> >On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
> >>This adds SATA[01] device nodes to r8a7790.dtsi
> >>
> >>Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> >>---
> >> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
> >> 1 file changed, 18 insertions(+)
> >>
> >>diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
> >>index b2c2845..f2f5394 100644
> >>--- a/arch/arm/boot/dts/r8a7790.dtsi
> >>+++ b/arch/arm/boot/dts/r8a7790.dtsi
> >>@@ -400,6 +400,24 @@
> >> status = "disabled";
> >> };
> >>
> >>+ sata0: sata@ee300000 {
> >>+ compatible = "renesas,sata-r8a7790";
> >>+ reg = <0 0xee300000 0 0x2000>;
> >>+ interrupt-parent = <&gic>;
> >>+ interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
> >>+ clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
> >
> >If I'm not mistaken the RCar SATA DT bindings don't document the clocks
> >property.
>
> Yes, they don't, cause at that time the clocks were not supported.
>
> >Could you please submit a patch to fix that ?
>
> I could, but the patch that adds the description is still available only
> in the for-3.14 branch of the libata repo.
I think you could provide a patch to update the bindings (documentation),
which is not part of this series, which applies to that branch.
And once that has been acked or merged then this series could
be taken in parallel.
> The other thing is that the clocks are not yet included in the r8a7779.dtsi,
> a snippet from which is used as an example of SATA bindings.
So the bindings (documentation) includes an example which is not present in
r8a7779.dtsi? That sounds sane to me as there is no question
of a run-time dependency being a problem.
But where is the patch to add the clocks to r8a7779.dtsi?
Is it "ARM: shmobile: r8a7790: Add SATA clocks to device tree" which
I queued up yesterday?
>
> So we probably have to wait until both are available in 3.14.
>
> Thanks,
> Val.
>
> >
> >There's no need to delay this patch set.
> >for-3.14
> >>+ status = "disabled";
> >>+ };
> >>+
> >>+ sata1: sata@ee500000 {
> >>+ compatible = "renesas,sata-r8a7790";
> >>+ reg = <0 0xee500000 0 0x2000>;
> >>+ interrupt-parent = <&gic>;
> >>+ interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
> >>+ clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
> >>+ status = "disabled";
> >>+ };
> >>+
> >> clocks {
> >> #address-cells = <2>;
> >> #size-cells = <2>;
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (2 preceding siblings ...)
2014-01-15 0:02 ` Simon Horman
@ 2014-01-15 8:28 ` Geert Uytterhoeven
2014-01-15 20:42 ` Valentine
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2014-01-15 8:28 UTC (permalink / raw)
To: linux-sh
On Wed, Jan 15, 2014 at 1:02 AM, Simon Horman <horms@verge.net.au> wrote:
>> >>+ sata0: sata@ee300000 {
>> >>+ compatible = "renesas,sata-r8a7790";
>> >>+ reg = <0 0xee300000 0 0x2000>;
>> >>+ interrupt-parent = <&gic>;
>> >>+ interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
>> >>+ clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
>> >
>> >If I'm not mistaken the RCar SATA DT bindings don't document the clocks
>> >property.
>>
>> Yes, they don't, cause at that time the clocks were not supported.
>>
>> >Could you please submit a patch to fix that ?
>>
>> I could, but the patch that adds the description is still available only
>> in the for-3.14 branch of the libata repo.
>
> I think you could provide a patch to update the bindings (documentation),
> which is not part of this series, which applies to that branch.
As this also applies to SPI...
Just "clocks: Must contain a phandle and clock-specifier pair"?
And should this be marked as optional, as e.g. r7s72100genmai doesn't have
mstp clocks in DT yet?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (3 preceding siblings ...)
2014-01-15 8:28 ` Geert Uytterhoeven
@ 2014-01-15 20:42 ` Valentine
2014-01-16 0:07 ` Simon Horman
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Valentine @ 2014-01-15 20:42 UTC (permalink / raw)
To: linux-sh
On 01/15/2014 04:02 AM, Simon Horman wrote:
> On Tue, Jan 14, 2014 at 10:04:12PM +0400, Valentine wrote:
>> On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
>>> Hi Valentine,
Hi Simon, Laurent,
>>>
>>> Thank you for the patch.
>>>
>>> On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
>>>> This adds SATA[01] device nodes to r8a7790.dtsi
>>>>
>>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>>>> ---
>>>> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
>>>> 1 file changed, 18 insertions(+)
>>>>
>>>> diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
>>>> index b2c2845..f2f5394 100644
>>>> --- a/arch/arm/boot/dts/r8a7790.dtsi
>>>> +++ b/arch/arm/boot/dts/r8a7790.dtsi
>>>> @@ -400,6 +400,24 @@
>>>> status = "disabled";
>>>> };
>>>>
>>>> + sata0: sata@ee300000 {
>>>> + compatible = "renesas,sata-r8a7790";
>>>> + reg = <0 0xee300000 0 0x2000>;
>>>> + interrupt-parent = <&gic>;
>>>> + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
>>>> + clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
>>>
>>> If I'm not mistaken the RCar SATA DT bindings don't document the clocks
>>> property.
>>
>> Yes, they don't, cause at that time the clocks were not supported.
>>
>>> Could you please submit a patch to fix that ?
>>
>> I could, but the patch that adds the description is still available only
>> in the for-3.14 branch of the libata repo.
>
> I think you could provide a patch to update the bindings (documentation),
> which is not part of this series, which applies to that branch.
Okay.
>
> And once that has been acked or merged then this series could
> be taken in parallel.
>
>> The other thing is that the clocks are not yet included in the r8a7779.dtsi,
>> a snippet from which is used as an example of SATA bindings.
>
> So the bindings (documentation) includes an example which is not present in
> r8a7779.dtsi? That sounds sane to me as there is no question
> of a run-time dependency being a problem.
The documentation includes an example of the R8A7779 SATA binding
cause it was the only SoC supporting the SATA at that time.
The problem is that the DT clock bindings are not supported on R8A7779.
So we should either wait for them to become supported on R8A7779 or
we may want to change the example to one of the Gen2 variants.
>
> But where is the patch to add the clocks to r8a7779.dtsi?
Probably, has not been done yet. I guess, there's no DT clock support on r8a7779 yet.
Laurent, do you have any patches for r8a7779?
> Is it "ARM: shmobile: r8a7790: Add SATA clocks to device tree" which
> I queued up yesterday?
Nope, for the fact it adds the clocks to R8A7790, not R8A7779.
>
>>
>> So we probably have to wait until both are available in 3.14.
>>
>> Thanks,
>> Val.
Thanks,
Val.
>>
>>>
>>> There's no need to delay this patch set.
>>> for-3.14
>>>> + status = "disabled";
>>>> + };
>>>> +
>>>> + sata1: sata@ee500000 {
>>>> + compatible = "renesas,sata-r8a7790";
>>>> + reg = <0 0xee500000 0 0x2000>;
>>>> + interrupt-parent = <&gic>;
>>>> + interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
>>>> + clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
>>>> + status = "disabled";
>>>> + };
>>>> +
>>>> clocks {
>>>> #address-cells = <2>;
>>>> #size-cells = <2>;
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (4 preceding siblings ...)
2014-01-15 20:42 ` Valentine
@ 2014-01-16 0:07 ` Simon Horman
2014-01-17 5:26 ` Simon Horman
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2014-01-16 0:07 UTC (permalink / raw)
To: linux-sh
On Thu, Jan 16, 2014 at 12:42:23AM +0400, Valentine wrote:
> On 01/15/2014 04:02 AM, Simon Horman wrote:
> >On Tue, Jan 14, 2014 at 10:04:12PM +0400, Valentine wrote:
> >>On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
> >>>Hi Valentine,
>
> Hi Simon, Laurent,
>
> >>>
> >>>Thank you for the patch.
> >>>
> >>>On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
> >>>>This adds SATA[01] device nodes to r8a7790.dtsi
> >>>>
> >>>>Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> >>>>---
> >>>> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
> >>>> 1 file changed, 18 insertions(+)
> >>>>
> >>>>diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
> >>>>index b2c2845..f2f5394 100644
> >>>>--- a/arch/arm/boot/dts/r8a7790.dtsi
> >>>>+++ b/arch/arm/boot/dts/r8a7790.dtsi
> >>>>@@ -400,6 +400,24 @@
> >>>> status = "disabled";
> >>>> };
> >>>>
> >>>>+ sata0: sata@ee300000 {
> >>>>+ compatible = "renesas,sata-r8a7790";
> >>>>+ reg = <0 0xee300000 0 0x2000>;
> >>>>+ interrupt-parent = <&gic>;
> >>>>+ interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
> >>>>+ clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
> >>>
> >>>If I'm not mistaken the RCar SATA DT bindings don't document the clocks
> >>>property.
> >>
> >>Yes, they don't, cause at that time the clocks were not supported.
> >>
> >>>Could you please submit a patch to fix that ?
> >>
> >>I could, but the patch that adds the description is still available only
> >>in the for-3.14 branch of the libata repo.
> >
> >I think you could provide a patch to update the bindings (documentation),
> >which is not part of this series, which applies to that branch.
>
> Okay.
>
> >
> >And once that has been acked or merged then this series could
> >be taken in parallel.
> >
> >>The other thing is that the clocks are not yet included in the r8a7779.dtsi,
> >>a snippet from which is used as an example of SATA bindings.
> >
> >So the bindings (documentation) includes an example which is not present in
> >r8a7779.dtsi? That sounds sane to me as there is no question
> >of a run-time dependency being a problem.
>
> The documentation includes an example of the R8A7779 SATA binding
> cause it was the only SoC supporting the SATA at that time.
>
> The problem is that the DT clock bindings are not supported on R8A7779.
> So we should either wait for them to become supported on R8A7779 or
> we may want to change the example to one of the Gen2 variants.
I think that changing the example to use a Gen2 variant with clocks
sounds like a good plan.
> >But where is the patch to add the clocks to r8a7779.dtsi?
>
> Probably, has not been done yet. I guess, there's no DT clock support on r8a7779 yet.
>
> Laurent, do you have any patches for r8a7779?
>
> >Is it "ARM: shmobile: r8a7790: Add SATA clocks to device tree" which
> >I queued up yesterday?
>
> Nope, for the fact it adds the clocks to R8A7790, not R8A7779.
Of course! Sorry for mixing up 90 and 79.
>
> >
> >>
> >>So we probably have to wait until both are available in 3.14.
> >>
> >>Thanks,
> >>Val.
>
> Thanks,
> Val.
>
> >>
> >>>
> >>>There's no need to delay this patch set.
> >>>for-3.14
> >>>>+ status = "disabled";
> >>>>+ };
> >>>>+
> >>>>+ sata1: sata@ee500000 {
> >>>>+ compatible = "renesas,sata-r8a7790";
> >>>>+ reg = <0 0xee500000 0 0x2000>;
> >>>>+ interrupt-parent = <&gic>;
> >>>>+ interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
> >>>>+ clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
> >>>>+ status = "disabled";
> >>>>+ };
> >>>>+
> >>>> clocks {
> >>>> #address-cells = <2>;
> >>>> #size-cells = <2>;
> >>
> >--
> >To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (5 preceding siblings ...)
2014-01-16 0:07 ` Simon Horman
@ 2014-01-17 5:26 ` Simon Horman
2014-01-17 8:07 ` Laurent Pinchart
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2014-01-17 5:26 UTC (permalink / raw)
To: linux-sh
On Tue, Jan 14, 2014 at 09:05:30PM +0400, Valentine Barshak wrote:
> This adds SATA[01] device nodes to r8a7790.dtsi
I have queued this up with Magnus's Ack and dts: changed to shmobile:
in the subject. There was a minor conflict which I resolved.
Please check that the following is correct.
From: Valentine Barshak <valentine.barshak@cogentembedded.com>
ARM: shmobile: lager: Enable SATA1 in r8a7790-lager.dts
This enables SATA1 in Lager device tree.
SATA0 is not available on Lager since its
pinmux is fixed to USB3.0.
Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 57569cb..1081c5e 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -91,3 +91,7 @@
non-removable;
status = "okay";
};
+
+&sata1 {
+ status = "okay";
+};
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (6 preceding siblings ...)
2014-01-17 5:26 ` Simon Horman
@ 2014-01-17 8:07 ` Laurent Pinchart
2014-01-17 8:15 ` Magnus Damm
2014-01-17 19:24 ` Valentine
9 siblings, 0 replies; 11+ messages in thread
From: Laurent Pinchart @ 2014-01-17 8:07 UTC (permalink / raw)
To: linux-sh
Hi Valentine,
On Thursday 16 January 2014 00:42:23 Valentine wrote:
> On 01/15/2014 04:02 AM, Simon Horman wrote:
> > On Tue, Jan 14, 2014 at 10:04:12PM +0400, Valentine wrote:
> >> On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
> >>> Hi Valentine,
>
> Hi Simon, Laurent,
>
> >>> Thank you for the patch.
> >>>
> >>> On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
> >>>> This adds SATA[01] device nodes to r8a7790.dtsi
> >>>>
> >>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> >>>> ---
> >>>>
> >>>> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
> >>>> 1 file changed, 18 insertions(+)
> >>>>
> >>>> diff --git a/arch/arm/boot/dts/r8a7790.dtsi
> >>>> b/arch/arm/boot/dts/r8a7790.dtsi index b2c2845..f2f5394 100644
> >>>> --- a/arch/arm/boot/dts/r8a7790.dtsi
> >>>> +++ b/arch/arm/boot/dts/r8a7790.dtsi
> >>>> @@ -400,6 +400,24 @@
> >>>> status = "disabled";
> >>>> };
> >>>>
> >>>> + sata0: sata@ee300000 {
> >>>> + compatible = "renesas,sata-r8a7790";
> >>>> + reg = <0 0xee300000 0 0x2000>;
> >>>> + interrupt-parent = <&gic>;
> >>>> + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
> >>>> + clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
> >>>
> >>> If I'm not mistaken the RCar SATA DT bindings don't document the clocks
> >>> property.
> >>
> >> Yes, they don't, cause at that time the clocks were not supported.
> >>
> >>> Could you please submit a patch to fix that ?
> >>
> >> I could, but the patch that adds the description is still available only
> >> in the for-3.14 branch of the libata repo.
> >
> > I think you could provide a patch to update the bindings (documentation),
> > which is not part of this series, which applies to that branch.
>
> Okay.
>
> > And once that has been acked or merged then this series could
> > be taken in parallel.
> >
> >> The other thing is that the clocks are not yet included in the
> >> r8a7779.dtsi, a snippet from which is used as an example of SATA
> >> bindings.
> >
> > So the bindings (documentation) includes an example which is not present
> > in r8a7779.dtsi? That sounds sane to me as there is no question
> > of a run-time dependency being a problem.
>
> The documentation includes an example of the R8A7779 SATA binding
> cause it was the only SoC supporting the SATA at that time.
>
> The problem is that the DT clock bindings are not supported on R8A7779.
> So we should either wait for them to become supported on R8A7779 or
> we may want to change the example to one of the Gen2 variants.
>
> > But where is the patch to add the clocks to r8a7779.dtsi?
>
> Probably, has not been done yet. I guess, there's no DT clock support on
> r8a7779 yet.
>
> Laurent, do you have any patches for r8a7779?
I don't, sorry. I could work on it, but if I remember correctly CCF support
for r8a7779 is on someone else's to-do list (I don't remember who though,
Magnus, would you like to comment on that ?).
> > Is it "ARM: shmobile: r8a7790: Add SATA clocks to device tree" which
> > I queued up yesterday?
>
> Nope, for the fact it adds the clocks to R8A7790, not R8A7779.
>
> >> So we probably have to wait until both are available in 3.14.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (7 preceding siblings ...)
2014-01-17 8:07 ` Laurent Pinchart
@ 2014-01-17 8:15 ` Magnus Damm
2014-01-17 19:24 ` Valentine
9 siblings, 0 replies; 11+ messages in thread
From: Magnus Damm @ 2014-01-17 8:15 UTC (permalink / raw)
To: linux-sh
Hi Laurent,
On Fri, Jan 17, 2014 at 5:07 PM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> Hi Valentine,
>
> On Thursday 16 January 2014 00:42:23 Valentine wrote:
>> On 01/15/2014 04:02 AM, Simon Horman wrote:
>> > On Tue, Jan 14, 2014 at 10:04:12PM +0400, Valentine wrote:
>> >> On 01/14/2014 09:23 PM, Laurent Pinchart wrote:
>> >>> Hi Valentine,
>>
>> Hi Simon, Laurent,
>>
>> >>> Thank you for the patch.
>> >>>
>> >>> On Tuesday 14 January 2014 21:05:30 Valentine Barshak wrote:
>> >>>> This adds SATA[01] device nodes to r8a7790.dtsi
>> >>>>
>> >>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>> >>>> ---
>> >>>>
>> >>>> arch/arm/boot/dts/r8a7790.dtsi | 18 ++++++++++++++++++
>> >>>> 1 file changed, 18 insertions(+)
>> >>>>
>> >>>> diff --git a/arch/arm/boot/dts/r8a7790.dtsi
>> >>>> b/arch/arm/boot/dts/r8a7790.dtsi index b2c2845..f2f5394 100644
>> >>>> --- a/arch/arm/boot/dts/r8a7790.dtsi
>> >>>> +++ b/arch/arm/boot/dts/r8a7790.dtsi
>> >>>> @@ -400,6 +400,24 @@
>> >>>> status = "disabled";
>> >>>> };
>> >>>>
>> >>>> + sata0: sata@ee300000 {
>> >>>> + compatible = "renesas,sata-r8a7790";
>> >>>> + reg = <0 0xee300000 0 0x2000>;
>> >>>> + interrupt-parent = <&gic>;
>> >>>> + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
>> >>>> + clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
>> >>>
>> >>> If I'm not mistaken the RCar SATA DT bindings don't document the clocks
>> >>> property.
>> >>
>> >> Yes, they don't, cause at that time the clocks were not supported.
>> >>
>> >>> Could you please submit a patch to fix that ?
>> >>
>> >> I could, but the patch that adds the description is still available only
>> >> in the for-3.14 branch of the libata repo.
>> >
>> > I think you could provide a patch to update the bindings (documentation),
>> > which is not part of this series, which applies to that branch.
>>
>> Okay.
>>
>> > And once that has been acked or merged then this series could
>> > be taken in parallel.
>> >
>> >> The other thing is that the clocks are not yet included in the
>> >> r8a7779.dtsi, a snippet from which is used as an example of SATA
>> >> bindings.
>> >
>> > So the bindings (documentation) includes an example which is not present
>> > in r8a7779.dtsi? That sounds sane to me as there is no question
>> > of a run-time dependency being a problem.
>>
>> The documentation includes an example of the R8A7779 SATA binding
>> cause it was the only SoC supporting the SATA at that time.
>>
>> The problem is that the DT clock bindings are not supported on R8A7779.
>> So we should either wait for them to become supported on R8A7779 or
>> we may want to change the example to one of the Gen2 variants.
>>
>> > But where is the patch to add the clocks to r8a7779.dtsi?
>>
>> Probably, has not been done yet. I guess, there's no DT clock support on
>> r8a7779 yet.
>>
>> Laurent, do you have any patches for r8a7779?
>
> I don't, sorry. I could work on it, but if I remember correctly CCF support
> for r8a7779 is on someone else's to-do list (I don't remember who though,
> Magnus, would you like to comment on that ?).
I don't recall about R-Car Gen 1 CCF assignment from the top of my
head I'm afraid. I suppose r8a7779 and r8a7778 may be somewhat
similar, not sure. Regardless, the Gen1 stuff is kind of low priority
from my point of view.
If someone has cycles to spare then r7s72100 CCF would be great to
have hint-hint. =)
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi
2014-01-14 17:05 [PATCH 1/2] ARM: dts: r8a7790: Add SATA nodes to r8a7790.dtsi Valentine Barshak
` (8 preceding siblings ...)
2014-01-17 8:15 ` Magnus Damm
@ 2014-01-17 19:24 ` Valentine
9 siblings, 0 replies; 11+ messages in thread
From: Valentine @ 2014-01-17 19:24 UTC (permalink / raw)
To: linux-sh
On 01/17/2014 09:26 AM, Simon Horman wrote:
> On Tue, Jan 14, 2014 at 09:05:30PM +0400, Valentine Barshak wrote:
>> This adds SATA[01] device nodes to r8a7790.dtsi
>
> I have queued this up with Magnus's Ack and dts: changed to shmobile:
> in the subject. There was a minor conflict which I resolved.
> Please check that the following is correct.
That is correct, thanks.
>
> From: Valentine Barshak <valentine.barshak@cogentembedded.com>
>
> ARM: shmobile: lager: Enable SATA1 in r8a7790-lager.dts
>
> This enables SATA1 in Lager device tree.
> SATA0 is not available on Lager since its
> pinmux is fixed to USB3.0.
>
> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> Acked-by: Magnus Damm <damm@opensource.se>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
>
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index 57569cb..1081c5e 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -91,3 +91,7 @@
> non-removable;
> status = "okay";
> };
> +
> +&sata1 {
> + status = "okay";
> +};
>
Thanks,
Val.
^ permalink raw reply [flat|nested] 11+ messages in thread