Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2978105imu; Fri, 23 Nov 2018 18:35:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uwa2KNhrP8X1RDylUuG1hLh2cJqU3XxzVsBmlqPxITG5JnGh1eFCJOEWhGhD9JYh5MHOrG X-Received: by 2002:a17:902:6848:: with SMTP id f8mr17908503pln.300.1543026932999; Fri, 23 Nov 2018 18:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543026932; cv=none; d=google.com; s=arc-20160816; b=YPWNRalhPdiO5EtxjpZwoYw8V45ukrBRZ4aHRr2luJcrnXQRv5495TTVK6KaDEzzcA 7Z1FWSUkWKtN1KABw3koryX1sd2m7VdjdluFO5E2Gpq925xvgcwQgP4IZA5yY1a9EIhJ 1h6a2nz9eRUx/31KTTiF3E6o0UpM0WJPr52pICpB0tEXNx/RYKdGGZy8zl+1EAimpoM5 hhq1NHnOS4sbhLgkylgg+Gd+59wnPOHP9kDAz5OC7XeLHVvo9MkKobjFJun+vHep4IeS Ag5ZRCoRJzQQuRGVa9yRUb0Fgr5JzuOKLk+37tu0Hl+5MjGwFutf1la9vLmMyqKAqc+E fSwQ== 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=6RlkoHPppE5sXx1pbb+GNJbQd/E00Zi2Uff1F97TQBU=; b=oR2zEoYafClUzEp7JZcqb0HZYFHxM1H2FwkswKZMRHAjattXtnEOHhvkSmWS1y5vpi teknhwcb+Dz+2gODs3ykbAxe+lthLuF5+UgvmSKIJtGanvZ4xBu8Ww+VkBHT9q7jhnKS IWPc70JCqvofMcFMlyZpxk8aCesBufCoAY62dwGN0FC+9IhD0vlIRlfWl7pXJuR1xWjI q6tM+MeN/mFDdaKIGu/+vjY6Kq2cHjJGPR/93/dMCcpubutrW6u1h91xGYZyIJAHkDFw RkSpOIWImoIjTsRqf8ZnKYN6WxIJehSQhtQdygjer4aB7ut9oBUJGFRQGxh/LRb/rj35 MYGQ== 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 102si30563493plc.277.2018.11.23.18.35.17; Fri, 23 Nov 2018 18:35:32 -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 S2438134AbeKWDEO (ORCPT + 99 others); Thu, 22 Nov 2018 22:04:14 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:51745 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404206AbeKWDEN (ORCPT ); Thu, 22 Nov 2018 22:04:13 -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 1gPrlp-0004PR-3s; Thu, 22 Nov 2018 17:24:01 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gPrln-0001pJ-Sd; Thu, 22 Nov 2018 17:23:59 +0100 Date: Thu, 22 Nov 2018 17:23:59 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: =?utf-8?B?Vm9rw6HEjQ==?= Michal Cc: Lothar =?iso-8859-1?Q?Wa=DFmann?= , Thierry Reding , 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 , viresh kumar Subject: Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state Message-ID: <20181122162359.ufngpgxkenlmgqni@pengutronix.de> References: <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> <20181116082557.l2ljgu3hsu7tvdci@pengutronix.de> <91640f9b-d219-553e-043a-c6151f2f68d7@ysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91640f9b-d219-553e-043a-c6151f2f68d7@ysoft.com> 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 Hello Michal, On Thu, Nov 22, 2018 at 03:42:14PM +0000, Vokáč Michal wrote: > On 16.11.2018 09:25, Uwe Kleine-König wrote: > > On Fri, Nov 16, 2018 at 08:34:30AM +0100, Lothar Waßmann wrote: > > > 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. > > Lothar, please can you be more specific how would you do that? IFAIK the > pull-up/down internal resistors have effect only if the pin is configured > as GPIO *input* (on i.MX6 at least). See the TRM, 29.4.2.2 Output driver: > > "Internal pull-up, pull-down resistors, and pad keeper are disabled in > output mode." > > > 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. > > Uwe, I also did not find the DSE option on other SoCs in their respective > manuals and source code. But even if it would be available on all SoCs > I still think it is not enough. If I understand Lothar correctly and this is about the pad control register, there is no need for software support. You just specify the value you want to have written to the pad register in the device tree. So I'd expect this to really work on i.MX6 but not the earlier SoCs without a gpio specifier. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |