Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1438000lqe; Mon, 8 Apr 2024 08:54:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmDiwd7enOSv9sakB3gqFS3xUkHkDqNW4Ph1y924oZq7mORaCpPiVwi5YNSGqcbG9nq+/MPGtsJse/KjUb8d7M9hWnBTUj1IZdpGNqPA== X-Google-Smtp-Source: AGHT+IH34veALKVJkRtlzaMDIuXXRUxVqK1vJRo6JYE+zT/Odvm49dgYAYUou6ZQxj1s0jvFCQSw X-Received: by 2002:a1f:62c4:0:b0:4c9:2540:8520 with SMTP id w187-20020a1f62c4000000b004c925408520mr5141205vkb.1.1712591684613; Mon, 08 Apr 2024 08:54:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712591684; cv=pass; d=google.com; s=arc-20160816; b=kibxWtNUAy5xq9NafTNTXufr5wieMk2VJU0qM4EkBc7SbysSaYgNHCk16OxP858v84 Y9TYTqPDKBU+NBYx0mi7xcRwsZbBU2iWMSkBjTRSEmps93ez3WxBqpdYdVhwd57RcxQs vxWEobUA+czG3LA1s7S6S214dUzLFwNtVKpRIG0P1HoHaY+osMA0pzHUVOGpNA/p1sJT M1i5g/ElODzgqclYcD9+fyUE4BC7J5mHTq6HxW/X3AMIFUeSWAy6J1BXP6SVWiab7XYw qU8ioQ2hpISQbbXzP53hmpq6RgE86s0kca+ZefU07m7HHrlL373Kfxk4OXbBrTloA0pR h2sw== 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=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; fh=sopKUaqbz1764a8vwL1Wvn00P1cPlN6sLddd+VwM4tI=; b=wsb7KUWBgbK3pFd2AXQ8xdIdvvpDbnHSh144/dmMCbt3m1tjwqcUdupjAgUJvFQKcA ouQhGv7S9HG7AbNm+EbmR/cdvEqLxV4jTwKAF6JixB7qoHt9zb9jx5s1B3EbvxtmhP5X aPu9Uy2h1hsYdi5VsrfryLh9/XHEKJmzGluvLorp25DRqiWBEImFTmaWAyGa7gWBkwDt A6tBcg+LzoJbV7OgdFSpQaTeoFylQClNAKK9boSAKHshrIX+XXK2eqYbDloS7IPqi+KT gMYLz9B4AX7rS5uW7/UKAhwww35Bt5t9mmMk17FM8QKkK6VYb52QC3vifUqjPlSQiutJ 1z/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="BewQ/L2y"; 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-135636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e10-20020ad4418a000000b0069b1ea60f4esi1730254qvp.403.2024.04.08.08.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="BewQ/L2y"; 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-135636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135636-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 48CFE1C219D4 for ; Mon, 8 Apr 2024 15:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99A1B1422B9; Mon, 8 Apr 2024 15:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BewQ/L2y" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 DA0A0142E99; Mon, 8 Apr 2024 15:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591604; cv=none; b=Jye4Itb0XCLJ5oGfmoIVYh/sgKoUNIx5rr+Gs3lfNAqNLdnaflE/g0y/9WfQdsWG+HUoA7rpzWCpJBACUPiNArOEvv0AOtgSoap2CVc0YoM5vyGDA4vKkezbY7b0wAAwu22QGSmykYbHXMPontRa+lKTgxqVr6XJE8+n27Z+NSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591604; c=relaxed/simple; bh=XuizmZ/AsI4sUrNbkhEaUlA+sS0KeXhc44fqmRoI0ks=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uCAJ2KAxrKhaJJSS8W5QbP4dKBl6axKBPU3Hxv1iCIvYM8F7BG8PgUtki5vHRiVCEujWKIXs5yCKYpA6tM1GGTQQMRKeNBUwXTZ6di1C3ekRJxW5K2cWoe55PcsgJKrcenYEoWDuwmQ3ny3KMCbc4NGZ2Xt2mC6mH9zI2cKth3A= 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=BewQ/L2y; arc=none smtp.client-ip=209.85.218.42 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-ej1-f42.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so779149666b.1; Mon, 08 Apr 2024 08:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591601; x=1713196401; 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=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=BewQ/L2yY5s8IF7vl2ZuDRgZpbiyj/tQFjF138TO+7orlLjiSLcOWvpH/JDQ2GGNu0 IFCbipXCmT9VUEBOWfQ1XOg/Vdrr0zEmvAWZyiEjMzBw6KyYRFTMe2om/Zz/0VxRw8CR EEa+D73ymqfvt7GonO2QjBq206PvJK8aeMbU61TEqcCMmIUEb2KznChVIkZxTppShFNt 0/lyeBPgtAsXXEhC9bmXHUNWkCN4/+uHds3+bWmEj0xD+g3md5/2RhRMjinX0SMBlaoH N5UqaDCVgLAd/A4K91MeRkAo1a7CGMy4V0pPRaAk/8lnrg0EY/xwald8MpyJMx5x4hgJ +pTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591601; x=1713196401; 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=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=ObO2HIC9O0REUemaTwh/QNF++GVbZcg4FhgWuMcQOeBotCgzHzZrrPjrL3M6lUohf8 PnwTMLV+p57bEHwbaVEfPBbYgiwOxYZNNe9GegpVaJB9sqeAIaR9etX0gLne2iWpKFa2 IjyQq/eI1/M8Ir07JCaOA7N4fPLNLSYoDbfj9YewONbPHzNj3gdULXnPKOKEuRC4GDsf y+LNKeT4ipIWH8v7S6JaaXp+/whwHu159TkmKEX7XRysIbjU8gnU8oto1u5Zqvb9Qpro XNeIf3UYCuzYYuh4qohVaNJ6XyfO+SeD9MWtRyt4dJB5vwk5nCV6q1sSa9gn/tHhnqyT hYGg== X-Forwarded-Encrypted: i=1; AJvYcCWS0dZYg7CNXCzqnI1T9lQINpF4USNGq+6doUoavf8caGnf3lcwDkwWwvJi3K4etjjJd5oQxBtpjjubrFz4Q+zi7RRnV71qxO/Mr2Uk1xjNzhMzS/bAsMXQYaaSELg7bDQdEChKbF1iFQ== X-Gm-Message-State: AOJu0YwtK/M3hBH1ap3G87lWA7TF3yhV3rABgjpuVlH35YyMQJMVjP0R 9sVHnghNyhiXH/Regft9oiGboQr1stfA9RSo2wJBfLyFLZ/TeXtS X-Received: by 2002:a17:906:af16:b0:a51:c1f7:93 with SMTP id lx22-20020a170906af1600b00a51c1f70093mr75351ejb.13.1712591601329; Mon, 08 Apr 2024 08:53:21 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:20 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:06 +0200 Subject: [PATCH 6/9] dt-bindings: rtc: pxa-rtc: 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: <20240408-rtc_dtschema-v1-6-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@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=1712591586; l=2057; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=XuizmZ/AsI4sUrNbkhEaUlA+sS0KeXhc44fqmRoI0ks=; b=TEcS/yNABbU+N66YYIMs81/pFUYAYXLO65ZbwiLZUk8cK0LytDNhrbnd05Bbryb15/GpV6iW2 jf1CGGu8AmBA3oq3KEyQFN5EDyUUA0/E99wDgmrlSsZqOp61i9vtUnd X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= 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. 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>; -}; -- 2.40.1