Message ID | 20230328021912.177301-8-ychuang570808@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1922497vqo; Mon, 27 Mar 2023 19:29:21 -0700 (PDT) X-Google-Smtp-Source: AKy350YG+6JHC7a7Es4VG2xpm8sNsa6+ggoAN/vRBvu34IeIq7BIWurL5wUqSso314rPCGrvFhLt X-Received: by 2002:a17:902:f213:b0:19e:2869:7793 with SMTP id m19-20020a170902f21300b0019e28697793mr11237353plc.16.1679970561475; Mon, 27 Mar 2023 19:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679970561; cv=none; d=google.com; s=arc-20160816; b=bhdbx5hHV1PZrxBunbPwcLfvY6+VOAp2xeqeJDaK9YZfl8aCBXLja3JHGYSL7Rmpdf cKJNkUmoIGT11WgAHuR23OtXQ2JYA1h+5hY9hwL+LkHmbusbvWryO8xkvFrPXURLRce5 9+Y989Y/bn/lxR2l9CzP/Qh5y9/IuQsN9tkUdcvgySF46jCIbNgLPLp/tJr6oS7lB2p7 i7s+GqQvlx8t3qpBGIbdIGwALac96x260EchJlge1qIM2DLyzhVLNk4DA/772KyahCnc YqBIM7Q8G6cOyI/G0WsguW2JauNP9nEwfKIfT8t+sOJzib9XcQo5LIiMNletgniXkXgx A9lw== 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 :dkim-signature; bh=kx93At5pvdseQUWEuzHR4lKtVzLOoH38UjA3vGGOuXY=; b=kJvgTjmuTK3fGkX3wxpzLulK8s8pAifDxyES3IZl9EHw4Py7ACGOoSKs/UrT1UOpDd vAndnbjVDA5VCAsK7uvpPcqnT3gtQqVSdc/r+Rth+WAUXo6OF4JG/gRTZBUSmRtQmRRu Mbc4GcKEr659mjab68UEkgL/yTJ4mbM521nsRPaWcS39oJGrkqBMG/ifDzQR1Ouxc/WN QCfaC6l+OjN8FWIdRhgsPlS2mruCPMrh6k1oySRaAyvYstIH7x7Lw62EPHNnxisanuQ3 ko1+tucLbNw9lqeI8u2c+17wc0NEwXWpLxn32ogzpgKsy04DX8DeJ855P7q2yFssojL+ uvZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RERLN9XP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg15-20020a170902fb8f00b0019c2d2ec419si24562250plb.337.2023.03.27.19.29.07; Mon, 27 Mar 2023 19:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RERLN9XP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232641AbjC1CUV (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 27 Mar 2023 22:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjC1CUD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 22:20:03 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AE030E7; Mon, 27 Mar 2023 19:19:41 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id kq3so10248613plb.13; Mon, 27 Mar 2023 19:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679969980; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kx93At5pvdseQUWEuzHR4lKtVzLOoH38UjA3vGGOuXY=; b=RERLN9XPDJ4CkeXmJjO758Lf3jkYm4FC9uTPpJz2j/5ZvCmU9mdLeyL3YVn0BdVvtB CTcDE2BTfjSAm2bUsLEWVV9XkhZq8/xT3GlzQlpd/wrsmggAwRmXrKX3LrjFm9hURnBl 2rSMge0tEgqv6ToTXiT8G74Mjr3k5n2ejQJIa3+LaUmDXkb6FmW6IkO0xZnvrxnHCtVb eM6B15snhzYxhnrUoh2GRhQhcaMQ0tHQWI8jDopF69AFZemcwFRA0UJYntDZ8qk3I88h YzWuwySYmYgTFJY/lvI53vj/JGXPui1V1YrOvZXrxRoiuJRhFPVfpErzzvT+1W1yxbsb OG5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679969980; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kx93At5pvdseQUWEuzHR4lKtVzLOoH38UjA3vGGOuXY=; b=opNiwTXwcYiM8I/R83yO1FwWO5MmnGe6Cb/LwoBKRqCaykD9FclA59EDuqN/PG9iT2 TEGM+8CHkkYYQ7fZ7HERRmJ7mg9ZC7t/p6RhGVmze2Hypv8f2fh5/Q1HfB2D9z5EbWvi W2SiC/JHp9ohkUmRaUytfWlIXHcQpqy9iMOMF8fbPAvKTrwINLJCsoEKo8LSrrC2FCX+ GC1Ehgc9wYXDvmwGDvwUPit0xrknzE4s3wb+QRgyDJ3X+UzsLBCa9Oq5Jg34Yyk5feHq fVy3RoXDWWYgRAeot+FlTKGkxQnxNd1aQjJ33K6yhpfcDPaZuW3ERg4PbQp4TnbSc+Yt fceQ== X-Gm-Message-State: AAQBX9cl6RLJQ4FvAhQQP+g2MqfjDkdF9CVnTyyJY39D0O0nE4bq3Z/L XnRFFLzVXJsOot5WuNfbGa4= X-Received: by 2002:a17:90b:1d8e:b0:23f:37b6:48f4 with SMTP id pf14-20020a17090b1d8e00b0023f37b648f4mr14969229pjb.43.1679969980041; Mon, 27 Mar 2023 19:19:40 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id f17-20020a17090ac29100b00232cc61e16bsm5029301pjt.35.2023.03.27.19.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 19:19:39 -0700 (PDT) From: Jacky Huang <ychuang570808@gmail.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, arnd@arndb.de, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH v6 07/12] dt-bindings: serial: Document ma35d1 uart controller Date: Tue, 28 Mar 2023 02:19:07 +0000 Message-Id: <20230328021912.177301-8-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328021912.177301-1-ychuang570808@gmail.com> References: <20230328021912.177301-1-ychuang570808@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761576811109029334?= X-GMAIL-MSGID: =?utf-8?q?1761576811109029334?= |
Series |
Introduce Nuvoton ma35d1 SoC
|
|
Commit Message
Jacky Huang
March 28, 2023, 2:19 a.m. UTC
From: Jacky Huang <ychuang3@nuvoton.com> Add documentation to describe nuvoton ma35d1 uart driver bindings. Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> --- .../serial/nuvoton,ma35d1-serial.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml
Comments
On 28/03/2023 04:19, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add documentation to describe nuvoton ma35d1 uart driver bindings. > This depends on clock patches, so it must be taken together. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
Dear Krzysztof, Thanks for your review. On 2023/3/29 下午 04:20, Krzysztof Kozlowski wrote: > On 28/03/2023 04:19, Jacky Huang wrote: >> From: Jacky Huang <ychuang3@nuvoton.com> >> >> Add documentation to describe nuvoton ma35d1 uart driver bindings. >> > This depends on clock patches, so it must be taken together. > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > Best regards, > Krzysztof > OK, I will combine this patch with the clock patch. Best regards, Jacky Huang
On 29/03/2023 10:44, Jacky Huang wrote: > Dear Krzysztof, > > > Thanks for your review. > > > On 2023/3/29 下午 04:20, Krzysztof Kozlowski wrote: >> On 28/03/2023 04:19, Jacky Huang wrote: >>> From: Jacky Huang <ychuang3@nuvoton.com> >>> >>> Add documentation to describe nuvoton ma35d1 uart driver bindings. >>> >> This depends on clock patches, so it must be taken together. >> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> >> Best regards, >> Krzysztof >> > > OK, I will combine this patch with the clock patch. I don't know what you mean by "combine", but I don't think this is what we want. You must clearly state all dependencies and patch merging strategy/way. Best regards, Krzysztof
On 2023/3/30 下午 03:33, Krzysztof Kozlowski wrote: > On 29/03/2023 10:44, Jacky Huang wrote: >> Dear Krzysztof, >> >> >> Thanks for your review. >> >> >> On 2023/3/29 下午 04:20, Krzysztof Kozlowski wrote: >>> On 28/03/2023 04:19, Jacky Huang wrote: >>>> From: Jacky Huang <ychuang3@nuvoton.com> >>>> >>>> Add documentation to describe nuvoton ma35d1 uart driver bindings. >>>> >>> This depends on clock patches, so it must be taken together. >>> >>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>> >>> Best regards, >>> Krzysztof >>> >> OK, I will combine this patch with the clock patch. > I don't know what you mean by "combine", but I don't think this is what > we want. You must clearly state all dependencies and patch merging > strategy/way. > > Best regards, > Krzysztof > Dear Krzysztof, I may be misunderstanding your request. I thought it was moving the "nuvoton,ma35d1-serial.yaml" to the patch of nuvoton,ma35d1-clk.h. Would you please provide guidance what should I do next on this [PATCH v6 07/12]. Thank you. Best regards, Jacky Huang
On Thu, Mar 30, 2023 at 06:52:11PM +0800, Jacky Huang wrote: > > > On 2023/3/30 下午 03:33, Krzysztof Kozlowski wrote: > > On 29/03/2023 10:44, Jacky Huang wrote: > > > Dear Krzysztof, > > > > > > > > > Thanks for your review. > > > > > > > > > On 2023/3/29 下午 04:20, Krzysztof Kozlowski wrote: > > > > On 28/03/2023 04:19, Jacky Huang wrote: > > > > > From: Jacky Huang <ychuang3@nuvoton.com> > > > > > > > > > > Add documentation to describe nuvoton ma35d1 uart driver bindings. > > > > > > > > > This depends on clock patches, so it must be taken together. > > > > > > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > > > > > > Best regards, > > > > Krzysztof > > > > > > > OK, I will combine this patch with the clock patch. > > I don't know what you mean by "combine", but I don't think this is what > > we want. You must clearly state all dependencies and patch merging > > strategy/way. > > > > Best regards, > > Krzysztof > > > > Dear Krzysztof, > > > I may be misunderstanding your request. > I thought it was moving the "nuvoton,ma35d1-serial.yaml" to the patch of > nuvoton,ma35d1-clk.h. > Would you please provide guidance what should I do next on this [PATCH v6 > 07/12]. Thank you. The only combining you should do is putting the 2 patches in the same series. Combining to 1 patch would be wrong. Your other option is just drop the header in the example and use the raw numbers. Then there is no dependency to manage and each subsystem maintainer can take the relevant patches. Rob
On 2023/3/30 下午 09:12, Rob Herring wrote: > On Thu, Mar 30, 2023 at 06:52:11PM +0800, Jacky Huang wrote: >> >> On 2023/3/30 下午 03:33, Krzysztof Kozlowski wrote: >>> On 29/03/2023 10:44, Jacky Huang wrote: >>>> Dear Krzysztof, >>>> >>>> >>>> Thanks for your review. >>>> >>>> >>>> On 2023/3/29 下午 04:20, Krzysztof Kozlowski wrote: >>>>> On 28/03/2023 04:19, Jacky Huang wrote: >>>>>> From: Jacky Huang <ychuang3@nuvoton.com> >>>>>> >>>>>> Add documentation to describe nuvoton ma35d1 uart driver bindings. >>>>>> >>>>> This depends on clock patches, so it must be taken together. >>>>> >>>>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>>> >>>>> Best regards, >>>>> Krzysztof >>>>> >>>> OK, I will combine this patch with the clock patch. >>> I don't know what you mean by "combine", but I don't think this is what >>> we want. You must clearly state all dependencies and patch merging >>> strategy/way. >>> >>> Best regards, >>> Krzysztof >>> >> Dear Krzysztof, >> >> >> I may be misunderstanding your request. >> I thought it was moving the "nuvoton,ma35d1-serial.yaml" to the patch of >> nuvoton,ma35d1-clk.h. >> Would you please provide guidance what should I do next on this [PATCH v6 >> 07/12]. Thank you. > The only combining you should do is putting the 2 patches in the same > series. Combining to 1 patch would be wrong. > > Your other option is just drop the header in the example and use the > raw numbers. Then there is no dependency to manage and each subsystem > maintainer can take the relevant patches. > > Rob Dear Rob, Thanks for your detailed explanation. I got it now. Best regards, Jacky Huang
diff --git a/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml b/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml new file mode 100644 index 000000000000..a76af0f6009b --- /dev/null +++ b/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/nuvoton,ma35d1-serial.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 Universal Asynchronous Receiver/Transmitter (UART) + +maintainers: + - Min-Jen Chen <mjchen@nuvoton.com> + - Jacky Huang <ychuang3@nuvoton.com> + +allOf: + - $ref: serial.yaml + +properties: + compatible: + const: nuvoton,ma35d1-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> + + serial@40700000 { + compatible = "nuvoton,ma35d1-uart"; + reg = <0x40700000 0x100>; + interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk UART0_GATE>; + }; +...