Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp175750imu; Fri, 16 Nov 2018 00:26:59 -0800 (PST) X-Google-Smtp-Source: AJdET5c7COIyiKf5xm1h0DLR9yptS1YNH35nEVviEM5oXqhL6MzfmVx6XIkstRoDjMmJEQrUoGVi X-Received: by 2002:aa7:8497:: with SMTP id u23mr5691628pfn.220.1542356819074; Fri, 16 Nov 2018 00:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542356819; cv=none; d=google.com; s=arc-20160816; b=nsdw9k9smaaK6DrpZUuGe3Z+D3dQqlEBUYazDypmxQ1Va1b5YNjRhFKeZNE3GPf4O+ QX17bFbduJ0dpM4LgP3+SgXao2L4k+B0vjY7SnILMS5aSfufPG2GRSyL7wN5dVkbC0jA gveKECZG3BVZWCZx9BBt0AeMZOiz0FSop1+hf3kSFWjxAYTqDHyJ2SU3qA+Io9MDfmrc Xl5vM1kmUjJFrNyFPoUuqY9STLbIzNG5UDSrFX61VwGirlN/vBt++SFfjUoF7zw6vCxp LxhHk2psFzr7fI8MXkiYNTAbw9L37aNLBfOicZt3zPExpC1WqKRbRRC8rXGJANJWy8WV wAww== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QEZIL/MzkkwS2b2kohTgF290J9tsRoD41GJCYp5FRYY=; b=eZFGbvefGx+aFXdTu3kF7ODllL3rehH0UGvstEK9o/+qp5V3fnzVmPwh9lG5E9wWMV zdoEDp323EX4FakzxYDkzGFfJzsgsVJ0SUX94dM1KLGmJ0YaTYfrmz1WdgHmNCp6RFkL YqC+adW8Oz9lkpudfc6Muiw+yszDbUv+OMCP8/+UzdmfhRefYeJgWLN7IRki0KAHj88m y0E7p6rZyLp1he3HGRGcyywNhK+bvAbW98P9SICxHFdyzx1YLObxmG3WDEx4L1+uCXsS z7q0L/lfhzi0xSxrLJlG3G5hZmHD5n2sXRSpqSDtwMapJePxPXqQ5bulH1Mr7rQUUBAb lapA== 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 a195si10845797pfd.143.2018.11.16.00.26.43; Fri, 16 Nov 2018 00:26:59 -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 S1727587AbeKPSh0 (ORCPT + 99 others); Fri, 16 Nov 2018 13:37:26 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:49723 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727410AbeKPSh0 (ORCPT ); Fri, 16 Nov 2018 13:37:26 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gNZRu-0003yf-U0; Fri, 16 Nov 2018 09:25:58 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gNZRt-0000WN-4u; Fri, 16 Nov 2018 09:25:57 +0100 Date: Fri, 16 Nov 2018 09:25:57 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Lothar =?iso-8859-1?Q?Wa=DFmann?= Cc: Thierry Reding , =?utf-8?B?Vm9rw6HEjQ==?= Michal , Mark Rutland , "devicetree@vger.kernel.org" , "linux-pwm@vger.kernel.org" , Lukasz Majewski , "linux-kernel@vger.kernel.org" , Rob Herring , "kernel@pengutronix.de" , Fabio Estevam , Linus Walleij Subject: Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state Message-ID: <20181116082557.l2ljgu3hsu7tvdci@pengutronix.de> References: <20181107150125.7cpd4v5t7yi2254c@pengutronix.de> <4fbb7307-df01-d7bd-f2e2-e05e6d17807d@ysoft.com> <20181108191855.zuon3ecv4yjfbs7g@pengutronix.de> <283cfef3-16d0-8bd4-e306-6e34d44c3a86@ysoft.com> <20181109165555.vqbiwh4hlcnozdna@pengutronix.de> <20181114113449.GB2620@ulmo> <20181114215120.vddykljqyavm64wj@pengutronix.de> <20181115152545.GA8611@ulmo> <20181115203733.qvonika6yhn2bsnb@pengutronix.de> <20181116083430.7f1d8452@ipc1.ka-ro> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181116083430.7f1d8452@ipc1.ka-ro> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@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 Fri, Nov 16, 2018 at 08:34:30AM +0100, Lothar Wa?mann wrote: > Uwe Kleine-K?nig wrote: > > > Hello Thierry, > > > > On Thu, Nov 15, 2018 at 04:25:45PM +0100, Thierry Reding wrote: > > > On Wed, Nov 14, 2018 at 10:51:20PM +0100, Uwe Kleine-K?nig wrote: > > > > On Wed, Nov 14, 2018 at 12:34:49PM +0100, Thierry Reding wrote: > [...] > > > > Also dts writes don't need to lookup the needed GPIO numbers and pinctrl. > > > > > > Just to clarify: I don't think that we need to get the GPIO number > > > involved in this case, because we don't have to reconfigure the pin as > > > GPIO to make this work. The only reason that Michal's proposal did that > > > is because that was believed to be necessary. But if the pin can just be > > > configured with a 100k pull-up, that's enough to pull the pin high when > > > we need it. > > > > Unless the gpio happens to be configured as output at the wrong value. > > Further I'm not sure if the pwm in disabled state actively pulls to 0 > > and if in this state the PU of the pin is good enough to ensure a one > > here. That would need verification first. > > No. You can disable the output driver via pinctrl, so that only the > selected pull-up/down is relevant. The pin function and GPIO register > settings don't matter at all in this case. Is this about DSE=HI-Z in the pad control register? I didn't know about this. I see this exists on i.MX6 but not on i.MX25. Also i.MX51 doesn't seem to have this feature. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |