Received: by 10.223.185.116 with SMTP id b49csp730917wrg; Wed, 14 Feb 2018 06:13:18 -0800 (PST) X-Google-Smtp-Source: AH8x227qkWpjUbwnauvvz+hOvZsim4FVe29jkKweCoKa5nZ5DjYwJDHjj3gsmlcAKgw25tcVEXzQ X-Received: by 10.101.90.78 with SMTP id z14mr4076976pgs.215.1518617598861; Wed, 14 Feb 2018 06:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518617598; cv=none; d=google.com; s=arc-20160816; b=gfeHJj2+LiNAka7bYefnn/Ni+PTceFo4BWff1LX5WZM9wTDuP17CoXAAsG2NmN0+SZ /z7owNUgxOpablOPlI3xQRlfwsahWFproiYaxpNsazEvDqU1zWV8DSa+4tsudnj7gVv3 Gggxrz9b6OmVI/K3VjxAFtakscvYu44RjE/J0v96yBQjXZjg3Qkh3yq+hfgB/sNXSrmp VW1YaPbANbI2mFy5FVKQ0qszVrRiQiZyEZn32WOlCJpDF8eDxEsjvs9v0Cpm1Av+tdJx as4qu/QNUJq2kWv1Pv2Bnu/5vBjPYZjtbY+VoLMPTNSx4Jj08PrUZaNJAmdIFMlBhLtW smJg== 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=kw0Wmpd75U998hDqFNZjTRtCX7DXiqMeuEUQdfxihW4=; b=OChBStBXF/eXqDpkuaIFTchXU377GNPo1M/kN2IpJEqYeb2PsK4pK4nWm1Hnkxjogd J0Pe2MJCnm7N0e7QAV4Y/TmqZlI3f0lMyICc9VjbqSoyyHyaAlDj4ZxT9nk+5DuCCC5Z EkRdcpmwmeW8Lo3yHMKL3JNITEr1ehtiacYQLS4ZdcFPnnmvlX+JVCjY5ZXG5ZovgIrV WvNc7/VAO0vfNRlMt39on4AZFuTxOuq9+fobDWAfUMPUaiTH+sbAHs6vQhq5Ls8dN9Wf ATfhaBDJFC8OIDdo7WFQFXGWpphzUQstvC4glsUtb/lEe7V+MWt+MSvoVtD/onsrEXyq Wmhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZKgy2yka; 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 w2si2687584pgp.680.2018.02.14.06.13.04; Wed, 14 Feb 2018 06:13:18 -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=ZKgy2yka; 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 S1030465AbeBNOKr (ORCPT + 99 others); Wed, 14 Feb 2018 09:10:47 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36001 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030397AbeBNOKc (ORCPT ); Wed, 14 Feb 2018 09:10:32 -0500 Received: by mail-wr0-f193.google.com with SMTP id u15so80560wrg.3; Wed, 14 Feb 2018 06:10:32 -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=kw0Wmpd75U998hDqFNZjTRtCX7DXiqMeuEUQdfxihW4=; b=ZKgy2yka4YclleatyrFAaWzdZG77CNVdiodfMUyu6tIm3zozNZnJoVCM2+LOPTeoYA Y+H6ephz6W7bbp0CWZaDQCX5RSdc9LuV9aYO48t3yyAGjA6k+CGhxkYKlySad+p6aI7I FaRehlv2E2Lq37wawUSEQOuk+VlrVEp0ERWwkNCKDdv00a9TqSqDNIMYxtAPsrgWx2KR fL15dfyZB463ui35AetuwD53BdOY0oum4ahvRgaE+6E9hgMhR5DVx3zBT+S0nPy05Zdh f+0sdEfv+k/rJ3HD1a2Jp6RHk1IcOhNOk2cLAcJf/DCEzGZ6iSRl9Ey8q53WzCYN177e N9YA== 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=kw0Wmpd75U998hDqFNZjTRtCX7DXiqMeuEUQdfxihW4=; b=cbqQ31uEth08uININCsW9OTih+jzA6h00uRpqurFiiRlMoGgnizXwTtuXtR47UFodI jOXOAXIrJmQ7hKSqA037IFoo2nyYCuFUvJUXHmrwRbc9Kr6BTy6w6rH/uKXwtWvhStuB irRYs9CPX67rjd9DXsmvb1njj7zTZRFB+sF4ig42pSLhF76v303Ldy3HCsdK5QnhEBCr U6ENyd9INewrCHDuEw3SJfjxYgddKxc+m5VwOkRpsViJ1J8Xpib/WAum4oJnhRgbKGZE EsNbEXcedOcU/5HSiqM5yBjhtYRap9Nlc7WBPz59W3XPB51uoK00hr3QpANB2deb3Em9 sVag== X-Gm-Message-State: APf1xPDSlZ+b+Hfzt7ih3K/lmpvIQbbNFpScVpfKhM2R7bd7GZeedVvT Nl/J2tSxFLeKVinWPoYcwdk= X-Received: by 10.223.158.207 with SMTP id b15mr4410507wrf.192.1518617431419; Wed, 14 Feb 2018 06:10:31 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id m86sm13001982wmi.40.2018.02.14.06.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 06:10:30 -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 v2 2/2] arm: dts: sun6i: a31s: fix: bpi-m2: add missing regulators Date: Wed, 14 Feb 2018 15:10:25 +0100 Message-Id: <20180214141025.22171-3-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180214141025.22171-1-embed3d@gmail.com> References: <20180214141025.22171-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 This patch updates also the vmmc-supply properties on the mmc0 and mmc2 node to use the allready existent regulators. We can now remove the sunxi-common-regulators.dtsi include since we don't need it anymore. Fixes: 7daa21370075 ("ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2") Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 61 ++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 3 deletions(-) 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 fb34f32502cf..b2758dd8ce43 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -42,7 +42,6 @@ /dts-v1/; #include "sun6i-a31s.dtsi" -#include "sunxi-common-regulators.dtsi" #include / { @@ -99,6 +98,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>; @@ -118,7 +118,7 @@ &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bpi_m2>; - vmmc-supply = <®_vcc3v0>; + vmmc-supply = <®_dcdc1>; bus-width = <4>; cd-gpios = <&pio 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */ cd-inverted; @@ -132,7 +132,7 @@ &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins_a>; - vmmc-supply = <®_vcc3v0>; + vmmc-supply = <®_aldo1>; mmc-pwrseq = <&mmc2_pwrseq>; bus-width = <4>; non-removable; @@ -195,7 +195,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"; @@ -235,6 +256,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