[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2ccfbfa8-be11-50ed-66ca-3476cbddb320@linaro.org>
Date: Mon, 23 May 2022 15:06:52 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Tomer Maimon <tmaimon77@...il.com>, Arnd Bergmann <arnd@...db.de>
Cc: Avi Fishman <avifishman70@...il.com>,
Tali Perry <tali.perry1@...il.com>,
Joel Stanley <joel@....id.au>,
Patrick Venture <venture@...gle.com>,
Nancy Yuen <yuenn@...gle.com>,
Benjamin Fair <benjaminfair@...gle.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Philipp Zabel <p.zabel@...gutronix.de>,
gregkh <gregkh@...uxfoundation.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, Olof Johansson <olof@...om.net>,
Jiri Slaby <jirislaby@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Marcel Ziswiler <marcel.ziswiler@...adex.com>,
Vinod Koul <vkoul@...nel.org>,
Biju Das <biju.das.jz@...renesas.com>,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@...hiba.co.jp>,
robert.hancock@...ian.com,
nathan=20Neusch=C3=A4fer?= <j.neuschaefer@....net>,
Lubomir Rintel <lkundrak@...sk>, SoC Team <soc@...nel.org>,
DTML <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-clk <linux-clk@...r.kernel.org>,
"open list:SERIAL DRIVERS" <linux-serial@...r.kernel.org>,
LINUXWATCHDOG <linux-watchdog@...r.kernel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v1 04/19] tty: serial: 8250: Add NPCM845 UART support
On 23/05/2022 14:58, Tomer Maimon wrote:
> Hi Arnd,
>
> Thanks for your comment.
>
> On Mon, 23 May 2022 at 14:48, Arnd Bergmann <arnd@...db.de
> <mailto:arnd@...db.de>> wrote:
>
> On Sun, May 22, 2022 at 5:50 PM Tomer Maimon <tmaimon77@...il.com
> <mailto:tmaimon77@...il.com>> wrote:
> > +++ b/drivers/tty/serial/8250/8250_of.c
> > @@ -333,6 +333,7 @@ static const struct of_device_id
> of_platform_serial_table[] = {
> > { .compatible = "ti,da830-uart", .data = (void
> *)PORT_DA830, },
> > { .compatible = "nuvoton,wpcm450-uart", .data = (void
> *)PORT_NPCM, },
> > { .compatible = "nuvoton,npcm750-uart", .data = (void
> *)PORT_NPCM, },
> > + { .compatible = "nuvoton,npcm845-uart", .data = (void
> *)PORT_NPCM, },
> > { /* end of list */ },
>
> If these are compatible devices, it's usually easier to claim
> compatibility with both the specific chip and the older model
> as a fallback, to avoid driver changes. This seems to apply to
> the timer and watchdog devices as well.
>
> Just to make sure, Do you mean claim in the device tree?
> like
>
> compatible = "nuvoton,npcm845-timer", "nuvoton,npcm-timer";
compatible = "nuvoton,npcm845-timer", "nuvoton,npcm750-timer"";
Best regards,
Krzysztof
Powered by blists - more mailing lists