From patchwork Mon Aug 18 13:09:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 4736331 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2766E9F344 for ; Mon, 18 Aug 2014 13:16:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 173B92010B for ; Mon, 18 Aug 2014 13:16:53 +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 831E2200E9 for ; Mon, 18 Aug 2014 13:16:51 +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 1XJMiv-0007kr-DF; Mon, 18 Aug 2014 13:11:45 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJMip-0007ZN-Tp for linux-arm-kernel@lists.infradead.org; Mon, 18 Aug 2014 13:11:40 +0000 Received: by mail-pd0-f173.google.com with SMTP id w10so7377402pde.18 for ; Mon, 18 Aug 2014 06:11:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=370NTLqFl2+ZjSf3x18rs5Hy5oBrqjMjP6cv5dB3c5I=; b=UpwoDPempBSnsavpNZBNq3EyaXIKFX3G8GcwOGXyYJnAeZEORGkPcyV0FgO5ohYn05 T+XxQL/k0fnPyUHSvoe88MF2xJExYWgsu/ZL2VKb+81IL4kfCLXzBIyKQwXFULbbQzJR qH7+sFRdi0+hnBn6UIKeZFUcnkDdmlDN9vc7OXC8nXfNvqtkToZhzqSIbf0qM050ML9e frn5AinT5yZPyO7YMonoX6PYIGdSbBKGdn0+qyLAKKO88eLPlA1QMezuyK9U24fECg8h hISQ4Ft23ZADbG8yz6eGo9CY/YcaTK3HRXNNeaWkVfN0VgHUhLRpoWgbmvaXULzuKMM6 eu9A== X-Gm-Message-State: ALoCoQlbt62GbXR1QP/h98zXO5d2w/CkHRW8JuAxo/HZpMKEjub0r2WXvTds5z7xkcKrVGne8FUR X-Received: by 10.66.178.231 with SMTP id db7mr34808918pac.63.1408367475182; Mon, 18 Aug 2014 06:11:15 -0700 (PDT) Received: from localhost.localdomain ([119.9.85.21]) by mx.google.com with ESMTPSA id q5sm24764968pdf.70.2014.08.18.06.11.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Aug 2014 06:11:14 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, sameo@linux.intel.com, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, grant.likely@linaro.org, khilman@linaro.org, haojian.zhuang@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, axel.lin@ingics.com, zhangnian@huawei.com Subject: [PATCH v6 6/6] ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes Date: Mon, 18 Aug 2014 21:09:16 +0800 Message-Id: <1408367356-2628-7-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408367356-2628-1-git-send-email-guodong.xu@linaro.org> References: <1408367356-2628-1-git-send-email-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140818_061140_000062_43031952 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) Cc: Guodong Xu 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Add Hi6421 MFD dts node and regulator nodes into hi3620-hi4511 board config dts file. Signed-off-by: Guodong Xu --- arch/arm/boot/dts/hi3620-hi4511.dts | 233 ++++++++++++++++++++++++++++++++++++ 1 file changed, 233 insertions(+) diff --git a/arch/arm/boot/dts/hi3620-hi4511.dts b/arch/arm/boot/dts/hi3620-hi4511.dts index fe62392..312c3f9 100644 --- a/arch/arm/boot/dts/hi3620-hi4511.dts +++ b/arch/arm/boot/dts/hi3620-hi4511.dts @@ -635,6 +635,239 @@ pinctrl-single,bias-pullup = <0 1 0 1>; }; }; + + pmic: pmic@c00000 { + compatible = "hisilicon,hi6421-pmic"; + reg = <0xc00000 0x0180>; /* 0x60 << 2 */ + + regulators { + // supply for MLC NAND/ eMMC + hi6421_vout0_reg: hi6421_vout0 { + regulator-name = "VOUT0"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + // supply for 26M Oscillator + hi6421_vout1_reg: hi6421_vout1 { + regulator-name = "VOUT1"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for AP system + hi6421_vout2_reg: hi6421_vout2 { + regulator-name = "VOUT2"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for DDR PHY I/O + hi6421_vout3_reg: hi6421_vout3 { + regulator-name = "VOUT3"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for MIPI, USB2.0, PCIe, PLL Analog + hi6421_vout4_reg: hi6421_vout4 { + regulator-name = "VOUT4"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for I/O 1.8V + hi6421_vout5_reg: hi6421_vout5 { + regulator-name = "VOUT5"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for I/O 2.6V + hi6421_vout6_reg: hi6421_vout6 { + regulator-name = "VOUT6"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for SD I/O + hi6421_vout7_reg: hi6421_vout7 { + regulator-name = "VOUT7"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for USB PHY + hi6421_vout8_reg: hi6421_vout8 { + regulator-name = "VOUT8"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for Efuse power + hi6421_vout9_reg: hi6421_vout9 { + regulator-name = "VOUT9"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for BT RF&PA + hi6421_vout10_reg: hi6421_vout10 { + regulator-name = "VOUT10"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for GPS RF&PA + hi6421_vout11_reg: hi6421_vout11 { + regulator-name = "VOUT11"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for SD card + hi6421_vout12_reg: hi6421_vout12 { + regulator-name = "VOUT12"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + // supply for CMMB + hi6421_vout13_reg: hi6421_vout13 { + regulator-name = "VOUT13"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for WIFI I/O + hi6421_vout14_reg: hi6421_vout14 { + regulator-name = "VOUT14"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for WIFI core & PA + hi6421_vout15_reg: hi6421_vout15 { + regulator-name = "VOUT15"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3300000>; + }; + + // supply for LCD I/O + hi6421_vout16_reg: hi6421_vout16 { + regulator-name = "VOUT16"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + // supply for LCD Ananlog + hi6421_vout17_reg: hi6421_vout17 { + regulator-name = "VOUT17"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + // supply for Camera I/O + hi6421_vout18_reg: hi6421_vout18 { + regulator-name = "VOUT18"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for Camera Analog + hi6421_vout19_reg: hi6421_vout19 { + regulator-name = "VOUT19"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for Camera VCM + hi6421_vout20_reg: hi6421_vout20 { + regulator-name = "VOUT20"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + }; + + // supply for Audio, incl. HKADC + hi6421_vout_audio_reg: hi6421_vout_audio { + regulator-name = "AVDD2"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3300000>; + }; + + // supply for Cortex-A9 CPU core + hi6421_buck0_reg: hi6421_buck0 { + regulator-name = "VBUCK0"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1600000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for Cortex-A9 CPU core + hi6421_buck1_reg: hi6421_buck1 { + regulator-name = "VBUCK1"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1600000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for GPU + hi6421_buck2_reg: hi6421_buck2 { + regulator-name = "VBUCK2"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1600000>; + regulator-boot-on; + }; + + // supply for Peripheral + hi6421_buck3_reg: hi6421_buck3 { + regulator-name = "VBUCK3"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for LPDDR2 and AP I/O + hi6421_buck4_reg: hi6421_buck4 { + regulator-name = "VBUCK4"; + regulator-min-microvolt = <1150000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + }; + + // supply for Low voltage + hi6421_buck5_reg: hi6421_buck5 { + regulator-name = "VBUCK5"; + regulator-min-microvolt = <1150000>; + regulator-max-microvolt = <1900000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + }; gpio-keys {