Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp940565lql; Tue, 12 Mar 2024 02:39:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT0hvTECUMzpboulvy0CwwBGdiYsk/TxT+gQ5tzKl6hhAX1dFwyJFFXsDOOvJq/c5qN+Atfc/E4e4aI/dJ1I6lyB8XpLcB2+WNyPX8uA== X-Google-Smtp-Source: AGHT+IHhjwcwUyVXndXICv5xjmmUa4gdHbcVIBIx87Q3TmILNBVTDIoT9jYZIFJTqRC/VDZCoMzG X-Received: by 2002:a17:902:c951:b0:1dd:6530:f7c4 with SMTP id i17-20020a170902c95100b001dd6530f7c4mr3526817pla.5.1710236363566; Tue, 12 Mar 2024 02:39:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710236363; cv=pass; d=google.com; s=arc-20160816; b=KC8gc1IzcDNKQ0PQU9g9hHMOaAQ8CF9YWbaTom45MR2zcL0yXm5slRyRA8kwwCk6zc c7AiqoeCd3CI4zgxZWSelKAsYJfp4KanBZq4pnFmPAY+VLd1oWuVft5BzEYFQVb5TGaI hbquE8qsCoelGO4Dtcdwd/pier2s3mJfQqHPg0RrIIDTqs35EtQtYudO9GNzBAwnbwpi CzJABgK+AwjLe0Pp0HIfQujqE4clUw+HxP1gqrT3o0wTjM1cu1hbXQNeqqmYcAcQQ8nb aHFSzk8aCeggIEr8epHyDBdoZuukHSYO9cO4wH4R5IMEZ1OaY9kq7a3wZQsvDgETdgJX hrCw== 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=vypzRSmygKV0lPftTIj3GZMtWC14VrjuyGuYtz9gYZI=; fh=zeKVpbvahU5TDhGJrKDmNcwnGfslwUiMVJCwVM06HQU=; b=HUCquH6vlC/hTt8l1RAlJX2TVTK3SUzZt96yQiaGHE0Ky1y5ui+njrUdfXX8czj3+O dqCS1E6K7cS6r9OFTGPhiTAMOwl/V/3SuIl7+U8WAiZ6UXxIOwBo4QIU3CEw2sz69Bi6 lsTMIu18HbtQytLwzLVSnRzNsE7bbczpqIn4eHSj0bUWUB3+AOPjjgx+otXPnnzoUU18 oyaQKfzwq1uC0of/gOMTQzlm50WekwiWM7kRHpXSBq3JXqnjbX3XgxABEau8hYZbQa9T mzZkYf9o5yxORqV3O0B9T6dJ6WQu/ZKkKyaolGolmvROYdQriTzPXGzv3XsXglCygxNb TVuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQGVnjDQ; 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-100022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100022-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d10-20020a170902ceca00b001d757b25122si6020212plg.235.2024.03.12.02.39.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQGVnjDQ; 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-100022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100022-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 32183B21FE2 for ; Tue, 12 Mar 2024 09:28:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7FEF7827E; Tue, 12 Mar 2024 09:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQGVnjDQ" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 05BA98464; Tue, 12 Mar 2024 09:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710235706; cv=none; b=czb69FxyuONlz3Ax4W/7SZJBWDudf/fMI8WfCzzmumUiCgQLR+8X6VL6RFTYu1lJYDtGMx47EGH/AnaK2sGz6yJ8gDKeuRUFglFxpC+PStdE25eWsw9TCl91KOPV69u02DkWITmfkgjKm77/Y769fBAsPyjKU0AUnByvdSCKu/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710235706; c=relaxed/simple; bh=lOb/wLij4QiyTntQtdEH4T0DBOmfeMvCyGzvtevrdlM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dvNi+8QaVSbzQ2bHpMvJygxQc5wkjl3JiR5WvVdOnmpjXgYFdAtIgm3VtiN1B0DhJNYZ8Wgi1gRde+L2h7V/I0BsZTbNBU2w3CnDOOf1M7Ze1hn901N7p8Qg3u46QP3beWJ0cLlV+FotQnbseDCF6aR4PpfknEgodcXQySbkvQE= 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=RQGVnjDQ; arc=none smtp.client-ip=209.85.167.54 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-lf1-f54.google.com with SMTP id 2adb3069b0e04-512e4f4e463so7229213e87.1; Tue, 12 Mar 2024 02:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710235703; x=1710840503; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vypzRSmygKV0lPftTIj3GZMtWC14VrjuyGuYtz9gYZI=; b=RQGVnjDQNpbDWN9CC2pHpD1X04lB9ZG0dSa3XRc25JVP2wdfbvPTgk2ImJbGyTmPMd xScAsn17Y8T7chcQE3ds6eXlmCrIETI7pP65e1HJG8qubAV7zRM/VgqiFM5YbzdeMD6R N/Tz5Wqxof1ySM/tImM+NbbfvIllvDLCV/+txQ22UjsDyBrJE8bH7OtwdBCTnyKePFq6 ihkScWr0KmvGZatwspWRr3oWBUkEyFKxnlnAtpZraDY+SKFvWi7tVc0QXAHTY0OckmwF RxPQJn4HzXXz7w3JxWk/4Pb8MNGwp7putzac2ipOs+814TJxt58xg/X5xLd03zVmBVmE skYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710235703; x=1710840503; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vypzRSmygKV0lPftTIj3GZMtWC14VrjuyGuYtz9gYZI=; b=alxe3PgMa/9sR4WLuTc/tUV15HASSDEqkkTwPjDRueqs28Tqm8605NWPsCSergqO7K wnRQbTVcxVeAdV6dW2Pd9NZTkdMEpvjskPBWlJk8wCnaFCWXC5Gt6kr+qesR0W/nLXSW edeCxQOCRL3TUhVaWeB5llpOFKOq4Uujx1mEOpLRSb8EsR28ROTkkGdHN0ZWSoEVwu2l C+Z4s7E8sSDcrj140hnbXkg3x4at16kspbRhD9QW2rr9S2X0Q93+PGyxklrMNdclHc7c atogS3rSSxMQjTQFqkQ0yvyv87iKqoIWvb9mAtrEhdjYWqKnRn9McGaJiZ7iy/PiYEaT bblA== X-Forwarded-Encrypted: i=1; AJvYcCWXqxscMxnAppm2uFBOpVXAKknc0jlw/0hkWMZ39NWbwig/wvaQfACKFRzrAb0yKH9TyXZL6LJMXMqhqsVO6ZWAKpYUeQkgHdsKRg3dXcI4hUFOWnOlOADIzo626o0S1un6PhOFtIUoy7A2hbmRe9zskxlv1D0LFoBvAmyXgqdqOTGRRQ== X-Gm-Message-State: AOJu0YwxvMzlQ7VVYsreRRcsqwlQbRHvzYR50Lgo7OzGxg8Ovuhk8Zlc lpDsIdrOokGrEO0E2zj7rgNzc5og7Fy+S/Ou/JRtfSn7XGtvcK9e X-Received: by 2002:ac2:5e6d:0:b0:513:91c4:aa6 with SMTP id a13-20020ac25e6d000000b0051391c40aa6mr1680002lfr.63.1710235702881; Tue, 12 Mar 2024 02:28:22 -0700 (PDT) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id b8-20020a0565120b8800b00513b3928e36sm444420lfv.266.2024.03.12.02.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:28:22 -0700 (PDT) Date: Tue, 12 Mar 2024 12:28:20 +0300 From: Serge Semin To: Rob Herring Cc: Viresh Kumar , Andy Shevchenko , Vinod Koul , 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 Mon, Mar 11, 2024 at 04:25:22PM -0600, 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. Can't remember now why I didn't implement that that way initially. Probably because something didn't work back then during the DT-bindings check procedure. Anyway thanks for fixing the schema. Reviewed-by: Serge Semin -Serge(y) > > 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 > >