From mboxrd@z Thu Jan 1 00:00:00 1970 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.8 required=3.0 tests=BAYES_00,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 407E4C4708F for ; Mon, 31 May 2021 05:24:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20BE461186 for ; Mon, 31 May 2021 05:24:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbhEaF0Z (ORCPT ); Mon, 31 May 2021 01:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbhEaF0O (ORCPT ); Mon, 31 May 2021 01:26:14 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC23C06174A for ; Sun, 30 May 2021 22:24:33 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id m8-20020a17090a4148b029015fc5d36343so6038881pjg.1 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=bYqZL92d1hknTrFVwd997RnjAr1x3Q8XyluB+uvRvkDcQ+L2gHyQtnskhWFzbH5Yxy JcjDVswzMfgrNTLeQISVsb3tQKcGAuwW8y2OxawoR23R5497ry6tOdi6Lg1JxqfMUlpA tnZYkZBPqGyZp6A8ny5kTgT6MMsYJD2HNLw8yFxtS72OJclhICSRsr2im9ioTe28l9Ke wjQw6dVjg7alP0HoZ0Y5JGpEKgLRdTR2nLTALLBEXg5CSMEu18X9NF/xgDtqIOixCP7M GExN+KMvoYy+NiYlBrA7tGI2vSvajOLHbVqWp9OWhyhmnL6FsoL5BRdulteOUZaxGq36 W2hQ== X-Gm-Message-State: AOAM533BtuiHLvA/WG/KPACjN/JOCCFexABAwdZWtx3QsWLy93kAP7PS 1VVcjnL5oSCmQ9c00b+G3YNc 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; -}; -- 2.30.0