From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 725B6C433DF for ; Thu, 9 Jul 2020 20:15:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BB1520720 for ; Thu, 9 Jul 2020 20:15:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cRYTweti" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BB1520720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xnmer5OLuhOCxYEZLVchq3gRP7uAK+LJVQdmCbuBv2E=; b=cRYTwetiBxJ/pP4ms7wYDMOYU YrmqC5RUYFmhBJGOhJVqo7WBaEcQW4sIl5qXlbQT/PD5+7eVrJNNiEMZGyD5OZyVTIKZwNKUwDKPR b9K01Q1nQ6Y6jMFMWLMPoIcWSREaenSu9eAmwZVP6Zp8K+UGO5O2dwsrNplJI9rNkjASdx2VLrbTZ 3icjGVJ3gasfsythLrMiSF7avgWknzYLdLnVrpG48AgPqiy/Qoe6kLMpVuW6pnSXymzAhPZ1oTMNs ZvHbw+EqC7aAl2aNhU9uX7HQo8YejNpbQxG1SveJDejndxJx+ILP7gh89KOoMn3vfuK/1Fc93KGAj oMucN8SbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtcvZ-0004aZ-R2; Thu, 09 Jul 2020 20:13:53 +0000 Received: from mail-il1-f193.google.com ([209.85.166.193]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtcvW-0004aC-Pb for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 20:13:51 +0000 Received: by mail-il1-f193.google.com with SMTP id i18so3124516ilk.10 for ; Thu, 09 Jul 2020 13:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=k0op+C2S3aQoquxdFo+HuSbYEJeD5ZxAC+v6vN831a4=; b=EzWo65tccpZvXiWTaYDsHqBo8ab1JGFNB+MNS/LAoBWoZ1cIDpy3WihDdpcbRMvW28 lAVIVLjZS+ml/UXozw1I7upXBBQrVywoMiWutFZunfRL3dmTw3q4MQq5hOw14wgMmd9N tWhxvVZnT7gQDiwW9hEP1DaS/uCQ4RRG2lJdfp2t4FTPHnvIUY0mfcpil3cj5TIObeKu +CKd2Vo2JQhakkw0ti8X83sT7+2Ocf6RF9u2r6rUwvej9BJCo7spkHDRwpC8hTIKZM2E GEoQ9g1k0KRBdzBbhxLVTXviu6OBUOgM1tfLdOH51Kl/LVl7Qq7uYZF+KrXorIkwhQP5 ylwg== X-Gm-Message-State: AOAM530AYSFVOUwgBF5ml0zhCVYSE+2h64bI+ssLdDmmtct8ttOxLa3c E+AzrTCIAmXuySPIJX4iaA== X-Google-Smtp-Source: ABdhPJwN9Tnm2g10urJefbESGH3i3X/kkcFt7HTqUBM8iKFH7AQHI2Y9MXUrD93PD3LlrhQdXnC3sQ== X-Received: by 2002:a92:cc50:: with SMTP id t16mr48154798ilq.180.1594325629998; Thu, 09 Jul 2020 13:13:49 -0700 (PDT) Received: from xps15 ([64.188.179.254]) by smtp.gmail.com with ESMTPSA id c3sm2314843ilj.31.2020.07.09.13.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 13:13:49 -0700 (PDT) Received: (nullmailer pid 813726 invoked by uid 1000); Thu, 09 Jul 2020 20:13:48 -0000 Date: Thu, 9 Jul 2020 14:13:48 -0600 From: Rob Herring To: Krishna Reddy Subject: Re: [PATCH v10 4/5] dt-bindings: arm-smmu: add binding for Tegra194 SMMU Message-ID: <20200709201348.GA808454@bogus> References: <20200708050017.31563-1-vdumpa@nvidia.com> <20200708050017.31563-5-vdumpa@nvidia.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200708050017.31563-5-vdumpa@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_161350_962149_B0B185B0 X-CRM114-Status: GOOD ( 13.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: snikam@nvidia.com, devicetree@vger.kernel.org, nicoleotsuka@gmail.com, mperttunen@nvidia.com, praithatha@nvidia.com, bhuntsman@nvidia.com, will@kernel.org, joro@8bytes.org, linux-kernel@vger.kernel.org, jonathanh@nvidia.com, talho@nvidia.com, iommu@lists.linux-foundation.org, nicolinc@nvidia.com, linux-tegra@vger.kernel.org, yhsu@nvidia.com, treding@nvidia.com, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, bbiswas@nvidia.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 07, 2020 at 10:00:16PM -0700, Krishna Reddy wrote: > Add binding for NVIDIA's Tegra194 SoC SMMU. > > Signed-off-by: Krishna Reddy > --- > .../devicetree/bindings/iommu/arm,smmu.yaml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml > index d7ceb4c34423..ac1f526c3424 100644 > --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml > +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml > @@ -38,6 +38,11 @@ properties: > - qcom,sc7180-smmu-500 > - qcom,sdm845-smmu-500 > - const: arm,mmu-500 > + - description: NVIDIA SoCs that program two ARM MMU-500s identically > + items: > + - enum: > + - nvidia,tegra194-smmu > + - const: nvidia,smmu-500 > - items: > - const: arm,mmu-500 > - const: arm,smmu-v2 > @@ -138,6 +143,19 @@ required: > > additionalProperties: false > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - nvidia,tegra194-smmu > + then: > + properties: > + reg: > + minItems: 2 > + maxItems: 2 This doesn't work. The main part of the schema already said there's only 1 reg region. This part is ANDed with that, not an override. You need to add an else clause with 'maxItems: 1' and change the base schema to {minItems: 1, maxItems: 2}. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel