From patchwork Tue Feb 2 20:55:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 374676 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp544956jah; Tue, 2 Feb 2021 12:57:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGBxjLBF546Q3CgzYvxZhTDLGB/C8xzdQ4j8sUeOEWBA5TYMqn8tpaXmxLIf93bN4c2eIf X-Received: by 2002:a05:6402:35ca:: with SMTP id z10mr757458edc.174.1612299471344; Tue, 02 Feb 2021 12:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612299471; cv=none; d=google.com; s=arc-20160816; b=QocrbAfv4KtYlShOvCpuL+ljjfNA6muydTL8GpijRxL5FZG8N6hyZ87ZR5Lr7kn5XT /qo0yAkhw+3ThU+fx4gEHJYB4N60UBYSqRqkzdq1x8luSIrnv605d7RT2Ktt2BZE49PA 6XMSZQ/GfjYRqpxN+vGPLb0jFu4uHzn7UNk2R8Jwb10vGsGSJ1M5iLzGtNfLOqWaYcww oNVbRypSDti1NwD6F83F1BTx+OsQtlvIArpYe3JUfRlqt7OIuPUGJdQZ0flDNgjZPXAU Y/sdnCftv+HsKNHf8s7YV/jvFZEleP4CzKA0uiTEvq5+NqcJZe2quY3SJBQ5MA/sI3n9 5ymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S/rEofJPqnkLlE8GJQFmVM1qahKIfCsQMC9dA4r5GHw=; b=eKp6X+sI1Prvx4HCxMjwhhewDJpQtCHOvR0iOkdZ7f0htcSX9EQSE5ie44tI9OGkq/ 1uUv4Fu1iTOKfGus9eRqAUXbrJMq2Te+4JcGNKPoTJU8fV3lsV1+eWPSNPHvalLjgxyJ BS212KiFrOhEN13zf1XUe7PjXRSri9kapcL0oCv+bg8h7e6bHA/NpDh0oR+8o9/JgMgy SjFod4+L+Y8o3ghVE4Xru5eYbQstOJmhKtna1K1KLS/5uKQitEK3EDhPo0dZZsa9XMhY V9vQxMw1pj/gulaDyBnxf6oPWaf62k3x3q9Hqnh64728TztDteqNMRKR58OURCb0tcqE lGMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji20si13119457ejc.719.2021.02.02.12.57.50; Tue, 02 Feb 2021 12:57:51 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233989AbhBBU4e (ORCPT + 6 others); Tue, 2 Feb 2021 15:56:34 -0500 Received: from mail-ot1-f44.google.com ([209.85.210.44]:38683 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbhBBU4c (ORCPT ); Tue, 2 Feb 2021 15:56:32 -0500 Received: by mail-ot1-f44.google.com with SMTP id t25so11135328otc.5; Tue, 02 Feb 2021 12:56:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=S/rEofJPqnkLlE8GJQFmVM1qahKIfCsQMC9dA4r5GHw=; b=Hp/M1WBJ6vNDx8V0gZq9eXVWg4ftMyJDcTB6JO23c8OTY9X9qNDY6CTdkRhkI+lvPl FEwS7dWqZg1mir+rtTOxBxTiql0729Rpzk1XybjNQRupV/FYhVvfIlWpz2pcM/6JPbGw g/mb2ROzfwngWahBuS+fdMFyj8AZsK7IVCt3wSC/q5wlVB1YRIIBgyl+PwlLPeCjNwIJ 4ae6ZQRWQeT0/ZUmHK0m7nUQynA3mGNG1F6sx6/M0erJrNyRwZil5+OTrCSbdsv9x9zQ RRXbV3yuSruYfiKD4o96tkzZ+4d54U15FIzCSAUzBeYB0Fuxs6UA/18W8Tt+kTkyB3Up iDdQ== X-Gm-Message-State: AOAM530z9LA3XxWruD8TACNWL4gXDISQS/BXUQAXz53RnxIzjNgTGv7Z TWVl8endEXdvUN6s/CIHA5R127KA5w== X-Received: by 2002:a9d:6643:: with SMTP id q3mr11847740otm.63.1612299350248; Tue, 02 Feb 2021 12:55:50 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id k15sm4206otp.10.2021.02.02.12.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 12:55:49 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Herbert Xu , "David S. Miller" , Daniel Palmer , Bartosz Golaszewski , Avi Fishman , Tomer Maimon , Tali Perry , Joerg Roedel , Will Deacon , Andrew Jeffery , Joel Stanley , Wim Van Sebroeck , Guenter Roeck , Yoshihiro Shimoda , Vincent Cheng , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, iommu@lists.linux-foundation.org, linux-watchdog@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: iommu: renesas, ipmmu-vmsa: Make 'power-domains' conditionally required Date: Tue, 2 Feb 2021 14:55:43 -0600 Message-Id: <20210202205544.24812-2-robh@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210202205544.24812-1-robh@kernel.org> References: <20210202205544.24812-1-robh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fixing the compatible string typos results in an error in the example: Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.example.dt.yaml: iommu@fe951000: 'power-domains' is a required property Based on the dts files, a 'power-domains' property only exists on Gen 3 which can be conditioned on !renesas,ipmmu-vmsa. Cc: Joerg Roedel Cc: Will Deacon Cc: Yoshihiro Shimoda Cc: iommu@lists.linux-foundation.org Signed-off-by: Rob Herring --- .../bindings/iommu/renesas,ipmmu-vmsa.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.27.0 Reviewed-by: Yoshihiro Shimoda diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml index 349633108bbd..dda44976acc1 100644 --- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml +++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml @@ -76,7 +76,6 @@ required: - compatible - reg - '#iommu-cells' - - power-domains oneOf: - required: @@ -86,6 +85,17 @@ oneOf: additionalProperties: false +allOf: + - if: + properties: + compatible: + not: + contains: + const: renesas,ipmmu-vmsa + then: + required: + - power-domains + examples: - | #include