From patchwork Sat Apr 13 20:22:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13628785 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 5A12EC04FFE 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=6H4/zZnJINLD8MqaHRxzprMe915AT8H2sYvUtacqK8A=; b=m5tzQSAv/GzXdG 3tBv/v4gy6L6Gs6C7KRgaDmzptcIwiF6TqgYPRsB9aouyFX5WLZwdP7H+F+YC/vQxBu0f1yJSF38a EiOrA3aeLxfKLhExk4m6tbyXTRS/eRM6H6P1tVuybQ1q2eAv+mJmsHMv7RLdhJRXxC8+eozIM2ZZX XN6PhUdizhBMGVUu/CE0z+VHqdP4FSaglyd9dGAY+GllpqeV7bAAJekWFPb//+CybC9ESw87kpwyZ ik900EQZFa4On36W4msbrJwSdp1jyjcG2CDFcpGNm2x7Yn+kDUSrI2oBjXv3zwiD25X1Nu/OCzbQC W1HxDSZy41e9uPgX+Rdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjto-00000003suP-3DFE; Sat, 13 Apr 2024 20:22:56 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjth-00000003srq-37Zs for linux-arm-kernel@lists.infradead.org; Sat, 13 Apr 2024 20:22:51 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-56e2e09fc27so3018239a12.0 for ; Sat, 13 Apr 2024 13:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713039766; x=1713644566; 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=mlncqStkvETVCUs6zj718afM59TCNUlcR1fhhEtKfCE=; b=TST4LaFpiM8f/WcTbuH3acnpwDnVHJRzP0+KnOe9yHOHcKG7TFNOspNueiII1yRpkq 1qgjFoOPUH31DVo8Vs+jJfWYWqYtbnmcIR43yvuC409OD4bOfam+TpLVGNxpmPBvMfFf ZfmhwIbuyY9cINt8NmTqXDUq6mxW9QheXN+bCNDuYGbjwOMmy1mfJzkVyjK4ianIrrmh zxfcXQw7LywZwsPSo26HBufPIynGQ1Tqi9/Exc8gYDQcMuVF6f64qgT81tNPtshlJXJ2 lDVisS0kFicCQ1RPyEK9xeTKvpUepecd46P3RBTil1apLKDXnt5i2xpGTi4uPK/z4qPB /x6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713039766; x=1713644566; 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=mlncqStkvETVCUs6zj718afM59TCNUlcR1fhhEtKfCE=; b=auvpg5yNvKAWFjKZT/JS+HHKI5Af+fYIYtn1/NDva9VNu0sl+zAT7tRtGhJM4Gw14k VS7xqdhDpp112C+PxUZ6zdJaCftcHQRZCnbgS8HzwXl5DJ6jw6h1JbF1oL5ef7pk991T 1Yh07AbfsEFVx9jQrC6jLvP+Dolh7S6Rb7xYSG/yqfry140UXlvrZf1Vchp/qKm2vxln waag5Yzqq0JXXuPfskBxF5vkkc19/Hbow3gMzZX0RWaKA43EiXhb9jn9I1xvcjfbHIHU CabyHYWFyKsU90EHD+fZlVGBLJDnvgdmerqe3fuG9o8CFBOxEMe6T5veTKozVji4KDxP gwXg== X-Forwarded-Encrypted: i=1; AJvYcCUi0kCzIO4+HxAQhGvH33Bnd/5sUMOWwDzIon3aehPPe44ShwWPshcT7l9IZhFdcnNgszDDUmW9YO3rx1b9ZygznfpjKDFBcEvPIWvRTttGmrkrv3w= X-Gm-Message-State: AOJu0YwvHKBZiGjV6dbeP61hc4HzPra3l32Vt2v6uTPcxT1YW/NXVjtO nVackBZ8KfYoCRCfMMiHqWMGKQjQUYdoPpd2M/uLwuJm5bxT5L/X X-Google-Smtp-Source: AGHT+IFxJMdB4pyARx3Aawi3IFzs2nXj+ryWbAKjAxJvsPXVxaHcoc6IA0BRjiO7OEU63KcFBwK6Vg== X-Received: by 2002:a05:6402:2483:b0:56f:e7fe:6416 with SMTP id q3-20020a056402248300b0056fe7fe6416mr7532268eda.5.1713039766540; Sat, 13 Apr 2024 13:22:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 13:22:46 -0700 (PDT) From: Javier Carrasco Date: Sat, 13 Apr 2024 22:22:16 +0200 Subject: [PATCH v3 1/4] arm: dts: nxp: lpc: lpc32xx: drop 'clocks' form rtc MIME-Version: 1.0 Message-Id: <20240413-rtc_dtschema-v3-1-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=881; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=Q2/PcLOdGvifsb0OrilHhlY/IiPhNM4DytJOdAt+KtY=; b=vW9T9O08KRg4Tk31a33U5au8ur+G1CxQM5yQmbHVaTcG7YJwzkC5L6cslsx1y2Cb6oKXWEHMV 4EKBRC1ug7EBOBJOMAYRJc1q9ceXcMmj0g12hxQk14EElmgr3JwLwzl 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_132249_816802_2A3F85CE X-CRM114-Status: GOOD ( 10.11 ) 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 The RTC does not provide a controllable clock signal (it uses a fixed 32768 Hz crystal, the input clock of the SoC). Remove the 'clocks' property to better describe the device and avoid errors when checking the dts against the nxp,lpc3220-rtc binding. Signed-off-by: Javier Carrasco --- arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi b/arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi index 974410918f35..f78d67e672b4 100644 --- a/arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi +++ b/arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi @@ -384,7 +384,6 @@ rtc: rtc@40024000 { reg = <0x40024000 0x1000>; interrupt-parent = <&sic1>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clk LPC32XX_CLK_RTC>; }; gpio: gpio@40028000 { From patchwork Sat Apr 13 20:22:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13628784 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 E9266C4345F for ; Sat, 13 Apr 2024 20:23:07 +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=3darKRSRkye0EbqFHOeKWDZsrkt1MLATQGiRPpbKwXM=; b=Rlr+V7tDIaxyLg 5cX5jQKwUV0o2rr9Yi9s2UgkovVNUM6iekID6ZgCYkc6QUUlPGLkw64+xTCZDodKe7f1ty+Clh4jC hvfgodY1XEK+b17z4vCu/VWRraYdJNEzdz5X6m+gxk/kd1BsBUSCYlJsE/YJA50Bfc1PAWuOqTh9a 1TWeQ5vyul2kCWWMpSf35cMG+bSUx9yCLVhzy/JcWmkq3ZRZUpgYlu8E90SCkmBvNBe7HuWQM3KTx nzNOhBnrPSRlwNRX6iVCAKc2FGFdqitZwWFUId8YDGPfI4CXQdN36oQT1BM1eEOPmFVnCq4W9k2k+ Ium63smOjdPz/ITN2a1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjtp-00000003suu-2uqr; Sat, 13 Apr 2024 20:22:57 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjti-00000003ss8-3Ahp for linux-arm-kernel@lists.infradead.org; Sat, 13 Apr 2024 20:22:52 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d8b4778f5fso15630691fa.3 for ; Sat, 13 Apr 2024 13:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713039768; x=1713644568; 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=CF0jgJLN2j7M2dqxVXyrLhXc1ekWdPc5fPyMQy60sew=; b=ROq+L94PrcqeSwBxLQz2WGqhIgSfcBq63Wb7Qjv1pKkWYtCVliNENh0Xu08glL8zLE PZc4Xxrw4w5R3oJU9b7DMYU5YzoPyXSHrYTHZS7+DkBQbV6fhJW4lzrK+zbmQ8DD+10I AlANAVo+AvmFFYgGkmzdByWe4tqJzDEJx1EAEx4NkwTccpGBWHCOROVVjj+t9DyQu0pi BwI/bXohZfatBwNI9ZJ7Q17OiNrEHGqJmSDP+eH5CZ5H23R2sRmNjZgLfZbhSjzJuOKT RMRPuP/jV83sH8FkBzC1BG4cX5aq3bKcH/ghChr9CPx3vZoTaSDrHM0rFq6xtzGgBPIb n0sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713039768; x=1713644568; 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=CF0jgJLN2j7M2dqxVXyrLhXc1ekWdPc5fPyMQy60sew=; b=nh5ZIfatdshPM98h5fKL/m+FJPgFq3Vl0nBvxSyaM8YTpjOkgku8Fft5CLxI0/J95S e+YpY6nPweJNisAihzw03yuDL1U4E3/AS20xfW/VPdEsYGfkE4S4eNMGK/PmwRif9yhx X3E4GriJ1P/xD5Neq8Y8ZN/LstCm6lnLCgK2/Ls6a1AnwGS7zKmORg4VevJGASOAaEyB jeXhrjFnmF36bWXw6rIJEWB+SXfGs13vd3XUxnLKtmv82pKdCQwHQ9xhYTf+SXMrtRYU ufTcvQR8JN1I+o2mkdUOEOrRW7njxKJMzx6baqDteVYUtnqkzdb9NpqhGQyBQnnMrj+Q m0Pw== X-Forwarded-Encrypted: i=1; AJvYcCUHOC51XHJVexF+gHPX1LgyUFg/B8Yxt4y/Vrkov7vTLj74p1AHXfRIxJjjn4PT/wda0pPa+i1eYnbhCZT4Wyk3RjW7M6+I7AQAP6bMA1l402Pko+s= X-Gm-Message-State: AOJu0YzwTgdtLxhvyu5FY7uy3+57ZXi99fnZP4grdRYmrnMlQj/sv8EQ teH61P89qmh6ZMaEEE8Wnr/kQOdHXcsccmLiFB2keQMaL/ToAWwzfbqsAeu9Cl8= X-Google-Smtp-Source: AGHT+IHQNWJqKv41Jzxvn0wIsHmK6cmyIQ6yzwPOQYaGLP8EY7WLKlVhoMrqczp84kw65nen+gdDeg== X-Received: by 2002:a2e:8799:0:b0:2d8:636c:b4ad with SMTP id n25-20020a2e8799000000b002d8636cb4admr3809892lji.35.1713039768192; Sat, 13 Apr 2024 13:22:48 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 13:22:47 -0700 (PDT) From: Javier Carrasco Date: Sat, 13 Apr 2024 22:22:17 +0200 Subject: [PATCH v3 2/4] dt-bindings: rtc: convert trivial devices into dtschema MIME-Version: 1.0 Message-Id: <20240413-rtc_dtschema-v3-2-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 , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1713039763; l=8648; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=SMORReniNUS8EgdHY4G4puGMUqdzjxeYHUZ9LEa5vlY=; b=Fl2XNLJxa6lw01zpCPzyEZi5S29wfcWITgmEUkQVLHUskiJSAU+3OGa5zFVmGo4QSKic660vW cid2ouXGKcyBMDfSDwzshAhhoqK7SSoRqGWlZKRaLsk9Cor5ExxnTQ6 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_132250_851150_CF3DFAA9 X-CRM114-Status: GOOD ( 18.20 ) 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 These RTCs meet the requirements for a direct conversion into trivial-rtc: - google,goldfish-rtc - maxim,ds1742 - lpc32xx-rtc - orion-rtc - rtc-aspeed - spear-rtc - via,vt8500-rtc Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andrew Jeffery Signed-off-by: Javier Carrasco dt-bindings: rtc: lpc32xx-rtc: convert to dtschema Convert existing binding to dtschema to support validation. Add the undocumented 'clocks' property. Signed-off-by: Javier Carrasco --- .../bindings/rtc/google,goldfish-rtc.txt | 17 ----------------- .../devicetree/bindings/rtc/lpc32xx-rtc.txt | 15 --------------- .../devicetree/bindings/rtc/maxim,ds1742.txt | 12 ------------ .../devicetree/bindings/rtc/orion-rtc.txt | 18 ------------------ .../devicetree/bindings/rtc/rtc-aspeed.txt | 22 ---------------------- .../devicetree/bindings/rtc/spear-rtc.txt | 15 --------------- .../devicetree/bindings/rtc/trivial-rtc.yaml | 18 ++++++++++++++++++ .../devicetree/bindings/rtc/via,vt8500-rtc.txt | 15 --------------- MAINTAINERS | 1 - 9 files changed, 18 insertions(+), 115 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt b/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt deleted file mode 100644 index 634312dd95ca..000000000000 --- a/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt +++ /dev/null @@ -1,17 +0,0 @@ -Android Goldfish RTC - -Android Goldfish RTC device used by Android emulator. - -Required properties: - -- compatible : should contain "google,goldfish-rtc" -- reg : -- interrupts : - -Example: - - goldfish_timer@9020000 { - compatible = "google,goldfish-rtc"; - reg = <0x9020000 0x1000>; - interrupts = <0x3>; - }; diff --git a/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt b/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt deleted file mode 100644 index a87a1e9bc060..000000000000 --- a/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt +++ /dev/null @@ -1,15 +0,0 @@ -* NXP LPC32xx SoC Real Time Clock controller - -Required properties: -- compatible: must be "nxp,lpc3220-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: The RTC interrupt - -Example: - - rtc@40024000 { - compatible = "nxp,lpc3220-rtc"; - reg = <0x40024000 0x1000>; - interrupts = <52 0>; - }; diff --git a/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt b/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt deleted file mode 100644 index d0f937c355b5..000000000000 --- a/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt +++ /dev/null @@ -1,12 +0,0 @@ -* Maxim (Dallas) DS1742/DS1743 Real Time Clock - -Required properties: -- compatible: Should contain "maxim,ds1742". -- reg: Physical base address of the RTC and length of memory - mapped region. - -Example: - rtc: rtc@10000000 { - compatible = "maxim,ds1742"; - reg = <0x10000000 0x800>; - }; diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt deleted file mode 100644 index 3bf63ffa5160..000000000000 --- a/Documentation/devicetree/bindings/rtc/orion-rtc.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Mvebu Real Time Clock - -RTC controller for the Kirkwood, the Dove, the Armada 370 and the -Armada XP SoCs - -Required properties: -- compatible : Should be "marvell,orion-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: IRQ line for the RTC. - -Example: - -rtc@10300 { - compatible = "marvell,orion-rtc"; - reg = <0xd0010300 0x20>; - interrupts = <50>; -}; diff --git a/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt b/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt deleted file mode 100644 index 2e956b3dc276..000000000000 --- a/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt +++ /dev/null @@ -1,22 +0,0 @@ -ASPEED BMC RTC -============== - -Required properties: - - compatible: should be one of the following - * aspeed,ast2400-rtc for the ast2400 - * aspeed,ast2500-rtc for the ast2500 - * aspeed,ast2600-rtc for the ast2600 - - - reg: physical base address of the controller and length of memory mapped - region - - - interrupts: The interrupt number - -Example: - - rtc@1e781000 { - compatible = "aspeed,ast2400-rtc"; - reg = <0x1e781000 0x18>; - interrupts = <22>; - status = "disabled"; - }; diff --git a/Documentation/devicetree/bindings/rtc/spear-rtc.txt b/Documentation/devicetree/bindings/rtc/spear-rtc.txt deleted file mode 100644 index fecf8e4ad4b4..000000000000 --- a/Documentation/devicetree/bindings/rtc/spear-rtc.txt +++ /dev/null @@ -1,15 +0,0 @@ -* SPEAr RTC - -Required properties: -- compatible : "st,spear600-rtc" -- reg : Address range of the rtc registers -- interrupt: Should contain the rtc interrupt number - -Example: - - rtc@fc000000 { - compatible = "st,spear600-rtc"; - reg = <0xfc000000 0x1000>; - interrupt-parent = <&vic1>; - interrupts = <12>; - }; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index c9e3c5262c21..c48d0dfa28b2 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -24,6 +24,12 @@ properties: - abracon,abb5zes3 # AB-RTCMC-32.768kHz-EOZ9: Real Time Clock/Calendar Module with I2C Interface - abracon,abeoz9 + # ASPEED BMC ast2400 Real-time Clock + - aspeed,ast2400-rtc + # ASPEED BMC ast2500 Real-time Clock + - aspeed,ast2500-rtc + # ASPEED BMC ast2600 Real-time Clock + - aspeed,ast2600-rtc # I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output - dallas,ds1374 # Dallas DS1672 Real-time Clock @@ -41,16 +47,24 @@ properties: - epson,rx8571 # I2C-BUS INTERFACE REAL TIME CLOCK MODULE - epson,rx8581 + # Android Goldfish Real-time Clock + - google,goldfish-rtc # Intersil ISL1208 Low Power RTC with Battery Backed SRAM - isil,isl1208 # Intersil ISL1218 Low Power RTC with Battery Backed SRAM - isil,isl1218 + # Mvebu Real-time Clock + - marvell,orion-rtc + # Maxim DS1742/DS1743 Real-time Clock + - maxim,ds1742 # SPI-BUS INTERFACE REAL TIME CLOCK MODULE - maxim,mcp795 # Real Time Clock Module with I2C-Bus - microcrystal,rv3029 # Real Time Clock - microcrystal,rv8523 + # NXP LPC32xx SoC Real-time Clock + - nxp,lpc3220-rtc # Real-time Clock Module - pericom,pt7c4338 # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC @@ -67,6 +81,10 @@ properties: - ricoh,rv5c387a # 2-wire CMOS real-time clock - sii,s35390a + # ST SPEAr Real-time Clock + - st,spear600-rtc + # VIA/Wondermedia VT8500 Real-time Clock + - via,vt8500-rtc # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC - whwave,sd3078 # Xircom X1205 I2C RTC diff --git a/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt b/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt deleted file mode 100644 index 3c0484c49582..000000000000 --- a/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt +++ /dev/null @@ -1,15 +0,0 @@ -VIA/Wondermedia VT8500 Realtime Clock Controller ------------------------------------------------------ - -Required properties: -- compatible : "via,vt8500-rtc" -- reg : Should contain 1 register ranges(address and length) -- interrupts : alarm interrupt - -Example: - - rtc@d8100000 { - compatible = "via,vt8500-rtc"; - reg = <0xd8100000 0x10000>; - interrupts = <48>; - }; diff --git a/MAINTAINERS b/MAINTAINERS index aea47e04c3a5..f24469714f1e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1442,7 +1442,6 @@ F: drivers/irqchip/irq-goldfish-pic.c ANDROID GOLDFISH RTC DRIVER M: Jiaxun Yang S: Supported -F: Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt F: drivers/rtc/rtc-goldfish.c AOA (Apple Onboard Audio) ALSA DRIVER From patchwork Sat Apr 13 20:22:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13628787 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 54FCFC04FFF for ; Sat, 13 Apr 2024 20:23:12 +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=D1eOj/H8ujwu0Vm1Ur3SieDAr59uFQAJz5becPhPEMk=; b=thrWX2C+znvI6l pIXi8WWuVIX7Q7IQQ3cM7fRjcHArE0S8GheLrZqwPFIMD45DiTSKibDb4sEs8ZgZKWnBxO+cocW/J DnJdXgyeV88w1mgRCRosr8dN3Mcz+r3QeigvfEPJ+0GA7AMRF524X2Pv79Y9dGIrdr4ETpSQNtZAp +zI0gZT9DAkMyZAqjAujxNzFGeWGQ0FifrBrBh+njc979FbaAwfy02AUuja/IyT4+adkpgTHh8+1p K/18ERXIlUPWN/1BAKD2NJZYBnbdXvcE5HevaoIMc8zInKQ5VTUMU+qg7yt8aKpdixTyS3R3gpXnY WNjazYLGXyCG+0V4x7fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjtq-00000003svb-2DOj; Sat, 13 Apr 2024 20:22:58 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvjtk-00000003ssV-0CpW for linux-arm-kernel@lists.infradead.org; Sat, 13 Apr 2024 20:22:54 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-56e56ee8d5cso2488694a12.2 for ; Sat, 13 Apr 2024 13:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713039770; x=1713644570; 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=1jSeqduTcQGsgyy//ksgmL2wkqDSRJ2+W9of4aqh+v0=; b=Lper0ntwMSdoroQqib7AhyQKaCA7ClrstgyNBxeFkUC5JFnp8b+IDoEEyLWnT8SdzE QA/Zm8oenwIDXWnLTaVsDuQkJYLqOGZ8erh8G/Yslbc+7R8P/QLdoaaOUbQ5xTDct5f7 1ijBuNqULTRkmHShzvzB+I8LYn71YY80yW3AdZB6l8wrm6hzsBhhdhykGZp55oW3I8G6 7yB1DVG+BEsjPxkHRio2LNkyRnqW9nwi/scaRDDEPCn1MNTb2dNWXNNvU4UVGdidmtdh ACXn7AQj9QvTKo6T7TmyAdMAL/+ISThISp+IIGqY2WmmMLI4Tsj/F/6eBcCjqs5oxLwA 0MFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713039770; x=1713644570; 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=1jSeqduTcQGsgyy//ksgmL2wkqDSRJ2+W9of4aqh+v0=; b=hIeK2ynR12XeSd1/yenG9nG8smAr1h2jG4oZLrqV/JLLp9zV23hmJ1X3p9X0vdaso2 P8k9jUFqmPMX1LGE3kYAIf4TUHD12t06YGEfsos/6QpJj/1qo6odVkthx5d5ycpda9q1 DeiE6zB44C5X5qF20rAymiIkxQfKyEWBHqct5sipH/nv/9UXuR0/IOg1tJQR5Mk6X2CZ l8EH7pt31oEGdQa6ob5xUj/a9atHu4Ja11qrLLnBzfjiecu+dAZp95M5KqMfK44snPf4 vvafTt0ylFNCW0cCnE05d54Ug9q40y2IUqU0v9f5Zw6P0+CqMucCjNesKRNJ9ZjsVtzy uGxg== X-Forwarded-Encrypted: i=1; AJvYcCUs4JWb38HqGch6V3FsMdS7Zwq1cKITzvpRbm1qnduEAl9MfFz/9N4Bvx8jWjyy2vsWyW4eTWa30en99LS0hy7tk+LiGl/7MCHKlmxls/40DZdyATQ= X-Gm-Message-State: AOJu0YzL+4nMRhkQ6IDcR1Gpz8eZuFhY8xAUXKYKa2329/J8ukVBt6c1 oEytF9CvT3sW/S8Sz8gPUgSkkD63e+gPniwA5Rds3e8Wzt/4pcri X-Google-Smtp-Source: AGHT+IFI7Mf7+BKywKM8fQneaNYeKg0506rdVS6QAqUcQ7Sr40AdzNrF/+duFNOTOQ9+ESOR4ghevw== X-Received: by 2002:a50:d49a:0:b0:56f:e585:2388 with SMTP id s26-20020a50d49a000000b0056fe5852388mr4401777edi.36.1713039769896; Sat, 13 Apr 2024 13:22:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 13:22:49 -0700 (PDT) From: Javier Carrasco Date: Sat, 13 Apr 2024 22:22:18 +0200 Subject: [PATCH v3 3/4] dt-bindings: rtc: pxa-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240413-rtc_dtschema-v3-3-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 , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1713039763; l=2124; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=MljIxyWTISU+l2odfMzkGB6VwOiZuuSwves7xqGR7H0=; b=0hoxOE3BWo7kiUwrQF39RyMoaHenD1MV06IuWnROQZSVZunX4H4UoO1i7iwQUSMpguSIn2XGd S1ID4OqYE1ID8dS9mbiLSrji4QpzQWpT85Iw6n/t53Y1eOSpUv3BPqf 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_132252_241526_D2F41576 X-CRM114-Status: GOOD ( 13.17 ) 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Javier Carrasco --- .../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>; -}; 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>; -};