Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2327150pxj; Sun, 30 May 2021 22:25:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7jpyKLoLjs4BX58tLxGe1KdT4EyNKQDU2+YRWe/gSzIlg+gh5ud/BQSUzftRBks4TBrz1 X-Received: by 2002:a05:6602:134c:: with SMTP id i12mr15997623iov.175.1622438744273; Sun, 30 May 2021 22:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622438744; cv=none; d=google.com; s=arc-20160816; b=jm7KhB31vISIoH3ORKDAuR1tzqFMMOxRxPxMe1OV8d8qGsRlok1M/f9W4w/G5m/vrZ I5kbrWA5x/ZjKuYyWcMElkKrVw3ppj408kUIWcz1UCJNDax/iUsT88fst+7YsCSYCqwE Ib+qSvGWylKhbosAmgXymT+tfwh686srdbcrSp0g2FXdFCZxyV8igKKUZoFmFBaLr9Ly h52RmOUzCkS3QmP84RDihU5RVv1/S0kYNCpEyANJtLqDBtlMHK1JEZKX8mvG8nBBCD3w 0xfwymdq0d7a44bN40rh5R27AMR/yjUYVqrtKfk8oBXdXoANt4atmItN43Y6KEVUMUFD Pfsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=sJkGz0A+2BB/fAV1CZ+h+SB2r4/BBf40Xmp4vms8ZNQ=; b=olBHewcwqaUNedYgp/q7OE2HFB7sg9GRMYG/v8kpOMvVD0eS8SUZ4px9uze0V2Sgbz tqGqAwTtKls2+ExiiZ6K3W4au0RG9ch4W5fdQQ19lV2ccgaUj5oF2/jC2ZW5qzGnF5Ig p3PUhXWSQyiS3dP8wDg90KoYnJ7mcMjeH2dQNAnXgkCCVIdPj8kbOuVkWfyQx3kpB+im YHi+weueUIVkHhut7MPCiVWHFluZtl4jrkmCSQbRW95J+a0p9Q0hFVJoM0rzwmAAQgsd PQ9Ew2H/9Gck5ONhhxVrTTIk9xmiMWA5ru8BSzE3c92dyA26Dj2Ky24Mqujj3rneppnW IPRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=x9pDfOVO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si10849522ila.56.2021.05.30.22.25.30; Sun, 30 May 2021 22:25:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=x9pDfOVO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbhEaF0Y (ORCPT + 99 others); Mon, 31 May 2021 01:26:24 -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-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