From patchwork Fri Feb 9 17:52:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10209627 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 9C64560245 for ; Fri, 9 Feb 2018 17:53:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 887D62988A for ; Fri, 9 Feb 2018 17:53:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BCB62995C; Fri, 9 Feb 2018 17:53:44 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable 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 C5C9B2988A for ; Fri, 9 Feb 2018 17:53:42 +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:References: In-Reply-To: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:List-Owner; bh=Er0kuLud5bND/+Jo13CMb6qYcoIChHxMYmlVMFQIKeY=; b=QFdMAmmXwM3OIt3rGBs4y+woFd 2u++gPKASIzj4dMQye0Xy2Op2EVHqzLxnrABHZFMKbhNcdn/4ihN2YqKGJxaqkaS3h6Sjgkti8ETS WzojwcRdgy3913wd2yji6pB0nXQJvkr5x/6H++OSjLXAKasbgWfwFe+L+JL9letX0D7to1e9QFT7W edIkoISjQbMMBRZGeueg1yixW68sHDH8mmoy8wfBw1wPPMhDffJb/ZzNYMOpyxgXWszPHrYAMNBhy HlkpW+7XXCM7UfKyntUv0sgimKbVaGCaAw+1OxyFjGWK2H0V8eec6536s/uZbVXRAS9gQj8CrJX+e gLA7VhOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ekCrh-0002sh-UU; Fri, 09 Feb 2018 17:53:38 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekCqz-000248-4M for linux-arm-kernel@lists.infradead.org; Fri, 09 Feb 2018 17:52:54 +0000 Received: by mail-wr0-x243.google.com with SMTP id j19so2736460wre.1 for ; Fri, 09 Feb 2018 09:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bh9zFAHYEe3tW1ba6iLVJnT/QM0tfG86Kv9S9kTFDgQ=; b=N6519l0Qn75q/c8dxYPsvOTzSqh+sSEi184p4CC+y7Fau6YUuuMjiqvlhaBHTeYvQ8 iJV9wIdi8rJXi3xX3tuLfMmkWoztOtqiBanfIlBmOZdtcMXo9FXttrD/QuelkFcAaJMb hNjM6ZCiXXSPySSm5pJd+TOXMUcPzbKcpwGCbdIsa9cgz/B/GqB1oCFZmQkcwqfX70g2 r8pdqzv3d1RwZC+KrzBQuc19ypNXkDpfjMLxKJPVq+yLcAgQA/0A1XnmNZ4suT0DMH2s GNKR/rTKczq/0XSL1lPXVp7lvbWZx4WRrRmK74uLrE7jCdzqpkFKzTqAwwI9Hxeiu7O1 6b2A== 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:in-reply-to :references; bh=bh9zFAHYEe3tW1ba6iLVJnT/QM0tfG86Kv9S9kTFDgQ=; b=qL0ruccLqtHXjqsf5jm9V00MZBHmxR9sY2V0dsyf+o7EwGuB1WmsXiN9jb8awh2ILp NaTUoY4fDLAkQsDKm9OdmnWjNis0UwgYS/XvZ8S3qhaZsG276obpSkhE2Isg8lZ1tH4f CVFmveoNAN4KJCQBlbXkOySVM9g6UTAJ7R8JrVT4QjUqAYqdEVcwEnlIANJSjCjBQ/R1 eY/A+JS1DM3jW9ogWh5kYrc9pMpBRPyGihAIwo7MWo6kUFU4wKsHSX+pJVOMudQQ6HLf 2oH/fMsJXa02VCsX5wF0+nLE/GhodhJWb/5jfhDewDN7GjJCPpwecZJUuhKPdwd3xLtC MTiw== X-Gm-Message-State: APf1xPDApjF8371zI1N1eVsZfQeScxTIOr/X2vabDAnTQJIu13C72Yau U523lVMxa0FJmgy5tfiQkDE= X-Google-Smtp-Source: AH8x227z7XN8yz9R6GiYoxQJfucu3NANDO7Y/+SAGYGbBSCvZLtEeB1ivxNcPg43yERuDEbtDVmo9Q== X-Received: by 10.223.196.154 with SMTP id m26mr3220520wrf.56.1518198763141; Fri, 09 Feb 2018 09:52:43 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id 78sm2785148wmm.22.2018.02.09.09.52.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 09:52:41 -0800 (PST) From: Philipp Rossak To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH 3/3] arm: dts: sun6i: a31s: fix: bpi-m2: add missing regulators Date: Fri, 9 Feb 2018 18:52:36 +0100 Message-Id: <20180209175236.21215-4-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180209175236.21215-1-embed3d@gmail.com> References: <20180209175236.21215-1-embed3d@gmail.com> 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, linux-sunxi@googlegroups.com, 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 This patch fixes a bootproblem with the Bananapi M2 board. Since there are some regulators missing we add them right now. Those values come from the schematic, below you can find a small overview: * reg_aldo1: 3,3V, powers the wifi * reg_aldo2: 2,5V, powers the IO of the RTL8211E * reg_aldo3: 3,3V, powers the audio * reg_dldo1: 3,0V, powers the RTL8211E * reg_dldo2: 2,8V, powers the analog part of the csi * reg_dldo3: 3,3V, powers misc * reg_eldo1: 1,8V, powers the csi * reg_ldo_io1:1,8V, powers the gpio * reg_dc5ldo: needs to be always on Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 56 ++++++++++++++++++++++++ 1 file changed, 56 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 51e6f1d21c32..01fcfe0649ad 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -99,6 +99,7 @@ pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_bpi_m2>; phy = <&phy1>; phy-mode = "rgmii"; + phy-supply = <®_dldo1>; snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */ snps,reset-active-low; snps,reset-delays-us = <0 10000 30000>; @@ -193,7 +194,28 @@ #include "axp22x.dtsi" +®_aldo1 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-wifi"; +}; + +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-name = "vcc-gmac"; +}; + +®_aldo3 { + regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "avcc"; +}; + ®_dc5ldo { + regulator-always-on; regulator-min-microvolt = <700000>; regulator-max-microvolt = <1320000>; regulator-name = "vdd-cpus"; @@ -233,6 +255,40 @@ regulator-name = "vcc-dram"; }; +®_dldo1 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "vcc-mac"; +}; + +®_dldo2 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "avdd-csi"; +}; + +®_dldo3 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-pb"; +}; + +®_eldo1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vdd-csi"; + status = "okay"; +}; + +®_ldo_io1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-pm-cpus"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;