From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A5EFC4332F for ; Fri, 24 Sep 2021 09:08:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 013C460EB4 for ; Fri, 24 Sep 2021 09:07:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245127AbhIXJJb (ORCPT ); Fri, 24 Sep 2021 05:09:31 -0400 Received: from mail-ua1-f47.google.com ([209.85.222.47]:33297 "EHLO mail-ua1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245120AbhIXJJa (ORCPT ); Fri, 24 Sep 2021 05:09:30 -0400 Received: by mail-ua1-f47.google.com with SMTP id r8so6180830uap.0; Fri, 24 Sep 2021 02:07:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/RxTD5RlZtVSoGJbWz+SIaw9jcb2Suud4BeCZGzuRE4=; b=cudceSTE9OlDjI+vCgg5xa4Qgf3HgvKPBWoDnWXTCRAG2WIUuN58XgjoCq9yNZ9dqi /De9/AVEqzY3G7VnVnKenLQGdnztSu1Jr5iYRfilbrKnjYW0AoaCy1op91JiTp+mS0DC iKSre1iwmIa63jKZ5jYX4K4JlWAY0TZywSs8LEn+TFinHsZtaEdmv1Zj8DLQKxc8mvTo /6B9UIft5wdwSTXVDxKV80D676eojwyK9DiLyejpwyHIRagyHXKYOP2MP9ScvG6ali+r CncyVIZux0tCRCMxNjtUvYBFB8UKOxNvA4MMEi8QI35JpqtErPX5Mfb3QIfiZ7426H7O faTQ== X-Gm-Message-State: AOAM533NMW+TtGFwSvMDa9xDvbwxCuafs/MxSde6eeD/ng5jrx2XuO6a S6r6VctDp6I8DSirFTGtwA1Zu6N1niLvjHx0NvJILeIGXi8= X-Google-Smtp-Source: ABdhPJziuAsLTp8tfRhrNtRU1VujxZzhatrbKehGa/TLK5r1Cgkk2UypLKRDj3s4EpQ8oW8tOSfLofqZM1T2uxulKlo= X-Received: by 2002:ab0:311a:: with SMTP id e26mr8142812ual.122.1632474477108; Fri, 24 Sep 2021 02:07:57 -0700 (PDT) MIME-Version: 1.0 References: <20210922212049.19851-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210922212049.19851-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20210922212049.19851-4-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 24 Sep 2021 11:07:45 +0200 Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CANFD To: Lad Prabhakar Cc: Geert Uytterhoeven , Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Wed, Sep 22, 2021 at 11:21 PM Lad Prabhakar wrote: > Enable CANFD on RZ/G2L SMARC platform. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Thanks for your patch! > --- a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi > +++ b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi > @@ -139,6 +153,32 @@ > pinctrl-0 = <&sound_clk_pins>; > pinctrl-names = "default"; > > + can0_pins: can0 { > + pinmux = , /* TX */ > + ; /* RX */ > + }; > + > + /* SW7 should be at position 2->3 so that GPIO8_CAN0_STB line is activated */ > + can0-stb { > + gpio-hog; > + gpios = ; > + output-high; While this drives the STB signal correctly, I find it confusing. According to the datasheet, the STB signal is active-high, so it has to be pulled low to disable standby. So to reflect the meaning of the STB line, I would write: gpios = ; output-low; > + line-name = "can0_stb"; > + }; > + > + can1_pins: can1 { > + pinmux = , /* TX */ > + ; /* RX */ > + }; > + > + /* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */ > + can1-stb { > + gpio-hog; > + gpios = ; > + output-high; Likewise. > + line-name = "can1_stb"; > + }; > + The rest looks good to me, so with the above fixed: Reviewed-by: Geert Uytterhoeven 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