[v2,5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART
Message ID | 20231129060043.368874-6-jeeheng.sia@starfivetech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp143607vqn; Tue, 28 Nov 2023 22:02:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHo4BZX+Klc8D9XX6OO9ePyr17igIypQFH9h7h9SVccfZwjG0/6lWQkkvnNRPc5MgvTpN+D X-Received: by 2002:a17:902:b948:b0:1cf:fdad:3b39 with SMTP id h8-20020a170902b94800b001cffdad3b39mr3621866pls.61.1701237737872; Tue, 28 Nov 2023 22:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701237737; cv=none; d=google.com; s=arc-20160816; b=YDlfEq1Qr/7UcPR5v5qwXK0/4gXZuQNqninnODyn2W5QU0/lGeckg9rl49Ts+J5+uS q/vG85wOvlKZY/pgOvW2tf5fvSvdPv7FxEfaAxZxANqkBYX3jHzNHXNbdwCT7L+X5Xb6 NZbYMEDBr3RAFeELHq9WljN00YMZdUmVXuwJdFwMpAhQyaugrKchn7OV8kw0cwRuTd9c TXk+VyM8AX81URhjWGFlvEj6h/DwZ2U1KALGXVwez3KsYzm9CIu4aEPJWnduHAL3aZWz vpaA9BOFbhTrQGaOlWVFjFqEGUJkSzZrP0i7Ot9n1PlTJsmPDwYKeDUWVqmidc96ySMm Bigw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5QTe5Ep0s/pjS8uhnl1ZijRMUVJOk6TcjlnF0h+P/J4=; fh=MyYr2e7fHTU0M+N+DCuEi+Z7iOohUYF9duigLNinjzI=; b=UP9+fcN87fxHuUnJolnv0L9h/iNJKXIYnYWGuxqqOzp6wqK5+XbiuEdG7VrnsW+A1S yPnZiqR8/noVhRaEZ6rDfdwPUChvu17r9aAwOCpYz2NzL57kJNstXhXE1n5PktRe7u/1 JJU620E2w2mTnz4vDBm1NjF+Q+/G2Ghz62ynlSh3z22+87yBEOaVVmn1TIszNAjZeoiQ G0guQfCTE9mCLjQeOdhkBaR5I2Oge4nAJRt5W/pGZAV9cmVNo2hviYCSXPnjEy528boJ N1BzWw697rZH+7GI9oTRfWnP6uyfAL2sfjS+Fu+2bLraMORqaxHqxXdiyg0tKx7eTaAl S+NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p3-20020a1709026b8300b001cfd4c10e47si5259621plk.8.2023.11.28.22.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 22:02:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CB4DB80A9B1E; Tue, 28 Nov 2023 22:02:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbjK2GCF convert rfc822-to-8bit (ORCPT <rfc822;kernel.ruili@gmail.com> + 99 others); Wed, 29 Nov 2023 01:02:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234660AbjK2GCE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Nov 2023 01:02:04 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB5019AE; Tue, 28 Nov 2023 22:02:09 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id F367024DBF3; Wed, 29 Nov 2023 14:02:07 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Nov 2023 14:02:08 +0800 Received: from jsia-virtual-machine.localdomain (60.54.3.230) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Nov 2023 14:01:56 +0800 From: Sia Jee Heng <jeeheng.sia@starfivetech.com> To: <kernel@esmil.dk>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <krzk@kernel.org>, <conor+dt@kernel.org>, <paul.walmsley@sifive.com>, <palmer@dabbelt.com>, <aou@eecs.berkeley.edu>, <daniel.lezcano@linaro.org>, <tglx@linutronix.de>, <conor@kernel.org>, <anup@brainfault.org>, <gregkh@linuxfoundation.org>, <jirislaby@kernel.org>, <michal.simek@amd.com>, <michael.zhu@starfivetech.com>, <drew@beagleboard.org> CC: <devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <jeeheng.sia@starfivetech.com>, <leyfoon.tan@starfivetech.com> Subject: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART Date: Wed, 29 Nov 2023 14:00:42 +0800 Message-ID: <20231129060043.368874-6-jeeheng.sia@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129060043.368874-1-jeeheng.sia@starfivetech.com> References: <20231129060043.368874-1-jeeheng.sia@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [60.54.3.230] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 22:02:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783877062199116597 X-GMAIL-MSGID: 1783877062199116597 |
Series |
Initial device tree support for StarFive JH8100 SoC
|
|
Commit Message
JeeHeng Sia
Nov. 29, 2023, 6 a.m. UTC
Add new compatible string for UART in the StarFive JH8100 SoC. Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com> Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> --- Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On 29/11/2023 07:00, Sia Jee Heng wrote: > Add new compatible string for UART in the StarFive JH8100 SoC. > > Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com> > Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> The patch is quite different than v1. Are you sure the review is applicable? If it was given for v2, where is it? > --- > Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > index e35ad1109efc..0d05305778f2 100644 > --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml > +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > @@ -20,6 +20,10 @@ properties: > items: > - const: xlnx,zynqmp-uart > - const: cdns,uart-r1p12 > + - description: UART controller for StarFive JH8100 SoC This is duplicating compatible, drop. > + items: > + - const: starfive,jh8100-uart > + - const: cdns,uart-r1p8 Don't add things to the end of the list, but keep order. I would suggest to put it at the beginning, so before Xilinx. Best regards, Krzysztof
> -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: Wednesday, November 29, 2023 4:26 PM > To: JeeHeng Sia <jeeheng.sia@starfivetech.com>; kernel@esmil.dk; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > krzk@kernel.org; conor+dt@kernel.org; paul.walmsley@sifive.com; palmer@dabbelt.com; aou@eecs.berkeley.edu; > daniel.lezcano@linaro.org; tglx@linutronix.de; conor@kernel.org; anup@brainfault.org; gregkh@linuxfoundation.org; > jirislaby@kernel.org; michal.simek@amd.com; Michael Zhu <michael.zhu@starfivetech.com>; drew@beagleboard.org > Cc: devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux-kernel@vger.kernel.org; Leyfoon Tan > <leyfoon.tan@starfivetech.com> > Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART > > On 29/11/2023 07:00, Sia Jee Heng wrote: > > Add new compatible string for UART in the StarFive JH8100 SoC. > > > > Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com> > > Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> > > The patch is quite different than v1. Are you sure the review is > applicable? If it was given for v2, where is it? This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart-r1p8, allowing us to continue using the cdns uart. > > > --- > > Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > > index e35ad1109efc..0d05305778f2 100644 > > --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml > > +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > > @@ -20,6 +20,10 @@ properties: > > items: > > - const: xlnx,zynqmp-uart > > - const: cdns,uart-r1p12 > > + - description: UART controller for StarFive JH8100 SoC > > This is duplicating compatible, drop. Do you mean drop compatible for starfive,jh8100-uart ? > > > + items: > > + - const: starfive,jh8100-uart > > + - const: cdns,uart-r1p8 > > Don't add things to the end of the list, but keep order. I would suggest > to put it at the beginning, so before Xilinx. I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below. Please let me know if this addresses your comment? properties: compatible: oneOf: - description: UART controller for StarFive JH8100 SoC items: - const: cdns,uart-r1p8 - description: UART controller for Zynq-7xxx SoC items: - const: xlnx,xuartps - const: cdns,uart-r1p8 - description: UART controller for Zynq Ultrascale+ MPSoC items: - const: xlnx,zynqmp-uart - const: cdns,uart-r1p12 > > > Best regards, > Krzysztof
On 29/11/2023 11:33, JeeHeng Sia wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> Sent: Wednesday, November 29, 2023 4:26 PM >> To: JeeHeng Sia <jeeheng.sia@starfivetech.com>; kernel@esmil.dk; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; >> krzk@kernel.org; conor+dt@kernel.org; paul.walmsley@sifive.com; palmer@dabbelt.com; aou@eecs.berkeley.edu; >> daniel.lezcano@linaro.org; tglx@linutronix.de; conor@kernel.org; anup@brainfault.org; gregkh@linuxfoundation.org; >> jirislaby@kernel.org; michal.simek@amd.com; Michael Zhu <michael.zhu@starfivetech.com>; drew@beagleboard.org >> Cc: devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux-kernel@vger.kernel.org; Leyfoon Tan >> <leyfoon.tan@starfivetech.com> >> Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART >> >> On 29/11/2023 07:00, Sia Jee Heng wrote: >>> Add new compatible string for UART in the StarFive JH8100 SoC. >>> >>> Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com> >>> Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> >> >> The patch is quite different than v1. Are you sure the review is >> applicable? If it was given for v2, where is it? > This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart-r1p8, allowing us to continue using the cdns uart. Please wrap your replies. How does this answer my concern about review tag? Do you understand that my comments are inline under the exact line which is questioned? >> >>> --- >>> Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> index e35ad1109efc..0d05305778f2 100644 >>> --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> @@ -20,6 +20,10 @@ properties: >>> items: >>> - const: xlnx,zynqmp-uart >>> - const: cdns,uart-r1p12 >>> + - description: UART controller for StarFive JH8100 SoC >> >> This is duplicating compatible, drop. > Do you mean drop compatible for starfive,jh8100-uart ? No, drop description and use directly " - items" >> >>> + items: >>> + - const: starfive,jh8100-uart >>> + - const: cdns,uart-r1p8 >> >> Don't add things to the end of the list, but keep order. I would suggest >> to put it at the beginning, so before Xilinx. > I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below. Please let me know if this addresses your comment? > properties: > compatible: > oneOf: > - description: UART controller for StarFive JH8100 SoC > items: > - const: cdns,uart-r1p8 Order is fixed, thanks. But drop description and bring back specific compatible. You must have specific compatibles, always. Best regards, Krzysztof
> -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: Wednesday, November 29, 2023 6:53 PM > To: JeeHeng Sia <jeeheng.sia@starfivetech.com>; kernel@esmil.dk; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > krzk@kernel.org; conor+dt@kernel.org; paul.walmsley@sifive.com; palmer@dabbelt.com; aou@eecs.berkeley.edu; > daniel.lezcano@linaro.org; tglx@linutronix.de; conor@kernel.org; anup@brainfault.org; gregkh@linuxfoundation.org; > jirislaby@kernel.org; michal.simek@amd.com; Michael Zhu <michael.zhu@starfivetech.com>; drew@beagleboard.org > Cc: devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux-kernel@vger.kernel.org; Leyfoon Tan > <leyfoon.tan@starfivetech.com> > Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART > > On 29/11/2023 11:33, JeeHeng Sia wrote: > > > > > >> -----Original Message----- > >> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >> Sent: Wednesday, November 29, 2023 4:26 PM > >> To: JeeHeng Sia <jeeheng.sia@starfivetech.com>; kernel@esmil.dk; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > >> krzk@kernel.org; conor+dt@kernel.org; paul.walmsley@sifive.com; palmer@dabbelt.com; aou@eecs.berkeley.edu; > >> daniel.lezcano@linaro.org; tglx@linutronix.de; conor@kernel.org; anup@brainfault.org; gregkh@linuxfoundation.org; > >> jirislaby@kernel.org; michal.simek@amd.com; Michael Zhu <michael.zhu@starfivetech.com>; drew@beagleboard.org > >> Cc: devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux-kernel@vger.kernel.org; Leyfoon Tan > >> <leyfoon.tan@starfivetech.com> > >> Subject: Re: [PATCH v2 5/6] dt-bindings: serial: cdns: Add new compatible string for StarFive JH8100 UART > >> > >> On 29/11/2023 07:00, Sia Jee Heng wrote: > >>> Add new compatible string for UART in the StarFive JH8100 SoC. > >>> > >>> Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com> > >>> Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> > >> > >> The patch is quite different than v1. Are you sure the review is > >> applicable? If it was given for v2, where is it? > > This patch is impacted by the comment suggesting the exclusion of patch 5 in V1. In V2, this patch adds compatible for cdns-uart- > r1p8, allowing us to continue using the cdns uart. > > Please wrap your replies. I am sorry, but may I know the preferred length of characters? > > How does this answer my concern about review tag? My bad. I should have obtained your consensus before proceeding with the changes to this patch, especially after dropping patch 5 as requested in version 1. > > Do you understand that my comments are inline under the exact line which > is questioned? Yes, lesson learned. > > >> > >>> --- > >>> Documentation/devicetree/bindings/serial/cdns,uart.yaml | 4 ++++ > >>> 1 file changed, 4 insertions(+) > >>> > >>> diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml > b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > >>> index e35ad1109efc..0d05305778f2 100644 > >>> --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml > >>> +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml > >>> @@ -20,6 +20,10 @@ properties: > >>> items: > >>> - const: xlnx,zynqmp-uart > >>> - const: cdns,uart-r1p12 > >>> + - description: UART controller for StarFive JH8100 SoC > >> > >> This is duplicating compatible, drop. > > Do you mean drop compatible for starfive,jh8100-uart ? > > No, drop description and use directly " - items" Ok. > > >> > >>> + items: > >>> + - const: starfive,jh8100-uart > >>> + - const: cdns,uart-r1p8 > >> > >> Don't add things to the end of the list, but keep order. I would suggest > >> to put it at the beginning, so before Xilinx. > > I'm trying to get what you're asking, but it's a bit confusing for me. So, I thought it might be easier if I just share the code below. > Please let me know if this addresses your comment? > > properties: > > compatible: > > oneOf: > > - description: UART controller for StarFive JH8100 SoC > > items: > > - const: cdns,uart-r1p8 > > Order is fixed, thanks. But drop description and bring back specific > compatible. You must have specific compatibles, always. Noted. > > > > Best regards, > Krzysztof
diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml index e35ad1109efc..0d05305778f2 100644 --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml @@ -20,6 +20,10 @@ properties: items: - const: xlnx,zynqmp-uart - const: cdns,uart-r1p12 + - description: UART controller for StarFive JH8100 SoC + items: + - const: starfive,jh8100-uart + - const: cdns,uart-r1p8 reg: maxItems: 1