From patchwork Thu Feb 23 06:55:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Vadot X-Patchwork-Id: 9587793 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 58730604A2 for ; Thu, 23 Feb 2017 06:56:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B61928640 for ; Thu, 23 Feb 2017 06:56:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F651286AA; Thu, 23 Feb 2017 06:56:30 +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,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 436A328640 for ; Thu, 23 Feb 2017 06:56:29 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=P83xrbS8EQY5EH0MUu2HfSdL43JN3fbSVFbEL8df6P4=; b=ITu FucjlnojfY/+Vut6zRpaaRLxXmEt4TYuarKZDCoXn/TvBier8V7GWX1aATl/WYd7R3ShTS32yAbha MXsn0efFBOyNXZQVRTsOhBgE4KiOOah4rQ0OLbO04JLBv7f3aNBa0wic2a+con1AQnkoJCL9ZyG8i fZiR1+94XpV3r/GfnNcYOiYgL2y6+GgW9vi5/i819fYFMQWUlcR5Zn6TeNnLUaCsTqCNgP2mmFHoc rbSCrS/iuxxKh46tFc1pUvDgvXLc8t2NhPFXb9XvfneynnOGutxnEVPyJje3gY8eB9mU1GCg8jUxj uqqVnxtWbdpUntggbip8xEmbAZSVdcA==; 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 1cgnKB-0004O2-MS; Thu, 23 Feb 2017 06:56:23 +0000 Received: from mail.blih.net ([212.83.177.182]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgnK7-0004Mi-UC for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2017 06:56:22 +0000 Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id cea41011 for ; Thu, 23 Feb 2017 07:55:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=from :to:cc:subject:date:message-id; s=mail; bh=mOwYtO/ucdKNPGjGRI4rK ZNppFg=; b=l5bez+yCcNHG9eTnErbdeA4JHrWNv2JcVnymmjg4Yk8cPtyHeEcoP mVCvRTriJqNwEtAeemINV9PFSc+NHrNTxfKQEfKTecmZNoxqwePOB+kXMpe1a5AG f2YY4+ZK3uZ/8zYgtmnA4jTIf01LkTIhHoSmPro/LeZ7tqklQA1kTM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=from:to :cc:subject:date:message-id; q=dns; s=mail; b=jf/Rcp7zE3eaOBnZ6I t7v+da57NZGNvgLq75UtsNMIWp7Xmto7b1Cj5gkfV+5qIR8x3cE54UhbPHDx9rGQ UlRcxI7Omj3CRiIo8t+MJLQZGxcf8yn7Ni9fuy3YbWD3fYzWJj2NWN86LbGSUlO+ kG4eu4YHmn36c6Y67mQ0hg510= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 2ea51fb0 TLS version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO for ; Thu, 23 Feb 2017 07:55:51 +0100 (CET) Received: from elbarto (uid 1001) (envelope-from manu@bidouilliste.com) id 505bf by knuckles.blih.net (DragonFly Mail Agent v0.11); Thu, 23 Feb 2017 07:55:51 +0100 From: Emmanuel Vadot To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH] ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2 Date: Thu, 23 Feb 2017 07:55:39 +0100 Message-Id: <20170223065539.47985-1-manu@bidouilliste.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170222_225620_414474_F6BF7F09 X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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, Emmanuel Vadot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the needed node for DFVS on Sinovoip BPI-M2. This add the axp221 under the p2wi node, the regulators and the cpu-supply property for cpu0. Signed-off-by: Emmanuel Vadot --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts index db7fa13f5425..48cf5eb1f042 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -86,6 +86,10 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc3>; +}; + &ehci0 { status = "okay"; }; @@ -151,6 +155,17 @@ status = "okay"; }; +&p2wi { + status = "okay"; + + axp22x: pmic@68 { + compatible = "x-powers,axp221"; + reg = <0x68>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &pio { gmac_phy_reset_pin_bpi_m2: gmac_phy_reset_pin@0 { allwinner,pins = "PA21"; @@ -183,6 +198,48 @@ }; }; +#include "axp22x.dtsi" + +®_dc5ldo { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1320000>; + regulator-name = "vdd-cpus"; +}; + +®_dcdc1 { + regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "vdd-3v0"; +}; + +®_dcdc2 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1320000>; + regulator-name = "vdd-gpu"; +}; + +®_dcdc3 { + regulator-always-on; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1320000>; + regulator-name = "vdd-cpu"; +}; + +®_dcdc4 { + regulator-always-on; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1320000>; + regulator-name = "vdd-sys-dll"; +}; + +®_dcdc5 { + regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-name = "vcc-dram"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;