Skip to content

PWM: PXA: add device tree support to PWM driver

Mike Dunn linux-arm-kernel linux-devicetree linux-pwm 16 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest posting 2/22 patches 0 repliesNew
  2. v5 posting 1/22 patches 0 repliesSuperseded
  3. v4 posting 2/21 patch 0 repliesSuperseded
Earlier versions · 13
VersionPostedPatchesRepliesStatus
v4 posting 1/21 patch0 repliesSuperseded
v3 posting 4/41 patch0 repliesSuperseded
v3 posting 3/41 patch0 repliesSuperseded
v3 posting 2/41 patch0 repliesSuperseded
v3 posting 1/41 patch0 repliesSuperseded
v2 posting 7/71 patch0 repliesSuperseded
v2 posting 6/71 patch0 repliesSuperseded
v2 posting 5/71 patch0 repliesSuperseded
v2 posting 4/71 patch0 repliesSuperseded
v2 posting 3/71 patch0 repliesSuperseded
v2 posting 2/71 patch0 repliesSuperseded
v2 posting 1/71 patch0 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

- changes to pxa27x.dtsi moved to a separate patch
- minor changes in phrasing made to bindings documentation
- cast removed from void *
- dummy functions for !CONFIG_OF removed; called only if (IS_ENABLED(CONFIG_OF)
- if-else block in pxa_pwm_get_id_dt() replaced with ternary operator

Patches in v5 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PWM: PXA: add device tree support to PWM driverDocumentation/devicetree/bindings/pwm/pxa-pwm.txt drivers/pwm/pwm-pxa.c+81 -12 replies
1/2PWM: PXA: add device tree support to PWM driver+0 -00 replies
1/2PWM: PXA: add device tree support to PWM driver+0 -04 replies
1/2PWM: PXA: add device tree support to PWM driver+0 -00 replies
2/2PXA: add PWM nodes to pxa27x.dtsiarch/arm/boot/dts/pxa27x.dtsi+24 -00 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchHaojian Zhuang
1/2A-b
1/2A-b
1/2A-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH RESEND v5 0/2] PWM: PXA: add device tree support to PWM driver

Dang! Sorry, please disregard previous patch set. RESENDing because previous set did not include the file Documentation/devicetree/bindings/pwm/pxa-pwm.txt

This is now a patch set because the changes to pxa27x.dtsi have been moved to a separate patch. This was done so that it can go through the arm-soc tree.

Changle log:
v5:
- changes to pxa27x.dtsi moved to a separate patch
- minor changes in phrasing made to bindings documentation
- cast removed from void *
- dummy functions for !CONFIG_OF removed; called only if (IS_ENABLED(CONFIG_OF)
- if-else block in pxa_pwm_get_id_dt() replaced with ternary operator

v4:
- add second "compatible" string to pxa27x.dtsi
- change phrasing in binding doc pxa-pwm.txt to "one or more of"

v3:
- remove support for the polarity flag
- remove per-chip pwm index cell; define custom of_xlate() (now #pwm-cells = <1>)
- "compatible" strings for all devices added to OF match table
- various stylistic changes recommended by reviewers

v2:
- of_match_table contains only the "pxa250-pwm" compatible string; require one device instance per pwm
- add Documentation/devicetree/bindings/pwm/pxa-pwm.txt
- add support for polarity flag in DT and implement set_polarity() method (the treo 680 inverts the signal between pwm out and backlight)
- return -EINVAL instead of -ENODEV if platform data or DT node not found
- output dev_info string if platform data missing
- expanded CC list of patch

Mike Dunn (2):
PWM: PXA: add device tree support to PWM driver
PXA: add PWM nodes to pxa27x.dtsi

 Documentation/devicetree/bindings/pwm/pxa-pwm.txt | 30 +++++++++++++
 arch/arm/boot/dts/pxa27x.dtsi                     | 24 +++++++++++
 drivers/pwm/pwm-pxa.c                             | 52 ++++++++++++++++++++++-
 3 files changed, 105 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/pwm/pxa-pwm.txt
Signature · 1 line
1.8.1.5