From patchwork Sat Apr 13 20:22:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13628786 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 EBCB3C4345F for ; Sat, 13 Apr 2024 20:23:10 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=doPk40cU4H+LmMGOl5z2CME90KkF8sY4Aoq42omPJXU=; b=DseCV+UZtjTp8V TxXBD0lloqyjyZGsahk3mSohc8wmYL/0c4WajBUu+ulVTGb5+LQ50w6tB9iE+ZQ4/jtN+noj32MJl yglWtHEXjTxwlIcs6RCvVYtxZeyz63vfouYklseGjMhNw+lus5ZVf6iDAkoAqiCIvQI98M5uNa8zL s+35AmdY0seY5nBxFbVp8UYUfd/kNNZbmnQO3+hSQPIVBT1vAGOHrxkABFq0Q45RxQObKSURjNoRA TFXUKYVA/IbnbrFpl/JbM6H6hCIfFK1QpC9xcMgdXyCSXrNtA/y31idCpGZhGEw44ryjb9s65oH8X NZ13AtUvFmXHJBLn080g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjtr-00000003sw7-25xo; Sat, 13 Apr 2024 20:22:59 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjtl-00000003st6-3ZZr for linux-arm-kernel@lists.infradead.org; Sat, 13 Apr 2024 20:22:55 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2d8863d8a6eso24366611fa.3 for ; Sat, 13 Apr 2024 13:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713039771; x=1713644571; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bf5pKtth7HyQMR2CRAxRCRRYX77dJfg+HACjzgrcpPA=; b=XFKEq3hlHHzpgPUcjsjkFkHyGUCcPTtcAcPxduSJ9s76jCVq2Q1KgA4qfA1+YoosiN Q/MgDKKI+DZg3H4IlLXaBJD+72hs6iNOCPVPxFQf56d81McKVFXwa2+1u71+2YNnkyvK g6nzmv+OXLrCZ+10J3UTyp4/Zrs0rOiqkeUyhtV5+H9P28UcXIzt5g8vzzx9ekI/HegT A0amul/zO3AXTP68W7MPGDsbLFqIJy2in7uL6AyEUgXO8gXFdh5U4CiGRy2PVW3GKgSm opT0G/lYdep+mTF0IREmcMdqEOzQ1HXG5dO9C1dAgzxuIp4T4tm1xt5A+RZwIM+nwrg0 nX4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713039771; x=1713644571; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bf5pKtth7HyQMR2CRAxRCRRYX77dJfg+HACjzgrcpPA=; b=R66Y9pUqrBMyw9vXMXRj//UabECl+ttaTL76/68Fo3sq9MDWs7DBImR6cD2dO/BV2y EGpsUHxyZJwZH1z9NfbHpFzyH87D/0Q9lrTI8LUhC5DXU0yY+19HwYeVyspXGgzq6cZg l3OYiwJjEQyC48aHY/dUZznxQ+sqidqzYk2AXADyI9oB1nbhH+gfsZEXCQx/YTZnKmMT nEvW0XxcIyWr89njkwPOPhQGlS4sHnjeO4e4heFqb3myQ2M3tuzVX+4fVoQBonFTuwrz edU+cNxRXBCOlDINPP5zpRQVR9jLLvwlqQjOFl062hI173OLI0fw7ZAhO80vSPD10lrl 3v1g== X-Forwarded-Encrypted: i=1; AJvYcCUJZvXgC38PYv331aDompCvCCrZn8BTrvPLw82M/ZE1kU7hONyb2no+lDmma3rgY/Ci9zVdAqeTC+VJMAjv2S9j3eYKyYOduHUaB+dl0u4HUO1XibE= X-Gm-Message-State: AOJu0YwxKfz3IhLlEfArdDW4FCX/pKZ6kfRif7D8lypyQDkyWcWXTN4v uB30ArSIW93Csui0+cY1jkeWNKfb0X9dNjUmTAUTsAMQKpg1J+bU X-Google-Smtp-Source: AGHT+IH8pm98C+MIRAOaUO30GuhCqlA7nqVnCkzi+qWv1twrQuvRXLCHEscsJF51tgcr39Bl8I72wA== X-Received: by 2002:a2e:b98a:0:b0:2d8:7320:e36a with SMTP id p10-20020a2eb98a000000b002d87320e36amr3641252ljp.17.1713039771430; Sat, 13 Apr 2024 13:22:51 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-64.cable.dynamic.surfer.at. [84.115.213.64]) by smtp.gmail.com with ESMTPSA id f16-20020a056402161000b0056e2f1d9152sm2881222edv.93.2024.04.13.13.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 13:22:51 -0700 (PDT) From: Javier Carrasco Date: Sat, 13 Apr 2024 22:22:19 +0200 Subject: [PATCH v3 4/4] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240413-rtc_dtschema-v3-4-eff368bcc471@gmail.com> References: <20240413-rtc_dtschema-v3-0-eff368bcc471@gmail.com> In-Reply-To: <20240413-rtc_dtschema-v3-0-eff368bcc471@gmail.com> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiaxun Yang , Vladimir Zapolskiy , Joel Stanley , Andrew Jeffery , Maxime Coquelin , Alexandre Torgue Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-stm32@st-md-mailman.stormreply.com, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1713039763; l=2723; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=BajpLIZvweL+aLqlkIOgDvaU5J35KCKUJstIeHQsxoU=; b=S/47bucyIciRGwOyIDM4sCMC2ax8kTneRsSd1bLRdQE94vG3Y0Nxyh/wm8FM1t7r6CkFTA87M btFBUkYaNdOD81nx3eSUsBIfPwCF1xZL4/z7cQjrzsUTpq8WroVMQuO X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240413_132253_947716_CF6DA2CB X-CRM114-Status: GOOD ( 13.91 ) 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 existing binding to dtschema to support validation and add the undocumented compatible 'fsl,imx23-rtc'. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml | 51 ++++++++++++++++++++++ .../devicetree/bindings/rtc/stmp3xxx-rtc.txt | 21 --------- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml new file mode 100644 index 000000000000..534de4196a4f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/fsl,stmp3xxx-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMP3xxx/i.MX28 Time Clock Controller + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx28-rtc + - fsl,imx23-rtc + - const: fsl,stmp3xxx-rtc + - const: fsl,stmp3xxx-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + stmp,crystal-freq: + description: + Override crystal frequency as determined from fuse bits. + Use <0> for "no crystal". + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 32000, 32768] + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@80056000 { + compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; + reg = <0x80056000 2000>; + interrupts = <29>; + }; diff --git a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt b/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt deleted file mode 100644 index fa6a94226669..000000000000 --- a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt +++ /dev/null @@ -1,21 +0,0 @@ -* STMP3xxx/i.MX28 Time Clock controller - -Required properties: -- compatible: should be one of the following. - * "fsl,stmp3xxx-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: rtc alarm interrupt - -Optional properties: -- stmp,crystal-freq: override crystal frequency as determined from fuse bits. - Only <32000> and <32768> are possible for the hardware. Use <0> for - "no crystal". - -Example: - -rtc@80056000 { - compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; - reg = <0x80056000 2000>; - interrupts = <29>; -};