From patchwork Fri Jan 29 15:20:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Feng X-Patchwork-Id: 60799 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1193673lbb; Fri, 29 Jan 2016 07:42:45 -0800 (PST) X-Received: by 10.66.189.200 with SMTP id gk8mr14510932pac.36.1454082165028; Fri, 29 Jan 2016 07:42:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dg7si2865973pad.75.2016.01.29.07.42.44; Fri, 29 Jan 2016 07:42:44 -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; dkim=pass header.i=@foxmail.com; dmarc=pass (p=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932406AbcA2Pmm (ORCPT + 30 others); Fri, 29 Jan 2016 10:42:42 -0500 Received: from smtpbg326.qq.com ([14.17.32.37]:49125 "EHLO smtpbg326.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756350AbcA2Pmk (ORCPT ); Fri, 29 Jan 2016 10:42:40 -0500 X-Greylist: delayed 473 seconds by postgrey-1.27 at vger.kernel.org; Fri, 29 Jan 2016 10:42:39 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1454082140; bh=ng2nIXOHD0mOxW0CIHQC5IcxfTP4tyvG/H4eG3RjqlI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=mbja/TPIv1MDsGJat+1mT/uDate4m5PPOqn5+HDhnAYdV1fM5BA4M0EGqHw//dRFS sTEyg7Wf3VUgzU1Z7y5n2zrhpRyC9KS2KNxyy/vqbEkjkuJk2bATtz04l96TrFqaea IvLNAFJopxGT56axHc1yZVY1QX+GIgv/l3SY2Gcw= X-QQ-Spam: true X-QQ-mid: esmtp23t1454080856t302t31853 Received: from localhost.localdomain (unknown [14.154.190.161]) by esmtp4.qq.com (ESMTP) with id ; Fri, 29 Jan 2016 23:20:55 +0800 (CST) X-QQ-SSF: B100000000000070F4300000000000Z From: Chen Feng To: lee.jones@linaro.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org, puck.chen@hisilicon.com, w.f@huawei.com, kong.kongxinwei@hisilicon.com, haojian.zhuang@linaro.org Cc: puck.chen@foxmail.com Subject: [PATCH v7 5/5] arm64: dts: hisilicon: Add hi655x pmic dts node Date: Fri, 29 Jan 2016 23:20:26 +0800 Message-Id: <1454080826-6760-6-git-send-email-puck.chen@foxmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454080826-6760-1-git-send-email-puck.chen@foxmail.com> References: <1454080826-6760-1-git-send-email-puck.chen@foxmail.com> X-QQ-SENDSIZE: 520 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Feng Add the mfd hi655x dts node and regulator support on hi6220 platform. Signed-off-by: Chen Feng Signed-off-by: Fei Wang Signed-off-by: Xinwei Kong Reviewed-by: Haojian Zhuang --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 87 ++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8185251..775ea36 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -6,6 +6,7 @@ */ /dts-v1/; +#include /*Reserved 1MB memory for MCU*/ /memreserve/ 0x05e00000 0x00100000; @@ -31,6 +32,92 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; }; + + pmic: pmic@f8000000 { + compatible = "hisilicon,hi655x-pmic"; + reg = <0x0 0xf8000000 0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + pmic-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + status = "okay"; + + regulators { + ldo2: LDO2@a21 { + regulator-name = "LDO2_2V8"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-enable-ramp-delay = <120>; + }; + + ldo7: LDO7@a26 { + regulator-name = "LDO7_SDIO"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <120>; + }; + + ldo10: LDO10@a29 { + regulator-name = "LDO10_2V85"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <360>; + }; + + ldo13: LDO13@a32 { + regulator-name = "LDO13_1V8"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1950000>; + regulator-enable-ramp-delay = <120>; + }; + + ldo14: LDO14@a33 { + regulator-name = "LDO14_2V8"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-enable-ramp-delay = <120>; + }; + + ldo15: LDO15@a34 { + regulator-name = "LDO15_1V8"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1950000>; + regulator-boot-on; + regulator-always-on; + regulator-enable-ramp-delay = <120>; + }; + + ldo17: LDO17@a36 { + regulator-name = "LDO17_2V5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-enable-ramp-delay = <120>; + }; + + ldo19: LDO19@a38 { + regulator-name = "LDO19_3V0"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <360>; + }; + + ldo21: LDO21@a40 { + regulator-name = "LDO21_1V8"; + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + regulator-enable-ramp-delay = <120>; + }; + + ldo22: LDO22@a41 { + regulator-name = "LDO22_1V2"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + regulator-enable-ramp-delay = <120>; + }; + }; + }; }; &uart2 {