From mboxrd@z Thu Jan 1 00:00:00 1970 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 7311FC54E64 for ; Mon, 25 Mar 2024 21:10:38 +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=2EtUaKKB5TM/301eTH06Jv4QVg0RtubukNnrC5V/YUg=; b=u1hJ/e5xMmG0MO xPT7iRJlvwh+q1TH5fPL5KI9ebfLj2egeFO775gjAK73AlW6LIDh/Gb4uiaWt9KoYkHSgq63cv9mz KAgdxmFdu3r8ubRL5ZoaE587FstBxkm3OlcCkxOxjLeWkXc4Scy41sHghKBnNw4YKjCeL0JlE0WiJ y5Fwh80W0rmrB4YQ6O6jNgicBJ9x0ctLOnvgRPqZD9Kl/Wso06xhnslouD8uluPPd0S/eqS895n0/ hobi/W4nj+0C57fR7wYJHIOBnWfdF+3h3TW/WYUUgM9/FSVG/PvCB6Q0sFnh8/RGCNWFyro1a8f2d 6v9sWZWNolh29lXgpr7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roraO-00000001yNG-1RNg; Mon, 25 Mar 2024 21:10:28 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roraD-00000001yGB-2e9B for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2024 21:10:19 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4148c04396dso5190725e9.2 for ; Mon, 25 Mar 2024 14:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711401014; x=1712005814; 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=VRRl07fZIHfDCqnd0K822LHVNKrOqa1cW7Ay0SRBZXw=; b=Hkg5F3TRugSg/0C50lDMIQTXVvIW0d7ap5BTmXBOY30andz7//IMB9/2KrzLo7VLw3 wMFpO6WGcwQT2TdhW/+zQiN9xNzPJRd4kRRb42pmbAOt+1ZbTsGNH8UuaqDFObxqePfx /qOKPFw8x0o00Z2HAznL44Q43WR4JSk/tlRTH5o8uuGnlAke5iXShGHav1OqJZuhpefK 6sAvCb5pNBl9iYsNoEnE6X/DiXuG+T3icRYN5nmtytqzXkQdZXJcn184Mf4R6bs73nSo D6+Quj2Bp9lON/9gADtfkBkZZfxMKyHaJ14pwQvnYWye0R0kmuyuvaKUb5+48QVo5C5D 2b4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711401014; x=1712005814; 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=VRRl07fZIHfDCqnd0K822LHVNKrOqa1cW7Ay0SRBZXw=; b=DFftbcROV+IjpjZiumKR+RGBtsspb7zLjHjcd8PJsk6xOGYwewtWdJLlIg4cw58zKG VeOdnE8VFKCkMZRqPWWQS/UO26am5UToVSAMFmVU0zQ/FFO8wjqipqwDSxPZlkM2sr3O h9+sNOk1ZKO9iH/iA6dwDJQWSkua6NEwiaoN8ziBee4d113pPcp/Yar+LTf04SD4PHKd Xw5CW3KPMbkt4ZnDbOHfl5FMsGZf4VM1Ad6II80yjIVdm2ndFm2sKR9SdeNSCCrbRNLk Q23EDrF6Sj4fwowrPnBNDweLlJKBFA/KVpcHzVLfNAQ4J/pMK5sAZXz1kGDT7jO1md3v W0/Q== X-Forwarded-Encrypted: i=1; AJvYcCX4Y7bsw7Q1B9VuLY/zf21nVRGC16sK/27mpP7jTXu3sVZDaCRDj3hOSiK4ADbcM4fFjidhSRw75pY6labyESiRgLIjMbTxfCVXfcVfL/T/iWxkyPE= X-Gm-Message-State: AOJu0YywAxt1tMGusl5nvaeOiVXGeBg+FSjphPAxIjtOXGwdcR5v97m6 dLUGWUz/jbyaw6ZwhWvA2dCzjoXxMtsYdPZ0g69PUbhHSatek/RP X-Google-Smtp-Source: AGHT+IHq9CrOgsEnBBN/g58fr3moUJu0SexNpXg5h0vnwzQuZ8+txKDnVtGwuK8QOKdzpvMID0nfGw== X-Received: by 2002:a5d:4805:0:b0:33e:7650:24c8 with SMTP id l5-20020a5d4805000000b0033e765024c8mr5028183wrq.12.1711401014171; Mon, 25 Mar 2024 14:10:14 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-36af-6d49-8348-9a76.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:36af:6d49:8348:9a76]) by smtp.gmail.com with ESMTPSA id n39-20020a05600c502700b004148c3685ffsm1520768wmr.3.2024.03.25.14.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 14:10:13 -0700 (PDT) From: Javier Carrasco Date: Mon, 25 Mar 2024 22:10:09 +0100 Subject: [PATCH v2 2/4] dt-bindings: rtc: alphascale,asm9260-rtc: convert to dtschema MIME-Version: 1.0 Message-Id: <20240325-rtc-yaml-v2-2-ff9f68f43dbc@gmail.com> References: <20240325-rtc-yaml-v2-0-ff9f68f43dbc@gmail.com> In-Reply-To: <20240325-rtc-yaml-v2-0-ff9f68f43dbc@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=1711401010; l=2635; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=0C/hR+vVhndJOu79cHPpybTGkc1nbQxrekpod8eDOmI=; b=EK8aPneZBYu0oOePBXm4GjMabT28GtlGNOzXbr9dEypprIvX5zuZ3G/pgb06KlBUKPcajjuon 3UNvfJyW7AGC6tyHlAV8WRiusTeVRxtS+D4b0/sVSEY4dkGDCyXJ7gO 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-20240325_141017_739485_791A0C13 X-CRM114-Status: GOOD ( 16.49 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 | 52 ++++++++++++++++++++++ 2 files changed, 52 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..8acd5e94fd58 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.yaml @@ -0,0 +1,52 @@ +# 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 + +allOf: + - $ref: rtc.yaml# + +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 + +unevaluatedProperties: 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel