From patchwork Mon Apr 8 15:53:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13621339 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 C3BC4C67861 for ; Mon, 8 Apr 2024 15:53:56 +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=C8ECXp/kodc9q5enB4lmkpyew1FUsodMGdjx86layyk=; b=bHwdNe6UhDcffI HeXDRV4uCW+hHaVO7zDKb4ZEp3wJ8s7Ie3cNTi4hNT5mkX92Cc6wFYrFnodsbdiB0zYRAMEhqFQ5O YOKwhxxPUb0lycxNQPDz4ir4QEXD5mUMbg28H0O0uGI3w37J+FlNEl2jtWUgseeMSUdwfRtXupEkT mt+C6LtufJt5nB59R7m8KZxf4G+23Nqs2U9/hxEZynrEZex/JrvW9scZSUTXQM+Pij2eRIfE8G01D 9s29MiwbmThiOpKocGhlxb9DpHvmnmeKCKed3vwu8clMq+wzFdt49DGooucbcEd8Wl25//5n4FINv yscSI8/Di2c8QU1CYtaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtrJY-0000000G67X-0r5U; Mon, 08 Apr 2024 15:53:44 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtrJE-0000000G5rl-2AkD for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 15:53:26 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-56e67286bf5so1265238a12.0 for ; Mon, 08 Apr 2024 08:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591601; x=1713196401; 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=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=brMp1FbMohsNhiO1LT67ANf6EY8cRUQAuVUmnxH2xUZLc0oSDSBDPXiWDwcyM8rKU4 s7CQ0y72rB4cHWE3c+skVGVTyk+2tThuG0cxL+mbNz0a7aUmopqT1jbWL90lle/0I5sy zBSXuukAhplJFqE3fc7806eQYfednv3EIfrcjNR+ZqfTiNw1aeUrVDFoQW9eZJV201JW vSdTDx05x7wVOccVx1SkaPNtctlQ7d3TgD3Kzmb/35Y1rY3P/p8moMuOVsfh+C9g+Xa0 Y/jC7uit+tnICLO3ugD6edWq6y1iYpWeZA4ST5P2pYoQa4Kce0hsvmfgT1ctCmQKnOfY W0LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591601; x=1713196401; 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=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=jQ7dWcDJlvBTVFOS5s1AY9IC1XI+9XAaA27wH4HqJRtghuCkyxJtbnywydKAJfi8vD Js27SAjyzod7LajH3A24PnY7PD87fGe9HFakI+TMy2U9O55md6bhaubGCmCwP445tiRL lp0ZIpYtrIeyy4nd2eXnDqJMvuYvdWZMnPwHHEvUrkyDSfrNM0A3Kg16zY1ZGoxa63Iu 6bV3+VeAVi92q4NnKMnsYvkrOg5k5oDGMCYW7LKbgxuvb25C8yWWJ6O9M6DXTsHbTRFE ovHKKYh+82aC60DDhSv/aCuRdJF2oDNmOyAPw6ZpyKKJgZIDxBxkUkfYPDuZ46/kZGyp Xm0w== X-Forwarded-Encrypted: i=1; AJvYcCV40xEHVjoxhOv3LJngq522ft3FxN8YXxbtN+FotMJ007CKNuVJig4xgoF1ZYdRn/QSloZrWb4yaXU1WJv/OxrtmptOypFeNMT5c7vjcw9TxKcsbR8= X-Gm-Message-State: AOJu0YyYxzj7OVZJ9ArxxqnirmKGgHU41RiVAU3M1PAYzIJNd7vryMa1 CpGH4KGeKGPNHfroseUNJQ2xKMVEbfG+lZaPAg81uG9h8/Rn0ahY X-Google-Smtp-Source: AGHT+IHo3PjOjthzlX7he+eTIQsbLTIBOyRGKiO637648HaP0Ncp071D/7W6Vx2fN1EcekWna6nuhQ== X-Received: by 2002:a17:906:af16:b0:a51:c1f7:93 with SMTP id lx22-20020a170906af1600b00a51c1f70093mr75351ejb.13.1712591601329; Mon, 08 Apr 2024 08:53:21 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:20 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:06 +0200 Subject: [PATCH 6/9] dt-bindings: rtc: pxa-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-6-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@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=1712591586; l=2057; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=XuizmZ/AsI4sUrNbkhEaUlA+sS0KeXhc44fqmRoI0ks=; b=TEcS/yNABbU+N66YYIMs81/pFUYAYXLO65ZbwiLZUk8cK0LytDNhrbnd05Bbryb15/GpV6iW2 jf1CGGu8AmBA3oq3KEyQFN5EDyUUA0/E99wDgmrlSsZqOp61i9vtUnd 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-20240408_085324_887005_A2390E66 X-CRM114-Status: GOOD ( 13.87 ) 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. The missing 'reg' and 'interrupts' properties have been added, taking the 2 supported interrupts into account to fix the example. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/marvell,pxa-rtc.yaml | 40 ++++++++++++++++++++++ Documentation/devicetree/bindings/rtc/pxa-rtc.txt | 14 -------- 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml b/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml new file mode 100644 index 000000000000..43d68681a1bf --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/marvell,pxa-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PXA Real Time Clock + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: marvell,pxa-rtc + + reg: + maxItems: 1 + + interrupts: + items: + - description: 1 Hz + - description: Alarm + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@40900000 { + compatible = "marvell,pxa-rtc"; + reg = <0x40900000 0x3c>; + interrupts = <30>, <31>; + }; diff --git a/Documentation/devicetree/bindings/rtc/pxa-rtc.txt b/Documentation/devicetree/bindings/rtc/pxa-rtc.txt deleted file mode 100644 index 8c6672a1b7d7..000000000000 --- a/Documentation/devicetree/bindings/rtc/pxa-rtc.txt +++ /dev/null @@ -1,14 +0,0 @@ -* PXA RTC - -PXA specific RTC driver. - -Required properties: -- compatible : Should be "marvell,pxa-rtc" - -Examples: - -rtc@40900000 { - compatible = "marvell,pxa-rtc"; - reg = <0x40900000 0x3c>; - interrupts = <30 31>; -};