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=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 0E82BC433DF for ; Tue, 18 Aug 2020 02:19:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD2D5206DA for ; Tue, 18 Aug 2020 02:19:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZQ+YfVqc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD2D5206DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ju8vMWOM1OVNiIJRI9d2y+Qg9te0MDNtGDGrgRfVn88=; b=ZQ+YfVqcS7GDY3saFkxS2FNut hhTwDYrQhbhOmzIK1LeT8gm2LnBynT12DoeeEJgXjKKshZukgVCY+vltL9BJx0TisHKFOIN3gCymM NWX7xP2WyaV5VVZ56YPPUz4OEgf+b/8SBKUGRL0S6+ZJhqRXARW+n5pmC0WgdtsKptINC6xIjWfKT YDMBKpaFr3fd5sLU2P6e4oXsy5XlOvETM7C7AYJNm20MnwXX5pGQEG1eo9OAxir7wh3ZKJpoCSxQc v0vioKF3nBEwj+T/X6Zrcs8MOAf8vzrIIR73UQFi9n1yo907zpH9mD4Ipa+0chaokp/UK7EVrSyNj NuhOtuoeQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7rCJ-0001oK-HH; Tue, 18 Aug 2020 02:17:59 +0000 Received: from mail-il1-f196.google.com ([209.85.166.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7rCF-0001nx-SA for linux-arm-kernel@lists.infradead.org; Tue, 18 Aug 2020 02:17:56 +0000 Received: by mail-il1-f196.google.com with SMTP id t4so16327668iln.1 for ; Mon, 17 Aug 2020 19:17:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=L2DmIHf8Mh8SNKm1ILcK/25kWLaKGTlrOIMEK4j6/RY=; b=ma7SEWJDF4D4NGebL59WRuKH6KWpQqqGNfa6FN/r0hdqNYzmx5O8CsBm3/7yvvSKHx 6TUJ03Okm2uUp8fZPl+Jzdwfl4zvPvWHyuNDfbDEUw8H+ahB59HSsMcYkVJ76df2D7SC WKPTHskD4ycsAQl/z6wvVyfg+YLlpZ17/KsvDCFVqleGC8Kc3pf35sveRP95SNC/ftBL 86gdMf12c/IqCEZPE+zCkprBjdj5BteJmcvrSn8FanQTseViFRHAy+K0L2MshnvD+RcQ Qill/UYIF9UtpFO1FqPozHFW+Le8WGIqYLq8a2uxgLg9N1U00qFAM9Q+lxagNtQgyCSQ TO2w== X-Gm-Message-State: AOAM532M2vHXt5PGfo3vX/YFIvcf3g49wZx8e2wsFyO8H2f/pCKvS7u+ a0EyrxhUkg1dOKdviyPA2w== X-Google-Smtp-Source: ABdhPJzTb9iSNtnstPFXCiIr/7pUPmze817MTsOvNPQH0tN118nNw17Oexeqp2mDQdOIwbH7Kkg05Q== X-Received: by 2002:a92:d4cf:: with SMTP id o15mr14177402ilm.160.1597717074835; Mon, 17 Aug 2020 19:17:54 -0700 (PDT) Received: from xps15 ([64.188.179.249]) by smtp.gmail.com with ESMTPSA id a11sm7422830ilh.74.2020.08.17.19.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 19:17:54 -0700 (PDT) Received: (nullmailer pid 2151391 invoked by uid 1000); Tue, 18 Aug 2020 02:17:52 -0000 Date: Mon, 17 Aug 2020 20:17:52 -0600 From: Rob Herring To: Anson Huang Subject: Re: [PATCH V2 4/5] dt-bindings: serial: Convert MXS auart to json-schema Message-ID: <20200818021752.GA2147074@bogus> References: <1597222284-32609-1-git-send-email-Anson.Huang@nxp.com> <1597222284-32609-4-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1597222284-32609-4-git-send-email-Anson.Huang@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_221755_962989_E6FE66BA X-CRM114-Status: GOOD ( 25.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, sboyd@kernel.org, shawnguo@kernel.org, mturquette@baylibre.com, galak@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Linux-imx@nxp.com, kernel@pengutronix.de, gregkh@linuxfoundation.org, festevam@gmail.com, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 12, 2020 at 04:51:23PM +0800, Anson Huang wrote: > Convert the MXS auart binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > changes since V1: > - update examples to align with i.MX23/i.MX28 clock bindings; > - add minItem to clocks/clock-names property as i.MX23/i.MX28 have optional clocks > property with one item. > --- > .../devicetree/bindings/serial/fsl-mxs-auart.txt | 53 ------------- > .../devicetree/bindings/serial/fsl-mxs-auart.yaml | 91 ++++++++++++++++++++++ > 2 files changed, 91 insertions(+), 53 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/serial/fsl-mxs-auart.txt > create mode 100644 Documentation/devicetree/bindings/serial/fsl-mxs-auart.yaml > > diff --git a/Documentation/devicetree/bindings/serial/fsl-mxs-auart.txt b/Documentation/devicetree/bindings/serial/fsl-mxs-auart.txt > deleted file mode 100644 > index 5c96d41..0000000 > --- a/Documentation/devicetree/bindings/serial/fsl-mxs-auart.txt > +++ /dev/null > @@ -1,53 +0,0 @@ > -* Freescale MXS Application UART (AUART) > - > -Required properties for all SoCs: > -- compatible : Should be one of fallowing variants: > - "fsl,imx23-auart" - Freescale i.MX23 > - "fsl,imx28-auart" - Freescale i.MX28 > - "alphascale,asm9260-auart" - Alphascale ASM9260 > -- reg : Address and length of the register set for the device > -- interrupts : Should contain the auart interrupt numbers > -- dmas: DMA specifier, consisting of a phandle to DMA controller node > - and AUART DMA channel ID. > - Refer to dma.txt and fsl-mxs-dma.txt for details. > -- dma-names: "rx" for RX channel, "tx" for TX channel. > - > -Required properties for "alphascale,asm9260-auart": > -- clocks : the clocks feeding the watchdog timer. See clock-bindings.txt > -- clock-names : should be set to > - "mod" - source for tick counter. > - "ahb" - ahb gate. > - > -Optional properties: > -- uart-has-rtscts : Indicate the UART has RTS and CTS lines > - for hardware flow control, > - it also means you enable the DMA support for this UART. > -- {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD > - line respectively. It will use specified PIO instead of the peripheral > - function pin for the USART feature. > - If unsure, don't specify this property. > - > -Example: > -auart0: serial@8006a000 { > - compatible = "fsl,imx28-auart", "fsl,imx23-auart"; > - reg = <0x8006a000 0x2000>; > - interrupts = <112>; > - dmas = <&dma_apbx 8>, <&dma_apbx 9>; > - dma-names = "rx", "tx"; > - cts-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; > - dsr-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; > - dcd-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; > -}; > - > -Note: Each auart port should have an alias correctly numbered in "aliases" > -node. > - > -Example: > - > -aliases { > - serial0 = &auart0; > - serial1 = &auart1; > - serial2 = &auart2; > - serial3 = &auart3; > - serial4 = &auart4; > -}; > diff --git a/Documentation/devicetree/bindings/serial/fsl-mxs-auart.yaml b/Documentation/devicetree/bindings/serial/fsl-mxs-auart.yaml > new file mode 100644 > index 0000000..5c4fa75 > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/fsl-mxs-auart.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/serial/fsl-mxs-auart.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale MXS Application UART (AUART) > + > +maintainers: > + - Kumar Gala Why is Kumar maintainer and that's a really old email address? > + > +allOf: > + - $ref: "serial.yaml" > + > +properties: > + compatible: > + enum: > + - fsl,imx23-auart > + - fsl,imx28-auart > + - alphascale,asm9260-auart > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + dmas: > + items: > + - description: DMA controller phandle and request line for RX > + - description: DMA controller phandle and request line for TX > + > + dma-names: > + items: > + - const: rx > + - const: tx > + > + clocks: > + items: > + - description: mod clock > + - description: ahb clock > + minItems: 1 > + > + clock-names: > + items: > + - const: mod > + - const: ahb > + minItems: 1 > + > + uart-has-rtscts: true > + rts-gpios: true > + cts-gpios: true > + dtr-gpios: true > + dsr-gpios: true > + rng-gpios: true > + dcd-gpios: true > + > +if: > + properties: > + compatible: > + contains: > + enum: > + - alphascale,asm9260-auart > +then: > + required: > + - clocks > + - clock-names > + > +required: > + - compatible > + - reg > + - interrupts > + - dmas > + - dma-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + aliases { > + serial0 = &auart0; > + }; > + > + auart0: serial@8006a000 { > + compatible = "fsl,imx28-auart"; > + reg = <0x8006a000 0x2000>; > + interrupts = <112>; > + dmas = <&dma_apbx 8>, <&dma_apbx 9>; > + dma-names = "rx", "tx"; > + clocks = <&clks 45>; > + }; > -- > 2.7.4 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel