Received: by 10.223.176.5 with SMTP id f5csp2280764wra; Mon, 5 Feb 2018 01:06:23 -0800 (PST) X-Google-Smtp-Source: AH8x2251ZGAlQjr5s5P2DLkyxDzIUxTE1g1BYWNBNJ3MZMjsZwUwXR0UcJNNmawqknCwSlNbELRo X-Received: by 10.98.9.67 with SMTP id e64mr47458166pfd.230.1517821583555; Mon, 05 Feb 2018 01:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517821583; cv=none; d=google.com; s=arc-20160816; b=CboD9t1XFUqvr+qDNzWHGO4yAq4UjAn0kBZQgW1ven/PMypbpF05E+N29Bg/j4yOc4 ABQ/cmhS/vXB26mrAwpbgu9g8vDzh81xJ3sd7jJNSdClRTAuE8v/joLHhT36jFgyjcQm 776AUZ1lAR3Z9GYzZS/19YOEpC27esFvKQYY3DKwn5pUsaa8+KcDpN9cC7E02RzbPEUn ZQpsdmq+Zwukyu1BEf3T1u8hD0PuJDL5wDjVHCcJ1h6ukNEepkbXEbu0XXyTcrRJ+rG7 vjwkVd1S21paXqHulUb/Yx/vdajh6lr0t+Eisb2aqdvWMMnt4/LUVRbQI9lH4CKzSo2d 6ruQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date :arc-authentication-results; bh=ylp62q6/6Vf9NLemR4WJwrsg13tzCY0p1oMmDBl7N6Y=; b=bT/fii8vHtyKW8Vz/02zUFkfoElnfdPQdvqd8yTK5pvyAHbaezp8pG2Y/gSibcaEVW 2X1zidgkEkwdkJyeznJKKiGskoeqdNFjX2xRo78nnWyol9daUaZR324AF+zxxRALFkwX WPOzv8wZwy7QPyrvSQoUqoaxQOp9h8C0SmgEQjkbiHsF6252uzsPdAzCmrq88Ym1oOtP ePiLIJwJP3fLyNgzKjVNnfa69nrD/9sjlt7QDK3a0JGo0yA/Q2jfKIyZglUVHkc0sTm1 Yt+XPyf+xcXl7u2DPycFuBiQcWT3aYXhvhb+1fHFgFyWVuO+O61vV0T5/avEXjXqhYkI +p3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z65si5188783pgd.688.2018.02.05.01.06.07; Mon, 05 Feb 2018 01:06:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752669AbeBEJFj convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Feb 2018 04:05:39 -0500 Received: from hermes.aosc.io ([199.195.250.187]:56272 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752250AbeBEJFd (ORCPT ); Mon, 5 Feb 2018 04:05:33 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id B2D504E30E; Mon, 5 Feb 2018 09:05:29 +0000 (UTC) Date: Mon, 05 Feb 2018 17:05:12 +0800 In-Reply-To: <20180205095558.2e713c24cdb7c3232943db52@bidouilliste.com> References: <20180203112353.13497-1-icenowy@aosc.io> <20180205095558.2e713c24cdb7c3232943db52@bidouilliste.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] Revert "ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2" To: Emmanuel Vadot CC: Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Icenowy Zheng Message-ID: <207CD143-6535-42C9-BEF3-9D2614336482@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2018年2月5日 GMT+08:00 下午4:55:58, Emmanuel Vadot 写到: > > Hello, > >On Sat, 3 Feb 2018 19:23:53 +0800 >Icenowy Zheng wrote: > >> This reverts commit 7daa213700758b5b08fc0daab09bb139dd334165. >> >> The original commit has several problems: >> >> - vdd-cpus and aldo3 (AVCC of the SoC) are not set to always-on, >which >> leads to system hang when disabling unused regulators. > > Indeed I should have make those always-on. > >> - GMAC (which uses dldo1 and aldo2) and Wi-Fi (which uses aldo1) are >not >> considered, and will fail to work after adding this commit. > > While I understand the problem with vdd-cpus and aldo3 I don't see why >when you don't declare regulator the code should do something with it. >DT is supposed to describe the hardware and the code should not use >hardware not described right ? > The gmac node doesn't declare any regulators and the mmc2 uses >reg_vcc3v0 (haven't checked on the schematics yet if it is correct). It's because the regulator support isn't present before this commit. However these parts really need special regulators. I don't have M2 schematics at hand, so you'd check it by yourself. P.S. a proper device tree with AXP shouldn't use reg_vcc3v0/3v3/1v8/etc. They're dummy regulator nodes for not implemented or not controllable regulators. > >> This indicates that this patch should be not tested at all. > > This have indeed not been tested with linux. > I think that this commit should not be reverted, I'll send a proper >patch tonight or tomorow night max. Please test patches sent to Linux on Linux :-) > > P.S.: Also as I'm the original sender I think I should have been in CC >no ? get_maintainer.pl didn't mention you and I forgot... sorry. > > Cheers, > >> Signed-off-by: Icenowy Zheng >> --- >> arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 57 >------------------------ >> 1 file changed, 57 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 51e6f1d21c32..a565316eb340 100644 >> --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts >> +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts >> @@ -86,10 +86,6 @@ >> }; >> }; >> >> -&cpu0 { >> - cpu-supply = <®_dcdc3>; >> -}; >> - >> &ehci0 { >> status = "okay"; >> }; >> @@ -155,17 +151,6 @@ >> status = "okay"; >> }; >> >> -&p2wi { >> - status = "okay"; >> - >> - axp22x: pmic@68 { >> - compatible = "x-powers,axp221"; >> - reg = <0x68>; >> - interrupt-parent = <&nmi_intc>; >> - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; >> - }; >> -}; >> - >> &pio { >> gmac_phy_reset_pin_bpi_m2: gmac_phy_reset_pin@0 { >> pins = "PA21"; >> @@ -191,48 +176,6 @@ >> }; >> }; >> >> -#include "axp22x.dtsi" >> - >> -®_dc5ldo { >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-cpus"; >> -}; >> - >> -®_dcdc1 { >> - regulator-always-on; >> - regulator-min-microvolt = <3000000>; >> - regulator-max-microvolt = <3000000>; >> - regulator-name = "vdd-3v0"; >> -}; >> - >> -®_dcdc2 { >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-gpu"; >> -}; >> - >> -®_dcdc3 { >> - regulator-always-on; >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-cpu"; >> -}; >> - >> -®_dcdc4 { >> - regulator-always-on; >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-sys-dll"; >> -}; >> - >> -®_dcdc5 { >> - regulator-always-on; >> - regulator-min-microvolt = <1500000>; >> - regulator-max-microvolt = <1500000>; >> - regulator-name = "vcc-dram"; >> -}; >> - >> &uart0 { >> pinctrl-names = "default"; >> pinctrl-0 = <&uart0_pins_a>; >> -- >> 2.15.1 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel