Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3309985lqp; Tue, 26 Mar 2024 06:03:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKrEoj4Bhytj4HBOt6SbFhgdITt0z9ZlU1PVPp4c0zljYgCqFU6m85nUkAPS5HIwOkFhe+BqtMFFWcE2F2iaJoeE9O7mn2W/JhtYKlww== X-Google-Smtp-Source: AGHT+IEFNDhQlhuxWM3XdQwZOckJeWUkteiwQ8RRLsQgzpWJWHySthn3bvT8smMooI9gSGPGYX+b X-Received: by 2002:a05:620a:a18:b0:789:cf19:2e05 with SMTP id i24-20020a05620a0a1800b00789cf192e05mr10038817qka.38.1711458231125; Tue, 26 Mar 2024 06:03:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711458231; cv=pass; d=google.com; s=arc-20160816; b=zGEdw6jhaiWn6E6Sw/0UhXQeYpo/xEfhqV0seKFHMWWnitG20pIDRlePM6ly+c9s94 R1B3NK6ttVmpYLFQQz8OwMBATb8mtSRrHVdMxGR6tU88in/1Wt3n4sG64Z4h2CYj9A08 ANjjgOuBtuduNHIoOdIsXWlrPbb3D0hkS0iOdMB8nHzPn1AnJiMLoBFFGTRevo6KRULH Ar6i23ebobEUFMlcQ6yDbrkVs8un90ZcU3ZQtRqAvuKCwTMtHP68nkWkDV/ByonjKS9Z ha6NY9ivobsPB3d0aa8RuuTjdUDOVR+wcg+Iu54BEJSVYSqvvA5E0jCgWQA4B/Ecigoy Ff+g== 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=6N43O76PWF7Rd134qi3Sj/Jiz8Q3AnOJJYGd71yv1U4=; fh=uBiM7dEgln7/zdgN4u3SrfV+ozBKYgOzzbdVJdvI7aQ=; b=FeJYic5UaReuDAM/hEdoKcjUK4O69ZELpULIANs6wiPLdiJL5sHOQN8rcYTbqIEIDQ jEZnNy8r2PzJPaVjJ+AKE+Js0VdQxgVkrOyGZuGVTbPxLsaAKIIlk6zPK5GbDJcECy+o 68m+Xq1sq3Bxrw7dnxjwt/uZ51n9g539aqwOZJ57wrpLqCNOwQLZOxIVvHQDU1L64Cs+ sqLeTAvhQz+eShN2U/V1Ow0czudpHMuwgHT+ghh8wNCN+mb/MqZWxYSKthXBHcnz9ScG lO9GjGmhICuvvYKp8fwYupefLA2gJOy8MwS+1/NUm7qfQUlHyjF4SizNPMrqAM+0b7cV b2sQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="TFDJRRb/"; 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-119031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119031-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t27-20020a05620a0b1b00b0078a5f955687si1972472qkg.499.2024.03.26.06.03.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 06:03:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="TFDJRRb/"; 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-119031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119031-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 999FF1C301EF for ; Tue, 26 Mar 2024 13:03:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A5D874BE8; Tue, 26 Mar 2024 13:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TFDJRRb/" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 91E2D70CBA; Tue, 26 Mar 2024 13:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711458211; cv=none; b=jq30E/Z2wcFeODSIyfk7d09D0hlPbTcGpGmE4nxX6h7ZPDVo1Js2PXiFbJdq026BRbwO7GR52/H8vNjeZa7ATHcwYsrvmamkD/vjkBcbSlR6VURpIqzV8xr5vmUsTiF904lho8Ryho9/96jTdsIw+atezs08MhIrtN+vTBROUlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711458211; c=relaxed/simple; bh=y/h9r7NFUTzcI7Q+8rrEH8zrSjp8JvhTnSX645n/aXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KKwlMeJYMVDzC4rUQFZ5vPQgMAZyXn2Fee9pO/Qqxnmwf481nUeA9oKOfVMyyg++WCJ/PLxEylgKwI7yGloUSd2Cuhk2+6DIIeHGoCrWKGCJMVkShSi8iz171lnvzW3CL0ArbHQRwC1Bj7wIPvghjMh6qMds273FVHn1oPRrgnA= 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=TFDJRRb/; arc=none smtp.client-ip=209.85.208.176 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-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d485886545so95703781fa.2; Tue, 26 Mar 2024 06:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711458208; x=1712063008; 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=6N43O76PWF7Rd134qi3Sj/Jiz8Q3AnOJJYGd71yv1U4=; b=TFDJRRb/WNXJkjCanfLPdbPInh1/4W+xruGHpnGUDoCP+H+oCe2sXduXtrK34Bw6OW bg9yBJjcp1UN6QRkmAEXsmUOMyOkUs5eeSUTyitVODYgqBlz51giZs9KiVQdvvXKJQoa JHKaY95EkGTpz0XNsRTqE42z84iF0pV0Q2apPAirkDHCWKnQFwy0xOWlQqIFKr5p8zs3 LEMphDayOYaqozkR72tyVymMrxLa9vymmY0Tw5iRdSy7mPZeMcvgwBUqskGl304ys1yy el5iR+GjLMhG4ymygXSD+Fg4Quwiln6AZ9r84Ti86fguIDrFXG8oau2uS75P7nwQ++De ZyDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711458208; x=1712063008; 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=6N43O76PWF7Rd134qi3Sj/Jiz8Q3AnOJJYGd71yv1U4=; b=qlVFcoIUews5lvfJdbGmHm8Kb1F0OGWlm3/xHD9k0LkvGEcMd0ci49ZGYrGtTlB5HY 4cTrApL6MH7hHeQkNwPa1rGGtg+ftSW2oeuH70vYI/FrnLnSKezCiBaP1CKl/jcxnnM3 9kWASd6kh0uiiCYAGbpN30LWI+EteQlNW6w5oLsyoaVf1JClcj1AoOUaJCDxtRi9RnYo kREqf/XwHUlenWspU2d3bVJuLnPZLmn1z4qCakuOU6bKBqsvZmAmUQoR/I8E3/ouudIJ jaAIAuy8z/Nr539r8A4P2yxTmz0NAN6F1hIfwgyCDVmcskqIRfMRTcks46cQHc1QDs0W yyXA== X-Forwarded-Encrypted: i=1; AJvYcCUH8mAnzCnlhhGvSgr6px/P9DYkeheU4/BSNU3pIHDcoaY/chAUVdkVCTMijWQiRHOtM4kttUVbuykdZ4AgBqU96E7JIHVSNwc7w53DSLpln7cD022NazKs0UigNx4mELzskugi/2BALQ== X-Gm-Message-State: AOJu0YyaG2KFRheN+2Yyj6jX7BK4itOEHkuQL2mYdvdHyp8b1qiZZmmy eNGnwNJGOq74ucP+hOlaaZS1y49JoVAPn7NIm2MNbAEzTkOQuhx7 X-Received: by 2002:a2e:918c:0:b0:2d2:ea18:bcc7 with SMTP id f12-20020a2e918c000000b002d2ea18bcc7mr7988521ljg.23.1711458207396; Tue, 26 Mar 2024 06:03:27 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-b4b2-cd0d-1ebc-3c05.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:b4b2:cd0d:1ebc:3c05]) by smtp.gmail.com with ESMTPSA id wg6-20020a17090705c600b00a4a3580b215sm2206279ejb.80.2024.03.26.06.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 06:03:26 -0700 (PDT) From: Javier Carrasco Date: Tue, 26 Mar 2024 14:03:23 +0100 Subject: [PATCH v3 1/4] dt-bindings: rtc: armada-380-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: <20240326-rtc-yaml-v3-1-caa430ecace7@gmail.com> References: <20240326-rtc-yaml-v3-0-caa430ecace7@gmail.com> In-Reply-To: <20240326-rtc-yaml-v3-0-caa430ecace7@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 , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711458204; l=2981; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=y/h9r7NFUTzcI7Q+8rrEH8zrSjp8JvhTnSX645n/aXk=; b=liAKRWfW3jeVzCOA2UFnpAb5x+6Rm2hplEM/BFOBYRJWl3AaUoAMFMqt2tkrVeDlMExbCln88 pTQxdy45mePCfVX289c2MI/5esMAyy12aksy7+DttZFkvLr2hXenXh2 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/armada-380-rtc.txt | 24 ---------- .../bindings/rtc/marvell,armada-380-rtc.yaml | 51 ++++++++++++++++++++++ 2 files changed, 51 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..adf3ba0cd09f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/marvell,armada-380-rtc.yaml @@ -0,0 +1,51 @@ +# 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 + +allOf: + - $ref: rtc.yaml# + +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 + +unevaluatedProperties: false + +examples: + - | + #include + + rtc@a3800 { + compatible = "marvell,armada-380-rtc"; + reg = <0xa3800 0x20>, <0x184a0 0x0c>; + reg-names = "rtc", "rtc-soc"; + interrupts = ; + }; -- 2.40.1