Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp607134rdb; Tue, 16 Jan 2024 10:00:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFc7CDtspx70XU7M9xO5BVKO/I6Wo4UobwGO0fIuniC4KqDyWX6vlr6bhk6nWmKgPJk+LEB X-Received: by 2002:a05:6902:124b:b0:dbc:d90f:95f6 with SMTP id t11-20020a056902124b00b00dbcd90f95f6mr4469511ybu.66.1705428049819; Tue, 16 Jan 2024 10:00:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705428049; cv=pass; d=google.com; s=arc-20160816; b=grdOWaFOuOubwm4un0fwscBgwlorPQC1CIXKhdKlBxmtFNTEfA/HyKTKQfICxUx0DI Omq0bZ+exurYLAqb+Q9VMX+PEnPJZADDWbkbaqR5KmwZrIzdxstwPE1ocNOO4X8KvBMp DuqnTHn6vfDQljjQ7nBzHZqktQTiYKJaTbsOUzRywbt53zJatnCDpfv5WbswE9QQizhe SFy/pBs9vDgsJJYxYM4dvK4tFGL7MAdI1x32eUqLeD3Q02uzD1fBUIInDbxe+p+s9sE2 d0vWTKoz+ZJefvZsJJu2PJjtdvqZfaj1kMvatFbPg3ZtdF7gzHJk5Q/Law6r7n2lIVzA 9BJg== 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=2wNGN969QfLB/a2M3dkD1Tq+pFPSQZrFYUukXFzdJE0=; fh=SHE9lF5J59IC6aviuDH+piHs641jMAPwDH1klSTVRBA=; b=E5fp89i/doPWV8uT7vu8ez5RHQKTpq58l5V6e0bgHSz0L3rAJ8gVj4kZUeCdVKetA+ wwJ1is2bKKYFotH4/OxCFLGUXsMAGupOWAmbdAl9oQLH35Mg3+OqcWIoim0PmbTKW58Q dvJwNIImSEj5qfj39WR99AsoJmGU7cXRARpizsvHepvspwldgRwo0zE2X+2mKsh4BK6b D/F7a03iKkENIJs3UHTvWk2jcrG9tIobUb78l5SSNN5kJa5dwWlFah1Z43ScZQZ2K77Q QQs23iO27Fa6e/iLA/3t8GSe7a03jBmZcSQX7gO8++nyWQIcda6k2KJETGDcA5MZ7WZz 25bQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0czVSY7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27644-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 p6-20020a05622a13c600b00429ea879c3bsi4664139qtk.512.2024.01.16.10.00.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 10:00:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27644-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=e0czVSY7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27644-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 6FC901C238B7 for ; Tue, 16 Jan 2024 18:00:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 291001CD1A; Tue, 16 Jan 2024 18:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e0czVSY7" 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 514941CAAE; Tue, 16 Jan 2024 18:00:41 +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=1705428042; cv=none; b=e89ZQ9pzg3fPH0zb6ZzPNSIHbSdqhLYms6H4LU9KzSssKM3M7FhjhRpLOWA2nKPTWnkoY5xALTIBc+ze3/Hb8VE1tZXtzV8j0xYSbyPh03/xbCVC0lRG7SYXGGZf/5li0idV/NXXvWO54m/gIVvthGkF1G+IcWIitd50MkiP4qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705428042; c=relaxed/simple; bh=NEmbov86oEbrydeXDDCXgpjjK2og0SPcFaeap06DhNI=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=JvGkd+dcz3nMl0qolSOx1+DsP7jNlsCI9ssgYCjfE7eZHXA6aaxJ9AoI9ttXFPu+fexW9t0uPo9DET8qVNKl2oOPyg9m98n8J4LWJc274CkSYSIzX/mKgF60IjEd4b+DKzZwpkXHKKvGyoOwaFBi18e7bWXPfhxXXEz3X+hXKPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e0czVSY7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F26CC433C7; Tue, 16 Jan 2024 18:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705428041; bh=NEmbov86oEbrydeXDDCXgpjjK2og0SPcFaeap06DhNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e0czVSY7sYagwdSeFeVe0S+Yp2+5n0OKq+ZMhiSiuBdoX8nJLLpSnQcuiIS4wUh33 ct1nBqldsfrL+a9oMZJNZu0vQMewgGaYwtV+kuFuaFdCyUJYM9vcTzriSE/YsapZh5 XXgkV5mZZFrTum9xg7bgfHBk11CgSNUojd2KR3SICJqN06ooDLjFeFcgrvS7IAZOzl 94jbFkI1OIVT2diIXI3ZRejJvf1i0VRn+12NJyVyRLsw7Th1z8urjCJWtwjCk1KJT4 b283Gw2bT1B3BjB2jYRkY6eg7BGUhUoQI5zG/SNA2pBNQLTKEytXGW9sawLezP+cXO Qdkr6PD28NyxA== Date: Tue, 16 Jan 2024 12:00:39 -0600 From: Rob Herring To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Conor Dooley , Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ZYNQ ARCHITECTURE" Subject: Re: [PATCH v2] dt-bindings: soc: xilinx: Add support for K26 rev2 SOMs Message-ID: <20240116180039.GA169201-robh@kernel.org> References: <3e86244a840a45c970289ba6d2fa700a74f5b259.1705051222.git.michal.simek@amd.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: <3e86244a840a45c970289ba6d2fa700a74f5b259.1705051222.git.michal.simek@amd.com> On Fri, Jan 12, 2024 at 10:20:29AM +0100, Michal Simek wrote: > Revision 2 is SW compatible with revision 1 but it is necessary to reflect > it in model and compatible properties which are parsed by user space. > Rev 2 has improved a power on boot reset and MIO34 shutdown glich > improvement done via an additional filter in the GreenPak chip. > > Signed-off-by: Michal Simek > --- > > Changes in v2: > - Support older combinations > > I want to support all versions we created: > All of them: > -rev2, -rev1, -revB, -revA, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > > rev1: > -rev1, -revB, -revA, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > > revB: > -revB, -revA, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > > revA: > -revA, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > > And also single one are permitted: > -revB, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > -rev1, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > -rev2, "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" > > I didn't find a way to pretty much all the time force that there must be > both "xlnx,zynqmp-smk-k26", "xlnx,zynqmp" that's why there is only > requested to have xlnx,zynqmp. If you find a way how to encode it please > let me know. > > --- > .../bindings/soc/xilinx/xilinx.yaml | 32 +++++++++++++------ > 1 file changed, 22 insertions(+), 10 deletions(-) > > diff --git a/Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml b/Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml > index d4c0fe1fe435..39242efeec47 100644 > --- a/Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml > +++ b/Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml > @@ -117,20 +117,32 @@ properties: > - const: xlnx,zynqmp > > - description: Xilinx Kria SOMs > + additionalItems: true > + maxItems: 6 > + minItems: 3 > items: > - - const: xlnx,zynqmp-sm-k26-rev1 > - - const: xlnx,zynqmp-sm-k26-revB > - - const: xlnx,zynqmp-sm-k26-revA > - - const: xlnx,zynqmp-sm-k26 > - - const: xlnx,zynqmp > + - enum: > + - xlnx,zynqmp-sm-k26-rev2 > + - xlnx,zynqmp-sm-k26-rev1 > + - xlnx,zynqmp-sm-k26-revB > + - xlnx,zynqmp-sm-k26-revA > + - xlnx,zynqmp-sm-k26 > + contains: > + const: xlnx,zynqmp This allows: xlnx,zynqmp-sm-k26-rev2, foo, xlnx,zynqmp, bar You need the schema form of 'items' (no '-'). For multiple contains, you need 'allOf'. Like this: items: enum: [ all of them ] allOf: - contains: const: xlnx,zynqmp - contains: const: xlnx,zynqmp-sm-k26 This of course has no enforcement of the order. Just no sane way to do that in json-schema. Rob