linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/7] treewide: modify sh-pfc and add support pwm duty zero
@ 2019-07-08  9:07 Yoshihiro Shimoda
  2019-07-08  9:07 ` [PATCH RFC 1/7] pinctrl: sh-pfc: add new flags into struct sh_pfc_pin_config Yoshihiro Shimoda
                   ` (6 more replies)
  0 siblings, 7 replies; 29+ messages in thread
From: Yoshihiro Shimoda @ 2019-07-08  9:07 UTC (permalink / raw)
  To: linus.walleij, geert+renesas, thierry.reding, robh+dt, mark.rutland
  Cc: linux-gpio, linux-pwm, devicetree, linux-renesas-soc, Yoshihiro Shimoda

This patch series modifies pinctrl/sh-pfc and pwm drivers. Since the R-Car
SoCs PWM Timer cannot output duty zero, the Salvator-X[S] board cannot
output max_brightness. This patch series can support it.

I'm not sure whether pinctrl subsystem and sh-pfc driver allows
to change the pin configuration automatically by .gpio_disable_free(),
so that I marked "RFC" on this patch series.

< log file >
 # cd /sys/class/backlight/backlight
 # echo 1 > brightness
 # cat /sys/kernel/debug/pinctrl/e60060000.pin-controller-sh-pfc/pinmux-pins |\
   grep -w 71
 pin 71 (GP_2_7): e6e31000.pwm (GPIO UNCLAIMED) function pwm1 group pwm1_a

 # echo 6 > brightness
 # cat /sys/kernel/debug/pinctrl/e60060000.pin-controller-sh-pfc/pinmux-pins |\
   grep -w 71
 pin 71 (GP_2_7): e6e31000.pwm e6052000.gpio:459 function pwm1 group pwm1_a

 # echo 1 > brightness
 # cat /sys/kernel/debug/pinctrl/e60060000.pin-controller-sh-pfc/pinmux-pins |\
   grep -w 71
 pin 71 (GP_2_7): e6e31000.pwm (GPIO UNCLAIMED) function pwm1 group pwm1_a


Yoshihiro Shimoda (7):
  pinctrl: sh-pfc: add new flags into struct sh_pfc_pin_config
  pinctrl: sh-pfc: remove incomplete flag "cfg->type"
  pinctrl: sh-pfc: Rollback to mux if requires when the gpio is freed
  dt-bindings: pwm: rcar: Add specific gpios property to output duty
    zero
  pwm: rcar: remove a redundant condition in rcar_pwm_apply()
  pwm: rcar: Add gpio support to output duty zero
  arm64: dts: renesas: salvator-common: add gpio property into pwm1

 .../devicetree/bindings/pwm/renesas,pwm-rcar.txt   |  3 ++
 arch/arm64/boot/dts/renesas/salvator-common.dtsi   |  1 +
 drivers/pinctrl/sh-pfc/pinctrl.c                   | 44 +++++++++++-----------
 drivers/pwm/pwm-rcar.c                             | 36 +++++++++++++++++-
 4 files changed, 60 insertions(+), 24 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2019-08-08  7:32 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08  9:07 [PATCH RFC 0/7] treewide: modify sh-pfc and add support pwm duty zero Yoshihiro Shimoda
2019-07-08  9:07 ` [PATCH RFC 1/7] pinctrl: sh-pfc: add new flags into struct sh_pfc_pin_config Yoshihiro Shimoda
2019-07-08 15:51   ` Sergei Shtylyov
2019-08-06  8:46   ` Geert Uytterhoeven
2019-07-08  9:07 ` [PATCH RFC 2/7] pinctrl: sh-pfc: remove incomplete flag "cfg->type" Yoshihiro Shimoda
2019-07-28 23:02   ` Linus Walleij
2019-07-29  5:16     ` Yoshihiro Shimoda
2019-08-06  8:49       ` Geert Uytterhoeven
2019-08-06  9:23   ` Geert Uytterhoeven
2019-08-06 11:48     ` Yoshihiro Shimoda
2019-07-08  9:07 ` [PATCH RFC 3/7] pinctrl: sh-pfc: Rollback to mux if requires when the gpio is freed Yoshihiro Shimoda
2019-08-06  9:02   ` Geert Uytterhoeven
2019-08-06 11:38     ` Yoshihiro Shimoda
2019-08-06 12:01       ` Geert Uytterhoeven
2019-07-08  9:07 ` [PATCH RFC 4/7] dt-bindings: pwm: rcar: Add specific gpios property to output duty zero Yoshihiro Shimoda
2019-08-06  9:21   ` Geert Uytterhoeven
2019-07-08  9:07 ` [PATCH RFC 5/7] pwm: rcar: remove a redundant condition in rcar_pwm_apply() Yoshihiro Shimoda
2019-08-06  9:05   ` Geert Uytterhoeven
2019-08-06 11:39     ` Yoshihiro Shimoda
2019-08-06 16:00     ` Uwe Kleine-König
2019-08-07  2:56       ` Yoshihiro Shimoda
2019-08-07  6:33   ` Uwe Kleine-König
2019-07-08  9:07 ` [PATCH RFC 6/7] pwm: rcar: Add gpio support to output duty zero Yoshihiro Shimoda
2019-08-07  7:03   ` Uwe Kleine-König
2019-08-08  3:52     ` Yoshihiro Shimoda
2019-08-08  6:49       ` Geert Uytterhoeven
2019-08-08  7:02         ` Yoshihiro Shimoda
2019-08-08  7:31       ` Uwe Kleine-König
2019-07-08  9:07 ` [PATCH RFC 7/7] arm64: dts: renesas: salvator-common: add gpio property into pwm1 Yoshihiro Shimoda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).