From patchwork Wed Apr 10 15:55:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13624790 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 EA1D3CD129A for ; Wed, 10 Apr 2024 15:56:19 +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=UwohnjwQOp5+Q3KM0dIlwzaWn89VxpO8JBgsy3uYOIU=; b=D6Okd0cWpyYcb/ 1CUFMCwq97xuniDwjAEZ+wtTTF1l6BsFVqrchJBGrDWh8xi1HBxRkhz9G3YsjQB0cAbQPfSeSH05i w6Oh6UZMI6c54mtk2f7SPh4ZYLqKTtpMT1+/s4OBolD0ljZ3LhltoxCguySSx+eidfwnRKIv+WlXT ZvdMOwKL6+p09lhkEzNuP5wR4EYeQj/Pi69ToqNmJlO/KXM8W2eCpWAoS1WzpSTBmRNXlNBAQejLl vw3+Iuv8svRKC7aCt+AOlHPh/jqUIPoc4rF+bmfc8fXunqE+jBVeWMzrYthlpaSI44wg6Zxu5E12q lS0husTmN+OaSMQLbsBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIt-00000007tHC-4C23; Wed, 10 Apr 2024 15:56:04 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIm-00000007t8O-1HCy for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2024 15:55:57 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-516d04fc04bso10647837e87.2 for ; Wed, 10 Apr 2024 08:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712764547; x=1713369347; 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=CjWL5urfCD2suWbxASMh0ZFN/BJUloa3sSOiLzgPS7w=; b=Z7NPi/iQVwPWRBMGOzSv4YvAOcwZZrzF+7k84MqLBTH8BDsk0NA7RYWfRgTAW0gm0y 9PpC9vRRw29gbgM/O8JK9AsB6D1EBSsU8zmEhBXIwPxtjHZwWbTT1NqHnqtk3Tqgi1dL CG8qQ4b+CrKLZdU3qxZRix9qszUND8hu1EHVant06EWwDIL21ceSwzFEEeWBPd3KuFWw uby/EvaB3nzsCGMlPKgobyklzfQYrW9gaEMt6S83VaDxunA+y1ZXW1CZeNuQlos4DcPn z16Qik+ZfLzUcB5G6CyfyIsqY6r7JBXxXKed3Fw6brtvryQkgGSx3QEsZUIO3S+5T1Xv fShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712764547; x=1713369347; 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=CjWL5urfCD2suWbxASMh0ZFN/BJUloa3sSOiLzgPS7w=; b=JfCHGn2joEGUFWXIK9Wx1VG+41xo56Wd+KX6JOPMlX2K8xtHmjJnbwNFFuqr4nLsB3 2r+mTDxJbEmS/nmqsDq1zM0zjnBhpmqLZR8PtcYae4sSh9ie3/zxtrmWnU53dgCJBthW sO9ZF+DVFYM99ap2YTSpecQRNBXmJMif3nrRTld2kE6yBDzCJ3tWnAWoIhnflWHlIWiO 23Eg67YjpAPQ7EgAUpxkaS5YmScMUFRYPn/E39Z29i99lE6QEnsKGNuhnaPS5/Kd1+JK IN0QCtF5gbCbcxzuwmz5iQ4szSP67p6Js1tBNEn7FFHDk56B9sjJAcCnO/V6kLK7INoG RW8Q== X-Forwarded-Encrypted: i=1; AJvYcCV0yFHoR+UTuhv58tuMb26jy9vu85VBt42jTuhmyzLlQbbcqmMDMbHmtn9+S5VPcIjiI86dbKWTQjnbhdeeUEG6wW3XDnqIxxIzXTLPOCeUT6SsvQk= X-Gm-Message-State: AOJu0YzqyyPzOBS/sjJwNGcdGccLC3CLCmlpOwHoUWYLcOQtjA4sHLLL 0klsgEqKnzW0ElVydBKXjkYBb0i34oXxaYSFRb6mYfxdrVgOg28O X-Google-Smtp-Source: AGHT+IEhZ1EhOuatHHJC6dOkQluG+xXK5rizjLmHKYICtQdqLLMxOuH3rslLtKvHjApmXWcEYzpUkg== X-Received: by 2002:a05:6512:3134:b0:516:d1f0:fbf7 with SMTP id p20-20020a056512313400b00516d1f0fbf7mr2608557lfd.42.1712764546832; Wed, 10 Apr 2024 08:55:46 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id qw6-20020a1709066a0600b00a52172808c9sm279884ejc.56.2024.04.10.08.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:55:46 -0700 (PDT) From: Javier Carrasco Date: Wed, 10 Apr 2024 17:55:33 +0200 Subject: [PATCH v2 1/4] dt-bindings: rtc: convert trivial devices into dtschema MIME-Version: 1.0 Message-Id: <20240410-rtc_dtschema-v2-1-d32a11ab0745@gmail.com> References: <20240410-rtc_dtschema-v2-0-d32a11ab0745@gmail.com> In-Reply-To: <20240410-rtc_dtschema-v2-0-d32a11ab0745@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=1712764543; l=7413; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=iUosu5YsymPpKqNWdU+OWpw6XNZgSqKxxGsYBKQMjJI=; b=owDeqWcOexlJxUWmQcrdxMqzT1gWgViU73lAqA5P6dc9IURx/jDGsvUcssKKup3YCc6xdTLiI NASAfe9dsp1CPuYc/hs4k29Vy67X64HKj/oHJXdRY8l2lJn5PuvMHQu 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-20240410_085556_387325_DEFD84C2 X-CRM114-Status: GOOD ( 17.74 ) 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: - orion-rtc - google,goldfish-rtc - maxim,ds1742 - rtc-aspped - spear-rtc - via,vt8500-rtc Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andrew Jeffery Signed-off-by: Javier Carrasco --- .../bindings/rtc/google,goldfish-rtc.txt | 17 ----------------- .../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 | 16 ++++++++++++++++ .../devicetree/bindings/rtc/via,vt8500-rtc.txt | 15 --------------- MAINTAINERS | 1 - 8 files changed, 16 insertions(+), 100 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/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..b590bf35d440 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,10 +47,16 @@ 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 @@ -67,6 +79,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 Wed Apr 10 15:55:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13624789 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 C14ACCD129C for ; Wed, 10 Apr 2024 15:56:20 +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=+suAGLWs0kTdHF4QfZeKY1tBGBYi3rXa1mGowAtlpA8=; b=OpcCEVZltuBqrU Afl3lqdgc1si9EM0WjRQ8GQ2G9VxyJ57pCy237w2jF1/FrbiJL6PSfulhFOvUxIIcm/1XwS8c23el BMED5NU7sALE6i5c0i3ZYByXqU/yyQjSrdWFV5vgX52LIUqSrjmF/OZOmaVjOqMKPYYFQv1vJxk/l Sw5kVQXRxuQ9FttXbBsZk7sNlnLfP4dDkkjbybBhkj3d1M82AZLBaXisU7lg9ZVo7O2a2w6iBVbgc 4YLkhzX4XlAd2YX+o6q0+jyn/+qbb9N5DWZmRet7pgbD9h3w/i8/SwsSQd7uf3YS2SJtjCte7McXb aOxCll4s1FcTEyPgyjyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIw-00000007tJE-2Ycm; Wed, 10 Apr 2024 15:56:06 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIn-00000007t8m-0WWi for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2024 15:55:59 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-56e47843cc7so4329151a12.0 for ; Wed, 10 Apr 2024 08:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712764548; x=1713369348; 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=HzWm9MO6MRh2JhYRh9d9r60JurAw8zbzSiBG8Vp4F7A=; b=iP7LK9A1Iw4HyFejgu6OUjTM+r93713khL3SoAwLkGOSgK+uhgzmKx9Gso7XwaxTZs 4hSUDlrbD23MMhkDajxH6m18tVjhtTtizXOPrj1jfpvYUad5IX/OFRAdPPrO5hkAOR7f ygQRHvzU3jtrjr/BSD9BfkheSeQRYvnZ/aEbmXdyYXG0c5sZwNEb31QvHBccvi0mzrxg Wj6xGZn/qeu8CHfryySOEnlD/9I2A+iXNeWrmlfSb7SRjGcre59bngYa+GRnbQBFCJ/N YWh38GkiuYvdOespGekWB64U9OkJI8VNj93BJToausptd4+q7kbZXDAe73JMSvAkrIb1 ImbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712764548; x=1713369348; 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=HzWm9MO6MRh2JhYRh9d9r60JurAw8zbzSiBG8Vp4F7A=; b=fM2K14UqB+9Jsyd/6Xg/jeE3/GdLjDhpoXPA9mgUpNbbcGsO0WPwwQ6sQ9JQXCOj+h jqV+uNy9SsCbyzsDgNHQ5aJEUKJ3dDmfRzRml1L5uZ3ka5e3YEZKkDR7c4xceJ96M+ZE oGqquyFEWDfY8byRyEb/5gOMqSS89HF9WOwftwkQd8pr8dzVRltww2dWYYs/xYnG0doH 6OZKD0ZGPTGT1xT5/fayAmzzwwXwiLD7i6tmvySgfU7bvNAg/Xf+BGp+MsXq/6Vganq2 PJYRMAaDOHFnZyU9QdPeHYFS8K8U/jIQrGCPQNJoxdGitImCxv+b6oaIiLdS9dRxkcIH d5XA== X-Forwarded-Encrypted: i=1; AJvYcCUjGVHk7uzkRDZzEfu91z/TCB8X481TcViPhZgnmpA5xcyWQyMF1+4GOdJK6SjaEe70ewC+uyUW/cxIUraKhheuxM9Fk1ET0EOhBZCNp50ZeZq+s+8= X-Gm-Message-State: AOJu0YztQ5z5IyMKN1mSP4yI1/UG5JiuNIKUtEyswpri0Ex+D1yZaYIv gDIni8iQNTSyU+5XPubfNzbmJqV0ET2LuvBKi3BPJaCAQmytz+MZ X-Google-Smtp-Source: AGHT+IGWT0zg2GfhSFE2SOFKfpvXgozYERgxjlvwRfCaQ5TT835wuPhVMQ4kvDupf6tnP6/hPhy/bQ== X-Received: by 2002:a17:906:ee87:b0:a51:962d:cf0d with SMTP id wt7-20020a170906ee8700b00a51962dcf0dmr2330371ejb.12.1712764548277; Wed, 10 Apr 2024 08:55:48 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id qw6-20020a1709066a0600b00a52172808c9sm279884ejc.56.2024.04.10.08.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:55:47 -0700 (PDT) From: Javier Carrasco Date: Wed, 10 Apr 2024 17:55:34 +0200 Subject: [PATCH v2 2/4] dt-bindings: rtc: lpc32xx-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240410-rtc_dtschema-v2-2-d32a11ab0745@gmail.com> References: <20240410-rtc_dtschema-v2-0-d32a11ab0745@gmail.com> In-Reply-To: <20240410-rtc_dtschema-v2-0-d32a11ab0745@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=1712764543; l=2099; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=ZJ06gPeNSTQ2DySuOzdESjyZIxHEy/NT6VtQopAeiQc=; b=OWv7GNhwJh5KCDkRW7ERfspAklaTpWgWcxbYfHhi4SlqF6l+Dk6ATof15wOpkwnTCDEg8Vawt 6TzRRYUgVEgA0j8sdfATE22NOBeslYc9HH6g4bJakYvCUttKWqZHKL9 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-20240410_085557_267355_80CC9B35 X-CRM114-Status: GOOD ( 13.92 ) 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. Add the undocumented 'clocks' property. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/lpc32xx-rtc.txt | 15 -------- .../devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml | 41 ++++++++++++++++++++++ 2 files changed, 41 insertions(+), 15 deletions(-) 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/nxp,lpc32xx-rtc.yaml b/Documentation/devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml new file mode 100644 index 000000000000..62ddeef961e9 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/nxp,lpc32xx-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP LPC32xx SoC Real Time Clock + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: nxp,lpc3220-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@40024000 { + compatible = "nxp,lpc3220-rtc"; + reg = <0x40024000 0x1000>; + interrupts = <52 0>; + }; From patchwork Wed Apr 10 15:55:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13624792 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 91E30CD11C2 for ; Wed, 10 Apr 2024 15:56:24 +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=v6RftRYx5IOtNi pA+w2pMInf1ctub+3si07cLixQ/oXN/bX9IbbkIDdvbvjDHn8Cv/dR+pup75uMj0WfjiBslx3aHPw sCrCpRqKS3OpiEx+5HeHYduq72j8dTmbi5RRz5uPIm770gL+Luys9IfsdwvC7zsfIujKxVc8IrnXl tGJ4Rmeul1ihJZSHyjJGiDqqwsPsiDIciQcDz3D6X+airPZulKhYDAABOJOhIzb3nyuwILG/YfNaO 7wiP5FQ2tLmXUPGnnJ+rkNwHmExztiaykhR+pVao2XNlwChfkjX1OoMUvzwwJrWxMzEOyq+nIf2no ZIXH3Zn/G6feau+OpBYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIx-00000007tJs-1rQM; Wed, 10 Apr 2024 15:56:07 +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 1ruaIn-00000007t9s-0ViG for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2024 15:56:00 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-56e509baddaso3953069a12.1 for ; Wed, 10 Apr 2024 08:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712764550; x=1713369350; 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=V/Z6ImObNQAQVmczpp0Tqyz8J5lUW7AgKkgfVZKuza8KA57Bwv6HG5KQijVivt98kn eCYrt3mzGW2QH5zDxjeDKDX6MKl5ktl8uh85yWHa5DMEgt5d21i0t7sSE6e9DIIysRmM 0asdn124kTVjhDisixx9ISUvfoajXXUkElygbpws01qf5+DFBN0VYc/nfufBFDJb+TbV Gq7v8KJpWI5XbK1B80fIwrO56/VnIRaF/W32/gFd6HKzsYQobIH97QsBrRJ0SmmwOHKP 1ofwTduHNyYC93tmdzXo9+IWfECiU/e6NERYBMuYiDAbdYTIgnAa85ze7+RUtZcIWb3r p+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712764550; x=1713369350; 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=WrgjWdQy+KRnUUOjA1ZdYbBa7p6xfdSof8wcZHz3hiq42O+zRm2S4dMzqVjjnHbkdV Y5FWrqiNQcDl4+BpjIbsisoh2cKE5cuawLUgB7r03y/LtnqmhnTIno15gnxOMvRcnLOi KYJ0ksj+rInnYMwdwPWMixhQQy+Aj7z/GMopJB4fZ/gtXuHmzUcD6l9IsPOHdiHU/yc7 WpjGD8Y59XiXKDn1OqfciwyjDw5IaPTIL9iITufRKa/FsbdPh+iCvGAJJDCUbviN63aU K8RkYzDCExF/q0A0UvnatYKkKc8o48dt5yeR7Syk+lzGYQU/gbrz+MTyTK5QKyIkExdN NlNA== X-Forwarded-Encrypted: i=1; AJvYcCXBe5cO5gho+MgAZE1C1/5uWieZ4UCc1rP/pAHB8OOKAlMDJy5L29O2s6oLZaDGoNIvwD3beZfEjJE61jnFON0Q5rNpzhuv3OxDLHcTRs0bCrcaQMM= X-Gm-Message-State: AOJu0YzMu4ou/uMmAQ8zIG5gvVINFfmTHemfz0N8A/9i2YYhDERXDknw 58bL2vwdMh2yx2Gnj6B16mAAXZSDM6yQeZPyfYk4PsZT7dxq6hJE X-Google-Smtp-Source: AGHT+IHpKcHkzaocAzKrmqOnvknnOqrXFgO2SiOZTgXtv8v+e/D+kmcUtUHf56S5Bi+ZgUEYHg907g== X-Received: by 2002:a17:906:fb11:b0:a51:9f5b:b659 with SMTP id lz17-20020a170906fb1100b00a519f5bb659mr1789622ejb.34.1712764549870; Wed, 10 Apr 2024 08:55:49 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id qw6-20020a1709066a0600b00a52172808c9sm279884ejc.56.2024.04.10.08.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:55:49 -0700 (PDT) From: Javier Carrasco Date: Wed, 10 Apr 2024 17:55:35 +0200 Subject: [PATCH v2 3/4] dt-bindings: rtc: pxa-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240410-rtc_dtschema-v2-3-d32a11ab0745@gmail.com> References: <20240410-rtc_dtschema-v2-0-d32a11ab0745@gmail.com> In-Reply-To: <20240410-rtc_dtschema-v2-0-d32a11ab0745@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=1712764543; l=2124; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=MljIxyWTISU+l2odfMzkGB6VwOiZuuSwves7xqGR7H0=; b=+KJHEjpPSKgc0aYcDAt7jz8cMXuHaOsYXEx5xaxeDu98Mi3pAhR8m4a1H7J9Gj9c95Iq1CkTX C3b9IAdDAlrBY7JmKPRwT4zrKX9Ox8dBgU+omNT/BdB/TfsjCFwU3O4 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-20240410_085557_277236_2FFD35F7 X-CRM114-Status: GOOD ( 13.76 ) 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 Wed Apr 10 15:55:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13624791 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 E581FCD128A for ; Wed, 10 Apr 2024 15:56:22 +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=pLn3QksIp9qc4t gOZ3/rdnJlfklM780n05HHw1tFcCxzOI3IfhadsdZnXzYQIyrGwAhFQws/95hgpTva67Gt5/HELgw 5ul14j5NdG6rd/8Y8+OP9uZtTOLM4XlszpwX27Nq8tCrjhqQPrP8KheM8PXuQKJRbmgRryxUtB8BI KK8c4IThHkVu2qBZVIbXgFtHrGABwDDGzOqzHM/KaW+mIzY/TE87e2cP0SyfzJMvdHLS5eu+0phmj AnDrQOz+3eLD2rKDXPF7tQWNVkBpwJcihqXb4a7GIQ1aV6lS8h6kpJ2FvFPp4o19bnqhh+jy93jx/ X7kyeBkFnYi0h+IXAuUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIv-00000007tI5-2Z5w; Wed, 10 Apr 2024 15:56:05 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruaIn-00000007tAk-0V0X for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2024 15:55:58 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a46a7208eedso991339966b.0 for ; Wed, 10 Apr 2024 08:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712764552; x=1713369352; 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=J97+3u8Cy2TG8PWdz/rsRBhSkqw8CDboOKV5yE2oPZZh790b021qJjw8xe1R4oJTem dTSuRPEeWoG5L0rLI6DDahv5TApyroX1XkSbrz04hM8OV7bR4Pij0sRxQn0mjBJKNVqk XyC37YEU31bpzgHZT/V5KgfZBIr9CPIjjtpLQ+J+KYW3jbCz4mPfUnElYWGPC9hov+sJ mlKew+8e7B4P2IBGt2rshP+nnpHw1X8OVoqA2rCwNoLSot0h2YpOELXAWrJrmbqqFOdh k8/Rywm1QjVxTodv65kLjN91aVaVgYnwhrYKMGYD6JCVOR+3zBxwBm9oGd0A0pj8XVe6 EClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712764552; x=1713369352; 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=Izt90X+KcpcUgu1FdqqWZsowuOYRLv5fwISALlVY8yL512sRHQ9MbFIFrN4dagKOtK S8Miq49716uydFFHEMENGp+CAT1g2uc+BW5XXxCl72QJGct5BTUNF1siDsBdK3lIgjcW 60MWhqUM1HqCPG94af1ATOcIg8jelfSkML0tQU66FOX/QfGNet41Zv/FDU6gM21atVan gDSNcOMoXT7EHmY7W/79Nhu6OPicGI7VQaGLegTllLViZsYPaCCf5F5D0LiLnsFd9bkR XhSpe3sAMIbKO2sSCYqkwpecT3L1RVCc1aqQs5oXKUIUJkxxZs6hM5ZhqcYPpEOBbxS8 N/2w== X-Forwarded-Encrypted: i=1; AJvYcCUJQW+6SUHaOHNsHUkBnNW+Vkisv+cDuc8cRipYGV8vm4o7E4+LWAYsJeSZoHWbDwwRGRoPLIR3wne64CduGtlBAFQ6q0cKJHTwUXFLewqh7bxQqTw= X-Gm-Message-State: AOJu0YyMHCOF8h0/2CrG+qQLNVGTt7nb54WAQLGtoEF/j5Wpa/4RsyEL QJIMytZKv3xUFEk9r6h5GKaItSrQg1/BF72X564bnvE3LPzbVqv2 X-Google-Smtp-Source: AGHT+IH9ECOyJ4wkkOwf2xtDjNIpUsIMg8Pw0iVdXkQDB4YvgTtP4jNyI9hrkYj+EGDElqvho8fUmA== X-Received: by 2002:a17:907:368e:b0:a51:d605:49e6 with SMTP id bi14-20020a170907368e00b00a51d60549e6mr2268733ejc.10.1712764551807; Wed, 10 Apr 2024 08:55:51 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id qw6-20020a1709066a0600b00a52172808c9sm279884ejc.56.2024.04.10.08.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:55:51 -0700 (PDT) From: Javier Carrasco Date: Wed, 10 Apr 2024 17:55:36 +0200 Subject: [PATCH v2 4/4] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240410-rtc_dtschema-v2-4-d32a11ab0745@gmail.com> References: <20240410-rtc_dtschema-v2-0-d32a11ab0745@gmail.com> In-Reply-To: <20240410-rtc_dtschema-v2-0-d32a11ab0745@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=1712764543; l=2723; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=BajpLIZvweL+aLqlkIOgDvaU5J35KCKUJstIeHQsxoU=; b=pHkT9z1UD5fi/tDYwREkpPZ6fWm/TGqk61RmoCGhwk+BHlwI0iLZdJFdVAqFoKOsy/rcgBj0N Wk7MHzYGe96AFVsO8eT0lvMCZduQXAoKHmPHQxBN9O9UBFkbRd66w35 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-20240410_085557_240628_DB6A907C X-CRM114-Status: GOOD ( 14.50 ) 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>; -};