From patchwork Fri Dec 26 07:09:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 5542341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E487DBEEA8 for ; Fri, 26 Dec 2014 07:13:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B04E20148 for ; Fri, 26 Dec 2014 07:13:20 +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 4089A20131 for ; Fri, 26 Dec 2014 07:13:19 +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 1Y4P34-00078k-Pz; Fri, 26 Dec 2014 07:10:58 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4P2c-0006XP-Gg for linux-arm-kernel@lists.infradead.org; Fri, 26 Dec 2014 07:10:32 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1788334397; Fri, 26 Dec 2014 15:10:07 +0800 Received: from mtksdtcf04.mediatek.inc (10.21.12.144) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Fri, 26 Dec 2014 15:10:06 +0800 From: Flora Fu To: Rob Herring , Matthias Brugger , Samuel Ortiz , Lee Jones , , Arnd Bergmann Subject: [PATCH v4 3/6] dt-bindings:: Add document for MT8135 PMIC Wrapper Date: Fri, 26 Dec 2014 15:09:25 +0800 Message-ID: <1419577768-12037-4-git-send-email-flora.fu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1419577768-12037-1-git-send-email-flora.fu@mediatek.com> References: <1419577768-12037-1-git-send-email-flora.fu@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-20141225_231030_810225_CEB1451C X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , srv_heupstream@mediatek.com, Pawel Moll , Ian Campbell , Chen Zhong , linux-kernel@vger.kernel.org, HenryC Chen , Menghui Lin , Olof Johansson , Sascha Hauer , Kumar Gala , Grant Likely , Yingjoe Chen , Eddie Huang , Flora Fu , linux-arm-kernel@lists.infradead.org, Dongdong Cheng 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 Signed-off-by: Flora Fu --- .../soc/mediatek/mediatek,mt8135-pwrap.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8135-pwrap.txt diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8135-pwrap.txt b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8135-pwrap.txt new file mode 100644 index 0000000..d630fa0 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8135-pwrap.txt @@ -0,0 +1,51 @@ +MediaTek MT8135 PMIC Wrapper Driver + +MediaTek PMIC MFD is interfaced to host controller using SPI interface +by a proprietary hardware called PMIC wrapper or pwrap. + ++-----------------+ +---------------+ +| | | | +| Mediatek AP SoC | | | +| (ex. MT8135) | | MT6397 | +| | | | +| +--------+ | (SPI bus) | +--------+ | +| | | |-----------| | | | +| | PMIC | |-----------| | PMIC | | +| | Wrapper| |-----------| | Wrapper| | +| | | |-----------| | | | +| +--------+ | | +--------+ | +| | | | ++-----------------+ +---------------+ + +This document describes the binding for MT8135 PMIC wrapper. + +Required properties in pwrap device node. +- compatible:"mediatek,mt8135-pwrap" +- interrupts: IRQ for pwrap in SOC +- reg: address range for pwrap registers +- resets: reset bit for pwrap +- clock: clock frequency selection in SPI bus + +Optional properities: +- pmic: Mediatek PMIC MFD is the child device of pwrap + See the following for child node definitions: + Documentation/devicetree/bindings/mfd/mt6397.txt + +Example: + pwrap: pwrap@1000f000 { + compatible = "mediatek,mt8135-pwrap"; + reg = <0 0x1000f000 0 0x1000>, + <0 0x11017000 0 0x1000>; + reg-names = "pwrap-base", "pwrap-bridge-base"; + interrupts = ; + resets = <&infrarst MT8135_INFRA_PMIC_WRAP_RST>, + <&perirst MT8135_PERI_PWRAP_BRIDGE_SW_RST>; + reset-names = "infra-pwrap-rst", + "peri-pwrap-bridge-rst"; + clocks = <&pmicspi_sel>, <&clk26m>; + clock-names = "pmicspi-sel", "pmicspi-parent"; + + pmic { + compatible = "mediatek,mt6397"; + }; + };