Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp287015pxv; Thu, 15 Jul 2021 04:23:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+z4bYti80uogcdLy6SaH4EraYiOB/AZkt9JGAxc15ClA/hSDSadGfz9eGGZjDAR28G8a3 X-Received: by 2002:a92:d210:: with SMTP id y16mr2414276ily.295.1626348239349; Thu, 15 Jul 2021 04:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626348239; cv=none; d=google.com; s=arc-20160816; b=om4OnH+E+mDIx9Ll2QNHghrF5mfp1cattRMJC3ODl0q4qlIJpLMJn2OQsFTkAQkQJl P/LCYFrJHmqyzLauv1fjToDk3a8vFzMsCY02Y94ubgFHq27C5VPlBatePQBOla+KXndo c951yt2xkhveKhNgx5YMjFMH8NpiXIa5ENjLtJqCGXriKiFZ7mjLo2xZRCFuvyGHdYBc 4kWIGImlknTPE9yb6jj2MBTbsGRhKwzF0CcPR3gXY4mrwAWMaKqI+OdAjTYmXBBVCvj/ Ei90Qdv8Ts5P6fBfIWIMfJrVsKgLq7WeygQGh02FpRAxv5loXfmAOASIfVRiqmx3B8DH /5xw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8tGxs+ledb1QN4h36o9TBKNkqwYbwPt1Wseu2AbjCrI=; b=pTvEYin/zMvpVbD7Hoq2dAKv8e5Khbtlib8Q7GLhVwHpPneBczuIUC9cWHLlbcUR/6 16uVvGZuf87Mxg0qV1HU6PQ8aYC3kCKOSQNGlfqG0tzzlT8LQp88tgIzra8AEEx4kMRM rWxIPi2kuMzEfcrbtecda8XpqVwF4wSKTxo8hoDh3aiDYcLHFDge2UyeDkq/2LalVGbo IdLpQhG1LMzMaw36uUhHVdJEKy0a8rLSUDyOkSNGj0OiyHUC8wCthCq0P7AzyYNp7l24 URt1VkCTCqughxDNpz39qW3Y0mLQjT8MRYsf7QGmLiPdtMSn6BN4arVqMRZ9xWueIkSn GWhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=xgR65XM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si6304198ils.118.2021.07.15.04.23.45; Thu, 15 Jul 2021 04:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=xgR65XM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239044AbhGOJ0l (ORCPT + 99 others); Thu, 15 Jul 2021 05:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbhGOJ0l (ORCPT ); Thu, 15 Jul 2021 05:26:41 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C889C06175F for ; Thu, 15 Jul 2021 02:23:48 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id s18so5438482pgg.8 for ; Thu, 15 Jul 2021 02:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8tGxs+ledb1QN4h36o9TBKNkqwYbwPt1Wseu2AbjCrI=; b=xgR65XM8/M3g9Zqj7xaqRQnhswuu1Z76iXjfUDZynZ0GS4tz8L9cgKpkL1U8DuwUE4 7VOaeCOwVVH0ZXi3U6GOqsHKpduCxBXYzkYkXtp09u5PLbuKXkSC9A4Ozc7k34H+7wKU raaRIyy7bGhKIDr1KotUohQgu7rWcYnO8ljkkbZMilciT6KZmyRiL+hfEF/PIM5bs/1g PyXnJ1GkuLYhLDJisULz+7mJ67spIpQyT2JlNRvijudzGCurIhXBep8qEI9VF5weEl8r eP3ubc0RpE2dxVov3JlMz+8Tz+4NTCt1dXPy7yOm8r9sK5QuJ0UKsmRg6b82ZsiYPCDe 61Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8tGxs+ledb1QN4h36o9TBKNkqwYbwPt1Wseu2AbjCrI=; b=ej3uLZlibNBjt9zfZ+BWQ1/lhdMGcpy8RwNLUe5mVI+KhJ/h3iX7uSMGXOhDaMMF1M 3YWd7DM5ZJbUAbR3rrRFmYYV6fzbH+jp0Cc45ZqWa3kxQcZg+Cj/XMAckJJ8ButKCesh GZVxRCeOHIQ+xJnhGQdN4lSlxkyAZ4Ecqd9oX9sI5bGuA1IO14l+ncHlOk45UTte9SXp Nkh8Fyz495YZ1wHhwDmqibhZEbrnNCDXfxpb7HkFIqbegwHbB1e1O7K84mWyCGaIsNc9 Lb7tx47KcCPtcp1dNG3uFdaddnJkdnJYPbT1V14O4B9ecjrgXZqW8x0bopQR1RUXHlgb YRDw== X-Gm-Message-State: AOAM533k1BTt/IyBfZ5yzRqdi7Ar/5NvqQuIkBPQSO4DywYBm0Fwhjgy 6YqCylUCEkte8Ybkrn3AKirs X-Received: by 2002:a63:5117:: with SMTP id f23mr3605556pgb.200.1626341028027; Thu, 15 Jul 2021 02:23:48 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id w18sm5298816pjg.50.2021.07.15.02.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 02:23:47 -0700 (PDT) From: Nobuhiro Iwamatsu To: robh+dt@kernel.org, gregkh@linuxfoundation.org, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, navam@xilinx.com, peter.crosthwaite@xilinx.com, shubhrajyoti.datta@xilinx.com, soren.brinkmann@xilinx.com, Nobuhiro Iwamatsu Subject: [PATCH v2] dt-bindings: serial: convert Cadence UART bindings to YAML Date: Thu, 15 Jul 2021 18:22:52 +0900 Message-Id: <20210715092252.225740-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert serial for Cadence UART bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu --- v2: - Fix enum of compatible - Change from additionalProperties: false to unevaluatedProperties: false - Update compatible string in examples. .../devicetree/bindings/serial/cdns,uart.txt | 27 -------- .../devicetree/bindings/serial/cdns,uart.yaml | 66 +++++++++++++++++++ 2 files changed, 66 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/serial/cdns,uart.txt create mode 100644 Documentation/devicetree/bindings/serial/cdns,uart.yaml diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.txt b/Documentation/devicetree/bindings/serial/cdns,uart.txt deleted file mode 100644 index 4efc560f90abbd..00000000000000 --- a/Documentation/devicetree/bindings/serial/cdns,uart.txt +++ /dev/null @@ -1,27 +0,0 @@ -Binding for Cadence UART Controller - -Required properties: -- compatible : - Use "xlnx,xuartps","cdns,uart-r1p8" for Zynq-7xxx SoC. - Use "xlnx,zynqmp-uart","cdns,uart-r1p12" for Zynq Ultrascale+ MPSoC. -- reg: Should contain UART controller registers location and length. -- interrupts: Should contain UART controller interrupts. -- clocks: Must contain phandles to the UART clocks - See ../clocks/clock-bindings.txt for details. -- clock-names: Tuple to identify input clocks, must contain "uart_clk" and "pclk" - See ../clocks/clock-bindings.txt for details. - - -Optional properties: -- cts-override : Override the CTS modem status signal. This signal will - always be reported as active instead of being obtained from the modem status - register. Define this if your serial port does not use this pin - -Example: - uart@e0000000 { - compatible = "cdns,uart-r1p8"; - clocks = <&clkc 23>, <&clkc 40>; - clock-names = "uart_clk", "pclk"; - reg = <0xE0000000 0x1000>; - interrupts = <0 27 4>; - }; diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml new file mode 100644 index 00000000000000..fcdbe6f87e9808 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/cdns,uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence UART Controller Device Tree Bindings + +maintainers: + - Michal Simek + +allOf: + - $ref: /schemas/serial.yaml# + +properties: + compatible: + oneOf: + - 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 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: uart_clk + - const: pclk + + cts-override: + description: | + Override the CTS modem status signal. This signal will + always be reported as active instead of being obtained + from the modem status register. Define this if your serial + port does not use this pin. + type: boolean + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + uart0: serial@e0000000 { + compatible = "xlnx,xuartps", "cdns,uart-r1p8"; + clocks = <&clkc 23>, <&clkc 40>; + clock-names = "uart_clk", "pclk"; + reg = <0xE0000000 0x1000>; + interrupts = <0 27 4>; + }; -- 2.32.0