Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp712181lql; Mon, 11 Mar 2024 15:25:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcJXFWst+SzRWGOQuGavloReXUraiPTzh80Bm+FYsBFbhGtTN5KIsoqtL4QCkQVQRkXMWnolObz1UtkoGksRfC+NwgFjsDrD+76kCN1w== X-Google-Smtp-Source: AGHT+IE0NeRT0guudTIWpUr+CuzP1vrFzu96Gbpxx/o5kXZ9FCTK1A1TjUdlkyv+AchlG1kvgpyc X-Received: by 2002:a05:6402:2312:b0:568:1dd0:f92d with SMTP id l18-20020a056402231200b005681dd0f92dmr5031419eda.23.1710195944514; Mon, 11 Mar 2024 15:25:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710195944; cv=pass; d=google.com; s=arc-20160816; b=wqVk8KQBAbqxDNbH/sjXxFm6AenehEbPZ4ED3iG8VTx7OidCTMQ0tik3iYGtMlR4t/ FUm1LFqmUeaVNgT7/SwfiTsFE631X95weY2e6g5efYITo99xbRiD+lrtPR84sHUMW3oB mTg21Vl7+BXqMGQ8D46h+cnyf7g+5npLfdT2BmijquyaFf38mkuw9KfUrjzkPeicBnF4 +2S6rivFWWbyCFd4CvkEdM1Ao4sgAIqHu22CCOW38IgeUPw9JwAADxm0dCQQrcCNtShU 98CsbWfU3R/6IsxV0OR+7RLP4VtOotWn0ULMNsXgfxqznjIYdq3feSg3HTGLI7ju80/E 6EGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1Bi97VdfW7ORzwPYy93ZkU6b4HiGZMgE3FnCvX0uuGU=; fh=iFsZJjoHMd4j7Lh/CsjpOj7VDdQ09shB2oQponYVdnA=; b=hh7GhpuQuS5HebGm/C7s0xLwpUtmi0Bm3eoYYgusLdV1BXId1ZnHf+nuvuxpF1Jz65 8kMlzlbTP+U/3YVEGRXuFmLj6sXKiraG2ZhqDMiqoRLqAzfvht1ZF2pY+7p4H0fEpdcV +3dGGDsDraNGN5Y1UVyPAMAz1ML5nG19vr+EyGuyhmTt5X7pzr2PNNw4bWtu3L2WIN94 dpJdhnIm/5KektH5LKzJzvJUVq0tsShRCEtn06yuJSWkO4EJqfhb8E4h6+2GzQtCTqZW sKS0HxPLTb3umWu16cyWZd0XW2CnBNsgn2P0empxlc6dSKP6kreCyUPr2uU3lus1E1vM vxeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AC32lBz1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i2-20020a05640242c200b005684b902082si2088057edc.691.2024.03.11.15.25.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 15:25:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AC32lBz1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99605-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4209D1F22078 for ; Mon, 11 Mar 2024 22:25:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5852A57883; Mon, 11 Mar 2024 22:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AC32lBz1" 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 7BA2D52F61; Mon, 11 Mar 2024 22:25:33 +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=1710195933; cv=none; b=pyTRLUp/35zVrtmYtaOlJYnklcGARmokPCQYvt+Fm4NCQeXyRya67OEpSJNvni26DeG/qjFE5SM6liY6MxIkNWh7nkfYj3DPQJIWsFyE5AFFRO7b4UHBi7kINrnE9cf4/BQNuaxWqdNLFvtXqGjBiLwkwzxQWu6HqwDTI/w7k0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710195933; c=relaxed/simple; bh=l0/IQ23QUrCfGWUZ/tXclmNM1YnM2HDLEAk057qvzkY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OhTvHvK/PBczw9GSD/7CA3AIloOx+3PrARoB/FH6h11YkcE9Swc6UXzpjqXRRBEjRl9ADWcSgx3RSxy6BmATkIqDaK7VdcWAqeXofXDyCirA5ZQWAKrf9ZYlm7/ClrvcjurJn2rBx0+h/J8ecpRw3Y9/yXPCrZg70tnIVLBUsAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AC32lBz1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D88B3C433C7; Mon, 11 Mar 2024 22:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710195933; bh=l0/IQ23QUrCfGWUZ/tXclmNM1YnM2HDLEAk057qvzkY=; h=From:To:Cc:Subject:Date:From; b=AC32lBz1enrvDOlWUdu4x8Sj92fX3lrFP/eEg4C0B6vE40bYfFWvIkBHHtFxmf1u7 ry06MtikeGL6PsNo6ZDyrun3wlZlRiPn3h8BmYuUsilBLqhJnFuVEAD3mWcLuZM1Y+ 57PyE+EJ0f1pfXVXgNjEKM6FQHYDXdw3ZqNV5GYV+nbeEzHIXLQJFv0K/YupiBm0HX DQY2RscCrehP4u68UgCX7mnNv9UQrhMvotY7ltZIL4eouZum+yYoHud/QIUJon0Rck JRhcJy3y4fQMNPgW94ojROzsUyehxG96c32gFs2zbBm1AOQAMbB+McS5QeLsHjbaGh BFT1BYwO9teOg== From: Rob Herring To: Viresh Kumar , Andy Shevchenko , Vinod Koul , Krzysztof Kozlowski , Conor Dooley Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: dma: snps,dma-spear1340: Fix data{-,_}width schema Date: Mon, 11 Mar 2024 16:25:22 -0600 Message-ID: <20240311222522.1939951-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit '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. 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