[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2022 23:18:07 +0300
From: Sergey Shtylyov <s.shtylyov@....ru>
To: Phil Edworthy <phil.edworthy@...esas.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Geert Uytterhoeven <geert+renesas@...der.be>
CC: Biju Das <biju.das.jz@...renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
<netdev@...r.kernel.org>, <linux-renesas-soc@...r.kernel.org>
Subject: Re: [PATCH 7/9] ravb: Add support for RZ/V2M
On 5/4/22 5:54 PM, Phil Edworthy wrote:
> RZ/V2M Ethernet is very similar to R-Car Gen3 Ethernet-AVB, though
> some small parts are the same as R-Car Gen2.
You mean the absence of the interrupt enable/disable registers?
> Other differences are:
Differences to gen3, you mean?
> * It has separate data (DI), error (Line 1) and management (Line 2) irqs
> rather than one irq for all three.
> * Instead of using the High-speed peripheral bus clock for gPTP, it has a
> separate gPTP reference clock.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@...esas.com>
> Reviewed-by: Biju Das <biju.das.jz@...renesas.com>
> ---
> Note: gPTP was tested using an RZ/V2M EVK and an R-Car M3N Salvator-XS
> board, connected with a Summit X440 AVB switch, using ptp4l.
Oh, that's good! :-)
> ---
> drivers/net/ethernet/renesas/ravb_main.c | 27 ++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
> index ded87cb51650..03b127faf52f 100644
> --- a/drivers/net/ethernet/renesas/ravb_main.c
> +++ b/drivers/net/ethernet/renesas/ravb_main.c
> @@ -2461,6 +2461,32 @@ static const struct ravb_hw_info ravb_gen2_hw_info = {
> .magic_pkt = 1,
> };
>
> +static const struct ravb_hw_info ravb_rzv2m_hw_info = {
> + .rx_ring_free = ravb_rx_ring_free_rcar,
> + .rx_ring_format = ravb_rx_ring_format_rcar,
> + .alloc_rx_desc = ravb_alloc_rx_desc_rcar,
> + .receive = ravb_rx_rcar,
> + .set_rate = ravb_set_rate_rcar,
> + .set_feature = ravb_set_features_rcar,
> + .dmac_init = ravb_dmac_init_rcar,
> + .emac_init = ravb_emac_init_rcar,
> + .gstrings_stats = ravb_gstrings_stats,
> + .gstrings_size = sizeof(ravb_gstrings_stats),
> + .net_hw_features = NETIF_F_RXCSUM,
> + .net_features = NETIF_F_RXCSUM,
> + .stats_len = ARRAY_SIZE(ravb_gstrings_stats),
> + .max_rx_len = RX_BUF_SZ + RAVB_ALIGN - 1,
> + .tccr_mask = TCCR_TSRQ0 | TCCR_TSRQ1 | TCCR_TSRQ2 | TCCR_TSRQ3,
> + .rx_max_buf_size = SZ_2K,
What about .internal_delay and .tx_counters?
> + .multi_irqs = 1,
> + .err_mgmt_irqs = 1,
> + .gptp = 1,
Not .ccc_gac?
[...]
MBR. Sergey
Powered by blists - more mailing lists