diff mbox

[2/2] ARM: shmobile: r8a7790: add EtherAVB DT support

Message ID 8163383.0UU0Q5gsLE@wasted.cogentembedded.com (mailing list archive)
State Superseded
Headers show

Commit Message

Sergei Shtylyov March 30, 2015, 9:59 p.m. UTC
Define the generic R8A7790 part of the EtherAVB device node. 

Based on original patch by Mitsuhiro Kimura <mitsuhiro.kimura.kc@renesas.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7790.dtsi |   10 ++++++++++
 1 file changed, 10 insertions(+)


--
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

Comments

Simon Horman March 31, 2015, 12:21 a.m. UTC | #1
On Tue, Mar 31, 2015 at 12:59:41AM +0300, Sergei Shtylyov wrote:
> Define the generic R8A7790 part of the EtherAVB device node. 

Please repost once this binding (and associated driver) has been accepted.

> Based on original patch by Mitsuhiro Kimura <mitsuhiro.kimura.kc@renesas.com>.
> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> ---
>  arch/arm/boot/dts/r8a7790.dtsi |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
> ===================================================================
> --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
> +++ renesas/arch/arm/boot/dts/r8a7790.dtsi
> @@ -626,6 +626,16 @@
>  		status = "disabled";
>  	};
>  
> +	avb: ethernet@e6800000 {
> +		compatible = "renesas,ravb-r8a7790";
> +		reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
> +		interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
> +		clocks = <&mstp8_clks R8A7790_CLK_ETHERAVB>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		status = "disabled";
> +	};
> +
>  	sata0: sata@ee300000 {
>  		compatible = "renesas,sata-r8a7790";
>  		reg = <0 0xee300000 0 0x2000>;
> 
--
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
Sergei Shtylyov March 31, 2015, 3:04 p.m. UTC | #2
Hello.

On 03/31/2015 03:21 AM, Simon Horman wrote:

>> Define the generic R8A7790 part of the EtherAVB device node.

> Please repost once this binding (and associated driver) has been accepted.

    OK, but will you merge patch #1?

>> Based on original patch by Mitsuhiro Kimura <mitsuhiro.kimura.kc@renesas.com>.

>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>
>> ---
>>   arch/arm/boot/dts/r8a7790.dtsi |   10 ++++++++++
>>   1 file changed, 10 insertions(+)
>>
>> Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
>> ===================================================================
>> --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
>> +++ renesas/arch/arm/boot/dts/r8a7790.dtsi
>> @@ -626,6 +626,16 @@
>>   		status = "disabled";
>>   	};
>>
>> +	avb: ethernet@e6800000 {
>> +		compatible = "renesas,ravb-r8a7790";

    I went the usual way here but I suspect that SoC part of the prop should 
be "-rcar-gen2" as we now have this IP core (as well as most of the others, 
except PFC) described in a common manual for the R-Car generation 2 SoCs.
What do you think?

WBR, Sergei

--
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
Simon Horman April 2, 2015, 1:33 a.m. UTC | #3
On Tue, Mar 31, 2015 at 06:04:43PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 03/31/2015 03:21 AM, Simon Horman wrote:
> 
> >>Define the generic R8A7790 part of the EtherAVB device node.
> 
> >Please repost once this binding (and associated driver) has been accepted.
> 
>    OK, but will you merge patch #1?

I would prefer to wait until we can exercise it with a driver.

> >>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >>
> >>---
> >>  arch/arm/boot/dts/r8a7790.dtsi |   10 ++++++++++
> >>  1 file changed, 10 insertions(+)
> >>
> >>Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
> >>===================================================================
> >>--- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
> >>+++ renesas/arch/arm/boot/dts/r8a7790.dtsi
> >>@@ -626,6 +626,16 @@
> >>  		status = "disabled";
> >>  	};
> >>
> >>+	avb: ethernet@e6800000 {
> >>+		compatible = "renesas,ravb-r8a7790";
> 
>    I went the usual way here but I suspect that SoC part of the prop should
> be "-rcar-gen2" as we now have this IP core (as well as most of the others,
> except PFC) described in a common manual for the R-Car generation 2 SoCs.
> What do you think?

I like -r8a7790.
--
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
Sergei Shtylyov April 2, 2015, 11:31 a.m. UTC | #4
Hello.

On 4/2/2015 4:33 AM, Simon Horman wrote:

>> On 03/31/2015 03:21 AM, Simon Horman wrote:

>>>> Define the generic R8A7790 part of the EtherAVB device node.

>>> Please repost once this binding (and associated driver) has been accepted.

>>     OK, but will you merge patch #1?

> I would prefer to wait until we can exercise it with a driver.

    Then you'll have to wait long as the Lager board doesn't have support for 
Ethernet AVB. We've only tested it with the daughter boards.

WBR, Sergei

--
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
Simon Horman April 6, 2015, 1:09 a.m. UTC | #5
On Thu, Apr 02, 2015 at 02:31:19PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 4/2/2015 4:33 AM, Simon Horman wrote:
> 
> >>On 03/31/2015 03:21 AM, Simon Horman wrote:
> 
> >>>>Define the generic R8A7790 part of the EtherAVB device node.
> 
> >>>Please repost once this binding (and associated driver) has been accepted.
> 
> >>    OK, but will you merge patch #1?
> 
> >I would prefer to wait until we can exercise it with a driver.
> 
>    Then you'll have to wait long as the Lager board doesn't have support for
> Ethernet AVB. We've only tested it with the daughter boards.

All the same, I'd rather wait for the driver to be merged first.
--
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
diff mbox

Patch

Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
+++ renesas/arch/arm/boot/dts/r8a7790.dtsi
@@ -626,6 +626,16 @@ 
 		status = "disabled";
 	};
 
+	avb: ethernet@e6800000 {
+		compatible = "renesas,ravb-r8a7790";
+		reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+		interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp8_clks R8A7790_CLK_ETHERAVB>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
 	sata0: sata@ee300000 {
 		compatible = "renesas,sata-r8a7790";
 		reg = <0 0xee300000 0 0x2000>;