Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2716600imj; Mon, 18 Feb 2019 10:49:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IauH0fWaqTnOeND2mzjMdOlz1YORvXsa5zgh3F08kqktuZZG0EnazyWqlqV9Miyi5Sk6OQG X-Received: by 2002:a17:902:b489:: with SMTP id y9mr27099502plr.193.1550515782465; Mon, 18 Feb 2019 10:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550515782; cv=none; d=google.com; s=arc-20160816; b=omqa6c82fKqN+P4j1lhwnLQ5+f0Oy8/uFCTLRvUJNwoCRVvczM2UUQFrb8pBYFQ3X8 c3Ipn48djicCgfN3+kyx5L4FMHNVO/bnUEjW5EymAncaYXaKoNymj9TqS5fcvXKbvw78 +g/JVlb1pgoD5dZZ0jpeCzJXf3klN6ASNZK3dE5emxs2V7C8k+LedUmwTUPOUcBC7cHL asegTpLGwAogFJMbeoZ3sXaR7V4z8U3vkSGnLr1T+3j8glP3wV9yZFcMidjc3Lxfz/rJ Hl0bS6ew+REug5X/3SviF/Yc244BkqOxaZ1CHRM4oKBcIRx6VobCNeBG0sLS2i0MoRP1 MG2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ce+FsWm+x9HHNqzsqHfs3p93v9ypTpSv8t2GcyaBUcc=; b=I1ePY7mqsvYqPL4OwuydcGiSpv2iZc4SGrrI3qAwZ8DbqqScFUU8c8yjKKofoAI+ze V3d+RZqFlSHNJxOkgvVDkS0FyIgMwtTACY1Ull24RvzOBy6OjA+1MUHLGR/J+Zee9YSa rHshs+MoKOX1gn5l5bmNDoLXAbExCe+ktENB2ooYyHopMM3nzv5YLaPpPyrlIYitxd/Q T2+gPEVRw8LqtUoe63UxCtH73eobI9C8CkIVdCVQj6Z/SB8eDfw7AzXkrJN6vRcONx0+ szKbE+8dAiHsUsAWy4fsmAo4Rq0aP09IX/+fm+PQ7u4IkOv6cXAVXLpz0XSYi/Z98u0m hQEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si13478554pgt.548.2019.02.18.10.49.26; Mon, 18 Feb 2019 10:49:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732923AbfBRPos (ORCPT + 99 others); Mon, 18 Feb 2019 10:44:48 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40007 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730713AbfBRPos (ORCPT ); Mon, 18 Feb 2019 10:44:48 -0500 Received: by mail-ot1-f65.google.com with SMTP id s5so28964417oth.7; Mon, 18 Feb 2019 07:44:47 -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:user-agent; bh=Ce+FsWm+x9HHNqzsqHfs3p93v9ypTpSv8t2GcyaBUcc=; b=UCtk5GuTpAmaxTu+8G05TdSwoa5PaikUYJ48Ry6/0Hb69Z0q086P3gqyLVOlKtNmZr KKqWkx+/sjhc1CJEHUft8d92EV7vgd7SX4qwFfft0K1+0Su1eqPOquoB3cIA97TTtxLH 28htlhSA0pFZvH3PmjbWchQGi602Jn3ypivLmcj0KCqioHltixmKLqrIIDl2E+hze4+U s4lM40GUlbggeQECDt7V2GZsiO+rZd2UVyFbocTHPr1e760ICx/1sMz2/HXDpiz8w2gj Sz+3Hyu5schx6t8POselkrBbJbk186reiCkURh9c+S+OVXrkp735wQdOwWnd+rftc2fm nwgg== X-Gm-Message-State: AHQUAuZGcrd2pZdP3CYJdDsblZBSVfQ1osPdmvP1+OJczq0Oi+u1kdY8 dG/KR9sG8nLs87mm+u/ytw== X-Received: by 2002:a9d:6206:: with SMTP id g6mr14483608otj.338.1550504686822; Mon, 18 Feb 2019 07:44:46 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id y37sm3695809ota.17.2019.02.18.07.44.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 07:44:46 -0800 (PST) Date: Mon, 18 Feb 2019 09:44:45 -0600 From: Rob Herring To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Evan Green , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, yingjoe.chen@mediatek.com, yong.wu@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, Matthias Kaehlcke Subject: Re: [PATCH v6 01/22] dt-bindings: mediatek: Add binding for mt8183 IOMMU and SMI Message-ID: <20190218154445.GA28558@bogus> References: <1550394300-17420-1-git-send-email-yong.wu@mediatek.com> <1550394300-17420-2-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550394300-17420-2-git-send-email-yong.wu@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Feb 2019 17:04:39 +0800, Yong Wu wrote: > This patch adds decriptions for mt8183 IOMMU and SMI. > > mt8183 has only one M4U like mt8173 and is also MTK IOMMU gen2 which > uses ARM Short-Descriptor translation table format. > > The mt8183 M4U-SMI HW diagram is as below: > > EMI > | > M4U > | > ---------- > | | > gals0-rx gals1-rx > | | > | | > gals0-tx gals1-tx > | | > ------------ > SMI Common > ------------ > | > +-----+-----+--------+-----+-----+-------+-------+ > | | | | | | | | > | | gals-rx gals-rx | gals-rx gals-rx gals-rx > | | | | | | | | > | | | | | | | | > | | gals-tx gals-tx | gals-tx gals-tx gals-tx > | | | | | | | | > larb0 larb1 IPU0 IPU1 larb4 larb5 larb6 CCU > disp vdec img cam venc img cam > > All the connections are HW fixed, SW can NOT adjust it. > > Compared with mt8173, we add a GALS(Global Async Local Sync) module > between SMI-common and M4U, and additional GALS between larb2/3/5/6 > and SMI-common. GALS can help synchronize for the modules in different > clock frequency, it can be seen as a "asynchronous fifo". > > GALS can only help transfer the command/data while it doesn't have > the configuring register, thus it has the special "smi" clock and it > doesn't have the "apb" clock. From the diagram above, we add "gals0" > and "gals1" clocks for smi-common and add a "gals" clock for smi-larb. > > >From the diagram above, IPU0/IPU1(Image Processor Unit) and CCU(Camera > Control Unit) is connected with smi-common directly, we can take them > as "larb2", "larb3" and "larb7", and their register spaces are > different with the normal larb. > > Signed-off-by: Yong Wu > --- > Hi Rob, > In this version, I changed the picture in the binding and list the > detailed SoCs which has "bclk" and "gals". So I don't keep your R-b. > --- > .../devicetree/bindings/iommu/mediatek,iommu.txt | 30 ++++- > .../memory-controllers/mediatek,smi-common.txt | 12 +- > .../memory-controllers/mediatek,smi-larb.txt | 4 + > include/dt-bindings/memory/mt8183-larb-port.h | 130 +++++++++++++++++++++ > 4 files changed, 170 insertions(+), 6 deletions(-) > create mode 100644 include/dt-bindings/memory/mt8183-larb-port.h > Reviewed-by: Rob Herring