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=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 E409FC433E0 for ; Fri, 8 Jan 2021 02:26:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DD1A23601 for ; Fri, 8 Jan 2021 02:26:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbhAHC02 (ORCPT ); Thu, 7 Jan 2021 21:26:28 -0500 Received: from mail-il1-f172.google.com ([209.85.166.172]:38853 "EHLO mail-il1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbhAHC02 (ORCPT ); Thu, 7 Jan 2021 21:26:28 -0500 Received: by mail-il1-f172.google.com with SMTP id v3so8858784ilo.5; Thu, 07 Jan 2021 18:26:13 -0800 (PST) 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=hre6xfB6NrLqQ3dXVlKDAfHEjfp9rD+sjidZkUWhifo=; b=BX/0MWIlQ9MLS4r5jP5he2u/aZOTita9KTO2kOiiIhFtNy40zs+nhb1p+EfyNWPS8V ByPgrXnvSrrh/ml3ykTMKc+1W2f5pkgEkPoKrZP3nxz4u1eQptBoGu1LrE19MWzN50yD h+K4SiiUGRMyNLAuwnYLLLn/X0h40I/86mFVrvxwbg/yERZZwiZy2ZyWE97OUka654j9 qiJ0Gh+OuyvM2kyEw7rhRyXoKboPDis3I2MiZA+3SXLMsChRH6Sw8tiCkIG1X699DVDE fPuI3T8+yP1x181zBm9HNO8ETgBBAoxZhELxI7N1uDOzKNQPmuedi4WfbnSS5CrwkT3A 5u/Q== X-Gm-Message-State: AOAM530jRTVHpcxXGvuP774aqUcClKBxrRhwiuYB4A7+uU1y1vLJdG9H hhlrCMUWiI0jY3NCZjR8aQ== X-Google-Smtp-Source: ABdhPJy6+5gcSiBXjrC4K+yGR0iKJSoDzy7Ki/YVuyrvV6OQ5PDNXOa+TAV4NklLz8zbiPyYZrPUSw== X-Received: by 2002:a05:6e02:1786:: with SMTP id y6mr1718502ilu.74.1610072747732; Thu, 07 Jan 2021 18:25:47 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id h17sm4536936ioz.12.2021.01.07.18.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 18:25:46 -0800 (PST) Received: (nullmailer pid 1747334 invoked by uid 1000); Fri, 08 Jan 2021 02:25:45 -0000 Date: Thu, 7 Jan 2021 19:25:45 -0700 From: Rob Herring To: Chunyan Zhang Cc: Joerg Roedel , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, Baolin Wang , linux-kernel@vger.kernel.org, Orson Zhai , Sheng Xu , Kevin Tang Subject: Re: [RFC PATCH 1/2] dt-bindings: iommu: add bindings for sprd iommu Message-ID: <20210108022545.GA1744725@robh.at.kernel.org> References: <20201223111633.1711477-1-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201223111633.1711477-1-zhang.lyra@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Dec 23, 2020 at 07:16:32PM +0800, Chunyan Zhang wrote: > From: Chunyan Zhang > > This patch only adds bindings to support display iommu, support for others > would be added once finished tests with those devices, such as Image > codec(jpeg) processor, a few signal processors, including VSP(video), > GSP(graphic), ISP(image), and camera CPP, etc. > > Signed-off-by: Chunyan Zhang > --- > .../devicetree/bindings/iommu/sprd,iommu.yaml | 44 +++++++++++++++++++ > 1 file changed, 44 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iommu/sprd,iommu.yaml > > diff --git a/Documentation/devicetree/bindings/iommu/sprd,iommu.yaml b/Documentation/devicetree/bindings/iommu/sprd,iommu.yaml > new file mode 100644 > index 000000000000..4d9a578a7cc9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iommu/sprd,iommu.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright 2020 Unisoc Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iommu/sprd,iommu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Unisoc IOMMU and Multi-media MMU > + > +maintainers: > + - Chunyan Zhang > + > +properties: > + compatible: > + enum: > + - sprd,iommu-disp Needs to be Soc specific. Is this block specific to display subsys or that just happens to be where the instance is? > + > + reg: > + maxItems: 1 > + > + "#iommu-cells": > + const: 0 > + description: > + Unisoc IOMMUs are all single-master IOMMU devices, therefore no > + additional information needs to associate with its master device. > + Please refer to the generic bindings document for more details, > + Documentation/devicetree/bindings/iommu/iommu.txt > + > +required: > + - compatible > + - reg > + - "#iommu-cells" > + > +additionalProperties: false > + > +examples: > + - | > + iommu_disp: iommu@63000000 { > + compatible = "sprd,iommu-disp"; > + reg = <0x63000000 0x880>; > + #iommu-cells = <0>; > + }; > + > +... > -- > 2.25.1 >