Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1855442lqe; Tue, 9 Apr 2024 02:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOz+rICxsOQCpHhkI83PhuHrArtcYzpJ5+pcNMfV4NA8+lsbmLGwjvLJJtDdJ5sI4GRJd+p/FLJx7ontW6y9jd20oavmHv4duGow42Fw== X-Google-Smtp-Source: AGHT+IGAN/HZ2zQQz7bTgbCxFjzICg+JI9um6KV4CxWcdZGiZttsaQSvTIsnDz08oMul4nqsZ0GN X-Received: by 2002:a25:6b04:0:b0:dc3:7041:b81b with SMTP id g4-20020a256b04000000b00dc37041b81bmr8949859ybc.36.1712654616710; Tue, 09 Apr 2024 02:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712654616; cv=pass; d=google.com; s=arc-20160816; b=uGQWcwnAwXzQ/OfP+hiFtKSeI0U6yot7Hz2/9L7MbaKdMQDB8GOL41cN8LCjKnpIKe py/uXWKwYnE2yJa5H1wrle89RfUbf/+HLWXhJfLPOXFGfyL/tYLtvU39pXBfiFnfNmMT FCNnrbQxA7wpW8CWa563UrNrgfsBLRPHL/QUhNODBkpl3WRwLOV6RFb2E2vzY+AkE0sF ntV7KSz1XuHYy39oTba8bnjmTyZVZv970XRO07nfd4Kc/hoWV9at9sxUcHZGM6PwgGun fE23ejmP76Ov2O8XGrn3rdHqIs18T5DxcI1lKdzcxtwSeeN94A1GR4qTl/PWa9MZqawI nuxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=r1YI1LD16aBiZ7GIogy/yUsyhydLDw6SsonapHKI3FE=; fh=Jki7fvQ8FTDN08gdiEhsQOHvczbj/xMtIm5CFbgJD+k=; b=O8YEj56KBD4VLiADilBIdLGzc6e9FodHkD/D+4UiuLUpJmayG7jm+Rny09N0BP7RWD suYvqy5twHb7qxR/H/6r7o6XVr9f2b1KxbRPq7Vc7Rrxq/la62wC7BhE00lUh9Kfsa4g PGu+ghVMgIYpdrrilKfL+gSXYhcNg1WU36dsjVm1YDMEsOyBaXOeEW67JR1fDij6SQ9S jqZp7KvQSGQwnL6Keg0BXV7no/QHk37SS0PvMJnVlt9GIbbbIyMI75qt9ECoG8XdmCZa UdTGmE3vvMf7vyIPuL2+rG/ZmqqF5EnQnchtV7b/1qcPBlLZcgCWxqbqtb5sCKqGbj83 h1dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ot9OcfQo; 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-136545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136545-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 c2-20020ac87dc2000000b00434c38ad147si2237086qte.334.2024.04.09.02.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 02:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136545-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=Ot9OcfQo; 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-136545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136545-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 979191C22C1F for ; Tue, 9 Apr 2024 09:23:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9397780034; Tue, 9 Apr 2024 09:22:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ot9OcfQo" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 03FC47FBC2; Tue, 9 Apr 2024 09:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712654528; cv=none; b=pAjW+Pc9H5+e448keDPDs30VNhrcoRL/PCX6BlIIaYgyuf4L0AfhES32JV3GaF0wiMVC7mVA+s4zp0lnASqaKaE6EqxbSAdqsF0ytdgXu9Dlpu/sygpJTwPF3XHLI25lxX6k3VhjgGUAHwJ1dJNqbi1GhGwfVFKCB6IA2Gu2/w4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712654528; c=relaxed/simple; bh=wgxmF8dF0t1OLiFgF5yhMNxV6zA389z8dZjRNqQbiDc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=a2VfMIOw0uGo5dxumnOAxX/Y0JiNLbyPybSBvZ96oH5WhmV+YY35cHgyDoZXMiKfIb/5bMeia88ENRtcUIusi1Qa7kaUcmX6A6yKDrPeUcHyf79Sc7BDcS/Csuq6sBqCSXD+iF0SQ9DM9QX6jFkS6oshKerCMj8yFSwWvJ3yY/o= 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=Ot9OcfQo; arc=none smtp.client-ip=209.85.208.174 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-f174.google.com with SMTP id 38308e7fff4ca-2d700beb60bso87034001fa.1; Tue, 09 Apr 2024 02:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712654525; x=1713259325; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=r1YI1LD16aBiZ7GIogy/yUsyhydLDw6SsonapHKI3FE=; b=Ot9OcfQokp9OQcmmKoNNyCBgkRKRPZkzMkBM1hAPJZzgRgPMxvFyjQ3O0G4IEXELCU tRNppEQJWqSlvWmm4BSQLjaZa3VpTnfaGt9cpRmG8AnTG7U95TUcCmXXmD0RwyiqfDNz jM2ckfvPW6o2jkaNMh7RMn2rCdRpi2cMEDUYDYjjRBeanHH3Nv0/SMLecNuLej1ICZB1 mFpA6IThmfK2J+Rfgyj889O4t1dr4IqB6/uGG5UiD0L056vEymm3sw5sk4Fsm5SA8R97 FeP9GB7ZkE/YW3N7ArDiuFbrvnCuaD9Cy6AXNiTztEcWwVYW2jvoPxJLzjb4AkRnLMpG Wz6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712654525; x=1713259325; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r1YI1LD16aBiZ7GIogy/yUsyhydLDw6SsonapHKI3FE=; b=OaCYE4iNgaCaAGqgpuRujd7KvdL41PE86wRZf0htDmuJiIfArXRJmE6JDpeaOOKwI5 E8FQFbiheir4Ei7tCuRKQbGyg+wWG1v93oAKguWNItBBzW25RqPWZoJP+5aMnDruYXZE y4pU03VURWxkzpNYcXMdQBeAL1De11cbPta/6DnuUGEdP6duUEYSErgYWfamFq8nkIdP +hqDI5rOkjCGuFmQ4IY5G7DdsKsucQWBIoy3qsLccLmvzdeuW+xIITmKB7WGl1ysdacH zP/ap4zBiPDHx3Z9xHcGMTkofpX4e/046XR2gQG7j3jQZdLnau49+HGLJiFsZ2gdGNN/ 7VaQ== X-Forwarded-Encrypted: i=1; AJvYcCVmaDFNuoChLQhzzZh57p/AEx5xRYQWzL3yj7h/HEDy1bC53DZvXMJnbna0e9gznV+ab2tnpWgy4tIc91WuyuPaSzG87h9ngSzbUn7gcSYU+9xXtGqeCMZifPp/UseLEN3XsiJZpI5afg== X-Gm-Message-State: AOJu0YzDvIPJkpR0tTAVIkP7IsZ65/7Bnjs+bYMwytA3MP4vGUfKjNzk /md/ubFysnkN4MWjHIgSjALO691/8nJF3dEYgcJzOvhz1ixUFrvr X-Received: by 2002:a2e:854c:0:b0:2d6:f5c6:e5a1 with SMTP id u12-20020a2e854c000000b002d6f5c6e5a1mr8870002ljj.12.1712654524793; Tue, 09 Apr 2024 02:22:04 -0700 (PDT) Received: from [192.168.0.31] (84-115-213-64.cable.dynamic.surfer.at. [84.115.213.64]) by smtp.gmail.com with ESMTPSA id qs1-20020a170906458100b00a4e6626ae21sm5454291ejc.0.2024.04.09.02.22.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 02:22:04 -0700 (PDT) Message-ID: <89e7db2d-1de0-4e2e-a2d2-f00d45399b11@gmail.com> Date: Tue, 9 Apr 2024 11:22:02 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 8/9] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema To: Krzysztof Kozlowski , 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 References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> <20240408-rtc_dtschema-v1-8-c447542fc362@gmail.com> Content-Language: en-US, de-AT From: Javier Carrasco In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/9/24 09:40, Krzysztof Kozlowski wrote: > On 08/04/2024 17:53, Javier Carrasco wrote: >> 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. > > Instead document missing compatibles and mention this in commit msg. > There is no driver that will match 'fsl,imx28-rtc', only 'fsl,stmp3xxx-rtc', so I am not sure how to document the missing compatible in a sensible way. My first suggestion to account for undocumented strings would be: compatible: oneOf: - items: - enum: - fsl,imx23-rtc - fsl,imx28-rtc - const: fsl,stmp3xxx-rtc - const: fsl,stmp3xxx-rtc Any suggestions or improvements? >> >> 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. > > Please write concise messages... you have to paragraphs about the same? > What is the difference here? > The difference is that 'fsl,imx23-rtc' was not even mentioned in any binding, and it can only be found in imx23.dtsi. 'fsl,imx28-rtc' was indeed mentioned in the txt binding. My understanding after your comment is that we should gather undocumented compatibles and add them to the bindings they would belong to,no matter if they are used anywhere or not. I added this one to the suggestion above as well. >> >> 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(-) >> > > > Best regards, > Krzysztof > Best regards, Javier Carrasco