From patchwork Fri May 15 09:43:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WW9uZyBXdSAo5ZC05YuHKQ==?= X-Patchwork-Id: 6413291 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ECB649F1C1 for ; Fri, 15 May 2015 09:47:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26E962041E for ; Fri, 15 May 2015 09:47:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4195120437 for ; Fri, 15 May 2015 09:47:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtCB0-0002V6-R8; Fri, 15 May 2015 09:45:06 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtCAQ-0002Bi-GS; Fri, 15 May 2015 09:44:31 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 551397296; Fri, 15 May 2015 17:44:04 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Fri, 15 May 2015 17:44:02 +0800 From: Yong Wu To: Rob Herring , Joerg Roedel , Matthias Brugger Subject: [PATCH v2 2/6] dt-bindings: mediatek: Add smi dts binding Date: Fri, 15 May 2015 17:43:25 +0800 Message-ID: <1431683009-18158-3-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1431683009-18158-1-git-send-email-yong.wu@mediatek.com> References: <1431683009-18158-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150515_024430_812294_86BE64F2 X-CRM114-Status: UNSURE ( 5.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: Mark Rutland , devicetree@vger.kernel.org, pebolle@tiscali.nl, mitchelh@codeaurora.org, arnd@arndb.de, srv_heupstream@mediatek.com, Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, Tomasz Figa , iommu@lists.linux-foundation.org, Daniel Kurtz , Yong Wu , Sasha Hauer , linux-mediatek@lists.infradead.org, k.zhang@mediatek.com, youhua.li@mediatek.com, Robin Murphy , linux-arm-kernel@lists.infradead.org, Lucas Stach X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add smi binding document. Signed-off-by: Yong Wu --- .../bindings/soc/mediatek/mediatek,smi-larb.txt | 24 ++++++++++++++++++++++ .../bindings/soc/mediatek/mediatek,smi.txt | 22 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,smi-larb.txt create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,smi.txt diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi-larb.txt b/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi-larb.txt new file mode 100644 index 0000000..c06c5b6 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi-larb.txt @@ -0,0 +1,24 @@ +SMI(Smart Multimedia Interface) Local Arbiter + +The hardware block diagram please check bindings/iommu/mediatek,iommu.txt + +Required properties: +- compatible : must be "mediatek,mt8173-smi-larb" +- reg : the register and size of each local arbiter. +- smi : must be "&smi_common". Refer to bindings/soc/mediatek,smi.txt. +- clocks : must contain one entry for each clock-names. + There are 2 clockes: + APB clock : Advanced Peripheral Bus clock, It's the clock for setting + the register. + SMI clock : It's the clock for transfer data and command. +- clock-name: must be "apb" and "smi". + +Example: + larb0:larb@14021000 { + compatible = "mediatek,mt8173-smi-larb"; + reg = <0 0x14021000 0 0x1000>; + smi = <&smi_common>; + clocks = <&mmsys MM_SMI_LARB0>, + <&mmsys MM_SMI_LARB0>; + clock-names = "apb", "smi"; + }; diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi.txt b/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi.txt new file mode 100644 index 0000000..c2389b4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,smi.txt @@ -0,0 +1,22 @@ +SMI(Smart Multimedia Interface) + +The hardware block diagram please check bindings/iommu/mediatek,iommu.txt + +Required properties: +- compatible : must be "mediatek,mt8173-smi" +- reg : the register and size of the smi. +- clocks : must contain one entry for each clock-names. + There are 2 clockes: + APB clock : Advanced Peripheral Bus clock, It's the clock for setting + the register. + SMI clock : It's the clock for transfer data and command. +- clock-name: must be "apb" and "smi". + +Example: + smi_common:smi@14022000 { + compatible = "mediatek,mt8173-smi"; + reg = <0 0x14022000 0 0x1000>; + clocks = <&mmsys MM_SMI_COMMON>, + <&mmsys MM_SMI_COMMON>; + clock-names = "apb", "smi"; + };