Received: by 10.223.176.5 with SMTP id f5csp1146780wra; Fri, 9 Feb 2018 13:21:54 -0800 (PST) X-Google-Smtp-Source: AH8x227CDg4tbil9fnysV7UGJK5pG9j5/AJgIq9eBiABzFA9ZJ1m/INuRCHkwIWhf8X22RTSDKj6 X-Received: by 2002:a17:902:6b0b:: with SMTP id o11-v6mr3707069plk.109.1518211314207; Fri, 09 Feb 2018 13:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518211314; cv=none; d=google.com; s=arc-20160816; b=Ak/4q4ew5s0+tBjW4G+SS+otUK+LVD9BF2z9rPc0fnTmxlWqtaN0sLTglemIRTvSuP yousZOU7q+gveZ6Qn6vc9ZvLxgbxGAb2HcfpbEAE1bbUdNTmUnIOTYpd0S6xqi1xxor6 WOjV8uc9GARFoeMKehf3WRBJo5I8XU7dz0Vk5duKIwNrxxw5fr19hWXdvlLa1bXN9Mfj ZOgL86LIAeGW78kI+WJutbccm8Da9AuCDiWSTTexrxe5pBPHyw+Mhs8KIJ1QKq9EsM9T q2ksfSID5BLwyCX0z3n96d4sCil8AmdHXk2RZimvjzKKxHMoKiK+bD405tYJuDa3CQro Ayzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version:domainkey-signature :dkim-signature:arc-authentication-results; bh=OQ7xCBhVuLKIWo2QrWfPic1E5mpGFgi4XpV5YLrjafE=; b=PZjpaZov+ZmxEv1msa3NdUUFzzgoPNEG/YS5fkBREpIlGsgr1FYXJFKt+HFSJk5Vk7 tO9l5qakj1URi1/X7Yq4FNetOcZza3AviPnJSBJ+maMrXRBWR+Cr163ukVrrynwM/igj 7UVAh2wo+uoYPCniYn0/e4717Fh+k3VwUjB75nyCWVdbPWNhBBJBG87wFidadWFTVPhG npQP1SaLlUFkubBF7d+URciyoEalGIfvEe6Qj70p2Ati8MrpNS65nBG/vxnxf3Ws42Eo pnYtfwgJCAkDZBg6xsAe5DE5I5SnSHR8QKKXN+rYz0+vMItEdJWsu20L+GR7jW8JD0dc JNVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mail header.b=nzhqS92q; 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 j1-v6si2051472pld.106.2018.02.09.13.21.39; Fri, 09 Feb 2018 13:21:54 -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=@bidouilliste.com header.s=mail header.b=nzhqS92q; 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 S1752837AbeBIVVC (ORCPT + 99 others); Fri, 9 Feb 2018 16:21:02 -0500 Received: from mail.blih.net ([212.83.177.182]:51832 "EHLO mail.blih.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbeBIVVA (ORCPT ); Fri, 9 Feb 2018 16:21:00 -0500 Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id af1d6131; Fri, 9 Feb 2018 22:20:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; s=mail; bh=4UgLIx 2Jt1AFO+exz5jTXZIt9CQ=; b=nzhqS92qdRO+VHHpret4DH00CuL5XAhdkGR7wK qFcMkZOHf6LgMcdBW+dehkUTKIp8hXSJ3R2TTBHTEiRyH4mTPDrdnrmqe06AfdfC u02ENvPSuSLetnR2KZNjIWYYjW0fV400vBE2LDCGw+RRxOvII1KbZVd2SMl51uf/ ELzhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; q=dns; s=mail; b= hkb42g0oIOjTGoIxJKE7rBUnLZs/ND3Heq90wHXz6jygPolklHuestv5fNZrMgNI VS6PuccNHcoPZd8b7VJbyTT4Gmf6iTKclu9pG+CbzxfHO57TJt6KbbEqYegwTlFl M0Qgg50i1v4dSR13is+ABJNAppWIZrkhsa5XevV9Lg4= Received: from webmail.megadrive.org (www1.blih.net [212.83.177.180]) by mail.blih.net (OpenSMTPD) with ESMTP id e9db914a; Fri, 9 Feb 2018 22:20:57 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 09 Feb 2018 22:20:57 +0100 From: Emmanuel Vadot To: Icenowy Zheng Cc: devicetree@vger.kernel.org, Maxime Ripard , linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] Revert "ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2" Organization: Bidouilliste In-Reply-To: <207CD143-6535-42C9-BEF3-9D2614336482@aosc.io> References: <20180203112353.13497-1-icenowy@aosc.io> <20180205095558.2e713c24cdb7c3232943db52@bidouilliste.com> <207CD143-6535-42C9-BEF3-9D2614336482@aosc.io> Message-ID: X-Sender: manu@bidouilliste.com User-Agent: Roundcube Webmail/1.1.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-05 10:05, Icenowy Zheng wrote: > 于 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. Yes but why does the PMIC should disable regulators not defined in the DTS ? That the part I don't understand and want to know where it is described/documented. > 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 :-) If my patches adhere to the bindings I don't see why. >> >> 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 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Emmanuel Vadot