Received: by 10.223.176.5 with SMTP id f5csp953464wra; Fri, 9 Feb 2018 09:53:57 -0800 (PST) X-Google-Smtp-Source: AH8x227F3X1D281Qh9qbTnKAS68RIxKfn8jokDVf6OmMOUHQWZnUtFjdwFddmJ1r2lrsoMtVl211 X-Received: by 2002:a17:902:9343:: with SMTP id g3-v6mr3325302plp.319.1518198836822; Fri, 09 Feb 2018 09:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518198836; cv=none; d=google.com; s=arc-20160816; b=zvpPSCXmwi0XuGB0AH2K6UOtvowx2tIDXxKsYywPb+amWQqGh1XvYtGPxBsKDZM4tn 7sikH1yVodS5cNAS8CMrpKVbezEjcJodAII2IMrBOUUzAWQFu0Yk53cxztf78uVSuer3 CVyhvZus9wipUlkaT28DcNMZ/c7rjuJjHfIWU34GX+ZxYXyq/czjiGrBJCR/CjCp1xuU V6EPkAwWgRTAoccCl3LKuEwcK36fMH7srFfgY6WS3JBqm7Wx9jGptAdMO1o4/nqq9WNg ce3G72hm/PNoH7tGV1UIWrcN1ZrMgvE5mlpiKSib1to5orbH3hQcfLARvQbI1Sj+Sld3 q25A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=bh9zFAHYEe3tW1ba6iLVJnT/QM0tfG86Kv9S9kTFDgQ=; b=h/pUNDFYYd+eJoEumYj/fSGJL8KNs17tgZpqRzqd1QX8vnF217wPMrIWNYvHnNK6vy CdjNpmcAOkmI72yJj1ErMENCaTaZNyTAM1Wew/LvBLwbeXXwSLuOO3EPi12wdnu5CG5V 78twErj9kqxVZDzqCZR9PT+00ay2jKtMrAJZiVZi8Ti1C7j3RpT60U4Bex7MDErN+00g qjBohvWOPjT8/SMphp0R5SOmrTMztxd7dVlUavk4tj6Bf02wU7lz9hdNMN09v+NcynHl JMuvNvIyRK/cKruWx9vtA2yEYALmuTujy7OzOOwoY/Ex9O1FZGwGRD9yjZjpnbYQwfhy ncFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N6519l0Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si1634029pgt.217.2018.02.09.09.53.43; Fri, 09 Feb 2018 09:53:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N6519l0Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752210AbeBIRw5 (ORCPT + 99 others); Fri, 9 Feb 2018 12:52:57 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:39367 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbeBIRwo (ORCPT ); Fri, 9 Feb 2018 12:52:44 -0500 Received: by mail-wr0-f195.google.com with SMTP id f6so9075946wra.6; Fri, 09 Feb 2018 09:52:43 -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=X+AMrF2NfwEbPISAeykWGXn7CHiDBddxGvlfsiNrgw2zejVoTojwPyPRik5u6rgQ4u 3/5V0HVUcX8YPStl7eKKWNKFV9PUD/krf7xGw5MTNUXsiEcnmz0xPpHFpmGmXG/D/9js 9Gjzl2r97zQpBmx5KAitFHKeo8LaFUlcJ69vS4wJSpoDOODC0a0J+CVaPMxCG7q4Sgad mkNaiFH9NXtrmxNqwKRXcOglwOQcmpGtyHtndykBi2dDStJr7mh3SZpR4n8RPwuPVo57 rsP1d8jZd8E5uqG8ZZ8HASM9yh2gx1MypC+YXpkstvDuBXBNVGlfpxFpqygZ2TQY5TsT WEhQ== X-Gm-Message-State: APf1xPAESUDGp6JWe08olkRrMeF51kAKTrZdRKpal93s5hYHxkydqIeT KD9OIj4pXZF8WulF5eav3j0= 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 2.11.0