From patchwork Wed Aug 9 02:31:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mars Cheng X-Patchwork-Id: 9889455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 91E6060384 for ; Wed, 9 Aug 2017 02:32:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D2A028713 for ; Wed, 9 Aug 2017 02:32:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71F472875E; Wed, 9 Aug 2017 02:32:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8731028713 for ; Wed, 9 Aug 2017 02:32:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=j08fnoOQBS48q4yjZ+3njJ5lZ0aXj5rsQqJ8KOTC+qI=; b=FOihdnFQczD8D8 aYiILG9u55ctD8F/BZy6Y4KqFpQTdvY1a5aFx6TLhOlLD/zQiYMUEueVz6g4QJm8hgeS/tYMhLEWv WXNJXh6J/nJLpSexQO8cD+jsihjC1K2ZA19U9VwFGCXIfOxDiBo9KRv95cB2o44kK/cBMzCYobKd+ HEiUtqXgoopH0aW4UNOCuD8aZElIm71WgLZ5RvM+PM74WA5ZoI4p0xvby/oxFJ6eOHvNfIaKPnWg1 /RURRHGV/FjXLetIeAyqqVAqLyNHKUyU7+72ucY7hWtTScd1yV3jtO+N62icj/uGBWjG653zRgA7X pBPYrFDQeQEnktrzWCEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dfGnC-0001SO-94; Wed, 09 Aug 2017 02:32:18 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfGnA-0001SH-SM for linux-mediatek@bombadil.infradead.org; Wed, 09 Aug 2017 02:32:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ewi8tRPSvjDJ+jwZ+BnMlVDQFM1sL8TxbZWmq80bRq0=; b=p39ZKhYS+32zdFcvNpge8xxuq EG4PutK2JQLYmOJQdh4DumHAm/6nC/R2Kgj2sUjPMX5frKzBq45QH4U0zV/BOJFxiCEyFQ4nr3SeI Ijn/kUXxz0KysKIELHeDIBRFhRiGA2IS0LJpgYJ1Q7cywYKovb2wd8K8P8pN3ti/5lHaO1EDoJOYP 7HE1/63aR2yQa68757dkCzGT9btX5sDd/1sfB+iiq/eTXTIJyi6xLsy0GJ0pg8UhbsZP+1Bhf89tP Yi893+BidGGQulWeESo0vYemX7UkLSFQb2eixqDtHsQIcp5Ce72n9shQPlMovR4d5BPRXSj6okt3C AXPJekkxw==; Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfGmq-0001W2-Jo for linux-mediatek@lists.infradead.org; Wed, 09 Aug 2017 02:32:00 +0000 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 253531209; Wed, 09 Aug 2017 10:31:09 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 9 Aug 2017 10:31:07 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 9 Aug 2017 10:31:08 +0800 From: Mars Cheng To: Rob Herring , Liam Girdwood , Mark Brown , Matthias Brugger Subject: [PATCH 1/3] dt-bindings: mfd: Add bindings for the MediaTek MT6351 PMIC Date: Wed, 9 Aug 2017 10:31:03 +0800 Message-ID: <1502245865-11403-2-git-send-email-mars.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1502245865-11403-1-git-send-email-mars.cheng@mediatek.com> References: <1502245865-11403-1-git-send-email-mars.cheng@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-20170809_033157_541004_45696974 X-CRM114-Status: GOOD ( 16.92 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, "Jimmy-YJ.Huang" , wsd_upstream@mediatek.com, linux-kernel@vger.kernel.org, CC Hwang , linux-mediatek@lists.infradead.org, Mars Cheng Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Jimmy-YJ.Huang" This adds dt-binding documentation for Mediatek MT6351. Only include mfd and regulator bindings. Signed-off-by: Jimmy-YJ.Huang Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/mfd/mt6397.txt | 10 +- .../bindings/regulator/mt6351-regulator.txt | 347 ++++++++++++++++++++ 2 files changed, 353 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mt6351-regulator.txt diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt index 522a3bb..42a6f21 100644 --- a/Documentation/devicetree/bindings/mfd/mt6397.txt +++ b/Documentation/devicetree/bindings/mfd/mt6397.txt @@ -1,6 +1,6 @@ -MediaTek MT6397/MT6323 Multifunction Device Driver +MediaTek MT6397/MT6351/MT6323 Multifunction Device Driver -MT6397/MT6323 is a multifunction device with the following sub modules: +MT6397/MT6351/MT6323 is a multifunction device with the following sub modules: - Regulator - RTC - Audio codec @@ -9,14 +9,14 @@ MT6397/MT6323 is a multifunction device with the following sub modules: - LED It is interfaced to host controller using SPI interface by a proprietary hardware -called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap. +called PMIC wrapper or pwrap. MT6397/MT6351/MT6323 MFD is a child device of pwrap. See the following for pwarp node definitions: Documentation/devicetree/bindings/soc/pwrap.txt This document describes the binding for MFD device and its sub module. Required properties: -compatible: "mediatek,mt6397" or "mediatek,mt6323" +compatible: "mediatek,mt6397" or "mediatek,mt6323" or "mediatek,mt6351" Optional subnodes: @@ -27,6 +27,8 @@ Optional subnodes: Required properties: - compatible: "mediatek,mt6397-regulator" see Documentation/devicetree/bindings/regulator/mt6397-regulator.txt + - compatible: "mediatek,mt6351-regulator" + see Documentation/devicetree/bindings/regulator/mt6351-regulator.txt - compatible: "mediatek,mt6323-regulator" see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt - codec diff --git a/Documentation/devicetree/bindings/regulator/mt6351-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6351-regulator.txt new file mode 100644 index 0000000..2f3f9a4 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mt6351-regulator.txt @@ -0,0 +1,347 @@ +Mediatek MT6351 Regulator Driver + +Required properties: +- compatible: "mediatek,mt6351-regulator" +- mt6351regulator: List of regulators provided by this controller. It is named + according to its regulator type, buck_ and ldo_. + The definition for each of these nodes is defined using the standard binding + for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. + +The valid names for regulators are:: +BUCK: + buck_vcore, buck_vgpu, buck_vmodem, buck_vmd1, buck_vsram_md, + buck_vs1, buck_vs2, buck_vpa, buck_vsram_proc +LDO: + ldo_va18, ldo_vtcxo24, ldo_vtcxo28, ldo_vcn28, ldo_vcama, + ldo_vusb33, ldo_vsim1, ldo_vsim2, ldo_vemc_3v3, ldo_vmch, + ldo_vio28, ldo_vibr, ldo_vcamd, ldo_vrf18, ldo_vio18, + ldo_vcn18, ldo_vcamio, ldo_vxo22, ldo_vrf12, ldo_va10, + ldo_vdram, ldo_vmipi, ldo_vgp3, ldo_vbif28, ldo_vefuse, + ldo_vcn33_bt, ldo_vcn33_wifi, ldo_vldo28, ldo_vmc, + ldo_vldo28_0, ldo_vldo28_1 + +Example: + pmic { + compatible = "mediatek,mt6351"; + + mt6351regulator: mt6351regulator { + compatible = "mediatek,mt6351-regulator"; + + mt6351_vcore_reg: buck_vcore { + regulator-name = "buck_vcore"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + }; + + mt6351_vgpu_reg: buck_vgpu { + regulator-name = "buck_vgpu"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vmodem_reg: buck_vmodem { + regulator-name = "buck_vmodem"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vmd1_reg: buck_vmd1 { + regulator-name = "buck_vmd1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vsram_md_reg: buck_vsram_md { + regulator-name = "buck_vsram_md"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vs1_reg: buck_vs1 { + regulator-name = "buck_vs1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vs2_reg: buck_vs2 { + regulator-name = "buck_vs2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vpa_reg: buck_vpa { + regulator-name = "buck_vpa"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_vsram_proc_reg: buck_vsram_proc { + regulator-name = "buck_vsram_proc"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <180>; + regulator-always-on; + regulator-boot-on; + }; + + mt6351_va18_reg: ldo_va18 { + regulator-name = "ldo_va18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vtcxo24_reg: ldo_vtcxo24 { + regulator-name = "ldo_vtcxo24"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <110>; + regulator-boot-on; + }; + + mt6351_vtcxo28_reg: ldo_vtcxo28 { + regulator-name = "ldo_vtcxo28"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <110>; + }; + + mt6351_vcn28_reg: ldo_vcn28 { + regulator-name = "ldo_vcn28"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vcama_reg: ldo_vcama { + regulator-name = "ldo_vcama"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vusb33_reg: ldo_vusb33 { + regulator-name = "ldo_vusb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vsim1_reg: ldo_vsim1 { + regulator-name = "ldo_vsim1"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vsim2_reg: ldo_vsim2 { + regulator-name = "ldo_vsim2"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vemc_reg: ldo_vemc_3v3 { + regulator-name = "ldo_vemc_3v3"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + regulator-boot-on; + }; + + mt6351_vmch_reg: ldo_vmch { + regulator-name = "ldo_vmch"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + regulator-boot-on; + }; + + mt6351_vio28_reg: ldo_vio28 { + regulator-name = "ldo_vio28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vibr_reg: ldo_vibr { + regulator-name = "ldo_vibr"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + }; + + mt6351_vcamd_reg: ldo_vcamd { + regulator-name = "ldo_vcamd"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1210000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vrf18_reg: ldo_vrf18 { + regulator-name = "ldo_vrf18"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1810000>; + regulator-enable-ramp-delay = <220>; + }; + + mt6351_vio18_reg: ldo_vio18 { + regulator-name = "ldo_vio18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vcn18_reg: ldo_vcn18 { + regulator-name = "ldo_vcn18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <44>; + }; + + mt6351_vcamio_reg: ldo_vcamio { + regulator-name = "ldo_vcamio"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <220>; + }; + + mt6351_vxo22_reg: ldo_vxo22 { + regulator-name = "ldo_vxo22"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <110>; + regulator-boot-on; + }; + + mt6351_vrf12_reg: ldo_vrf12 { + regulator-name = "ldo_vrf12"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1200000>; + regulator-enable-ramp-delay = <220>; + }; + + mt6351_va10_reg: ldo_va10 { + regulator-name = "ldo_va10"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vdram_reg: ldo_vdram { + regulator-name = "ldo_vdram"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1210000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6351_vmipi_reg: ldo_vmipi { + regulator-name = "ldo_vmipi"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vgp3_reg: ldo_vgp3 { + regulator-name = "ldo_vgp3"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1810000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vbif28_reg: ldo_vbif28 { + regulator-name = "ldo_vbif28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vefuse_reg: ldo_vefuse { + regulator-name = "ldo_vefuse"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2200000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vcn33_bt_reg: ldo_vcn33_bt { + regulator-name = "ldo_vcn33_bt"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3600000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vcn33_wifi_reg: ldo_vcn33_wifi { + regulator-name = "ldo_vcn33_wifi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3600000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vldo28_reg: ldo_vldo28 { + regulator-name = "ldo_vldo28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vmc_reg: ldo_vmc { + regulator-name = "ldo_vmc"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + regulator-boot-on; + }; + + mt6351_vldo28_0_reg: ldo_vldo28_0 { + regulator-name = "ldo_vldo28_0"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6351_vldo28_1_reg: ldo_vldo28_1 { + regulator-name = "ldo_vldo28_1"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + }; + };