Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1751231imu; Thu, 24 Jan 2019 01:00:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN6pvIbdjYNhxLh+z8l69EY37XkJhA0g/tBuGzARssuvozyfoYcyN8U2nQxsrFNP6oLVHvcu X-Received: by 2002:a62:b80a:: with SMTP id p10mr5617459pfe.32.1548320418434; Thu, 24 Jan 2019 01:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548320418; cv=none; d=google.com; s=arc-20160816; b=lik4uK6HjuxyOQ9XOyNJycZ0bPh2KM/N42gWJbKfHn5YSTXxxbXuh1yBPz9TouHd6U qm+Wf8w5F5dJWGKGKKuxy7ushgQq4chrAgSQn7HlHIoNdMRiFUzwQwFcGFMLLT7Ubibh DXm41LJKYbQTx6D4GtoM7P15WhVB8KdFFS+T7RjEKP19yENczr+362wp/LKxDl+4wVNu vP8bdtDkxdQ1OgXjNm+h/G1cG24U2kvpTFnmvqmw7qlBjs86jjRZJI08vy4gZMW4V6Ur b2dJRBFBQWX3jb+MK35GbmgLoVcCYLLzl+2oprb5jGDgdTAUSI3gVFtXO+SUtCdNg9Im OO2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=NMNVQeawFrsPpzsdUdNe0CKqR5xVmVt+AeVW9N6fgAc=; b=JBYyUvU9WG5PE1XzQr3G9rvaL1lj15G8g8hHuy5HCW8NitLED3kwqS+7jt+Y1+fj2H 0g8HO/27ZKe2cUZ9ZdCDPKkyKvTv9lB/IwDjzZsgcA+zAg1Rp8la+EVfSYgTGxQinvEd RcnNyDGkVJQRRoLsxVAQ++hbHtTUT18IAY5WnpvQ9Q8YwDdXuE6ontE2h5A486aJq7/O H6l7whf8Azi2MBUmZoMTJIOanKCLqDYgeG3d/cZU80YAlWw1aDFjc/CQehLITrMnBR6W t5qEyDWOYiJ3MaWzn1WQS6lYzkALWYL9Yw4Apxk3W1GHwMk6XMT3fEoQnfF3d9PRNNgE bjTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=apa86H5o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si50plr.186.2019.01.24.01.00.03; Thu, 24 Jan 2019 01:00:18 -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 (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=apa86H5o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727621AbfAXI7d (ORCPT + 99 others); Thu, 24 Jan 2019 03:59:33 -0500 Received: from uho.ysoft.cz ([81.19.3.130]:57836 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfAXI7d (ORCPT ); Thu, 24 Jan 2019 03:59:33 -0500 X-Greylist: delayed 314 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Jan 2019 03:59:32 EST Received: from [10.1.8.111] (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id 88B8FA042F; Thu, 24 Jan 2019 09:54:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1548320056; bh=NMNVQeawFrsPpzsdUdNe0CKqR5xVmVt+AeVW9N6fgAc=; h=From:Subject:To:Cc:References:Date:In-Reply-To:From; b=apa86H5oMjDW+9v6nku9SYMhePOJJ5zUAyPizxN3zfQTwhoiOabubdlWa9SS5Kywh r/+WwhgpcG5/1EQMtRpX0urkXh8bzg8x9kKFvMDjOBZm2fH8DQ8bqEEtOljY20DRYM ZNtllqr9uQPAMuVZfnQ/LRgB9ipXeQR3a49zB0aE= From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Subject: Re: [RFC PATCH v4 2/2] pwm: imx: Configure output to GPIO in disabled state To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: Thierry Reding , Rob Herring , Mark Rutland , "devicetree@vger.kernel.org" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Lukasz Majewski , Fabio Estevam , =?UTF-8?Q?Lothar_Wa=c3=9fmann?= , Linus Walleij References: <1544616263-82642-1-git-send-email-michal.vokac@ysoft.com> <1544616263-82642-3-git-send-email-michal.vokac@ysoft.com> <20181213085605.j2e76y67srg5qfbc@pengutronix.de> Message-ID: <15db833b-37cb-0d80-6ef2-dd1fd4507027@ysoft.com> Date: Thu, 24 Jan 2019 09:54:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181213085605.j2e76y67srg5qfbc@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.12.2018 09:56, Uwe Kleine-König wrote: > On Wed, Dec 12, 2018 at 12:04:51PM +0000, Vokáč Michal wrote: >> Normally the PWM output is held LOW when PWM is disabled. This can cause >> problems when inverted PWM signal polarity is needed. With this behavior >> the connected circuit is fed by 100% duty cycle instead of being shut-off. >> >> Allow users to define a "pwm" and a "gpio" pinctrl states. The pwm pinctrl >> state is selected when PWM is enabled and the gpio pinctrl state is >> selected when PWM is disabled. In the gpio state the new pwm-gpios GPIO is >> configured as input and the internal pull-up resistor is used to pull the >> output level high. >> >> If all the pinctrl states and the pwm-gpios GPIO are not correctly >> specified in DT the PWM work as usual. >> >> As an example, with this patch a PWM controlled backlight with inversed >> signal polarity can be used in full brightness range. Without this patch >> the backlight can not be turned off as brightness = 0 disables the PWM >> and that in turn set PWM output LOW, that is full brightness. >> >> Inverted output of the PWM with "default" and with "pwm"+"gpio" pinctrl: >> >> +--------------+------------+---------------+----------- +-------------+ >> | After reset | Bootloader | PWM probe | PWM | PWM | >> | 100k pull-up | | | enable 30% | disable | >> +--------------+------------+---------------+------------+-------------+ >> | pinctrl | none | default | default | default | >> | out H __________________ __ __ | >> | out L \_________________/ \_/ \_/\____________ | >> | ^ ^ ^ | >> +--------------+------------+---------------+------------+-------------+ >> | pinctrl | none | gpio | pwm | gpio | >> | out H __________________________________ __ __ _____________ | >> | out L \_/ \_/ \_/ | >> | ^ ^ ^ | >> +----------------------------------------------------------------------+ > > Just for the record: My last concern against this patch set (that I sent > for v3) and v4 of the series criss-crossed. So the problem with the > peaks that could happen is still unaddressed. Hi Uwe et al. Sorry for the huge delay. I hope we will be able to refresh our memories and continue on the discussion. I will react to your comments in the appropriate v3 thread. And sorry for this v4. I was too fast on the trigger back then.. Michal