From patchwork Sat Mar 25 21:05:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 9644833 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 579D16020B for ; Sat, 25 Mar 2017 21:07:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B1CD20564 for ; Sat, 25 Mar 2017 21:07:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E9E522376; Sat, 25 Mar 2017 21:07:18 +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 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 B7D7420564 for ; Sat, 25 Mar 2017 21:07:17 +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=Du8OHzL05gitpiloAikQMaapnsrOsA+HoYelZDV7i/4=; b=FnE FgZg0/Cj+54Sm4Mh8n0acQ6WR1qrfq0Hgj/TwJ/4CtRTrVTw/jJkaeTXkRM/xE8zyzsXjj232VXzU VpUjiCuIF9O7CcAuoKCMJJ5TLBT6kH8gAZ5v5UzYKxLSfUaJczL+oMLcLKXBg31/WU6skPwRd/p42 3yFTBU8TYMpIh5tM2FWKeKiv4ZrI6RJsBmF4iSFaaFJhUQHR08yuN224rLZ35+kwqHEhwoEqzMQVU 3vQ9uFxCjtSWPDKbNW5d1SmOlZ2ha4HsoUqDDSE/pzMxB7S9+08H/d723dKcBdv1OAN69cJNg+bpi YoArMtXHSKPcXMgbpfTNty8V3ijl0AA==; 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 1crsu0-0004uJ-O2; Sat, 25 Mar 2017 21:07:12 +0000 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crstv-0004rX-MI for linux-arm-kernel@lists.infradead.org; Sat, 25 Mar 2017 21:07:09 +0000 Received: by mail-qk0-x22e.google.com with SMTP id v127so14539908qkb.2 for ; Sat, 25 Mar 2017 14:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=uh3kj/0kp+N8CPD4D5w8zOtluqVgJABv10g7fss1b8I=; b=quCRPSPTzVNY8GCbuxL/jFPHc+g7MJNsl56RZlOrIyFFrmVxLNliRBrjjMG8XGy4qV qt3k7+N04m9SM+D1f+AJU+14biQgYqAgEVM3zmyB0EDR/OP3XrWaQbEbvUiXwEntB0rm AFDDT0U3LSaO6eblVehkwHHmnF8scYxUWiOoLNXyKIO7IHNwxSJpF8mQ58nig02pNzt8 8wlccb5LV8fd9hvaBpFsnhOUnEhoKA3aIIAqpc5VTqi5ez0/eNiMffWJdye2elgLo/sa bSNFMy8aRzT3hupr0r5ygXc2OQcf7x9ySWPvHd9rH78eNBwdvXW8JR5HU++wkDc5Q4Ml V2wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uh3kj/0kp+N8CPD4D5w8zOtluqVgJABv10g7fss1b8I=; b=di0WVl7PGwuoxxAkFIA4zE/ObFjGTbxgKvBGaQbdu+MoFyV4j/DLeY5KzbADExryoq IkeJXvYbWXSbY0Af9mEr7lXM+jRXgRicR0uV9xQFbN0dFnA5mLcsRih4IPYqyV5wq6Az JYNUTQ5o6yrzitvBlVdTADTv7EsganMMnCE23uRcxSzcTPxtedd4j/V6jOdFPOIHYpAB SCyOmAKRXkyH8mzpQIYJMtEAJ2eLtowy2Bi+6uwaMyxy41sOqAoSza54LvHdFpASpSdz u/jMajP6lsQsk2+j4dLGRDDhyaVR5k3AGa1jZcTjm/rldNZeEcYGg3UXDzZFDehUCFG4 RyKg== X-Gm-Message-State: AFeK/H2FVf6eLHoiENYxuVfGI1SwMZlnCDPGUrgxbsG2jSF4JWE/6Aum6D9qVeqhK6UoPQ== X-Received: by 10.233.239.83 with SMTP id d80mr13352747qkg.294.1490476000857; Sat, 25 Mar 2017 14:06:40 -0700 (PDT) Received: from localhost.localdomain ([190.2.107.161]) by smtp.gmail.com with ESMTPSA id t12sm4463375qke.9.2017.03.25.14.06.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Mar 2017 14:06:39 -0700 (PDT) From: Ezequiel Garcia To: wens@csie.org, maxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro Date: Sat, 25 Mar 2017 18:05:33 -0300 Message-Id: <20170325210533.4766-1-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170325_140708_039406_355A85D5 X-CRM114-Status: UNSURE ( 9.90 ) 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: Ezequiel Garcia 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 This commit makes use of the axp209.dtsi file to define the AXP209 PMIC. While here, define the rails that are enabled on this board. Tested checking the regulator voltage varies according to the CPU frequency. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 31 +++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts index 6e868b24b83f..def0ad8395bb 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts @@ -88,6 +88,10 @@ status = "okay"; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + &ehci0 { status = "okay"; }; @@ -114,13 +118,9 @@ status = "okay"; axp209: pmic@34 { - compatible = "x-powers,axp209"; reg = <0x34>; interrupt-parent = <&nmi_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - - interrupt-controller; - #interrupt-cells = <1>; }; }; @@ -254,6 +254,29 @@ }; }; +#include "axp209.dtsi" + +®_dcdc2 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-cpu"; +}; + +®_dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-int-dll"; +}; + +®_ldo2 { + regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "avcc"; +}; + ®_ahci_5v { status = "okay"; };