From patchwork Tue Feb 16 02:14:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 8320181 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3873E9F2F0 for ; Tue, 16 Feb 2016 02:15:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5341720379 for ; Tue, 16 Feb 2016 02:15:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11DC320304 for ; Tue, 16 Feb 2016 02:15:32 +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 1aVV9c-0003rw-5B; Tue, 16 Feb 2016 02:14:16 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVV9J-0003X9-QQ for linux-arm-kernel@lists.infradead.org; Tue, 16 Feb 2016 02:13:58 +0000 Received: from trochilidae.toradex.int (75-146-58-181-Washington.hfc.comcastbusiness.net [75.146.58.181]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C250C5C1564; Tue, 16 Feb 2016 03:11:52 +0100 (CET) From: Stefan Agner To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH 2/2] ARM: dts: vf-colibri: add supply regulators Date: Mon, 15 Feb 2016 18:14:14 -0800 Message-Id: <1455588854-6996-2-git-send-email-stefan@agner.ch> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455588854-6996-1-git-send-email-stefan@agner.ch> References: <1455588854-6996-1-git-send-email-stefan@agner.ch> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1455588714; bh=g/eKCt0Kls2kinVJCJc6UL1WGVLfesohK/U8I2W1xXU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=dqTTFkhuDaUHFDvmh0ntP77UsRXEry9Z7H5LCYGsBubdJbV09/pnc2MUyXu9tCD5lLNpup0tlzBsZMbUANCQDt3J1Tk9KcFP3lnBHZ/sJQbUrxJaYxWAq1mQbcXfl4b0v4DAmJdYmqyW/FQ0JlAXMEyB85Np4C0Cm0vQ/WNb8/I= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160215_181358_061465_D87370A0 X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stefan Agner , 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Colibri modules need to be powered using the power pins 3V3 and AVDD. Add fixed regulators which represent this power rails. Potentially, those power rails could be switched on a carrier board. A carrier board device tree could add a own regulator with a GPIO, and reference that regulator in a vin-supply property of those new module level system regulators. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/vf-colibri.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index ff6f58e..191506a 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi @@ -48,14 +48,31 @@ enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; status = "disabled"; }; + + reg_sys_3v3: regulator-sys-3v3 { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_sys_3v3_avdd: regulator-sys-3v3-avdd { + compatible = "regulator-fixed"; + regulator-name = "AVDD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; &adc0 { status = "okay"; + vref-supply = <®_sys_3v3_avdd>; }; &adc1 { status = "okay"; + vref-supply = <®_sys_3v3_avdd>; }; &can0 { @@ -96,6 +113,7 @@ &fec1 { phy-mode = "rmii"; + phy-supply = <®_sys_3v3>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; };