From patchwork Sun Jun 13 21:33:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 12317885 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 8D09CC48BDF for ; Sun, 13 Jun 2021 21:35:50 +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 566756120E for ; Sun, 13 Jun 2021 21:35:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 566756120E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wHjtZAKh9qGPKF4+K5R3yqFlcTDVquu2XEh4FtexYik=; b=X8UH29EhG/ZjIw NUHY/GyMz0/CNQQiYvCTSaljev5cp5QX1HwToP0yAni9WSddXFsyAwLWVso/W5G8ew3oGWn/CiksL /FP+6/eNx0+2V+D4AFSSssYCykyHv7RqrQcAxTl2wT7mV7MwPc76f29pfwcsY40VQF8gSZJT3wt3q p1zFVjlebv6xFRH62E00H3amEb4uk+HN+xI+deTz4VMPAABMLCx1auX4bv/TY4ez0qJYqDaylWko+ xE/gKWeEWkDu0N0vBEzE2PzZiBcADjEMFmFQDoJjraEJbEuf7UZ4AU4pXtqkgTI+D6ihfjca+7Cev yY8DfRir2d5GYvuhmfyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsXkI-00BKfz-RK; Sun, 13 Jun 2021 21:34:19 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsXkE-00BKfO-M5 for linux-arm-kernel@lists.infradead.org; Sun, 13 Jun 2021 21:34:16 +0000 Received: by mail-pg1-x532.google.com with SMTP id e20so7125274pgg.0 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=k2Jm2ZdVcFwtkDBqoxqvRSjzutuSW8NnrW53p+x0RG9c7ZhcKIhm94Jlqd+MtKbi63 xSXvTPbCeHX6uKbXCDQcr8XpGduEw6FpScuG6Kzjx/gMojWEXzcGA/iCfOLNWUBEebYO t0p3Q8yHUVP7gwMX07qLe154O1Cf8laBBjVV6f3GGnsXQEuvdGtz3jr6ygq89QYhZrRz KZHdQjjMQ7FybXUfiLgIsHGdhWgQutVl3+x4dUzW6fmTKZf4Rea2iu/ruQS5wbfLvfcT sUghLWl+nJmQaYqGjXBuWxXHLK5ndvuFxFoH4WIoqx+a0a2kl8s68sFAYvN2IvnHS4Uc 6q1Q== X-Gm-Message-State: AOAM532rByS/OjMmcRVUsyN7uOm1tTifJTPY4YJ3SDdu1302JsKD/wF6 79NhJBfTKTbV2DgS5BI3jX/U X-Google-Smtp-Source: ABdhPJyWTSUWdUGBSqjkId0mBIC3EQCsvBcw43h4nBlKyS3iBK9oYiPXKKT1n54KWv4cs0hnqBm+Vw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210613_143414_750030_4BCA9591 X-CRM114-Status: GOOD ( 16.52 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + };