Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1439979lqe; Mon, 8 Apr 2024 08:58:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpfoPirtsN60tXL5192U3SlYsw8gGvCIbc2R84htVf3YhKU+uEQIKGH+CCJ3a4/masji3OzqfuJYX0RohEU6U9nbWZ1y1CLUiQJg2d/g== X-Google-Smtp-Source: AGHT+IFMOoeKnOhg6jrxA1n53vy9wQhdAweXt/MQEwwmiyBnIMnLvs0ipSlQryAwo+LyTpUFfHcw X-Received: by 2002:a17:90a:d104:b0:29a:9ed9:56fc with SMTP id l4-20020a17090ad10400b0029a9ed956fcmr7692210pju.32.1712591932463; Mon, 08 Apr 2024 08:58:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712591932; cv=pass; d=google.com; s=arc-20160816; b=mkEOT9cZN2xQqRVn3S+Gd0daUaNjlHgAoTNaUhJms0UWLbUmVGCjXWc6jiM2DRoqSn H/njFVxtK48IMiR56tv47FW2nGQQLPVju8OoeOWD+OjGMFVAwnLrbo9TVQma4405mhDw FsVfm348meqEoZlru+W+ShEb2YfmTW4Y6F6+61VEXvbyofmtDjSwv5lJH5y//CW+Lwka H8XmhnZQ46qsjfjk2oNvZ2X+0A1YDZD/oKZXjzqRpTd2QiP856BxUid1jWkoMkkzdfmj o01r76xAnFca7iTBxbydE51jS8NYUFa6z91G+2jCr4+TdJrUSxpEqGB6rORqdVd5lwlt zO2w== 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=5Y7DfeV8VLm+4dkW5onFx6zdkwwBWr0ksWuO3GWgBgU=; fh=+rD8uG5kGc7kSbOsF7x6FFo+HbUdi96MmpCOj/2QZvw=; b=T6veRxi2UII+p1I2WnoMhhjbUKTWOvA69mcNrU50rC5JH1VzuDLIV2XFIDOXXdjPb5 gSwUJ6Um7i4RNn7PgjjyiX45MRteKNsWFfoMeLLmjA5Dh3yckAtJREd5Qsd4PLSpy6Ti ZC6rS6rEbd5d/pMmrQ0yG8qHINngRCElQj/Vj2h6WzK+YqI3Hg15We4+BwHUmAXvOzWb oZ8ctBAj6bFevt25GVJ2/C1Y1vLwxzoLnXVXAxWiUuao1LfZy1bR1ShA+hVKz9f2piqJ /twrbzRITjGKmKoyjCQuegyxmO6N1Ej0j1iq4Cm6E9bsPNK+XX29eZNjN5Kh+B9uAvtC FT/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aBY7bN+a; 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-135638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cp16-20020a17090afb9000b002a09070507asi8543781pjb.13.2024.04.08.08.58.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aBY7bN+a; 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-135638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135638-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 316ACB255BF for ; Mon, 8 Apr 2024 15:55:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8298E1448DA; Mon, 8 Apr 2024 15:53:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aBY7bN+a" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 A74871448CB; Mon, 8 Apr 2024 15:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591611; cv=none; b=J5XF+nGUJlXr9uN50u62LoJjo0IVfTmh0Utw9HZp8BzhtuR0zYPRfkpRVz6DWS8Y4Q09sXmdXKAfUUMrh30Waatrs/Ay2CGupYXoz05w8XOwnuyf602cSL9mUyHB+qliMMguMxdJ1Vy4YvdzZFmztcZJR7drrDzPu58vvJm9jUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591611; c=relaxed/simple; bh=AIsscuJi094OEVGSsAf9Wlesp0w/0ZWJH8OIPmC6tCw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HrC6h4dkq6gr1ogsA5dHjv+PBZ9DASd+qfncy15Rv81EYjKmzFLyMh+5iD7rr/PVOQQXh48CELhVLb1F1qmVbPviCISww3Oioc2EYg6x8s7hme8nQWqhZfrOMVkO0o5ddRxdeW4rrJ2ppTCaFI7sOxbJPC1fCOTcMbkkUKFeNgw= 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=aBY7bN+a; arc=none smtp.client-ip=209.85.218.45 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-f45.google.com with SMTP id a640c23a62f3a-a46a7208eedso682007766b.0; Mon, 08 Apr 2024 08:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591608; x=1713196408; 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=5Y7DfeV8VLm+4dkW5onFx6zdkwwBWr0ksWuO3GWgBgU=; b=aBY7bN+aNSCU4NkeaB8X0zE1pW5E+J4HQRxJpuX0HrNYVl5rFgdcGX3cZm/K4D4Tea 4nyYwzQKjMA1jRkiA1xsxc/JQ9Z3PdDAxwQGnsfTBLOZCwXgL2uDmz9282jcxQTpFDPH cguEp3Kns0C1iR35E/GnlIXf4BUmS3EIqa6CkScF9FCijZ3ES4WM5won+ODaEOhHKllN bQ0eQqiQ8Bn/LH62t+g0G04yfSTfNNUSGUkfTKwPkHA/s0z60AywDKRmBK152tbxe1ST mX18LJ6zQZ3o8P2WUDs1am/9ngNOfVz750bgnQCc9ShYvUrYHfumhHmnVeV/DqaVYkHm /JPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591608; x=1713196408; 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=5Y7DfeV8VLm+4dkW5onFx6zdkwwBWr0ksWuO3GWgBgU=; b=tLgFq8TMEnqn6AxEjYxhiYcDJuiHvY8Vva7GcJX9UeUU+pzybixQgx8by9iaTecMPQ tm6RWl+BAvwkUiJIWyVJwgQDMRhfAZaKhG0/6jQLy91NamnHb6PaoVU1vhG3+RL9MSGa eQDxsddqjlUF42A0dsy0KieetPwwDIJPjIad4/5KRXhUovSAHMsrayOJa6GZ/rjaI0/7 fwbYX8LvOYax0h37xhIPO/2npyRiWRDru7dUKhT/Aeo4PH/fV+qJIUfmz1z54KVA+gcD PoKSdtBizvYSB80gHB5xZs/dm4AcWDT8xnMvx893M46vDzeI5dTpzZ4/2FtPi6HePcH6 EaBg== X-Forwarded-Encrypted: i=1; AJvYcCUqyqLkPDgrjnCYTzbf6Q+AS4IfvAMJTtrxovzrND1a0Ukpf6dMtYGj3p3KS4gjDMoQdo4uGKiYnyBVeFL2FDIB/j1pwsb9yZ63sJiaj06DspZQ2gFQ46mZ593cMcmq7x+sv/ANkZpR7w== X-Gm-Message-State: AOJu0Yw+9A8Y0VzMQCeGhA84/Qg3j7J/C8+oJhe0ujgUJGHxFIwHrxTe PzzWFAZI0N7clKaG15DI+z9KBS29mXmWMhV/LyFaDz2d7Zivg7bMDLqW7haDFtwPSA== X-Received: by 2002:a17:907:3da8:b0:a51:dc1f:a44b with SMTP id he40-20020a1709073da800b00a51dc1fa44bmr1941414ejc.29.1712591607822; Mon, 08 Apr 2024 08:53:27 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:27 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:08 +0200 Subject: [PATCH 8/9] dt-bindings: rtc: stmp3xxx-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-8-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=2964; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=AIsscuJi094OEVGSsAf9Wlesp0w/0ZWJH8OIPmC6tCw=; b=SjxANSNsLql56s4aBhO5sITwOL73aDDWw1tzYNIUF/EDIaC42lzFW9WBN+FJIfBZhJZSJUWG5 L8HyqJln2diCnF1A3y5vZJJOTZpEnbK/pWIrvAK7sqt7PRQjR8fDhvQ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing binding to dtschema to support validation. The 'fsl,imx28-rtc' compatible is currently not supported, and it is only referenced in this binding and in nxp/mxs/imx28.dtsi. Therefore, that compatible has been dropped, which triggers a warning when testing the DT against the new binding. There is another reference to fsl,stmp3xxx-rtc in nxp/mxs/imx23.dtsi, where another unsupported compatible 'fsl,imx23-rtc' is used, and the same problem would arise when testing the file against the new binding. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml | 45 ++++++++++++++++++++++ .../devicetree/bindings/rtc/stmp3xxx-rtc.txt | 21 ---------- 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml new file mode 100644 index 000000000000..bf70cce2701f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/fsl,stmp3xxx-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMP3xxx/i.MX28 Time Clock Controller + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: fsl,stmp3xxx-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + stmp,crystal-freq: + description: + Override crystal frequency as determined from fuse bits. + Use <0> for "no crystal". + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 32000, 32768] + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@80056000 { + compatible = "fsl,stmp3xxx-rtc"; + reg = <0x80056000 2000>; + interrupts = <29>; + }; diff --git a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt b/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt deleted file mode 100644 index fa6a94226669..000000000000 --- a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt +++ /dev/null @@ -1,21 +0,0 @@ -* STMP3xxx/i.MX28 Time Clock controller - -Required properties: -- compatible: should be one of the following. - * "fsl,stmp3xxx-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: rtc alarm interrupt - -Optional properties: -- stmp,crystal-freq: override crystal frequency as determined from fuse bits. - Only <32000> and <32768> are possible for the hardware. Use <0> for - "no crystal". - -Example: - -rtc@80056000 { - compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; - reg = <0x80056000 2000>; - interrupts = <29>; -}; -- 2.40.1