Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp366586pxb; Wed, 13 Jan 2021 05:50:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxn/Qbwg0gD47qbkKXHYFcLEYBycX3+fY9G/T1/cbFRuoNbBK/wML2m3UZMdFqC4ymQUJ8p X-Received: by 2002:a17:906:9257:: with SMTP id c23mr1665682ejx.82.1610545814271; Wed, 13 Jan 2021 05:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610545814; cv=none; d=google.com; s=arc-20160816; b=x/wWuwl8fGme6YyK/b/hM0Vq/x49cnIzB9HOa6WnQ2eyteKNMcKDdWILD2OEEChUbQ Q7UpduGKbmqXCOQwjSl/o2DIk0kPoXJ7WmGwNzTxZmz3fO+bySG2r7kgtr3jDZPHezlT /Jlk5RcqmIMWdSy2itOZ/DJQ3dfXB6uOqxe8rutQ3fzhKsFa5/S957Vh/9IHcmXg5O5I zM3Cp1nnVWMCU8fKFhmBypBYc+E+6KlIO+E2G02ke7DPoeACm7Lxa0vgqfZ6XlmTchTi oBQlhN8TbcfP/fL2AGXvyGzXh8eo6mG8CtSgpcEcRZJRfGMbYX1sI2LOyRgOZ7r9Iwed WjiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NyN3DT7sRMywQE28qQfD0h5DcX3sIqxEyxWG22Yx+uw=; b=QMpi8vBbzTO71fs2m7tNAg8KQ/AIanMEMQgPFcVms9cwsB5r6gOZnQz7a1wj6OrLBR +7rQERGVTb7CUPiBDJDK3/jqBd3FARGn58YqiefePvi3gND0RRQI7MErHs181DUruv7f 7UUyx8JtEm7cujit8moVMSNutaxbwn+KIhno1EHYH7pDTN+PCfkww8N44IPhKRpWWQ+p gWfQrgHe3aGlReptaZYi2VhVFMnE+1ryKVEIxRrr8eYkP8nCtkS597lO3mTrd2c6bYzt 4pLvue8bFDY3avkbO31MSDO2FqFk6p1xyL0cKtWnSMXSOiW+81uTt/pHEvbCkHYpaddQ HAtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FYu658AO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 dn6si95349edb.580.2021.01.13.05.49.50; Wed, 13 Jan 2021 05:50:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FYu658AO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726729AbhAMNsV (ORCPT + 99 others); Wed, 13 Jan 2021 08:48:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:40862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbhAMNsU (ORCPT ); Wed, 13 Jan 2021 08:48:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E566223339; Wed, 13 Jan 2021 13:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610545660; bh=c9ZEmZC+OGzOHSTlleqwkNhpgxSo3+qwJ9ptpSoPBMY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FYu658AOWNtizhfGOXbNeL8NnWsMtHC+dTrt2yedfVOtoG8JKtBG1y0MjODTu7GW+ 740oAJD+fJqb5Ts7VVV3U0RQNlu6RbHic5mtnopKPl5jioiqWOOkaKbt2dcLn/u+s7 rtGUDgKHYO2vy3z9WftyjNDrcEPDtYydLA3YzkWaUcPIt82pnUA9FwbgpXRQXjsmcB W0vRdNUQjbeEwzz3seUsYoyKP0i2R+Fd0JWpH/RrqeAmXPff4JzKQiknxZ1BCcrRAj IIhLhSyZ2S1JQDGgRP4Zv3xbeB/GUxEAOljYrPV9vib4zsFj0Ixwzj+Ay81CUJHG6E IqT8rXjjuXBfA== Received: by mail-ed1-f46.google.com with SMTP id r5so1940047eda.12; Wed, 13 Jan 2021 05:47:39 -0800 (PST) X-Gm-Message-State: AOAM533YTLpB1UJ406gnZoay+zQciRRzTIJdgzQQfWQeObYCVxLb3q5r Q7UlMGN2tqns+A0vpvSgjq/Tlo3W1f6UKvMb7g== X-Received: by 2002:a50:e78b:: with SMTP id b11mr1817862edn.165.1610545658364; Wed, 13 Jan 2021 05:47:38 -0800 (PST) MIME-Version: 1.0 References: <20201223111633.1711477-1-zhang.lyra@gmail.com> <20210108022545.GA1744725@robh.at.kernel.org> In-Reply-To: From: Rob Herring Date: Wed, 13 Jan 2021 07:47:26 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/2] dt-bindings: iommu: add bindings for sprd iommu To: Chunyan Zhang Cc: Joerg Roedel , Linux IOMMU , DTML , Baolin Wang , Linux Kernel Mailing List , Orson Zhai , Sheng Xu , Kevin Tang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 5:34 AM Chunyan Zhang wrote: > > On Fri, 8 Jan 2021 at 10:25, Rob Herring wrote: > > > > 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. > > All SoCs so far use the same iommu IP, there's a little different > among different iommu users. That's what everyone says. Be warned that you cannot add properties for any differences that come up whether features or errata. > > Is this block specific to display subsys or > > that just happens to be where the instance is? > > This iommu driver can serve many subsystem devices, such as Video, > Camera, Image, etc., but they have their own iommu module which looks > like a subdevice embedded in the master devices. > I will add more compatible strings for those devices when needed. > For now, only this one was listed here because I just tested this > iommu driver with DPU only. The iommu binding takes care of what each one is connected to. Is each instance different in terms of features or programming model? If not, then you shouldn't have different compatible strings for each instance. Rob