Skip to contentSkip to conversation

ravb: add R8A7791 support

PATCH Superseded Sergei Shtylyov 4 participants 8 messages Nov 27, 2015 – Dec 1, 2015 1 message not in the archive

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ravb: add R8A7791 support

Add support for yet another ARM member of the R-Car family, R-Car M2, also known as R8A7791.

---
The patch is against DaveM's 'net-next.git' repo but I wouldn't mind if it's applied to 'net.git' instead. :-)

 Documentation/devicetree/bindings/net/renesas,ravb.txt |    1 +
 drivers/net/ethernet/renesas/ravb_main.c               |    1 +
 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/net/renesas,ravb.txt +1 -0
Index: net-next/Documentation/devicetree/bindings/net/renesas,ravb.txt
===================================================================
@@ -5,6 +5,7 @@ interface contains.
 
 Required properties:
 - compatible: "renesas,etheravb-r8a7790" if the device is a part of R8A7790 SoC.
+	      "renesas,etheravb-r8a7791" if the device is a part of R8A7791 SoC.
 	      "renesas,etheravb-r8a7794" if the device is a part of R8A7794 SoC.
 	      "renesas,etheravb-r8a7795" if the device is a part of R8A7795 SoC.
 - reg: offset and length of (1) the register block and (2) the stream buffer.
drivers/net/ethernet/renesas/ravb_main.c +1 -0
Index: net-next/drivers/net/ethernet/renesas/ravb_main.c
===================================================================
@@ -1655,6 +1655,7 @@ static int ravb_mdio_release(struct ravb
 
 static const struct of_device_id ravb_match_table[] = {
 	{ .compatible = "renesas,etheravb-r8a7790", .data = (void *)RCAR_GEN2 },
+	{ .compatible = "renesas,etheravb-r8a7791", .data = (void *)RCAR_GEN2 },
 	{ .compatible = "renesas,etheravb-r8a7794", .data = (void *)RCAR_GEN2 },
 	{ .compatible = "renesas,etheravb-r8a7795", .data = (void *)RCAR_GEN3 },
 	{ }

A message that is not in the archive (sent off-list or not yet received): 6051623.qN4lqSyZKg-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org

#2 lore raw

Hi Sergei,

Quoted 1 line · Sergei Shtylyov

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hello.

Quoted 3 lines · Geert Uytterhoeven
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Right, forgot about the postfixes.

Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Will fix.

Quoted 3 lines

Gr{oetje,eeting}s,

Geert

MBR, Sergei

#4 lore raw
Quoted 8 lines · Sergei Shtylyov

Hello.

Quoted 3 lines · Geert Uytterhoeven
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Quoted 7 lines

Right, forgot about the postfixes.

Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Will fix.

I would prefer if we added generic gen2 and gen3 compat strings to the driver and only documented new soc-specific compat strings.

Actually by chance I was planning to up patches to do that and add compat strings for the missing Gen2 boards. But I won't complain if you beat me to it.

#5 lore raw

Hi Simon,

Quoted 11 lines · Simon Horman
Quoted 10 lines · Sergei Shtylyov
Quoted 2 lines · Geert Uytterhoeven
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Right, forgot about the postfixes.

Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Quoted 8 lines
Quoted 1 line

Will fix.

I would prefer if we added generic gen2 and gen3 compat strings to the driver and only documented new soc-specific compat strings.

Actually by chance I was planning to up patches to do that and add compat strings for the missing Gen2 boards. But I won't complain if you beat me to it.

You're aware we have to keep the existing SoC-specific ones in the driver, for backwards compatibility?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

#6 lore raw
Quoted 19 lines · Geert Uytterhoeven

Hi Simon,

Quoted 16 lines · Simon Horman
Quoted 11 lines · Sergei Shtylyov
Quoted 2 lines · Geert Uytterhoeven
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Right, forgot about the postfixes.

Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Will fix.

I would prefer if we added generic gen2 and gen3 compat strings to the driver and only documented new soc-specific compat strings.

Quoted 6 lines
Quoted 3 lines

Actually by chance I was planning to up patches to do that and add compat strings for the missing Gen2 boards. But I won't complain if you beat me to it.

You're aware we have to keep the existing SoC-specific ones in the driver, for backwards compatibility?

Yes, I am aware of that.

#7 lore raw
In reply to Simon Horman

Hello.

Quoted 6 lines · Simon Horman
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Right, forgot about the postfixes.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Will fix.

I would prefer if we added generic gen2 and gen3 compat strings to the driver and only documented new soc-specific compat strings.

That's a new policy it seems. Previously you preferred the SoC-specific
strings to be used, didn;t you?

Quoted 3 lines

Actually by chance I was planning to up patches to do that and add compat strings for the missing Gen2 boards. But I won't complain if you beat me to it.

No, I'm pretty busy as is. :-)

MBR, Sergei

#8 lore raw
Quoted 14 lines · Sergei Shtylyov

Hello.

Quoted 10 lines · Simon Horman
Quoted 10 lines
Quoted 3 lines
Quoted 1 line

Add support for yet another ARM member of the R-Car family, R-Car M2, also

R-Car M2-W?

Right, forgot about the postfixes.

Quoted 3 lines
Quoted 1 line

known as R8A7791.

There's also R-Car M2-N, aka R8A7793, but you probably know that ;-)

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Will fix.

I would prefer if we added generic gen2 and gen3 compat strings to the driver and only documented new soc-specific compat strings.

That's a new policy it seems. Previously you preferred the SoC-specific
strings to be used, didn;t you?

Yes, that is correct on all counts.

To clarify new policy for Renesas IP is:
soc-specific compat + generic compat as fallback

Quoted 5 lines
Quoted 3 lines

Actually by chance I was planning to up patches to do that and add compat strings for the missing Gen2 boards. But I won't complain if you beat me to it.

No, I'm pretty busy as is. :-)

Ok, I'll handle this.