Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1927934lqp; Sat, 23 Mar 2024 15:47:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKz0bwajr64I4Z4wviIhFb+bs3UWwd2d8Pax58s3qI8+XNrcNBqJPC29sB8TEUdWMX8K/sZycT9V3ODXbkW638IlYVYZUbjNVTcZOy8Q== X-Google-Smtp-Source: AGHT+IFZemClzC6jZ1Ide/XBK3ccvDBKj4AIqXMoWCGauF2bjkWxaKRyKGL58elTaJNemmWaFqU+ X-Received: by 2002:a50:9e45:0:b0:568:145a:4a19 with SMTP id z63-20020a509e45000000b00568145a4a19mr2094032ede.4.1711234024196; Sat, 23 Mar 2024 15:47:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711234024; cv=pass; d=google.com; s=arc-20160816; b=i4QSckHQ5ZcOfjxX74gRQpNlglqcfJ1PHLSOXWOa4HxbIkK8NoOWCCLrZg+h7OSM/k kb6hdA8Gq+vNFpSwqqJi3FAoOl1om/MbPioGN4N+h59SJCdckdY3IoyVnZZJoOf/mLgx LKENk9qjP55sSt2ukA1Qt7hf44ZnBUdTYmGFlOpeJejTPRhr8IheuxF+zm+g0atZMDiS lwuGUHFx8bZMRNYtCJPoG8xWXbbEWUI44q8hm9W2BLX2tVhvLf6lP5EGq+dnOAKo5aWp 3uA6c3VTAp1z16oWljd3o/gMgs48Zf5xf46TZkO+qyNQQZuzCdW6rK4dQNEsnEkxHjJZ ptSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=V+2AzQj3mBosP08WhAfzvg7bEORkrGW2OOHVuztE61g=; fh=7JEMCDadM3u2cPyOmtudlvoRGOnOvaate6FQekKk8Nk=; b=SfcbXZM0J8TsS5uodIepscJaVl0BUITYrwzWUF76RqsYesw8MNJTrQP8Ew4rkrl+o9 c32TQzHWB2KFjv35sBn7em8QQQPQBG+V21rc1NY/2BTQc5hpI0bt+3R4vm9HVXEhcHfa O7AFP735VA+vtQQuE7FvDE6aPJuvi+semEJMlXRvKCMJua4/10p/fjua9dPyGD4aKuEY C++25ui4XtlszQAHlteGB5zGeRh4++RqLxzX8C0+qXnMWqt+CJdPpV2+TCbPHStOarFf OfjjFtR6dhMSJoQVm226su2jgGlIop4ZmXdeOjRcWzGsUqs1Hf19KeI/8stccqdxREKn GOCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ajnILBfH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b14-20020a056402350e00b0056bfb83ad6asi741291edd.2.2024.03.23.15.47.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ajnILBfH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BD74A1F21371 for ; Sat, 23 Mar 2024 22:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DADD65CDE7; Sat, 23 Mar 2024 22:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ajnILBfH" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC615B69E; Sat, 23 Mar 2024 22:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711233995; cv=none; b=bgDFKf7v2p2SU4mQvcsB/B87urzlbfV7hc6PqKT9zsIhOGRwDUQIxwWLZFRQUpZiKlSGt0oX8fk3Xe6vtEv+fNiIxxDbDLtFpxU/abrPyH9gL6QQNOQbjILhZFRw5aatJ+tG/jGQb3FY7bbNT4Uxcb+ocqP4xM7KIyG9pcabNCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711233995; c=relaxed/simple; bh=Bd6au8ufU5mdThI9uvAPKXC/6x6DrvohxJj2kkL5HjQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TdG0kRDG/02CjgCvaIinptf8SWRBad5KG/fvPaXTpZdXflrwU3ewyoNbiDHc4Q8DomZdUTK+tggmN/Z4SH0ntNWcRJAlVhFp/m91lyhBzc9gvryqY9uN/GiLwRm1rUzvFO0o80SJuyzMaYtmcWt/PuS97B92125bSrP4pnhx6Ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ajnILBfH; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-513edc88d3cso3511508e87.0; 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=vger.kernel.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=ajnILBfHJA/qltRwcWaBdLQj3WGfFpuBKfLRGCVKv7WrKotVTcxwg2eVIuvkw+lt9O tAaKEcLjM65tecbA9P+39AuZtFvwZ/SHRZfFc4xD4KO+mQV/5zYqFnF0JVmrR4kNJVDC Fwrk/el2B1CmKRFVoQBoVTnDfxdvm48299Rfqc2yPtPDEc3kK2LYFBW5IUwn4aMyyuWv VFAATmpWLQ8WFv2YlfICbdcn9p7w+q09YHdYq2bvu75CYvqf8V50LA+7qFR3j5GR5H4z ld4a++ldLcH2HKFSRKQmZn87ne7aHXlcSPeJp/nx93lCk1r3jEPx6pg1RnfDjbaLV0uT lT6g== 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=psgcRMQEj/Ly4+RnbnuevxhmMEclsjtl6k0glux8g5oh1iH7imEtLezq7e8iyacYzB 6AP+Y5QT44bE1qg4naFdKOwEiHwYrm5Shx0GQhUduJ8Cb2BlSpCfFTbQGZ7lcvS8JpBj img3prOQIp17iEbH8WHP/Cm8MfUh/3QufiZtv+XYkBcVuUSD74SxP3yUg4O7i0dvg54K e79QLijO02b9u2DUK9lbEVyLhHpX7h2vuVbkLvbDN4eukSeXl4xuldwP425v3wFp9NaE DAmL45NVWjlzQakgRZp7dSdWzvMuZe7JpU+TbZAQ3aORxYAc0Z84ShqXo71hxM9QwMTw LfqQ== X-Forwarded-Encrypted: i=1; AJvYcCWX9nD1ionKcolHGTzc9hnV/OoKIzhAXSV4Cr0Il8rb7QPIKqIxMgUbcq/z4Mie64xbse5ogGtdCRJRoyd12ot4hMxUsHjDoVH4OHFOoGap1kN+VO6q8WaaW+b8B3Kx/uyyfFrclA61vQ== X-Gm-Message-State: AOJu0YyA0lYZdLn9u4tnTveqdRg5m7rT9+U5VCIO8Er06BKBwcpknQ+l zYsvbybq0cvmX1aYBN+8CXibMjyp9ce6PPpKgld+IwosXlgCQ9mU 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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= 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>; + }; -- 2.40.1