Skip to contentSkip to conversation

pwm: dt: Fix description of second PWM cell

PATCH In review Thierry Reding 3 participants 3 messages Oct 1, 2012 – Oct 7, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: dt: Fix description of second PWM cell

The second cell in the PWM specifier denotes the period in nanoseconds, not the duty cycle. The latter can be freely configured at runtime and a PWM with a fixed duty cycle would be rather pointless.

Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Philipp Zabel <[email protected]>
Cc "Benoît Thébaudeau" <[email protected]>
Cc Stephen Warren <[email protected]>
---
 Documentation/devicetree/bindings/pwm/imx-pwm.txt            | 2 +-
 Documentation/devicetree/bindings/pwm/mxs-pwm.txt            | 2 +-
 Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/pwm/imx-pwm.txt +1 -1
index 9b9b185..8522bfb 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,<soc>-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - interrupts: The interrupt for the pwm controller
 
 Example:
Documentation/devicetree/bindings/pwm/mxs-pwm.txt +1 -1
index b16f4a5..d7946be6 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,imx23-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - fsl,pwm-number: the number of PWM devices
 
 Example:
Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt +1 -1
index bbbeedb..01438ec 100644
@@ -7,7 +7,7 @@ Required properties:
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The
   first cell specifies the per-chip index of the PWM to use and the second
-  cell is the duty cycle in nanoseconds.
+  cell is the period in nanoseconds.
 
 Example:
 
Signature · 1 line
1.7.12.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thierry Reding

The second cell in the PWM specifier denotes the period in nanoseconds, not the duty cycle. The latter can be freely configured at runtime and a PWM with a fixed duty cycle would be rather pointless.

Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Philipp Zabel <[email protected]>
Cc "Benoît Thébaudeau" <[email protected]>
Cc Stephen Warren <[email protected]>
Quoted 49 lines
---
 Documentation/devicetree/bindings/pwm/imx-pwm.txt            | 2 +-
 Documentation/devicetree/bindings/pwm/mxs-pwm.txt            | 2 +-
 Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/pwm/imx-pwm.txt +1 -1
index 9b9b185..8522bfb 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,<soc>-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - interrupts: The interrupt for the pwm controller
 
 Example:
Documentation/devicetree/bindings/pwm/mxs-pwm.txt +1 -1
index b16f4a5..d7946be6 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,imx23-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - fsl,pwm-number: the number of PWM devices
 
 Example:
Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt +1 -1
index bbbeedb..01438ec 100644
@@ -7,7 +7,7 @@ Required properties:
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The
   first cell specifies the per-chip index of the PWM to use and the second
-  cell is the duty cycle in nanoseconds.
+  cell is the period in nanoseconds.
 
 Example:
 
Signature · 1 line
1.7.12.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Acked-by on v1 1/1
#2 lore raw
In reply to Thierry Reding
Quoted 10 lines · Thierry Reding

The second cell in the PWM specifier denotes the period in nanoseconds, not the duty cycle. The latter can be freely configured at runtime and a PWM with a fixed duty cycle would be rather pointless.

Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Philipp Zabel <[email protected]>
Cc "Benoît Thébaudeau" <[email protected]>
Cc Stephen Warren <[email protected]>
Quoted 3 lines
---
 Documentation/devicetree/bindings/pwm/imx-pwm.txt            | 2 +-
 Documentation/devicetree/bindings/pwm/mxs-pwm.txt            | 2 +-
Quoted 45 lines
 Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/pwm/imx-pwm.txt +1 -1
index 9b9b185..8522bfb 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,<soc>-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - interrupts: The interrupt for the pwm controller
 
 Example:
Documentation/devicetree/bindings/pwm/mxs-pwm.txt +1 -1
index b16f4a5..d7946be6 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible: should be "fsl,imx23-pwm"
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: should be 2.  The first cell specifies the per-chip index
-  of the PWM to use and the second cell is the duty cycle in nanoseconds.
+  of the PWM to use and the second cell is the period in nanoseconds.
 - fsl,pwm-number: the number of PWM devices
 
 Example:
Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt +1 -1
index bbbeedb..01438ec 100644
@@ -7,7 +7,7 @@ Required properties:
 - reg: physical base address and length of the controller's registers
 - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The
   first cell specifies the per-chip index of the PWM to use and the second
-  cell is the duty cycle in nanoseconds.
+  cell is the period in nanoseconds.
 
 Example:
 
Signature · 1 line
1.7.12.2