From patchwork Sun Jan 9 17:03: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: 12707856 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 1FAB0C433F5 for ; Sun, 9 Jan 2022 17:04:48 +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=OlthFQMQyfSUlggI0Q0++5wfUTkP2FtkQdgu3DENI/8=; b=DVHY2ftwmW9IXJ foFPMX10rwmXXY79NoN0pauWRsz5zfe3Zqvl9rFhF5ncZ/Zxj0ZT3mRJnH6zowJ7iJk3t00cJbpIe DzlsXTY1shudrrT9CksBOndq4Ewtx9JpbMWEfs57B2o5eDhp2ldDXR4She0uRdAXsxXQjzCc+yu44 yolRMPb/0nlsKUfGaXKsJZNjizsF2s7HsfPY64qGwCIEtZBNs8LjTtLd0rqqTb83DBS6K2/cOUEEM ScE5dqDeW+6Hj417t0n5TAN5NeihW/XL8C3K6Dv/gp6dy/ccUTXjgW3V4Ng42sphCdF2Jm1OBOw0V FqejiENTlnEBRYXjWhGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6bbM-0087kM-Uo; Sun, 09 Jan 2022 17:03:29 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6bbJ-0087jh-5f; Sun, 09 Jan 2022 17:03:26 +0000 Received: by mail-wr1-x42a.google.com with SMTP id k30so4741986wrd.9; Sun, 09 Jan 2022 09:03: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=Ti+8EW0hs0/YnGnixzku2GIX43wTcFQZGeFpoKdB+/A=; b=brSEWSmJC6rzk/zKxRTotIFKMqnPzHH2Qe45/Ut1ulYNcHqoeKG7PjaNELR3zmfcBh kGkOSvof6BhDKWwFvMtovx/I4QoA7gJkFbWp0aAyudJi77h9HXjuz6dfbuhRpPZXgk6K WjhUGpWq7nYC/fNU1J04yIhi8q9lGXjTLWVbdAM4ZD1Pt+VC7jsfH40ABO8UeqWs2J2Y SKjeODgJWE2CEpnVyTJ1HeRUel/AN1yw+XNZ59EZkOi40iSmFgiuGulUxI5siPU7CvKV RSHmSAhdTXy2oRP1lTVitCekoy0tJotsIQ6KNh3oz9Za4QQ5Pdvx/0R+e6XpdsdTn0bH VyUA== 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=Ti+8EW0hs0/YnGnixzku2GIX43wTcFQZGeFpoKdB+/A=; b=ZDcByt/kSyyR9ddN5iTeEagE1kgSSu2BjhAyzXeBIEKGSUzn0phkIb8qXz/43dLazN FOTk/EyQ6UNQ+RK7PP8YAjGNU6XsKor5ItGj0D7yv1Z3g8w2H38bDmWk/cff4roUD2z0 VS/dJsv6A5q0p7kY8noQ92utd6O4nu0seeaRSR4XRoysi0KNftMpK69IoobcGJEEon3w nHWwx1mHxu8H6ExIEjMPppeV6o7Y2MMrjVw+o9UxGamKMEMXdlhKlZqEROr9nbPi5uxx DhuUXYPgS4XXpg46oYPqZBGWA7NW72zNvWE9HNDBlaJp4tL1rFy9e8j9PRM8NNQLnl7R 8WWg== X-Gm-Message-State: AOAM531NVTurq4q04qodY/F8TleAY+OJ2V39WFpAwQeOkw+ExU9SvbJ8 AgZw1i6y5h4UnMbs3/YxxQ0= X-Google-Smtp-Source: ABdhPJyIZsNUXisqFUOni1KYMVyg0VDK60JKElYW169fXwXP1B6IQXShYTDyHRMmirKdPBf9VBJSzA== X-Received: by 2002:adf:ef01:: with SMTP id e1mr25427872wro.647.1641747803693; Sun, 09 Jan 2022 09:03:23 -0800 (PST) Received: from standask-GA-A55M-S2HP ([188.123.115.255]) by smtp.gmail.com with ESMTPSA id k8sm2025634wmi.13.2022.01.09.09.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jan 2022 09:03:23 -0800 (PST) Date: Sun, 9 Jan 2022 18:03: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 v2] dt-bindings: serial: Convert rda,8810pl-uart to YAML Message-ID: <20220109170321.GA12989@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_090325_262965_CEF7551E X-CRM114-Status: GOOD ( 16.60 ) 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 --- Changes in v2: - Fix indentation in example .../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..5f4ed8221270 --- /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