From patchwork Mon May 31 05:24:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 12288675 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=-17.1 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,URIBL_BLOCKED, 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 316E2C47082 for ; Mon, 31 May 2021 05:25:56 +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 DCB9A61186 for ; Mon, 31 May 2021 05:25:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCB9A61186 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=fxatMj7OFILSXpiqcAA6Wi24BP2Dc0hPzE1vtH9Jk48=; b=jUVyYA7VWYzBWJ 5B6immabBwWK8hVGUL+T3TCOtPBtKkEWTLEN0nZaUHLJKr1cnT65CCKm6sdA+pJjV2BXHzXHUOtJj sx6u+ltNWdXKmAKd76+4NNKoaO87CCJB6pN4DD8fTjEA2zCPADrX6+hsRMtt0m4wnL+JB/m/PsVT1 RBHeSWTVpYpcuZxI+3je60q6t7oK6zW/TmYqQwQEwcigXEVZBajHhGSNeubVNdQPQP81rSxIFajEZ ph428w1yD2WDiUBnXD2mbvhTiOqf4dNbpzS0mOg9HgpOQcjwt56eK1O5+mPKW4uCsRYzNfaoTvpsA 1URs8Fcr5xsSCpfo89Tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnaPm-00ApfU-C4; Mon, 31 May 2021 05:24:38 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnaPi-00ApeD-4t for linux-arm-kernel@lists.infradead.org; Mon, 31 May 2021 05:24:35 +0000 Received: by mail-pj1-x1030.google.com with SMTP id l10-20020a17090a150ab0290162974722f2so2499857pja.2 for ; Sun, 30 May 2021 22:24:33 -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=sJkGz0A+2BB/fAV1CZ+h+SB2r4/BBf40Xmp4vms8ZNQ=; b=x9pDfOVOHD574O5NH2EjQMzh9FDBcPHDWjSQKHi/SElcpMhNShaDBmYjtZOHwunyvg GNDBCrfmhzkQWP2twb0MyKzeIoqbc6rR8LXDuipZ2goU5GnAjJ4gdjMoXrqRiN0xxAqN 9c/hSejaGpB9IAFHIyXR3bmZMXJw89K1H9BAEOeT2rsArl69iGHEnNDJc6aGvEDGKRac oyC+wXCmvr0qPtvZ2TNDXSRdFWDsO6JPQ3LTzZFpNBDPfrUNdPW5KuP/GiH89A9NS4hq ysA3Wrz4HFYD41glw9soifUzv1nw9gNxDxDVlM7NB4Jhke2fS9Rkgo1EfF0BVzMSqzlL ajmw== 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=sJkGz0A+2BB/fAV1CZ+h+SB2r4/BBf40Xmp4vms8ZNQ=; b=V5SAxwVnF7Ef+rErTlrc2NDN+RHUA1Ug5Q3o6x1/pGjl18OBk1oOBP20UuVUJP8tAS 8hEn0iowGxQzJ9s0trZJWyJH9QIBNA9aT+70EpQiWdSLlYj5sX4B4dXF5kv3beBZUHYz 8EfkOYHExOdPDKGNOez3GJ994i5ZUqSpYMZ+DXEwxngVBvo0wEc891R9ftHEvguwnC/q GMCsL0sq0IbiJ+nD2F0R7wZNfzxNMX6bE7RhL+M0Qy8mfIBospxpA4ONEif+jKYhVGrV 2F/P7pSRTX4iaLYHx8RFRdUmxDhbnEDq6NwXnuIn+sg6/RHwdZGpCH6rTxqvR1w1C1/C 2SKA== X-Gm-Message-State: AOAM533MyzXdFkiFU4p3xFDJxS5QZ7TUYpsVKxVk+o+J/fUW1rGQq2DR TIVYrXu9U4MH1LaV9hr0ypcV X-Google-Smtp-Source: ABdhPJw6RhHSbs/iMCPiEY7+BYIcTUTNgkRH7Ghzps0/uGh/NKJJFScQzEyISZFjWzePCfRug5vDwQ== X-Received: by 2002:a17:90a:7141:: with SMTP id g1mr17103812pjs.167.1622438673394; Sun, 30 May 2021 22:24:33 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id d22sm10425898pgb.15.2021.05.30.22.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 22:24:32 -0700 (PDT) From: Nobuhiro Iwamatsu To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Michal Simek Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: rtc: zynqmp: convert bindings to YAML Date: Mon, 31 May 2021 14:24:26 +0900 Message-Id: <20210531052426.695576-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210530_222434_217875_8D4A44A5 X-CRM114-Status: GOOD ( 17.66 ) 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 Real Time Clock for Xilinx Zynq MPSoC SoC bindings documentation to YAML schemas. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/rtc/xlnx,zynqmp-rtc.yaml | 58 +++++++++++++++++++ .../devicetree/bindings/rtc/xlnx-rtc.txt | 25 -------- 2 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml delete mode 100644 Documentation/devicetree/bindings/rtc/xlnx-rtc.txt diff --git a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml new file mode 100644 index 00000000000000..2785cf4d66b82c --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/xlnx,zynqmp-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Zynq Ultrascale+ MPSoC Real Time Clock + +description: | + RTC controller for the Xilinx Zynq MPSoC Real Time Clock. + This separates IRQ lines for seconds and alarm. + +maintainers: + - Michal Simek + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: xlnx,zynqmp-rtc + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + + interrupt-names: + items: + - const: alarm + - const: sec + + calibration: + description: | + calibration value for 1 sec period which will + be programmed directly to calibration register. + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #address-cells = <2>; + #size-cells = <2>; + rtc: rtc@ffa60000 { + compatible = "xlnx,zynqmp-rtc"; + reg = <0x0 0xffa60000 0x0 0x100>; + interrupt-parent = <&gic>; + interrupts = <0 26 4>, <0 27 4>; + interrupt-names = "alarm", "sec"; + calibration = <0x198233>; + }; diff --git a/Documentation/devicetree/bindings/rtc/xlnx-rtc.txt b/Documentation/devicetree/bindings/rtc/xlnx-rtc.txt deleted file mode 100644 index 0df6f016b1b771..00000000000000 --- a/Documentation/devicetree/bindings/rtc/xlnx-rtc.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Xilinx Zynq Ultrascale+ MPSoC Real Time Clock - -RTC controller for the Xilinx Zynq MPSoC Real Time Clock -Separate IRQ lines for seconds and alarm - -Required properties: -- compatible: Should be "xlnx,zynqmp-rtc" -- reg: Physical base address of the controller and length - of memory mapped region. -- interrupts: IRQ lines for the RTC. -- interrupt-names: interrupt line names eg. "sec" "alarm" - -Optional: -- calibration: calibration value for 1 sec period which will - be programmed directly to calibration register - -Example: -rtc: rtc@ffa60000 { - compatible = "xlnx,zynqmp-rtc"; - reg = <0x0 0xffa60000 0x100>; - interrupt-parent = <&gic>; - interrupts = <0 26 4>, <0 27 4>; - interrupt-names = "alarm", "sec"; - calibration = <0x198233>; -};