From patchwork Sat Mar 23 22:46:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13600730 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 33240C54E58 for ; Sat, 23 Mar 2024 22:47:11 +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=k1O4LRR/DA5EcoA5p83Iho7/mxLXiWfI+2ZsPF2T0ZI=; b=1MeNZ6wtQ16dEo 8+UeDolnNX+WeSSEDRv5HVFKXfMzNSzYEdBNJyRqP7fCeypWJbipPACYifR1bRRH8sgOqDnirp8QJ 1U/tImBxGUX2V7DriKhEqHy3X2sR6zJT1sFvirEFT2jVA2+26wtq8COFWmJS9BS6Q+POrILLHQL0Z 1nq0FL15zVfrD0tDm7o1r/EDjqbD5jie2rJkJnliqDBE90qyIpxfP05PcSGGAVJqghR4iM5qsly68 TYvymFSKbw/6i02z7JY2YZL1UId5vI6y+oJfIt99jesI7nB3qslkGzvo7uNGy6S12CvJmY7wr5hVy 4JVrQhgPeykD6lMzluGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8O-0000000BKFA-3b8m; Sat, 23 Mar 2024 22:46:41 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8G-0000000BKBf-44bL for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2024 22:46:34 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a46ce2bd562so470523766b.2 for ; Sat, 23 Mar 2024 15:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711233990; x=1711838790; 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=fBCpb6Wf0XTbTigPp4MVj4IpbN3WREllZU5o7XvaAks=; b=RFrbOnvMWiNxJdUYOiGuYp0GJXErEWSc3iuXFfsMeaSuRmul27y/DTOm8WLKXYzsdG 4Vm0wgwYFXdPuHxsNCJTd9jTKz1UYAkaUgG7y1ey6S2uF7mPhLj2nJm9+zbPHJeAocnN BEzeXP6LnVAfSHUVEkFAqsQSaXvgKv1/50NLr+55HBbXxzJovcX/j5A6YCkshZ/vI3P1 PCZtFRgYiKzhdtMxVSKusr8hZhIGLAR8+1KswPS3jRov1rttMmBM9iRybt8zoiyuIPqN 0CosUucmM1O6gX/H50drh8wzfnmr/wy8TF3LJDRnwOXRvv8BFuDloVeteRIOWUUVbZuq v1rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711233990; x=1711838790; 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=fBCpb6Wf0XTbTigPp4MVj4IpbN3WREllZU5o7XvaAks=; b=WLLl65WMpem/YztGTB1meC5w6frjzeYZjjlwpwwo0Webn99odLpqC++EfBLT8Nq+7o /dvl2dIbP5kvNK+E2xc2/4p/TseRxvpn4LSNIUa/0R41VAoqVzdVtGi/nzddS9QRuXzb Ro5mI6sM4gm+Z8aUmMwJPwTzYT+MIER3qfmoPbas7DAZcQ6PN0c1k0YRlXTOk7+Uld+x FTCLd3z/+lgWprC/I9dJeTpusNyIvhEuWfdFYnoSrYNFyY2jtPO1S+SWAA331uy3oW+2 cmtIjys5MsY/qO/YiDxAikYr+L8etQEEftEXCO+du0M2OgHNJZla6XHra7tthBlu+F13 v6zw== X-Forwarded-Encrypted: i=1; AJvYcCX8zMhHY0CeQ9t/dWYUn+u74glmDLcxI9cPCEGWXPZQVgj9yCzB6odfmaurLlHuhqSqSQGVIGZ/6uOwOZTnz+mYT7B25Rlx+yV2AWOnNICOGElwmDU= X-Gm-Message-State: AOJu0Yytsexsa41lky90GF3w7vDfyw0RRiStqernYHZnks6w8HD93RBl h4GOi+ROiB/kamzK0U8K+vArNRnu+8fmgEbeW8nUPHvUgHUvszcN X-Google-Smtp-Source: AGHT+IHZFufQTJf2mMNcT4PHhG5kTCywxCFCFzNtkewebtg+5rnmIe4lLw29zdRpZWCi/JPv9nZZjA== X-Received: by 2002:a17:906:ce36:b0:a46:dd30:7cb5 with SMTP id sd22-20020a170906ce3600b00a46dd307cb5mr2525609ejb.76.1711233989853; Sat, 23 Mar 2024 15:46:29 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-195f-8ce5-d7d9-2242.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:195f:8ce5:d7d9:2242]) by smtp.gmail.com with ESMTPSA id bu22-20020a170906a15600b00a461d2a3374sm1350424ejb.47.2024.03.23.15.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:46:29 -0700 (PDT) From: Javier Carrasco Date: Sat, 23 Mar 2024 23:46:13 +0100 Subject: [PATCH 1/4] dt-bindings: rtc: armada-380-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240323-rtc-yaml-v1-1-0c5d12b1b89d@gmail.com> References: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> In-Reply-To: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Baruch Siach Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711233987; l=2880; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=1VMNQXmeUQY7C0pUkOYDvJgVAie+xO6NAGifkWicA7g=; b=pgRthcH67RYVpV2KMYVagY+TjvK0mIydNmeOOj/wzvX9rHTU0GiqKSBVHNdYNJPl/Wd8fM4/q 6lvwvStx140ASoMJxumPOnfM6weigsCIYSVRLDnPo81/6KuuuPuPCKM 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-20240323_154633_122273_87899967 X-CRM114-Status: GOOD ( 16.95 ) 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. This is a direct conversion with no additions. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/armada-380-rtc.txt | 24 ----------- .../bindings/rtc/marvell,armada-380-rtc.yaml | 48 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/armada-380-rtc.txt b/Documentation/devicetree/bindings/rtc/armada-380-rtc.txt deleted file mode 100644 index c3c9a1226f9a..000000000000 --- a/Documentation/devicetree/bindings/rtc/armada-380-rtc.txt +++ /dev/null @@ -1,24 +0,0 @@ -* Real Time Clock of the Armada 38x/7K/8K SoCs - -RTC controller for the Armada 38x, 7K and 8K SoCs - -Required properties: -- compatible : Should be one of the following: - "marvell,armada-380-rtc" for Armada 38x SoC - "marvell,armada-8k-rtc" for Aramda 7K/8K SoCs -- reg: a list of base address and size pairs, one for each entry in - reg-names -- reg names: should contain: - * "rtc" for the RTC registers - * "rtc-soc" for the SoC related registers and among them the one - related to the interrupt. -- interrupts: IRQ line for the RTC. - -Example: - -rtc@a3800 { - compatible = "marvell,armada-380-rtc"; - reg = <0xa3800 0x20>, <0x184a0 0x0c>; - reg-names = "rtc", "rtc-soc"; - interrupts = ; -}; diff --git a/Documentation/devicetree/bindings/rtc/marvell,armada-380-rtc.yaml b/Documentation/devicetree/bindings/rtc/marvell,armada-380-rtc.yaml new file mode 100644 index 000000000000..388c7d7a044d --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/marvell,armada-380-rtc.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/marvell,armada-380-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RTC controller for the Armada 38x, 7K and 8K SoCs + +maintainers: + - Javier Carrasco + +properties: + compatible: + enum: + - marvell,armada-380-rtc + - marvell,armada-8k-rtc + + reg: + items: + - description: RTC base address size + - description: Base address and size of SoC related registers + + reg-names: + items: + - const: rtc + - const: rtc-soc + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + + rtc@a3800 { + compatible = "marvell,armada-380-rtc"; + reg = <0xa3800 0x20>, <0x184a0 0x0c>; + reg-names = "rtc", "rtc-soc"; + interrupts = ; + }; From patchwork Sat Mar 23 22:46:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13600727 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 0747AC54E58 for ; Sat, 23 Mar 2024 22:46:58 +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=cWhcO0IFxzh0ZPX90nz8I5Rlj4i53gMbnegwRrCTF6o=; b=45C9Jo/7yjdgSy q5hkmodQn65O679JW3FNhfwDdNcOEGppinNqLLawVdQLYz7wcC4tJXbfFKVe99NUFLAMlzenrU/ON Olp+sbov2HBYu7ZwyOoDV9jAGusMrF1WAennvi6lXwxmg2c2vu6p6k+K5CkwyxOLHRiKbNLiTyJvx T+6n6cIOpLnrgrrmtOaSvWfX/Te69xJAxsWiP1kDTwrJXxOMeIJ6qpEC7di6L9pVal3z2p+Dh9lzs aUQtqPCoRmOdUKnbI9cy+u63SEaVIgsjYpEqsqqKZjf//FNMwoJ/Pc+rs4X79BW7qDipxhHkbYtvE bVVvlKX6o4+PMH1a6ZOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8L-0000000BKEU-2mO7; Sat, 23 Mar 2024 22:46:37 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8H-0000000BKBv-1cfu for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2024 22:46:35 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-513e10a4083so3707784e87.1 for ; Sat, 23 Mar 2024 15:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711233991; x=1711838791; 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=V+2AzQj3mBosP08WhAfzvg7bEORkrGW2OOHVuztE61g=; b=cLYC7ZD6yvhGSA3rtMuwxtrPN47QVfKH/sqOHKd4PL7np5N6IlPgiFmgCLKCbGo2rL mcX7UME2A0wgMOHdi6kTwZ7/4Nh8Hb4IW5suK4tnXwt+2r0Vk3foqVIbXUZUMXzhecNl XGxyoHw6c/XaPFX+P543ulRfHBTTweK9l4Amon0z30DFydEAgV2wXFeXHt4hfOEYJIAI HFMLNuNe6318pRDEA6aA9N4oM6bTUWOB6aCODRqs7yxI1aNx1mzY3jLFLULpjsLqeFGj QhE/VcuYh6+sgglD9oqI1JvQprfv15nP1LqjYRycbqPE9fQWc7wuQkaWzEaQrPxVQ/Qw vHUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711233991; x=1711838791; 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=V+2AzQj3mBosP08WhAfzvg7bEORkrGW2OOHVuztE61g=; b=UZiVvCh1fVPj/SI/v05yAs1I/oAvUOgY79ifkcPwN2dDGBYhNyqvJ+OvVXdYgP1vZw /d7PPr1bxi+5avhHZDuxGxaUvnEjQMNhqh0yJEJqjAxv+CE3Xmui2HlJYfaNbwqhBOy0 R09B+fFtsL9/NYWYqG3eAzNGOoWUaELPb63faitmIVL+PQXGxjnF1PwAuSutTy34AHfx ZSocfzWbD7LwEL7PpuRZm35iKJejEWsyYF54CziJdWq7VHj6NrvnqCBPd6Xal1Mc5oxR jFM1kiW7fZkMJ1aoJ1g6dv/GWfnXrkAVbU7ecNrjGQFYtwIzR7ai4DN3JSUSEyfphj2K wLSw== X-Forwarded-Encrypted: i=1; AJvYcCUQ928+MsGLwmAv9bhQe9ROcGDdJctDCPA/Xxf8/BQkBsS77impm0d0f114UplS2k95PEezebmDFD6Ok4/1NmTrn8SmjMPp4cBr0+q4IveAu9UTrGg= X-Gm-Message-State: AOJu0Yx5viRQPPuyUNT+15Q8UMwMpkmpmMOwljBxmNEGjmLRtBaJ0Shu lZV52QwegmjM/Dez9MqQRtpnbjA9Ht7MCaquAmXArLzb/QZV2l2Y X-Google-Smtp-Source: AGHT+IF6JgLiBVRoAo6Ks5BP7fc5Q8N4eFD3gwmmYE1x7etuOZvNvi1HvTi0pmIe7bj5tYn9AbSBzg== X-Received: by 2002:a19:7505:0:b0:513:a920:aa77 with SMTP id y5-20020a197505000000b00513a920aa77mr1831613lfe.16.1711233991186; Sat, 23 Mar 2024 15:46:31 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-195f-8ce5-d7d9-2242.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:195f:8ce5:d7d9:2242]) by smtp.gmail.com with ESMTPSA id bu22-20020a170906a15600b00a461d2a3374sm1350424ejb.47.2024.03.23.15.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:46:30 -0700 (PDT) From: Javier Carrasco Date: Sat, 23 Mar 2024 23:46:14 +0100 Subject: [PATCH 2/4] dt-bindings: rtc: alphascale,asm9260: convert to dtschema MIME-Version: 1.0 Message-Id: <20240323-rtc-yaml-v1-2-0c5d12b1b89d@gmail.com> References: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> In-Reply-To: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Baruch Siach Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711233987; l=2601; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=Bd6au8ufU5mdThI9uvAPKXC/6x6DrvohxJj2kkL5HjQ=; b=ypThBmwghWRnK+btDCsBIiJklPkOBik0W0VxH6ODXTu7vWT54T+T4wMISHRDNmvVcOfq3xPXX dtdr/YESErWB3219jzm0Y0+scooMqBVRLN573IJSh19fos8W6oITMq5 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-20240323_154633_483425_81B12501 X-CRM114-Status: GOOD ( 15.93 ) 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. This is a direct conversion with no additions. Signed-off-by: Javier Carrasco --- .../bindings/rtc/alphascale,asm9260-rtc.txt | 19 --------- .../bindings/rtc/alphascale,asm9260-rtc.yaml | 49 ++++++++++++++++++++++ 2 files changed, 49 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt deleted file mode 100644 index 76ebca568db9..000000000000 --- a/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Alphascale asm9260 SoC Real Time Clock - -Required properties: -- compatible: Should be "alphascale,asm9260-rtc" -- reg: Physical base address of the controller and length - of memory mapped region. -- interrupts: IRQ line for the RTC. -- clocks: Reference to the clock entry. -- clock-names: should contain: - * "ahb" for the SoC RTC clock - -Example: -rtc0: rtc@800a0000 { - compatible = "alphascale,asm9260-rtc"; - reg = <0x800a0000 0x100>; - clocks = <&acc CLKID_AHB_RTC>; - clock-names = "ahb"; - interrupts = <2>; -}; diff --git a/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.yaml b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.yaml new file mode 100644 index 000000000000..f949634ef56b --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/alphascale,asm9260-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Alphascale asm9260 SoC Real Time Clock + +maintainers: + - Javier Carrasco + +properties: + compatible: + const: alphascale,asm9260-rtc + + reg: + description: + Base address and length of the register region. + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: ahb + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + + rtc@800a0000 { + compatible = "alphascale,asm9260-rtc"; + reg = <0x800a0000 0x100>; + clocks = <&acc CLKID_AHB_RTC>; + clock-names = "ahb"; + interrupts = <2>; + }; From patchwork Sat Mar 23 22:46:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13600728 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 877B3CD11DB for ; Sat, 23 Mar 2024 22:46:59 +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=blMTXirj6qxGxZd+sxziwL7DsMuu/y9QHISpmxp7tUY=; b=iKnHMn7GkljUNA otbvBd3nIAvicS8qLUfZn71oEbYU2/jrcZnkKVwuq6n7UQeamk89Npoa9qdysI51kzzZe6XDzvXgR FYb16c6WU6Am2co/3FMIaINwy7s6ByYw3olz+npIsEgJJRwNkLAdpdMSXZWwTBnsGAjTZiAL8iXoS 0Jn2QoyK8orL7yDmpy257k8V6C0O2J919qQrvF14hqxxepSHNuihyaq7S59QkUSV2s3yi1CIgHtCE kryMRPo1Q9q21VQszZ7lW5KkFB60i8vEx3gz9BHvxAXDHWxUgghMXhrY+PjV/TVqXJIiuDILYAeN/ 70L7IywDd66dwi34yhbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8T-0000000BKGn-01r9; Sat, 23 Mar 2024 22:46:45 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8I-0000000BKCy-42ZJ for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2024 22:46:37 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-515a86daf09so118565e87.3 for ; Sat, 23 Mar 2024 15:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711233993; x=1711838793; 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=7F0fLmvFShDUvgX2kPM7vLCKKBKWroKRJEPwwDn+1rM=; b=SVOUvYszDCHCuwVK9boRCuqvf4wyjoUa0wD3Ln7SkUuxGa48Rc1TbYVtZ5ADXnGqYQ DzZ2Qy55ybDC0qp+ET3d6SPPcC8bSfjiihrYb6u9eeu8+NMv4qEtgq8vdHMY4iibG8Av zurtZA3JqucZPLv080EV9Io6PaHANYayrVg1Nd3cI1U5Pg2m7gY/yxyH/X4ZVxN1nomg K1iHTMIEHRo2aObLaPJ6Ev1VPRqfv6P3LEX2bCSeNCK2KrWagdzx5E7q+DzLYcyvqcLx SSBEvLna8eOR9mW0UbdJxztNKDkHsZ5bm/MOUt4lyx7mcZKCXsnzkgmoJNbJ810W9Wx2 4SFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711233993; x=1711838793; 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=7F0fLmvFShDUvgX2kPM7vLCKKBKWroKRJEPwwDn+1rM=; b=HnkKSpGWN1/sWlby4C7jb/6x4VK4id7ud7w3fM5K7W6AWSVPtRYkpCPpTySdcl2AkK QM48ZVUs9pHZrER/3CLiu9xzCymL1qYFhXQkHzNvWxXdl/RKqSGq2iGvoWJ5mTuIx+Dm HCtLkbTZN3KJHsqPF2h2CtiRpuW+rZSPRX8D6D0LXl1n51+8BHSi3hDu6SsO0pUnRdyy ZpuMfUQ+df5+0JgHpTDOxF/crzX4ZvvHbcdNfkd4YZ96F1+1OINPHMi+UJSHovu8602Z G2zQCZyNZ2RWcO4O/Tth4s0AxYBBGZ4Ihca97qyqoF2nPyzXuhG8hwg83rXWUcuE6v8Z lhyg== X-Forwarded-Encrypted: i=1; AJvYcCWfGSTB08ZIbCmhUfH1eVFEM2T9S/ygMZnYmRDvpfgE++Fb9VoW4XzK8xchxbINVeYzVgiSom3qafP6GuEr8T3YdrX6AGRbgThY8ylzY3hPdwUMVAs= X-Gm-Message-State: AOJu0Yz2zm1lksH1N9gAIu84JqoMMsfacG2VGDMJtfkLpGkezPnopA7W erNt9oBvzWpNiiRm9sfWcSv4g6VawKLL58R3U9Ayjo9cR18FVEmU X-Google-Smtp-Source: AGHT+IFZOWf0rDuTu0xnQtuVLwD6mD8m50Yh0VA1IHGnSIjl3N3FqdbSHH6rWtY58DEtKlvfluppTw== X-Received: by 2002:a05:6512:32a2:b0:513:d482:a6c6 with SMTP id q2-20020a05651232a200b00513d482a6c6mr2612965lfe.30.1711233992726; Sat, 23 Mar 2024 15:46:32 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-195f-8ce5-d7d9-2242.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:195f:8ce5:d7d9:2242]) by smtp.gmail.com with ESMTPSA id bu22-20020a170906a15600b00a461d2a3374sm1350424ejb.47.2024.03.23.15.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:46:32 -0700 (PDT) From: Javier Carrasco Date: Sat, 23 Mar 2024 23:46:15 +0100 Subject: [PATCH 3/4] dt-bindings: rtc: digicolor-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240323-rtc-yaml-v1-3-0c5d12b1b89d@gmail.com> References: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> In-Reply-To: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Baruch Siach Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711233987; l=2259; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=KsOB1Cx1AE0hQx4b4ElDFKUK4NMTkP4wB55sSj+0OgE=; b=PFEJjX81qC9arhreYmX19OiEZdS1JKEEqnL130OxQtBY2DNjl6Y2i3Gh8g2usogby3LELH+Ov E8MJYUf2RXhDFlBZrGMyaaWQoWTbeSVAF43QhNtBA6gQnBQrDxMEyS6 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-20240323_154635_179068_C679F5CB X-CRM114-Status: GOOD ( 14.13 ) 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 binding has been renamed to match its compatible. Apart from that, it is a direct conversion with no additions. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/cnxt,cx92755-rtc.yaml | 37 ++++++++++++++++++++++ .../devicetree/bindings/rtc/digicolor-rtc.txt | 17 ---------- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/cnxt,cx92755-rtc.yaml b/Documentation/devicetree/bindings/rtc/cnxt,cx92755-rtc.yaml new file mode 100644 index 000000000000..bdd6f0718b0a --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/cnxt,cx92755-rtc.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/cnxt,cx92755-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Conexant Digicolor Real Time Clock Controller + +maintainers: + - Javier Carrasco + +properties: + compatible: + const: cnxt,cx92755-rtc + + reg: + description: + Base address and length of the register region. + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + rtc@f0000c30 { + compatible = "cnxt,cx92755-rtc"; + reg = <0xf0000c30 0x18>; + interrupts = <25>; + }; diff --git a/Documentation/devicetree/bindings/rtc/digicolor-rtc.txt b/Documentation/devicetree/bindings/rtc/digicolor-rtc.txt deleted file mode 100644 index d464986012cd..000000000000 --- a/Documentation/devicetree/bindings/rtc/digicolor-rtc.txt +++ /dev/null @@ -1,17 +0,0 @@ -Conexant Digicolor Real Time Clock controller - -This binding currently supports the CX92755 SoC. - -Required properties: -- compatible: should be "cnxt,cx92755-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: rtc alarm interrupt - -Example: - - rtc@f0000c30 { - compatible = "cnxt,cx92755-rtc"; - reg = <0xf0000c30 0x18>; - interrupts = <25>; - }; From patchwork Sat Mar 23 22:46: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: 13600731 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 6A651C54E67 for ; Sat, 23 Mar 2024 22:47:23 +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=wDEe64gtquwyLi2loUnByO2ssCM89ZnYWdFA4fS1q/w=; b=WtGXoAHYEirlfb 7sjZXeDt9+Saxqe93YsbkykjXkNRFc4VS7dqUMbE11fXoQoPC0vwTVK+LjMipyk96EiTflVep/2PG Yz16tWhDp4u6LcP582QLXOu5oQpQNyjkkU9QWOM/N8RaW8Sm6xPJewKED7PcSzVKEOmh6ziypEXFj Z6iCLE00k9Y+yY0NHDXZ0SsCtwgMbJJTnmCofgdBTLPpVdYW2skB1TDSho09j+bQsssB+c/MvMZRz bk+jPbS8F5slmlyC+59uNQT9FjpPOuwYiGRFeMoCrNbIPOPO2B9MJ+i8SZ46aEcbL4/EPB114ss/v kpCKVHSQGMtR4Ev17MWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8s-0000000BKSS-0m1V; Sat, 23 Mar 2024 22:47:10 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roA8K-0000000BKDF-0SYN for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2024 22:46:37 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-56bc753f58eso3928903a12.3 for ; Sat, 23 Mar 2024 15:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711233994; x=1711838794; 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=2/SYA3orZiCrt6UMAkkZctPdfoSwlJljhgv136QIUdg=; b=Hrl00P6+gVANhlJ5m2SY/ehcwsHh0hlOPmxEBTKqpmFeujPGMfuAHoeG/Chx24eAcV xVjulQ3hjQ6vQ6EcY3zRJ73sWqb6JSCfNeLfXfxnGjZDFdp3U5fQlGJBKEciDJcRGblO cdjR5kp2XU9ASwYjUNZM8MhELcN8qqZtRLDH+GuxXq8rs0Kvnc762H+XvD8GSIQsfZBN mSx+/H3jdRIc9/3gf9mKW5no1cQ4Q4PXSuqFpns3DtQV2pv84eZ3Ah7Xw5+Tll/jMoQC 5a236Ix8LwDrv0nSWciUQKpTR3fP+XcWQMwxgnq8nERtLsAm2b7l+IQYG/g8i7H5/Xsd Uebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711233994; x=1711838794; 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=2/SYA3orZiCrt6UMAkkZctPdfoSwlJljhgv136QIUdg=; b=sd6myMomqrYpmXsDNY0HsKObDOhOKRlD+x+O28I5SfFpfsxv+GXsxwhBR4vudRt7Bw +bELfrcs7Ena8biejmtdEcCDfaAQV545cQLdydCBGKtIvOdXm2mOsMe7pKQeoWTNNwAq ukGOWWVjQgTlPJLu8SQsEtiJyevDrfCB/ZPZCxSsAt8/4c+BsbQDswiGRsEWG89VUyBB X5P4QqBUUvKPV5y5o9TmPwzAzGtJT79WzngaT1Z8WG82EpbGLOdPuojpMhIaxMihjsDp blC4rjDWSAHkk1pKyaJ7tyCz4DE6LFM+23bnBwJ6HY357rstliHU+zEs+4d0oOD0a903 rRmA== X-Forwarded-Encrypted: i=1; AJvYcCXB6tl9lI8vpikh3HjYWKieDPUKJ5gLgC5KvIaYcuzT6DJUrWZjth4IzXDAt0SurkGcARPql5Z5WWVdj/RT6ZMWcYsE5xCMM7PdAmH2QAr8NJS6kx8= X-Gm-Message-State: AOJu0YwNz/JKVDnv/XFyrvSxaVK7JAwLnFYEBLP/VbruZ6CnV7voCUMb 3shn2WYW4sSorUHhB2Fhz0L9o708Cxe9+aprbQ5dh9e6iKw5gBUCSwKWK31p4PDIog== X-Google-Smtp-Source: AGHT+IE4E5V6xQKFVc06Bc6OUnNbkY8byp2AQg2ojfzBoU85i+rvR6iVYMsMxQrMQ1tLDA7V7mTsJw== X-Received: by 2002:a17:906:bb10:b0:a47:876:28b9 with SMTP id jz16-20020a170906bb1000b00a47087628b9mr2121553ejb.42.1711233994149; Sat, 23 Mar 2024 15:46:34 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-195f-8ce5-d7d9-2242.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:195f:8ce5:d7d9:2242]) by smtp.gmail.com with ESMTPSA id bu22-20020a170906a15600b00a461d2a3374sm1350424ejb.47.2024.03.23.15.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:46:33 -0700 (PDT) From: Javier Carrasco Date: Sat, 23 Mar 2024 23:46:16 +0100 Subject: [PATCH 4/4] dt-bindings: rtc: nxp,lpc1788-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240323-rtc-yaml-v1-4-0c5d12b1b89d@gmail.com> References: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> In-Reply-To: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Baruch Siach Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711233987; l=2951; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=tDhol2FcUGB60ncWKxOskxvWSaZiOqEgh32oNnukAEE=; b=oJPdbot4N6v1SuCC2+5aXuS9QMZuvlR1aLfydfYT4s4EH8ge91JzhuwBTePdDJL7ScWZq9HPy ql1HOUODczMC/yoeSF18b+lfuWyis3BYGBWC4f4caFcPwXaJiOf8ehp 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-20240323_154636_333332_FDBD85A5 X-CRM114-Status: GOOD ( 15.09 ) 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. This is a direct conversion with no additions. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/nxp,lpc1788-rtc.txt | 21 -------- .../devicetree/bindings/rtc/nxp,lpc1788-rtc.yaml | 57 ++++++++++++++++++++++ 2 files changed, 57 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt deleted file mode 100644 index 3c97bd180592..000000000000 --- a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt +++ /dev/null @@ -1,21 +0,0 @@ -NXP LPC1788 real-time clock - -The LPC1788 RTC provides calendar and clock functionality -together with periodic tick and alarm interrupt support. - -Required properties: -- compatible : must contain "nxp,lpc1788-rtc" -- reg : Specifies base physical address and size of the registers. -- interrupts : A single interrupt specifier. -- clocks : Must contain clock specifiers for rtc and register clock -- clock-names : Must contain "rtc" and "reg" - See ../clocks/clock-bindings.txt for details. - -Example: -rtc: rtc@40046000 { - compatible = "nxp,lpc1788-rtc"; - reg = <0x40046000 0x1000>; - interrupts = <47>; - clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>; - clock-names = "rtc", "reg"; -}; diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.yaml b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.yaml new file mode 100644 index 000000000000..af157ff24835 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/nxp,lpc1788-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP LPC1788 real-time clock + +description: + The LPC1788 RTC provides calendar and clock functionality + together with periodic tick and alarm interrupt support. + +maintainers: + - Javier Carrasco + +properties: + compatible: + const: nxp,lpc1788-rtc + + reg: + description: + Base address and length of the register region. + maxItems: 1 + + clocks: + items: + - description: RTC clock + - description: Register clock + + clock-names: + items: + - const: rtc + - const: reg + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + + rtc@40046000 { + compatible = "nxp,lpc1788-rtc"; + reg = <0x40046000 0x1000>; + clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>; + clock-names = "rtc", "reg"; + interrupts = <47>; + };