Message ID | 20230315072902.9298-11-ychuang570808@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2188972wrd; Wed, 15 Mar 2023 00:43:27 -0700 (PDT) X-Google-Smtp-Source: AK7set/MwP9kSoW0NHWoNyrV1Ov+wy085acwu8x7dWzB9uPSJwOdNjQQ/XooQr+99UuJ51TZztlE X-Received: by 2002:a05:6a20:4f24:b0:d4:1673:9a42 with SMTP id gi36-20020a056a204f2400b000d416739a42mr9298082pzb.18.1678866207361; Wed, 15 Mar 2023 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678866207; cv=none; d=google.com; s=arc-20160816; b=iE1oHz6qeufuK3QANwMTAo51guF7d/FFIHG1tfW/prJtJkbJyeSV56WHz95PSVq3JC 5UuOarpbiRXl64PeJOYTxbcjJkt35MfhCvDYUdV1h7aTsRUeX3ou21rkwZvYRCMULljW DkA5w+TvMdG+6efTVvJquDGu4EHBhoM9755rRqVKuZ7grKza0zE8DnpMZ9GQOCoLwswv fadR2GcSanSzzVXJ/4QKP868qOsH46IEpP0RWE/YD0mFGyXbxXOBNMciOpySrxaZ/Flv ntWfCgBuAY9YZRHt6E8uhqaah24ltghjC3itBYflruQBXTYwnzl1drbMNjUgGdf+pRij qcNw== 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=/fldN9Z/nRJbM0Lzjn6Ao+M0+u5Fjd53Dn/A88mT7n0=; b=QTCscI67B+/RdyBint/pep5/hNy+68bvOoMBNbJ6/5K2DHT0zx8DNLfWwdkUZELbr4 LuthCoGfYf/5WA4ntzyLlTVY7mqBwChege2uW+mDFsm6AMIWbkKXb/CyQnYeQZmRi21F 2zEHEGEw8K+QHStDKQp99f9HFZqmoHCKb9Np1gzdQzhZ9LChTqfGxfr9XRPy8aoF8l7W QQ+wutq1uvSBf+GCURAbk9PA32pz15pCZRfyJszfIUNtw2/CzwuB/l575Hxa5I0t/liG EyOdwTfg0I7F55jq2ruJAT1Ci/nv9ZFRK7GcfoWRX9gtpszTFLMPjjRD9ec1HYQyAzzP ge4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cCfPw0XN; 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 b127-20020a62cf85000000b005a8cf0d93cbsi2351898pfg.3.2023.03.15.00.43.15; Wed, 15 Mar 2023 00:43:27 -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=cCfPw0XN; 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 S229769AbjCOHcC (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Wed, 15 Mar 2023 03:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbjCOHao (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Mar 2023 03:30:44 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8A06BC20; Wed, 15 Mar 2023 00:29:38 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id y2so17849616pjg.3; Wed, 15 Mar 2023 00:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678865374; 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=/fldN9Z/nRJbM0Lzjn6Ao+M0+u5Fjd53Dn/A88mT7n0=; b=cCfPw0XNXBoP3Cx5ZNn2fiS+ZvnSFCz2f5VT3HrzQI1b/wr/oa+iyA02fJcfmFS4AM F5hsc6Um2b/gTBgB9CVGzxh4ccLuTThJZ6TofGjsoikw2mwpNrt4A+QGIKAf4TD70tlb 6uoS44Vqx6m2becMWof1Ni5wiI0rXE0DBJhtedOgJ1kFZdB5Y5EE09QI2f5nIDRoyrkm BI5fwQjdQQO/FLg6fD6Bo0fX4DLBm2rRIs+nXDg8kCUtL5Pc5x0rKEiMCJITB8rs+0Wx zn2nB/b0HpgxuwghxnbISGzuVbt5Z2pupJIoCaOUDWT9+9MuCLPRogExRlmTkJSrEaR5 corg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678865374; 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=/fldN9Z/nRJbM0Lzjn6Ao+M0+u5Fjd53Dn/A88mT7n0=; b=4mz6wFuDmaDVduSpp2ok+3FWnRcct3nfirWiBbnnFz1DgYg+b7UrdUp91op3HRwN8w rGkIJd8qvL5mZcng8Uc95EhrQv4B0jLTUQuBO7q/14lXRMIw6FxBJhHgKL/oTSRGIlIP BBVlQq37pQJ5uuYQiNGHfOUgwBVVMb8Ca1ckieRH2aqErjV8yp6CQmz8UsjgKL8za9mi 79jwPiEH9CqDK+gA1rETh4JffDuJ3Vc/qQYH/GwL2HstekgjpAIPsy0vcQRDLOlNmyav Xl2xZhGkkpZN2/pvLDbO1V0P9/YomKWJ11cIJweamjSO2rgs7lxlrxhuCiUuj5rrCH5w I4Cg== X-Gm-Message-State: AO0yUKXubKik4Cy/jpPCZKm3Fbh0ZdO0buZunEaKY3cZlTD1e7UM7zk5 W8tgM/THhEs1CTWS0uB/LSM= X-Received: by 2002:a17:902:db07:b0:19b:c37:25e7 with SMTP id m7-20020a170902db0700b0019b0c3725e7mr1557259plx.66.1678865373824; Wed, 15 Mar 2023 00:29:33 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id kz11-20020a170902f9cb00b001a0667822c8sm2740003plb.94.2023.03.15.00.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 00:29:33 -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, schung@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH 10/15] dt-bindings: serial: Document ma35d1 uart controller bindings Date: Wed, 15 Mar 2023 07:28:57 +0000 Message-Id: <20230315072902.9298-11-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230315072902.9298-1-ychuang570808@gmail.com> References: <20230315072902.9298-1-ychuang570808@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,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,URIBL_BLOCKED autolearn=ham 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?1760418812647495080?= X-GMAIL-MSGID: =?utf-8?q?1760418812647495080?= |
Series |
Introduce Nuvoton ma35d1 SoC
|
|
Commit Message
Jacky Huang
March 15, 2023, 7:28 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 | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml
Comments
On 15/03/2023 08:28, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add documentation to describe nuvoton ma35d1 uart driver bindings. Subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. > > Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> > --- > .../serial/nuvoton,ma35d1-serial.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml > > 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..9daa2efd4734 > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml > @@ -0,0 +1,52 @@ > +# 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" Drop quotes. Use some recent bindings as your starting point, so we do not have to give comments for things which were already fixed. > + > +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> > + > + aliases { > + serial0 = &uart0; > + }; Drop aliases. > + > + uart0:serial@40700000 { Drop label Best regards, Krzysztof
Dear Krzysztof, Thanks for your advice. On 2023/3/16 下午 03:40, Krzysztof Kozlowski wrote: > On 15/03/2023 08:28, Jacky Huang wrote: >> From: Jacky Huang <ychuang3@nuvoton.com> >> >> Add documentation to describe nuvoton ma35d1 uart driver bindings. > Subject: drop second/last, redundant "bindings". The "dt-bindings" > prefix is already stating that these are bindings. I will fix it. >> Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> >> --- >> .../serial/nuvoton,ma35d1-serial.yaml | 52 +++++++++++++++++++ >> 1 file changed, 52 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml >> >> 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..9daa2efd4734 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml >> @@ -0,0 +1,52 @@ >> +# 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" > Drop quotes. Use some recent bindings as your starting point, so we do > not have to give comments for things which were already fixed. Got it, I will remove the quotes. >> + >> +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> >> + >> + aliases { >> + serial0 = &uart0; >> + }; > Drop aliases. I will fix it. >> + >> + uart0:serial@40700000 { > Drop label OK, I will remove the label. > > Best regards, > Krzysztof > 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..9daa2efd4734 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/nuvoton,ma35d1-serial.yaml @@ -0,0 +1,52 @@ +# 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> + + aliases { + serial0 = &uart0; + }; + + uart0:serial@40700000 { + compatible = "nuvoton,ma35d1-uart"; + reg = <0x40700000 0x100>; + interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk UART0_GATE>; + }; +...