Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2267500pxj; Sun, 13 Jun 2021 14:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvOxh1cYtKDPwhf3cy/gKUrK7P0pRMq3oRdehEUjwxfM/rkrc2wBlm33RwVbPHJOCu6XfP X-Received: by 2002:a05:6402:1001:: with SMTP id c1mr13857828edu.26.1623620260291; Sun, 13 Jun 2021 14:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623620260; cv=none; d=google.com; s=arc-20160816; b=vFl3Cw8G8nhXMdE7OwIC+8pGiSlW9jXeAhftWle2AFmuPJJ2H7Zh8UG3Khj5Tqg34y jvvv+3/t8wEjtnkoM75vkT7l0mKP+ye0YK1oiuyZsf1shZjMK5RY1b3SNYHPyXgl/I4u bPW3gH+wpFvzvCNK+NIQR3LF/VZBsthfB1fDab5BLWm8Cy84d42rq1xshJqQuJI6z/Cj kNO0bUh7veRX6Mz17/FbtKm2EhDKjleFWRJx2zud90UU2NanqUyIYCorAGomqEEsggKE ZqMRIUfZqkhrnPICLLE0joMUaFoQ4b0NSsxaZ6rfK/zrXVl7cY4JPiDziIEQv2yS85Ef XOgQ== 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=fQPf7c77rDLEgZ1NfrHpGynYMU3QOBuFHK0NQ0eYdKU=; b=WPQWTeOIiAvrvUJ8AJmBngOeGCle2Bi9l/SVT+BSFKXd8/RrKjNzMJa/Ah8VTJQdRJ fviMpEkp34aFuqFS7Z7NyWl2WXCPSRpHJHecpxqVRUuGqMJbQjPO5XEIdnOJMYPjlZwM dPvEHW4hKgRCfgRp5UFRBP2pPfvSCWxhKlNSd709ooPe+N/CTmOcrUmUgHrgc+miHD5d EFpsb6SPASNuBBLtLwbY4eoGUUanHjr+j5URuuzkbKxXy/9PYDRzYq01hnZNq5h13rDj +vD2Gu1oe1yXgJh79W5SyH0l3tbcL65GkoB6ajtzc5rhdppzm57+FoKQV+JStAI8kc9P YR6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=I4rQb98Z; 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 k11si10298591edi.278.2021.06.13.14.37.16; Sun, 13 Jun 2021 14:37:40 -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=I4rQb98Z; 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 S232089AbhFMVg2 (ORCPT + 99 others); Sun, 13 Jun 2021 17:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232020AbhFMVg1 (ORCPT ); Sun, 13 Jun 2021 17:36:27 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D5D1C061574 for ; Sun, 13 Jun 2021 14:34:14 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id e22so7070235pgv.10 for ; Sun, 13 Jun 2021 14:34:14 -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=fQPf7c77rDLEgZ1NfrHpGynYMU3QOBuFHK0NQ0eYdKU=; b=I4rQb98ZvZq5VRimgDKX8o2Ui8lYV4llSJ0YifEcVtOgqrTvfjzLRH9BAJabux9iAh 1XlE4M0C0WXnvoGFxr83//KgDLI1Z9Y8+9+Y8CEM4d7XndiarrMCCMunR/0H2kYRJn1d 6dqXa+0BqIRIywGKqz8yh24Zy8ESSV0KHhBlGHEUrGkgyDmWqruftZYqg/qFKG2mLBfR 5hScJ+JnWHyfhklaJYrblIH80QEPFOo601LMYILYXsOdmlb6ti4YSRpmCsJGISkgYPUc 6Y47NiQPZaBUDoOB09SU+oUvVjxolyytF+EoaLg7Da3fjJgsvF3B0JsW8yG60VKmdAOr kXKw== 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=fQPf7c77rDLEgZ1NfrHpGynYMU3QOBuFHK0NQ0eYdKU=; b=d7+ZbgCqj5FQ/iaVJqcKDvDOLZClLrIjjKasHt+UViHhM1iMF7THEHTK3cBpr7aYJG INBHG1YX+8xDE/aznXRH6B1T2irwX3BPkszz5dvEJX0dqiVisuk2CCEcfTql5Am3wh5i L4D0yFUQqLBVxnw6xMvEMw15IFcbJSxtji0t1L7GM16BIBOfuNd/3AXA7XnXnfRbRekk xo7Z/idaVfidBf+ea7S/luQGyvfyMGysfwaAc7Z863iXpkh8+t/f/pZhgaOmrytKPJb4 s2Qdv+BnYuq0I13rCMM8XtQ2Zy/cX4PQ8ZoYrCI0aRn0NIZV6sXrrcMjv5ldcMNWkzSN 4mSg== X-Gm-Message-State: AOAM531Au8AjSXGu1DQWCmju+UXzCCABBlGzdlpws/pWJRPY1AYBOP3U ECBWR584mHU39jwo1CBYcw/F X-Received: by 2002:aa7:8003:0:b029:2eb:2f8f:a320 with SMTP id j3-20020aa780030000b02902eb2f8fa320mr19168146pfi.70.1623620053936; Sun, 13 Jun 2021 14:34:13 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id 11sm10305193pfh.182.2021.06.13.14.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 14:34:13 -0700 (PDT) From: Nobuhiro Iwamatsu To: robh@kernel.org, gregkh@linuxfoundation.org, michal.simek@xilinx.com Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, shubhrajyoti.datta@xilinx.com, navam@xilinx.com, peter.crosthwaite@xilinx.com, soren.brinkmann@xilinx.com, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: serial: convert Cadence UART bindings to YAML Date: Mon, 14 Jun 2021 06:33:59 +0900 Message-Id: <20210613213359.296400-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 --- .../devicetree/bindings/serial/cdns,uart.txt | 27 -------- .../devicetree/bindings/serial/cdns,uart.yaml | 68 +++++++++++++++++++ 2 files changed, 68 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..ce467fa464bfd0 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml @@ -0,0 +1,68 @@ +# 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: + - enum: + - xlnx,xuartps + - cdns,uart-r1p8 + - description: UART controller for Zynq Ultrascale+ MPSoC + items: + - enum: + - xlnx,zynqmp-uart + - 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 + +additionalProperties: false + +examples: + - | + serial@e0000000 { + compatible = "cdns,uart-r1p8"; + clocks = <&clkc 23>, <&clkc 40>; + clock-names = "uart_clk", "pclk"; + reg = <0xE0000000 0x1000>; + interrupts = <0 27 4>; + }; -- 2.32.0