Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp305280ybl; Tue, 10 Dec 2019 23:28:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz0aWbbvxPYvT4QGQXHMMXBRSEEAYCvDFgpXcJD5hRolPitoy/ooylo7uN2Yqtala18VwWx X-Received: by 2002:aca:ec4d:: with SMTP id k74mr1606907oih.64.1576049289762; Tue, 10 Dec 2019 23:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576049289; cv=none; d=google.com; s=arc-20160816; b=h/ql307plmGVwih/WGXWNo+ZV3JVaUfUJKLqVsQcM4kO8myeHWaPGU+fHBiCwzIOFO kPft1iq8CAoPLsaPZ4gZuSp1/aon61+cfMX/GxG5ZtRqOsIiIZoQVpsRp2Wsddts7FIf kiMX/NL33V29VR8B3POXTJ3RTczQF2QBHlsjh0tMdPl7vaBjpoX/OwRthiPQhcxKyTXd +wgyfrve81inbJELSwADahtLVo6upKHlmk6HIPMs9aCple3GqEYXaWXMMp0iw6ZgRWn6 ZfhzSBZM82khX/T2Cyf5Cz0wX13P8RZ1ms/a7lrYmHtmwZAXJANESyTNGItEvZWzMgLI lphQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Q5EaEaWyonsm/LmM3iKJ9BI4N0ZaQ4Gk+pJtWguvPbM=; b=owXVzzEUaUhrW+oWenh/FxBUH+3o1o2tzzUChYgsVQVHDEf5eyRjRSb1OJzIZ4iaBl r4RzMpPsrXO/XTwamt8IFAyNOjdL33EttwR0KANbLDZSo6ojtfKyvsPlyTPw1Nw+DlZ5 Yk/dpj7mpY1WLalfdfhbLs7zvRdje38hvEgbfuzbkGywAozmHhAQKiFeZbcuc9TzxGxv ZUi6Gqkn+0RgxN5K1n3htRox+OC87k9cRvfXD9fe4vnK3E5UsWVyYumKvmnNqbPNdvyX Yj/JjxBF1hABKUNKGLXZ0wiPE01w6Y+BRTcfJ/dtck404VU9fbC3BOoiJAHvo7xzEHUF Ig5A== 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 u9si635447oib.55.2019.12.10.23.27.57; Tue, 10 Dec 2019 23:28:09 -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 S1727894AbfLKH1Y (ORCPT + 99 others); Wed, 11 Dec 2019 02:27:24 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:57987 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfLKH1Y (ORCPT ); Wed, 11 Dec 2019 02:27:24 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iewP4-0006T3-E2; Wed, 11 Dec 2019 08:27:22 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iewP3-0004Eh-6N; Wed, 11 Dec 2019 08:27:21 +0100 Date: Wed, 11 Dec 2019 08:27:21 +0100 From: Marco Felsch To: Anson Huang Cc: Leonard Crestez , "shawnguo@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/3] ARM: dts: imx6ul-14x14-evk: Add sensors' GPIO regulator Message-ID: <20191211072721.ze6yn2felxyae5eb@pengutronix.de> References: <1571906920-29966-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:22:06 up 25 days, 22:40, 33 users, load average: 0.00, 0.00, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-12-11 01:06, Anson Huang wrote: > > > > Subject: Re: [PATCH 1/3] ARM: dts: imx6ul-14x14-evk: Add sensors' GPIO > > regulator > > > > On 24.10.2019 11:51, Anson Huang wrote: > > > On i.MX6UL 14x14 EVK board, sensors' power are controlled by > > > GPIO5_IO02, add GPIO regulator for sensors to manage their power. > > > > > > Signed-off-by: Anson Huang > > > > For me this breaks network boot on imx6ul evk, relevant log snippet is this: > > > > fec 20b4000.ethernet eth0: Unable to connect to phy > > IP-Config: Failed to open eth0 > > > > Looking at schematics (SPF-28616_C2.pdf) I see that SNVS_TAMPER2 pin is > > connected to PERI_PWREN which controls VPERI_3V3 which is used across > > the board: > > * Sensors (VSENSOR_3V3) > > * Ethernet (VENET_3V3) > > * Bluetooth > > * CAN > > * Arduino header > > * Camera > > > > Maybe there are board revision differences? As far as I can tell this regulator > > is not specific to sensors so it should be always on. > > You are correct, this regulator controls many other peripherals, I should make it always ON for now > to make sure NOT break other peripheral, and after all other peripherals controlled > by this regulator have added this regulator management, then the always ON can be > removed. IMHO marking the regulator as always on shouldn't be the fix. Is it to much work to add all required regulators? At least please add a comment which describes the need of the always-on property. Regards, Marco > Thanks, > Anson -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |