Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp183924pxj; Tue, 1 Jun 2021 18:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3kAsFu6Kkt99FbuP5aFjco2o4Lu4g0DTcC471mzl3RcebfORqubIucuyIGrknPh0F+Dvm X-Received: by 2002:a17:906:c1d2:: with SMTP id bw18mr31638455ejb.123.1622598369562; Tue, 01 Jun 2021 18:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622598369; cv=none; d=google.com; s=arc-20160816; b=m5N1fA8xrLGcwU4XYGLmf/2OqsKVbjZuDam0ZCeva4UtyW4HlAEaGRBUN0ejtxVlrW 2SPo7YMVMdNEuYdODj7wLf3XSZcT7sGWetpAHRbPqMztl+TJnsWhD7YQzcVrZWRp6iJy wjXF6Ad87Y+2tPnILpRo+YRuaPB59C+jdFqOlsxF/kOfKtLPVV59TlRkc6GyO9YQgoZv XfD5mMw5Xz8vk1WYAtmBspaY/1LB/Gy9mESpVLdWgyd6BsdUagh+P0kD/GFJ82jLWvky 6iP/NA6InaRNlanhmyvIrulxRk3kmDsrZDdhsTnb0ILuQ+2DvaCobBq+qbzrtAxMX3j7 An5g== 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=SewYCBxsOofZiuwfebP8X77TE8COIIBaxRrr8ugrpik=; b=JmQ7SraNTL1gTHITG6CqXtLmAQ2mYagNMf3dMXhsCpwb/MwfYwN6Wx9SucLWZ3rJrV s2cGPBakDBynnMFLUCWz+r03ux5KA7vqsD+c3ZS6kdDFoxV2WxFDaP0sgAglMNGZtfrt podUi4TfFiqSC5V24bDbXganYhnaqPdCD8TmiBHVoai6TxHR3BWFIufKM140z8nS6oeO STSGt6zWrn49oMMQsgsB/9xX4f1QADwd4ZfVAAQoBoaGHkPB3GRSSGAJaT6zDSW7H9as cNRivB8v1alvHmZaT0V0PBytV1z2GIQmCpAFu4OA1Sbh80y6oYIN7NHZVrp/5wE1kV12 LFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=qS1udX5n; 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 y3si658541edr.383.2021.06.01.18.45.32; Tue, 01 Jun 2021 18:46:09 -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=qS1udX5n; 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 S235273AbhFBALN (ORCPT + 99 others); Tue, 1 Jun 2021 20:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235034AbhFBALM (ORCPT ); Tue, 1 Jun 2021 20:11:12 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A777C061756 for ; Tue, 1 Jun 2021 17:09:29 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id x18so765649pfi.9 for ; Tue, 01 Jun 2021 17:09:29 -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=SewYCBxsOofZiuwfebP8X77TE8COIIBaxRrr8ugrpik=; b=qS1udX5nInWSMLSDev+HovsM06ZzqDj/N9V+Hugeqt2Gdvrvw74S/GbOxr1n8K1H6V DPwtOFm9qixftJgrbyvcQtS6ivnCpltliXyQpaw2RUCsBVDHKs9A8HOedtWLPxquVPvF fKiHf3j8kupGXz7Eon4GaWMyl6CdYywIMObkeyjFjjXlhZ4VjvJftCb6uv9j1NhFBuxX zujB3dZUgCKdPwNfrdumATrOvKqXu3zPYnkVEwRUdYhMJ9F0pOFzBpZqXXd+IRu28XI5 S9p6DQEHM2xkKI1L8KFZjRGcZqvMEQyiqNAuZk0cpSYy49hQD+cI6xiVS+fdXRqKVnWw U3Zg== 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=SewYCBxsOofZiuwfebP8X77TE8COIIBaxRrr8ugrpik=; b=NTQVicK6nj+hd6repOFZHUWytd3rqbxPdAvYjVomFoH5xNuUqDz5EwAgdiJD9ZGZFw lVirPkkb8mu+pOiV8t2cINbTVNDv+OEoYjvtWViNVsJjLHF5IO11xotcsTfkjr3av2D7 PTRSrTe3UftD8NTK51JDoCjS4fRo2FEHknBgRPGsYOHccOMvQf36aNmCnBaTLyMw6Vw+ 7PF+xmKsDG9joVNgMaPp+qsBQKE1toUcZrFfW6N6nEjecys3cYPIrMwV/RHQRB1j0ZY0 dt7pu2x28qy5j2EukvzYeT+mDBCbJbZ27iWBRFiBP3bVEDmEDw18/aVCg10kXi5JT8vn nFqQ== X-Gm-Message-State: AOAM531/9O6nGXHrESrbSwBPwLwNy2dCTx+KGbeTROWA4bO7S4l7ADWn 3G/lhO/8VfC4gzoOFFk6pONl X-Received: by 2002:a63:1555:: with SMTP id 21mr19197504pgv.169.1622592568880; Tue, 01 Jun 2021 17:09:28 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id x125sm10088479pfx.201.2021.06.01.17.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 17:09:28 -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 v2] dt-bindings: rtc: zynqmp: convert bindings to YAML Date: Wed, 2 Jun 2021 09:09:18 +0900 Message-Id: <20210602000918.779983-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. And this renamed the file to compatible string of DT. Signed-off-by: Nobuhiro Iwamatsu --- v2: Fix warning with DT_CHECKER_FLAGS=-m .../bindings/rtc/xlnx,zynqmp-rtc.yaml | 61 +++++++++++++++++++ .../devicetree/bindings/rtc/xlnx-rtc.txt | 25 -------- 2 files changed, 61 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..c205cb86ef00be --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml @@ -0,0 +1,61 @@ +# 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: + - | + soc { + #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