Linux PWM subsystem development
 help / color / mirror / Atom feed
From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
	linux-pwm@vger.kernel.org, Rob Herring <robh@kernel.org>,
	Russell King <linux@arm.linux.org.uk>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	Lukasz Majewski <lukma@denx.de>
Subject: Re: [PATCH v3] pwm: imx: Let PWM be active during suspend
Date: Mon, 11 Dec 2017 17:52:50 +0100	[thread overview]
Message-ID: <20171211175250.73289f27@karo-electronics.de> (raw)
In-Reply-To: <CAOMZO5D-g-H2n0Fx9h=3vX_ryvPbXB64nsvzuTo_ddJeBke7Uw@mail.gmail.com>

Hi,

On Mon, 11 Dec 2017 14:06:31 -0200 Fabio Estevam wrote:
> Hi Lothar,
> 
> On Mon, Dec 11, 2017 at 1:55 PM, Lothar Waßmann <LW@karo-electronics.de> wrote:
> 
> >> 1. Set the STOPEN bit which is what I do in this patch
> >>
> > This should probably work.
> > But this won't fix the issue, that the LED or backlight is turned fully
> > on when the brightness value is set to 0, since both the leds-pwm and
> > the pwmbl driver explicitly disable the PWM, when the brightness
> > value is set to 0.
> 
> Yes, but in the case of imx6qdl-cubox-i.dtsi the PWM is used in the
> normal polarity and the inversion is achieved via 'active-low'
> property of pwm-leds.
> 
> On this board the current dts + current pwm-imx driver behaves
> incorrecly only during suspend (LED is on). During normal mode the PWM
> operation is correct.
> 
> By setting the STOPEN bit the LED is off in suspend.
> 
> >> 2. Add support for allowing changing pinctrl in suspend:
> >> https://pastebin.com/71UGrnkA
> >>
> >> This way we can configure the pwm output pin as Hi-Z during suspend.
> >>
> >> What do you think?
> >>
> > It would be better to enable the 22K pullup on the pin. Otherwise the
> > pin will be floating when there is no external pullup resistor.
> 
> Yes, but first we need to come to a conclusion if we go with solution
> 1 (enable STOPEN) or with solution 2 (allow changinh pinctrl) :-)
> 
> I am more inclined to go with solution 1 as this was also used in the
> old vendor 3.0.35 kernel:
> http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/plat-mxc/pwm.c?h=imx_3.0.35_4.1.0#n106
> 
> Please let me know what you prefer.
> 
I also prefer the patch that doesn't mess with the pin configs.


Lothar Waßmann

  reply	other threads:[~2017-12-11 16:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 23:27 [PATCH v3] pwm: imx: Let PWM be active during suspend Fabio Estevam
2017-12-04 12:29 ` Fabio Estevam
2017-12-05  8:47 ` Thierry Reding
2017-12-05 18:56   ` Fabio Estevam
2017-12-08 17:22     ` Fabio Estevam
2017-12-11  9:16     ` Thierry Reding
2017-12-11  9:36       ` Russell King - ARM Linux
2017-12-11 12:09         ` Thierry Reding
2017-12-11 10:54       ` Fabio Estevam
2017-12-11 12:13         ` Thierry Reding
2017-12-11 12:24           ` Fabio Estevam
2017-12-11 13:20             ` Lothar Waßmann
2017-12-11 15:07               ` Fabio Estevam
2017-12-11 15:55                 ` Lothar Waßmann
2017-12-11 16:06                   ` Fabio Estevam
2017-12-11 16:52                     ` Lothar Waßmann [this message]
2017-12-11 18:48                       ` Fabio Estevam
2017-12-15 12:02                         ` Lothar Waßmann
2017-12-16 18:26                           ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171211175250.73289f27@karo-electronics.de \
    --to=lw@karo-electronics.de \
    --cc=fabio.estevam@nxp.com \
    --cc=festevam@gmail.com \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lukma@denx.de \
    --cc=robh@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox