Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp829304lqe; Sun, 7 Apr 2024 06:04:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXya894FMURheeKL4hYO0wbRtRBoVVRsoT1FC5hJZXzrcvGBGC/rap0UJv6mFjayxb4xjP6jf6I5Xaeq96bUBSQ3y3ocD9n+Ellhpj4RA== X-Google-Smtp-Source: AGHT+IG+5lryX+76HVZCycNGnBw0AlW9A7Ugt0Th4PfnkLNCKWsfxImNpoZqzGIJF6keYde/ZBZX X-Received: by 2002:a17:90a:d498:b0:2a4:7678:b0c8 with SMTP id s24-20020a17090ad49800b002a47678b0c8mr5381299pju.29.1712495058074; Sun, 07 Apr 2024 06:04:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712495058; cv=pass; d=google.com; s=arc-20160816; b=xSkYpWfJ6zNDYbzHkSUoVliJyfqVPo/0Dkr18/W9SU+5Y71DdbdAlT2Ak24IazlpN7 6APDm/7x3uNa4iWBtH3pSynxf4pKxRPbDZReTOBMqRnLFAltUlXU91+5yRRNaGf79ANZ h3vy4S2pJnMsa5iDJRQNyEbnk86GFnd8PfmRJEOp3XYzCzjmifIi7ckhNjW+G5nwdXoG 045QLj45sN1Np0fm0qmti/WV7BFtRJnPHFM6E2xyNZaRcpM+Yol4bOPYyAHwSRDn9b2T e8/wqXFrTeeLGbR4zlHIzEFC9c9/sWBRmpPxmy3WmOILHRmtcXLG518Zd7QePCKIFHgL Yx3w== 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=Xnntb/i4NRBvxA1dL2Cqq2YV7NTlY/ucQH8AiKdC0d8=; fh=QrcUuRvvjPvc6dyg1i2z73Sw0tX7PXScWnDTtJIU9+A=; b=Bw0QrH6D/Otw370DZAMaNnp93/18LB4ViJ2EaZbogC48rhlAB80MXpjkBQts0zXX6h XzyTK3tgtWoWeBtmdmcF/DvKlsc+HHj5qk4qK5KeE7LVygdhLAp4hQknex3PqDKCfBCZ po2Txt67xEP3Qr2ghIFUkZv2NAQ0P0qxFKlKh1MCvjlGPHdQq9sTfaY13knnYxTXNyMS GKvXWwJ54otr44+1TLhsUAUcMlE7vAZcHeu0YBYanLBmyP6fpb6szobdHHE//mJfivzn RidJHHwlNgBZxvlcO7fkdu0oYihdcUxWXnyJSX6sUYjLdr3TEMlIwLZvh8j7/2bJGRFN 7R0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCL8egCB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gx7-20020a17090b124700b002a50f66351bsi258124pjb.91.2024.04.07.06.04.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 06:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCL8egCB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134393-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 574AD2819D0 for ; Sun, 7 Apr 2024 13:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86AB63770B; Sun, 7 Apr 2024 13:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QCL8egCB" 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 A72B525745; Sun, 7 Apr 2024 13:04:07 +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=1712495047; cv=none; b=k7tfhrIiGOKK99gSVn7Gl8XvZo93KnMeHmN2jK4mp2LgX+zpmgMX5dQ+oFMKlSyI/ZHPr4lUE7Ky18o0FFv9Z/LeqFqPHLvMCc5yItnCxJMDnsOlWr9U9oY3vhuwjzYKNK30cSbPjovwWZaX8A/mm3ceGGbg0iNgCHMsCflnhL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712495047; c=relaxed/simple; bh=yF0em7+RzPDN0jJHxiei/K8GcHR0GT2K/oI/lhIRxSw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EtljpQNv+xCEYIzf3IomeyPMbFNcTcgKw8VL+bVb3lm+JqJ/OIKz1Zw/Ot3RjRl3ir+Ccg6WIna/rnK82gQRlWr+Kk5xsRm4N9DWMqbNrFYJpQbwLoCmNzlWRw31reREK9QayURp54wQXr0PseehtxoPLwmLSo8JPSv/OcHHz5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QCL8egCB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7832AC43390; Sun, 7 Apr 2024 13:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712495047; bh=yF0em7+RzPDN0jJHxiei/K8GcHR0GT2K/oI/lhIRxSw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QCL8egCBveInAmu0WP7u8xyNuTdFsyngB8kNXAfScBREoTjnK6XtvU3ZLkz58r0Lq CEHoot0bCboYCUy71YbXTRxeiQeTOkx0TSF9heLS5XQcFJrARSWwZIJlU9eil/gA/f ZupuS7lNBqaObti3V3tMPQ1qWyjjhc7/2rNkRrGXV3qhUoInZLGT8Kqvu+3wjJgi3n TEJmgyBu3euBByeUohu+nzpWopL0vn/2XGqHLYdoxjmvSvmmfwp1aQ5I/gNXAOueJw k2KB3KHNqUzJffo8DD0FPWRLmtg8sk99G3xQaBnBNKq+OVeMOQ+L6y2hIPnXwb9DTr Y0fiWTDW3zrtw== Date: Sun, 7 Apr 2024 18:34:02 +0530 From: Vinod Koul To: Rob Herring Cc: Viresh Kumar , Andy Shevchenko , Krzysztof Kozlowski , Conor Dooley , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: dma: snps,dma-spear1340: Fix data{-,_}width schema Message-ID: References: <20240311222522.1939951-1-robh@kernel.org> 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: <20240311222522.1939951-1-robh@kernel.org> On 11-03-24, 16:25, Rob Herring wrote: > 'data-width' and 'data_width' properties are defined as arrays, but the > schema is defined as a matrix. That works currently since everything gets > decoded in to matrices, but that is internal to dtschema and could change. This fails to apply on dmaengine/next. Can you please rebase? > > Signed-off-by: Rob Herring > --- > .../bindings/dma/snps,dma-spear1340.yaml | 38 +++++++++---------- > 1 file changed, 17 insertions(+), 21 deletions(-) > > diff --git a/Documentation/devicetree/bindings/dma/snps,dma-spear1340.yaml b/Documentation/devicetree/bindings/dma/snps,dma-spear1340.yaml > index 5da8291a7de0..7b0ff4afcaa1 100644 > --- a/Documentation/devicetree/bindings/dma/snps,dma-spear1340.yaml > +++ b/Documentation/devicetree/bindings/dma/snps,dma-spear1340.yaml > @@ -93,10 +93,9 @@ properties: > data-width: > $ref: /schemas/types.yaml#/definitions/uint32-array > description: Data bus width per each DMA master in bytes. > + maxItems: 4 > items: > - maxItems: 4 > - items: > - enum: [4, 8, 16, 32] > + enum: [4, 8, 16, 32] > > data_width: > $ref: /schemas/types.yaml#/definitions/uint32-array > @@ -106,28 +105,26 @@ properties: > deprecated. It' usage is discouraged in favor of data-width one. Moreover > the property incorrectly permits to define data-bus width of 8 and 16 > bits, which is impossible in accordance with DW DMAC IP-core data book. > + maxItems: 4 > items: > - maxItems: 4 > - items: > - enum: > - - 0 # 8 bits > - - 1 # 16 bits > - - 2 # 32 bits > - - 3 # 64 bits > - - 4 # 128 bits > - - 5 # 256 bits > - default: 0 > + enum: > + - 0 # 8 bits > + - 1 # 16 bits > + - 2 # 32 bits > + - 3 # 64 bits > + - 4 # 128 bits > + - 5 # 256 bits > + default: 0 > > multi-block: > $ref: /schemas/types.yaml#/definitions/uint32-array > description: | > LLP-based multi-block transfer supported by hardware per > each DMA channel. > + maxItems: 8 > items: > - maxItems: 8 > - items: > - enum: [0, 1] > - default: 1 > + enum: [0, 1] > + default: 1 > > snps,max-burst-len: > $ref: /schemas/types.yaml#/definitions/uint32-array > @@ -138,11 +135,10 @@ properties: > will be from 1 to max-burst-len words. It's an array property with one > cell per channel in the units determined by the value set in the > CTLx.SRC_TR_WIDTH/CTLx.DST_TR_WIDTH fields (data width). > + maxItems: 8 > items: > - maxItems: 8 > - items: > - enum: [4, 8, 16, 32, 64, 128, 256] > - default: 256 > + enum: [4, 8, 16, 32, 64, 128, 256] > + default: 256 > > snps,dma-protection-control: > $ref: /schemas/types.yaml#/definitions/uint32 > -- > 2.43.0 -- ~Vinod