From patchwork Thu Nov 5 13:34:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Feng X-Patchwork-Id: 56045 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp411227lbr; Thu, 5 Nov 2015 05:40:01 -0800 (PST) X-Received: by 10.107.150.12 with SMTP id y12mr10958640iod.52.1446730800921; Thu, 05 Nov 2015 05:40:00 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33si6398325ioi.152.2015.11.05.05.40.00; Thu, 05 Nov 2015 05:40:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032875AbbKENju (ORCPT + 28 others); Thu, 5 Nov 2015 08:39:50 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:29177 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031373AbbKENjs (ORCPT ); Thu, 5 Nov 2015 08:39:48 -0500 Received: from 172.24.1.49 (EHLO szxeml426-hub.china.huawei.com) ([172.24.1.49]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CVT68615; Thu, 05 Nov 2015 21:35:08 +0800 (CST) Received: from vm163-62.huawei.com (10.184.163.62) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.235.1; Thu, 5 Nov 2015 21:35:01 +0800 From: Chen Feng To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 7/7] arm64: dts: Add mtcmos and pmic node for hi6220 HiKey board Date: Thu, 5 Nov 2015 21:34:48 +0800 Message-ID: <1446730488-31930-8-git-send-email-puck.chen@hisilicon.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446730488-31930-1-git-send-email-puck.chen@hisilicon.com> References: <1446730488-31930-1-git-send-email-puck.chen@hisilicon.com> MIME-Version: 1.0 X-Originating-IP: [10.184.163.62] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.563B5B0D.01F6,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: 2456a07cf898470b3c771af45e76d728 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dts node for hi665x pmic and hi6220 mtcmos driver Signed-off-by: Chen Feng Signed-off-by: Fei Wang --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 210 ++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 3f03380..5e0b8260 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -167,5 +167,215 @@ clocks = <&ao_ctrl 36>, <&ao_ctrl 36>; clock-names = "uartclk", "apb_pclk"; }; + + mtcmos { + compatible = "hisilicon,hi6220-mtcmos-driver"; + hisilicon,mtcmos-steady-us = <10>; + hisilicon,mtcmos-sc-on-base = <0xf7800000>; + hisilicon,mtcmos-acpu-on-base = <0xf65a0000>; + + g3d_vdd: regulator@a1{ + regulator-name = "G3D_PD_VDD"; + regulator-compatible = "mtcmos1"; + hisilicon,ctrl-regs = <0x830 0x834 0x83c>; + hisilicon,ctrl-data = <1 0x1>; + }; + + soc_med: regulator@a2{ + regulator-name = "SOC_MED"; + regulator-compatible = "mtcmos2"; + hisilicon,ctrl-regs = <0x830 0x834 0x83c>; + hisilicon,ctrl-data = <2 0x1>; + }; + }; + }; + + pmic: pmic@f8000000 { + compatible = "hisilicon,hi655x-pmic-driver"; + reg = <0x0 0xf8000000 0x0 0x1000>; + #interrupt-cells = <2>; + interrupt-controller; + pmic-gpios = <&gpio_pmu_irq_n>; + status = "okay"; + ldo2: regulator@a21 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo2"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-valid-modes-mask = <0x02>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x029 0x02a 0x02b>; + regulator-ctrl-mask = <0x1>; + regulator-vset-regs = <0x072>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <2500000>,<2600000>, + <2700000>,<2800000>, + <2900000>,<3000000>, + <3100000>,<3200000>; + }; + ldo7: regulator@a26 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo7"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-valid-modes-mask = <0x0a>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x029 0x02a 0x02b>; + regulator-ctrl-mask = <0x6>; + regulator-vset-regs = <0x078>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1800000>,<1850000>, + <2850000>,<2900000>, + <3000000>,<3100000>, + <3200000>,<3300000>; + }; + ldo10: regulator@a29 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo10"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-valid-modes-mask = <0x0a>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <360>; + regulator-ctrl-regs = <0x02c 0x02d 0x02e>; + regulator-ctrl-mask = <0x1>; + regulator-vset-regs = <0x07b>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1800000>,<1850000>, + <1900000>,<2750000>, + <2800000>,<2850000>, + <2900000>,<3000000>; + }; + ldo13: regulator@a32 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo13"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1950000>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02c 0x02d 0x02e>; + regulator-ctrl-mask = <0x4>; + regulator-vset-regs = <0x07e>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1600000>,<1650000>, + <1700000>,<1750000>, + <1800000>,<1850000>, + <1900000>,<1950000>; + }; + ldo14: regulator@a33 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo14"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02c 0x02d 0x02e>; + regulator-ctrl-mask = <0x5>; + regulator-vset-regs = <0x07f>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <2500000>,<2600000>, + <2700000>,<2800000>, + <2900000>,<3000000>, + <3100000>,<3200000>; + }; + ldo15: regulator@a34 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo15"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1950000>; + regulator-boot-on; + regulator-always-on; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02c 0x02d 0x02e>; + regulator-ctrl-mask = <0x6>; + regulator-vset-regs = <0x080>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1600000>,<1650000>, + <1700000>,<1750000>, + <1800000>,<1850000>, + <1900000>,<1950000>; + }; + ldo17: regulator@a36 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo17"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02f 0x030 0x031>; + regulator-ctrl-mask = <0x0>; + regulator-vset-regs = <0x082>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <2500000>,<2600000>, + <2700000>,<2800000>, + <2900000>,<3000000>, + <3100000>,<3200000>; + }; + ldo19: regulator@a38 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo19"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <360>; + regulator-ctrl-regs = <0x02f 0x030 0x031>; + regulator-ctrl-mask = <0x2>; + regulator-vset-regs = <0x084>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1800000>,<1850000>, + <1900000>,<2750000>, + <2800000>,<2850000>, + <2900000>,<3000000>; + }; + ldo21: regulator@a40 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo21"; + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + regulator-valid-modes-mask = <0x02>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02f 0x030 0x031>; + regulator-ctrl-mask = <0x4>; + regulator-vset-regs = <0x086>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <1650000>,<1700000>, + <1750000>,<1800000>, + <1850000>,<1900000>, + <1950000>,<2000000>; + }; + ldo22: regulator@a41 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo22"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + regulator-valid-modes-mask = <0x02>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x02f 0x030 0x031>; + regulator-ctrl-mask = <0x5>; + regulator-vset-regs = <0x087>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <900000>,<1000000>, + <1050000>,<1100000>, + <1150000>,<1175000>, + <1185000>,<1200000>; + }; }; };