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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 F1154C4743C for ; Fri, 4 Jun 2021 20:53:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AB96061263 for ; Fri, 4 Jun 2021 20:53:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB96061263 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=MV0N59Uht6U7DH97pzJRN8xkKuAnZjG4cEOlgcowgiA=; b=A/sYkOeub/bWq8 m0A2C8asZFo9Au+kAsVj6MMwg5W3tCr5eHyKEvq+K9tfEF96ilq1a4IvFbrY+BjraVjSVcJEO9gRv OLBdDAfOOY+6REAJFq+tn2/1KAGMjD50XqT0sXXCaHEnTUu+ExzpFFKyxg8/KsUQriLX0uHlpU26g lOvUZq5cS2pW8vfnc7Wk+P2YPIM6b+gfSkfGXX742jh5TsHQ3a22YfKyILZp7RuzFFY1VYmAnGbNH KbCPcMWjmIcI5vWVvRuBqGY9f6bpZ8/TUXNVlimyZVLyQpJvY1b0crWSYX74Sn7CyiV5+1vgpJnuU BLpaKa+2OJEHkeceQyag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpGng-00FBFd-Ek; Fri, 04 Jun 2021 20:52:16 +0000 Received: from mail-oi1-f182.google.com ([209.85.167.182]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpGnZ-00FBEl-P9 for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 20:52:13 +0000 Received: by mail-oi1-f182.google.com with SMTP id a21so11047485oiw.3 for ; Fri, 04 Jun 2021 13:52:09 -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=dCbBPCnkqh8Drs+wvzuQjooL3M/Ka+1PXP7SXhSYbME=; b=Qpw7Gb+ghZtE8I/W6cadf3ZnafkPBzaZoJ2lgh8vxCd3GiDp00SRcuFUhdcQ0G7fIc ZneuMwWvvahBF4F42XMXWPxGibqMdB+N+QK67K27PD0yTxRvMdB27QQQQHt7i37QiRml EV3WVlbXatDldG5Z/f28AMKcNh35KTSR6rFJqVvb/n4La8a74eQ3TM9WXVrYI742EstL iXLpmxD8iXOrDLg4/Fw6djv6crUye0Veo+qYJZwJrKOEYS4lWFuLb3C1nGhIPjH5smk6 y+H87IUJUkZr0YD/mORy4UWhWlJM71VxA0mIAfOxkrOBLV/8EXigAq4aogO/YMFazviw Hhvw== X-Gm-Message-State: AOAM533TnyP+qxtnDSdJbqlYmcCnwUOI4P5SxBtTj462tgNEmzFiN8ow lt71LZa5rQomIoqxD4AdmISG25ixcA== X-Google-Smtp-Source: ABdhPJyJwckPBpX8reCPy0nYAhTu9MAYthQi8nlQw+pMLWQNCXQ9h3Khxkk0+OAbNHw0w4RG8oeoEg== X-Received: by 2002:aca:4a82:: with SMTP id x124mr3659326oia.43.1622839928655; Fri, 04 Jun 2021 13:52:08 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m189sm683532oif.45.2021.06.04.13.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 13:52:07 -0700 (PDT) Received: (nullmailer pid 3894844 invoked by uid 1000); Fri, 04 Jun 2021 20:52:06 -0000 Date: Fri, 4 Jun 2021 15:52:06 -0500 From: Rob Herring To: Vignesh Raghavendra Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Linux ARM Mailing List Subject: Re: [PATCH] dt-bindings: serial: Move omap-serial.txt to YAML schema Message-ID: <20210604205206.GB3885095@robh.at.kernel.org> References: <20210527165636.939-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210527165636.939-1-vigneshr@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_135209_851628_39BF0A2D X-CRM114-Status: GOOD ( 24.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Thu, May 27, 2021 at 10:26:36PM +0530, Vignesh Raghavendra wrote: > Convert serial-omap.txt to YAML schema for better checks and documentation. > > Signed-off-by: Vignesh Raghavendra > --- > .../bindings/serial/omap_serial.txt | 40 ------ > .../bindings/serial/ti,omap4-uart.yaml | 116 ++++++++++++++++++ > 2 files changed, 116 insertions(+), 40 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/serial/omap_serial.txt > create mode 100644 Documentation/devicetree/bindings/serial/ti,omap4-uart.yaml > > diff --git a/Documentation/devicetree/bindings/serial/omap_serial.txt b/Documentation/devicetree/bindings/serial/omap_serial.txt > deleted file mode 100644 > index c2db8cabf2ab..000000000000 > --- a/Documentation/devicetree/bindings/serial/omap_serial.txt > +++ /dev/null > @@ -1,40 +0,0 @@ > -OMAP UART controller > - > -Required properties: > -- compatible : should be "ti,am64-uart", "ti,am654-uart" for AM64 controllers > -- compatible : should be "ti,j721e-uart", "ti,am654-uart" for J721E controllers > -- compatible : should be "ti,am654-uart" for AM654 controllers > -- compatible : should be "ti,omap2-uart" for OMAP2 controllers > -- compatible : should be "ti,omap3-uart" for OMAP3 controllers > -- compatible : should be "ti,omap4-uart" for OMAP4 controllers > -- compatible : should be "ti,am4372-uart" for AM437x controllers > -- compatible : should be "ti,am3352-uart" for AM335x controllers > -- compatible : should be "ti,dra742-uart" for DRA7x controllers > -- reg : address and length of the register space > -- interrupts or interrupts-extended : Should contain the uart interrupt > - specifier or both the interrupt > - controller phandle and interrupt > - specifier. > -- ti,hwmods : Must be "uart", n being the instance number (1-based) > - > -Optional properties: > -- clock-frequency : frequency of the clock input to the UART > -- dmas : DMA specifier, consisting of a phandle to the DMA controller > - node and a DMA channel number. > -- dma-names : "rx" for receive channel, "tx" for transmit channel. > -- rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt > -- rs485-rts-active-high: drive RTS high when sending (default is low). > -- clocks: phandle to the functional clock as per > - Documentation/devicetree/bindings/clock/clock-bindings.txt > - > -Example: > - > - uart4: serial@49042000 { > - compatible = "ti,omap3-uart"; > - reg = <0x49042000 0x400>; > - interrupts = <80>; > - dmas = <&sdma 81 &sdma 82>; > - dma-names = "tx", "rx"; > - ti,hwmods = "uart4"; > - clock-frequency = <48000000>; > - }; > diff --git a/Documentation/devicetree/bindings/serial/ti,omap4-uart.yaml b/Documentation/devicetree/bindings/serial/ti,omap4-uart.yaml > new file mode 100644 > index 000000000000..b3e426c24a9e > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/ti,omap4-uart.yaml > @@ -0,0 +1,116 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/serial/ti,omap4-uart.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Bindings for 8250 compliant UARTs on TI's OMAP and K3 SoCs > + > +maintainers: > + - Vignesh Raghavendra > + > +allOf: > + - $ref: /schemas/serial/serial.yaml# > + - $ref: /schemas/serial/rs485.yaml# > + > +properties: > + compatible: > + oneOf: > + - enum: > + - ti,am3352-uart > + - ti,am4372-uart > + - ti,am654-uart > + - ti,dra742-uart > + - ti,omap2-uart > + - ti,omap3-uart > + - ti,omap4-uart > + - items: > + - enum: > + - ti,am64-uart > + - ti,j721e-uart > + - const: ti,am654-uart > + > + ti,hwmods: > + description: > + Must be "uart", n being the instance number (1-based) > + This property is applicable only on legacy platforms mainly omap2/3 > + and ti81xx and should not be used on other platforms. > + $ref: /schemas/types.yaml#/definitions/string > + deprecated: true > + > + dmas: > + minItems: 1 > + maxItems: 2 > + > + dma-names: > + items: > + - const: tx > + - const: rx > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 > + maxItems: 2 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: fclk > + > + reg-shift: > + const: 2 blank line > + reg-io-width: > + const: 4 How are these 2 optional? > + > + rts-gpios: true > + cts-gpios: true > + dtr-gpios: true > + dsr-gpios: true > + rng-gpios: true > + dcd-gpios: true > + rs485-rts-delay: true > + rs485-rts-active-low: true > + rs485-rx-during-tx: true > + rs485-rts-active-high: true > + linux,rs485-enabled-at-boot-time: true > + rts-gpio: true > + power-domains: true > + clock-frequency: true > + current-speed: true > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +if: > + properties: > + compatible: > + oneOf: > + - const: ti,omap2-uart > + - const: ti,omap3-uart > + - const: ti,omap4-uart > + > +then: > + properties: > + ti,hwmods: > + items: > + - pattern: "^uart([1-9])$" > + > +else: > + properties: > + ti,hwmods: false > + > +examples: > + - | > + uart4: serial@49042000 { Drop unused label. > + compatible = "ti,omap3-uart"; > + reg = <0x49042000 0x400>; > + interrupts = <80>; > + clock-frequency = <48000000>; > + }; > -- > 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel