Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6232997rdb; Thu, 14 Dec 2023 11:56:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkL8hZ3EBUUpe6TYGYLgAYLiKtTeWU6yoaerzXLuSQowaeIftITtryQaIQVUYIOAgY5fy0 X-Received: by 2002:a05:6808:118b:b0:3b9:e666:5069 with SMTP id j11-20020a056808118b00b003b9e6665069mr11516163oil.104.1702583811699; Thu, 14 Dec 2023 11:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702583811; cv=none; d=google.com; s=arc-20160816; b=f5kVtSciRZvzMN/4zA87QErP92kYwV3njhukmWU+teDs3k1gt4x7IBICGsPLE+EvSN 918kjd60+vmrd+vTFegGwuZyeHvb+z9hnH8ZjmUKtTveZo/gvdw7Z8oIj69NDgIoTKZE nG7EUDJM8+U5MjA1N0UE+of9z3ViPGAMMsQ8U/X5edKl904NhB+3dIpDgGFLkRt1uii6 KtIZApokTzLdTYsGj24dsIton/MLYbD15W9OF9eS4tGRXeFp5fiNDGS0xdyNyJxdgOF0 PuGMcmAQR+UTkYLeZR3EwjSYTJl99rOBLsliEfTH7Mo0Nl0J+CqHGbNGDp9CAZcxmXUr X4Jw== ARC-Message-Signature: i=1; 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; bh=RMu3qe8RJmgyyVOaKPy6rEHFml1se+sCmssOaEi90U4=; fh=6u4iCdsiL+O8kzgCbEy+6bE8fIO6yRYtBymUyiInndE=; b=dvDsYsS/MFXdhNoi+A5WlMyQGA46TVvMRVc0otkOu5MyRuB3Lu0OsyVkFvPy79xLEy AUX0Xqh1C9Qrukb5odtynWpMtd/QIxPDeaa07cK//TIcgum96zSS4CaTYkUymE+QrD3d DpFH0jZ2IdBwoPPkbhvokDQT/MWdnCaXuX8g7w1oT0HkBziStK56wgNcUbs/amb09OW9 na6cNX5kPozlaoqqpqB9xZl9exVlAFTH3yweUYBiiGLIv0EwrZjkAY72qqLfwfIvfKaK icGsSmVbNGNKAnxr1Mx2NNTfPqHq6JZKOwqcw/AYujh0++XgquZFL8eCt6LsxEgaXPVf 1TxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44-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 x12-20020ad440cc000000b0067efb248efesi3943346qvp.499.2023.12.14.11.56.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 11:56:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44-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; spf=pass (google.com: domain of linux-kernel+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44-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 44D501C21A6C for ; Thu, 14 Dec 2023 19:56:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 696F86A025; Thu, 14 Dec 2023 19:56:42 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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 9C4F16A351; Thu, 14 Dec 2023 19:56:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5916c6b2e0fso1038952eaf.3; Thu, 14 Dec 2023 11:56:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702583762; x=1703188562; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RMu3qe8RJmgyyVOaKPy6rEHFml1se+sCmssOaEi90U4=; b=J6neRkjSAF2s33M727L7sVSFcqFmhzm5ikzmjF5Tf24yI6NGJL+ciaygOkiPMln2Jn d8XHwezwMoxNytIv89WoZ4EGX4Jlu8RPqDyUjvXFiWbHXJizRY/Zn9XRvxnMKiKj1JwV 37icwWrsbEWFE7jX5CT6IXGsQXkttrXVk0lvu57bs4eQyaphQU8e65yO6JVxmfnJvMQk pAfSDcWFU0WdIIpuQaLLKsscMupq4172vmlYNZmNfBpOyZC6eJD2MhO0khLkeGgHcSDj TiD7wLSeVuMt9XYKT+lgzUCG1f+Wpbu6h/x/6n4eMSXin5c6iV3FbSGnBRu3Wg/KYNFn OXfA== X-Gm-Message-State: AOJu0YxmCbQF+eQZVSIo7c9jVD+LzA2n8CijBx9Mha7jRRewH+VSZoo1 AdxrrFrXY+4cTVRfWX7Iqg== X-Received: by 2002:a4a:af02:0:b0:58d:8b93:ec8 with SMTP id w2-20020a4aaf02000000b0058d8b930ec8mr7429120oon.2.1702583762494; Thu, 14 Dec 2023 11:56:02 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id en12-20020a056830488c00b006d9fcb44e00sm2836039otb.32.2023.12.14.11.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 11:56:01 -0800 (PST) Received: (nullmailer pid 863088 invoked by uid 1000); Thu, 14 Dec 2023 19:56:00 -0000 From: Rob Herring To: Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Marek Szyprowski , Aakarsh Jain Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] media: dt-bindings: samsung,s5p-mfc: Fix iommu properties schemas Date: Thu, 14 Dec 2023 13:55:52 -0600 Message-ID: <20231214195553.862920-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 The iommus and iommu-names property schemas have several issues. First, 'iommus-names' in the if/then schemas is the wrong name. As all the names are the same, they can be defined at the top level instead. Then the if/then schemas just need to define how many entries. The iommus if/then schemas are also redundant. Best I can tell, the desire was to require 2 entries for "samsung,exynos5433-mfc", "samsung,mfc-v5", "samsung,mfc-v6", and "samsung,mfc-v8". Signed-off-by: Rob Herring --- v2: - Fix some more cases of iommus-names --- .../bindings/media/samsung,s5p-mfc.yaml | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml b/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml index 084b44582a43..4c3250985ac3 100644 --- a/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml +++ b/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml @@ -49,7 +49,9 @@ properties: iommu-names: minItems: 1 - maxItems: 2 + items: + - const: left + - const: right power-domains: maxItems: 1 @@ -84,7 +86,7 @@ allOf: - const: sclk_mfc iommus: maxItems: 1 - iommus-names: false + iommu-names: false - if: properties: @@ -102,11 +104,9 @@ allOf: - const: aclk - const: aclk_xiu iommus: - maxItems: 2 - iommus-names: - items: - - const: left - - const: right + minItems: 2 + iommu-names: + minItems: 2 - if: properties: @@ -123,11 +123,9 @@ allOf: - const: mfc - const: sclk_mfc iommus: - maxItems: 2 - iommus-names: - items: - - const: left - - const: right + minItems: 2 + iommu-names: + minItems: 2 - if: properties: @@ -144,11 +142,9 @@ allOf: items: - const: mfc iommus: - maxItems: 2 - iommus-names: - items: - - const: left - - const: right + minItems: 2 + iommu-names: + minItems: 2 - if: properties: @@ -161,9 +157,6 @@ allOf: clocks: minItems: 1 maxItems: 2 - iommus: - minItems: 1 - maxItems: 2 examples: - | -- 2.43.0