From patchwork Sun Jan 9 14:37:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12707808 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id AA8CAC433EF for ; Sun, 9 Jan 2022 14:39:14 +0000 (UTC) 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:Subject:Cc:To: From:Date: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=VSwTlJqf7VTbFOileBuORAealduNBl4qWJ0oNYxjQ/g=; b=5DK4SYMOGJKLKW pI4D4JfEf93lcnMO4Wi9hfV0LgxjJOliRWpq7dECUtmH7Cgj5Wt6dhxWn0SG/X5XaitTjQqlEhmSL 4PPvxFeCub79zlorhZVR2+hS3juOQdruSjXQ44fabMepLm79tE7DUs2LuR+0bC5MY+2wFhYR2c2hP gxk3y4lfLzg3DJBvzzOfbMMXovuB0G07/RCD5RLDo+XS8rKjBdr38OyuLtTS1t18ZLpCMr9tGQ7tm PXL85/KOKpEX3nw9geca6BL0vYc5HAkgbKIocJZFe45eyXJYBTMhsl9roim4/pNS9oWTMPxw4IZmn +rte3gll2F2pAx1x+m5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6ZK4-007y3f-1Q; Sun, 09 Jan 2022 14:37:28 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6ZK0-007y3C-H9; Sun, 09 Jan 2022 14:37:26 +0000 Received: by mail-wr1-x432.google.com with SMTP id q8so21750621wra.12; Sun, 09 Jan 2022 06:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=d+/p0gG5r0uk1otb/xPUeeTi5SnbmcWptC+sML1UIGI=; b=hJmBAAuOxISkWAcZCelUdFXzOo14Pq83qt6ipf3/C//jtW2d+GxjBgoDqu4BdCxa5K h0paUVRiOfNSNhQ50IGB3jAoGkWoPwLEOSTdI28OMTSJa1FY2kBzMCs0o40zXV9V3BAL yMqtUETQYqJV2T4m+l8Fei8kJYT/MA8L9NI1BQU9KH/+X64bdxuZNmmMuQ+XhpeI7aBu LqZPvl1ByS2254hI2V4mK25NCqAzgAjV+qA62OTplu+Ji1QuQN8auQVHooKAXhub0JBj zMnw/a/eZoZtD0ermat/2gvlg52bpm2zuKWY/wi5CrX5yLMZG33BJ0YrG36GHZNvE3mt JyPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=d+/p0gG5r0uk1otb/xPUeeTi5SnbmcWptC+sML1UIGI=; b=qHmqEUj32hPN8+pT7Y9ioQ4qw7x++rtbPgxJcEYEvKq0fMfD0z4RQG9PPH41B6CbDa OCf5iMSODDr8xrLwPNbOywjvX8ynWiVF5cu5QNANWdJX03/SW+sNcN8tuWrhS0X3WK2M 6lTHgGT+lYOaCe3F9mirUb8YPiXaPlr384VUlmntew3flmrUBAJpOzaDiMaof3QlDPII YqEFmnp+gV19MIpERCHMnjj85ijmmxY8b2rDfLOjKy16oMKzS53zcQ/SF1djo13/v1VN rzlorO5/Qf3RGa2WVZYvEicFn8d/IIom+n/8yR7OyLLWlmnxjXNhOErcgjosbXCQss7e lBuA== X-Gm-Message-State: AOAM531mHV7NK8H6r1KHrNFpVJm2R+izVLvCYDMbgIfQQ4g1CaVYYWNl A0IpNo6viKILNissPJUgnam/DIFKBEI= X-Google-Smtp-Source: ABdhPJy/lHXcKmOAQYAebp5u76H5q2gX/2KWTdjW4EGlIuHEH4bSlRYOu9CvfIaF/WaA4XVmfekTLw== X-Received: by 2002:a5d:488c:: with SMTP id g12mr52241367wrq.96.1641739043166; Sun, 09 Jan 2022 06:37:23 -0800 (PST) Received: from standask-GA-A55M-S2HP ([188.123.115.255]) by smtp.gmail.com with ESMTPSA id j13sm4326245wrq.3.2022.01.09.06.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jan 2022 06:37:22 -0800 (PST) Date: Sun, 9 Jan 2022 15:37:21 +0100 From: Stanislav Jakubek To: Rob Herring , Manivannan Sadhasivam Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org Subject: [PATCH] dt-bindings: serial: Convert rda,8810pl-uart to YAML Message-ID: <20220109143721.GA7707@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220109_063724_640451_3C5448B2 X-CRM114-Status: GOOD ( 16.03 ) 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 RDA Micro UART bindings to DT schema format. Signed-off-by: Stanislav Jakubek --- .../bindings/serial/rda,8810pl-uart.txt | 17 ------- .../bindings/serial/rda,8810pl-uart.yaml | 46 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 47 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt create mode 100644 Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml diff --git a/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt deleted file mode 100644 index a08df97a69e6..000000000000 --- a/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt +++ /dev/null @@ -1,17 +0,0 @@ -RDA Micro UART - -Required properties: -- compatible : "rda,8810pl-uart" for RDA8810PL SoCs. -- reg : Offset and length of the register set for the device. -- interrupts : Should contain UART interrupt. -- clocks : Phandle to the input clock. - - -Example: - - uart2: serial@20a90000 { - compatible = "rda,8810pl-uart"; - reg = <0x20a90000 0x1000>; - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_clk>; - }; diff --git a/Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml new file mode 100644 index 000000000000..74b1e368bb84 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/rda,8810pl-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Micro UART Interface + +maintainers: + - Manivannan Sadhasivam + +allOf: + - $ref: serial.yaml# + +properties: + compatible: + const: rda,8810pl-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + uart3: serial@20a90000 { + compatible = "rda,8810pl-uart"; + reg = <0x20a90000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&uart_clk>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 44d79a8b62c6..c7434954c19f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2502,7 +2502,7 @@ S: Maintained F: Documentation/devicetree/bindings/arm/rda.yaml F: Documentation/devicetree/bindings/gpio/gpio-rda.yaml F: Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt -F: Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt +F: Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml F: Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt F: arch/arm/boot/dts/rda8810pl-* F: drivers/clocksource/timer-rda.c