Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2830350lqp; Mon, 25 Mar 2024 10:20:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSzDGSTtldHZPK9Yfz3LPFjoxYtei353+gVKRazpUVWGd20R1WWGvk5R4X9HJrF1Xv1p4avZ2itXHvq0QPfs2um1edNopfCike1Rzmtw== X-Google-Smtp-Source: AGHT+IHkNIDo5IT5zoH5JD8G4ZOcZ8/O59dsoh2D+DtTdzXbm/10Z68sKUSKqxmxLQ7N/tov8FeK X-Received: by 2002:a05:6214:1bc8:b0:696:45d3:78b5 with SMTP id m8-20020a0562141bc800b0069645d378b5mr9610610qvc.15.1711387256781; Mon, 25 Mar 2024 10:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711387256; cv=pass; d=google.com; s=arc-20160816; b=qDTZTPbD4anoJcSjYxCjWixkqKxVX9TCRmi/GwgMW8ru8XrWD6YZYJ8mz12OI/JzGr YKIuwcD2vFHH1sLuSIe7R2XyYY/LwLqsxWWWEJjGWX9aF5ll59zXS6H6IGoGH9y9EIAz drkpBQJSAxaEBadnu9HuW5TK26uY9e6uqXMvPc9jQKGZwpbOOBL9PKToGsg6oEHybMUV /uU6r/IJY12DnsGeqHjOcod03dj7kGNMXLCBzwkMcrjDl7qxGT/oWSNvqf/PnVGAMTXU g3OGuYCDn0hQmvgCU60C2QuDsB5stbsNvJuxcLtkJyyVdJ7BLTD9S5HChZe/BVlvKcYM CdgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zDLEIHP3ssLnrcJRJU6g1U7jF74daGTMRqo0xF/y1k4=; fh=Wcesmj6rfaL+poTPoaDCg/WaFuqW/VydDbE3vrTeZt0=; b=w3EMpNdoybInTRj3IJMAtg+FUVkWo2t18zozIyKclNWQvo7p1y0Uyt3kI2FxMjpGV+ oYF+vIh8Xm3OCATZXok1GJwQvdKNrvKlFXVuGTEUoGT6TbDz+id33JIQXmvv8lkJ2QPj +2cGzJC6dLOmao+ULErXhRovGhq4CJYo8QHY03sDc/JCKYw2VLPGlMdgad1SYdx8HKcH 2H3eHSxrsU11nvq9zIsZG1ZFsw9vgADKTy0kpmaMT85FLaor5/ygBb81ojxfXIMhLJhR ZUqwytTiViFSbqGsi0WPcforPLMeZvFqKIrFSbaF6qtEyJkaBPlrVUmVD0qmwTRDo5T9 EEgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZTvTGA1E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kj19-20020a056214529300b006961c9b932csi3680qvb.445.2024.03.25.10.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117433-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=@kernel.org header.s=k20201202 header.b=ZTvTGA1E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 815D11C3C492 for ; Mon, 25 Mar 2024 17:20:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BA2E12C543; Mon, 25 Mar 2024 16:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZTvTGA1E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 893C46CDC0; Mon, 25 Mar 2024 16:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711382554; cv=none; b=cK50XSdWGjgmp2bBRvHChdTocztaVqw+Lir+cwksKC4J8e2MrpoHQMhz89HpquzDb0hK2TbXDlSyqdCwrd7vnXFAYjSAX2XW8Ftse7M23otnLUOhXN3Y+DFU+xl1/dauu8AoyjlMl4sQJR0qJRV36HpNzmSEFi101grj98EjX9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711382554; c=relaxed/simple; bh=JJbCkZzEeycIyoj0urV1Upiq1UUSkSdddBASm4fPN0M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZGBUtmjKiWoomo/dl9Vjte4aFrSzOFTKL8j3pike8lAt5sI0xAVGqHfMVr5fknn4MEtxRt5iIkym2cHIqy+X7LnqtZpfZPhpbuHZfjofInCCFHjv0agKefBG14SMytTbyIsHhuJEP/VmtOrgifr42gv+dQa9nDeQv+iG9mglgbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZTvTGA1E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC5EFC433C7; Mon, 25 Mar 2024 16:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711382554; bh=JJbCkZzEeycIyoj0urV1Upiq1UUSkSdddBASm4fPN0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZTvTGA1E9BKCJpr3ZAlylSmsQXO03Fx0lP70d90iIXHmNw0NaNlJfaf+U1o/ATU5Q 66xMybd1UghWaAftZYlXsGWehYRqWNsV5pcHmv7YgUvhgxH5U492A4CH4fXpYGEHC9 fsLRL3Vdxv+LVpD3W+oKpLBTYKAdB/yrxpkWDpqi+3JUHVgw0zTKRqE6cDBwgRzYKc ARHP7Gq40d1KFtR35r/PVGg4OmPAgIAwB8A55OY9bYbWz9E2xl8OxJEvX/FdA6JrTe iKKNwU8LNkQhBgKpDy3hL8E50ii6DsoyFijxFx6vHhVCwJHIx5hWe5XoADfw3h/cK+ CVxNKg6qquCLw== Date: Mon, 25 Mar 2024 11:02:31 -0500 From: Rob Herring To: Javier Carrasco Cc: Alexandre Belloni , Krzysztof Kozlowski , Conor Dooley , Baruch Siach , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/4] dt-bindings: rtc: armada-380-rtc: convert to dtschema Message-ID: <20240325160231.GB4035876-robh@kernel.org> References: <20240323-rtc-yaml-v1-0-0c5d12b1b89d@gmail.com> <20240323-rtc-yaml-v1-1-0c5d12b1b89d@gmail.com> <20240323233742bfb9ba4a@mail.local> <6e68e0ca-2f3e-41a7-bb96-00fbdadc4436@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <6e68e0ca-2f3e-41a7-bb96-00fbdadc4436@gmail.com> On Sun, Mar 24, 2024 at 01:02:31AM +0100, Javier Carrasco wrote: > On 3/24/24 00:37, Alexandre Belloni wrote: > > On 23/03/2024 23:46:13+0100, Javier Carrasco wrote: > >> Convert existing binding to dtschema to support validation. > >> > >> +required: > >> + - compatible > >> + - reg > >> + - reg-names > >> + - interrupts > >> + > >> +additionalProperties: false > > > > This is not correct because at least start-year is supported. Please > > check for all your other submissions too. > > > > allOf: > - $ref: rtc.yaml# > > is missing, and then > > unvealuatedProperties: false > > to account for that. > > "start-year" is read in the RTC base class, so I wonder why so many RTC > bindings add a reference to rtc.yaml, but then use > > additionalProperties: false They may have pre-dated support for 'unevaluatedProperties', or you can list out which properties are used from a referenced schema which disallows unlisted properties. There's no hard rule here. Either way is fine. Other than this and my 1 other comment, this series looks fine to me. Rob