Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4618170pxv; Tue, 20 Jul 2021 07:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHIbCLQpo7B6qWpwEIpUE0B0+7tDaAIaDrdMH5vwge0ZOycZXsBk5FdKs96VIFt6skUKwy X-Received: by 2002:a05:6402:1657:: with SMTP id s23mr18027538edx.180.1626792830784; Tue, 20 Jul 2021 07:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626792830; cv=none; d=google.com; s=arc-20160816; b=aoVX1z+ABcypwLl6jzfLl4SF5t8gT/b+5kT+yXjBuzJka922Wqh6lISOlDvYY4Sus5 LHfq2FY0ZynrDK9sbnJSUatHGW5OoXVNOQEPmDwYjdl5R3ifBUhCfehrjF6WO8K5FkS6 qfv232jH6bCDj5V2gUPAQvktW6yU1pn3LAjMUY49OOxkfASHL3ZkXIaR7t5TXNuUcXVo Us3LvdThfqJVP3KlOP5T/m4AROQI+8IIvYd2eE3mYLZeKUjczxMEhhe76t5MiYTMkTEd tozbk9Me5djp+MMDcnC6MsFoMPqMThAQLjOg9m250RlOD2RLaos/Wx72/D9cUEPC5+Cn tZxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=twAcJwRNZdn+hWF5eUUfRv0NDfKoXSW2Ryat6Jwflqo=; b=hx4fkvPS2XNzo1jbpxXVkHDje4qEStyl+F5fkZq7nSmAos5SEcK1e0dkarKlSwcIYJ IiBx+OTPpgfLCAu68x45q+foc7WLFtQCwehUeFSrkI6Rcpi0YnMd00/h/24kjS8GvJMS 3r8Zv2tAnZuJFmFhCZZmiLgKFnSILLle9EsILQSQ4PMWSkGnNUrUjA25EiVA0Syt9kc+ 5OA4waZjhY9rZUDvcDxUdHFIBlZlVfNIhZEfyeJ0lrUMERIpZP69UbbMs3v9VMm0nAav 2vTXtoF24O1hz6LrUitrGR3xWM+Okf5VekpeitfglE83EW4KOfSxMNt1ljISq0nC6rsE tmDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sfbDpPPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si24564961edp.437.2021.07.20.07.53.27; Tue, 20 Jul 2021 07:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sfbDpPPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238922AbhGTOK5 (ORCPT + 99 others); Tue, 20 Jul 2021 10:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239541AbhGTN5V (ORCPT ); Tue, 20 Jul 2021 09:57:21 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E66FC061574; Tue, 20 Jul 2021 07:37:46 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id v189so33052668ybg.3; Tue, 20 Jul 2021 07:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=twAcJwRNZdn+hWF5eUUfRv0NDfKoXSW2Ryat6Jwflqo=; b=sfbDpPPNijKyZ6UiRIh5zgydDChl1eYmSO177LQ0yoCG6RUj36kmUTPJo+RIz+wFnq zp/s6taOtwOiSasGeavhSCYtFQ864wSdmGwUbs9tKPPqHyWGc72LysIzT1pzskxE4QR0 pAXwrdRllNJ8YTQkbwiPT3J8BFMXSPxJ4STzyDjhm1x+lMdncyosKw+ZU3MTtcMPBpqt 2KtxPeKnmyjR9vWroZ2zo+8MX9la4ndE7gDmTK+4C+6i/Uyu7fEcKhbtEdwcDFUDKD1x QpqirVBkaAolKP3ls5aMwrakG5GcvxcSisq87W0XMiiHhvOsFyEgbu2phzdlFMZbb1yT RBjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=twAcJwRNZdn+hWF5eUUfRv0NDfKoXSW2Ryat6Jwflqo=; b=XTfHCE04ZHXxdbAHZdNMrIVpJAvoGf2Wg2GAwOEoLPvMHVazJapiVAmhhjtVP4KMpl l2hB3JnoE0E+kTOlzWwxT3K1/TYnBsN7cREL/WuJZpjT4foO5/ZaWTUnG7rjqAP2idOv AJRBsGUj+fALaEYVZN1euF9kSl5l5FyVnqCI+RteTmlC1TQxxf2oLCRHvqqFeMJ/XlRr iNQ6m4B4M1G0Fpb9k9xl/ZGDTgmlqaAfiptdTntqwosvgGA2eCsFLjcwXPX73dS+whjO n6qEoXn7yYwV5JOw/CNs10RzSuS17Bg1YGYkGg7llje0ETde1/wGmKOXfrKp3qGDaePd H8Lw== X-Gm-Message-State: AOAM530n2VB1ctg9vh01ITtDpmH9iwar2gzxqsnk7VQ4PcPjD9Xi3icT HeXwvrGbaViVVoUn97tI0AHSrmJnB9eLL9jJOMYAJPyJs3k= X-Received: by 2002:a25:d491:: with SMTP id m139mr38146443ybf.156.1626791865876; Tue, 20 Jul 2021 07:37:45 -0700 (PDT) MIME-Version: 1.0 References: <20210719143811.2135-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210719143811.2135-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Tue, 20 Jul 2021 15:37:20 +0100 Message-ID: Subject: Re: [PATCH v2 1/5] dt-bindings: net: can: renesas,rcar-canfd: Document RZ/G2L SoC To: Geert Uytterhoeven Cc: Lad Prabhakar , Rob Herring , Fabrizio Castro , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Michael Turquette , Stephen Boyd , Philipp Zabel , linux-can@vger.kernel.org, netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-clk , Linux Kernel Mailing List , Linux-Renesas , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, Thank you for the review. On Tue, Jul 20, 2021 at 11:21 AM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Mon, Jul 19, 2021 at 4:39 PM Lad Prabhakar > wrote: > > Add CANFD binding documentation for Renesas RZ/G2L SoC. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Biju Das > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Just some bikeshedding on the exact naming below ;-) > > > --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > > +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > > @@ -91,6 +92,59 @@ required: > > - channel0 > > - channel1 > > > > +if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - renesas,rzg2l-canfd > > +then: > > + properties: > > + interrupts: > > + items: > > + - description: CAN global error interrupt > > + - description: CAN receive FIFO interrupt > > + - description: CAN0 error interrupt > > + - description: CAN0 transmit interrupt > > + - description: CAN0 transmit/receive FIFO receive completion interrupt > > + - description: CAN1 error interrupt > > + - description: CAN1 transmit interrupt > > + - description: CAN1 transmit/receive FIFO receive completion interrupt > > + > > + interrupt-names: > > + items: > > + - const: g_error > > + - const: g_rx_fifo > > + - const: can0_error > > s/error/err/? > > > + - const: can0_tx > > + - const: can0_tx_rx_fifo_receive_completion > > + - const: can1_error > > + - const: can1_tx > > + - const: can1_tx_rx_fifo_receive_completion > > s/receive/rx/? > > Some are also a bit long to type. > Perhaps use naming closer to the User's Manual? > > INTRCANGERR => g_err > INTRCANGRECC => g_recc > INTRCAN0ERR => ch0_err > INTRCAN0REC => ch0_rec > INTRCAN0TRX => ch0_trx > INTRCAN1ERR => ch1_err > INTRCAN1REC => ch1_rec > INTRCAN1TRX => ch1_trx > > These do not have "_int" suffixes... > Agreed thanks for the input. > > + > > + resets: > > + items: > > + - description: CANFD_RSTP_N > > + - description: CANFD_RSTC_N > > + > > + required: > > + - interrupt-names > > +else: > > + properties: > > + interrupts: > > + items: > > + - description: Channel interrupt > > + - description: Global interrupt > > + > > + interrupt-names: > > + items: > > + - const: ch_int > > + - const: g_int > > ... and these do have "_int" suffixes. > indeed Cheers, Prabhakar > > + > > + resets: > > + items: > > + - description: CANFD reset > > + > > unevaluatedProperties: false > > 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