Skip to contentSkip to conversation

dt-bindings: pwm: renesas: tpu: fix "compatible" prop description

PATCH Superseded Sergei Shtylyov 2 participants 3 messages Sep 21, 2018 – Sep 24, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: pwm: renesas: tpu: fix "compatible" prop description

The "compatible" property description contradicts even the example given:
it only says that there must be a single value while the example has the fallback value too -- which makes much more sense. Moreover, the generic property value is misdocumented as being R-Car (and RZ/G1) specific...

Fixes 382457e562bb ("pwm: renesas-tpu: Add DT support")
Fixes 3ba111a01822 ("dt-bindings: pwm: renesas-tpu: Document r8a774[35] support")

---
This patch is against Linus' repo -- the 'fixes' branch in Thierry Reding's repo is very outdated...

 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt +3 -2
Index: linux/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
===================================================================
@@ -2,13 +2,14 @@
 
 Required Properties:
 
-  - compatible: should be one of the following.
+  - compatible: must contain one or more of the following:
     - "renesas,tpu-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible PWM controller.
     - "renesas,tpu-r8a7740": for R8A7740 (R-Mobile A1) compatible PWM controller.
     - "renesas,tpu-r8a7743": for R8A7743 (RZ/G1M) compatible PWM controller.
     - "renesas,tpu-r8a7745": for R8A7745 (RZ/G1E) compatible PWM controller.
     - "renesas,tpu-r8a7790": for R8A7790 (R-Car H2) compatible PWM controller.
-    - "renesas,tpu": for generic R-Car and RZ/G1 TPU PWM controller.
+    - "renesas,tpu": for the generic TPU PWM controller; this is a fallback for
+		     the above .
 
   - reg: Base address and length of each memory resource used by the PWM
     controller hardware module.
#1 lore raw

Hello!

Quoted 24 lines · Sergei Shtylyov

The "compatible" property description contradicts even the example given:
it only says that there must be a single value while the example has the fallback value too -- which makes much more sense. Moreover, the generic property value is misdocumented as being R-Car (and RZ/G1) specific...

Fixes 382457e562bb ("pwm: renesas-tpu: Add DT support")
Fixes 3ba111a01822 ("dt-bindings: pwm: renesas-tpu: Document r8a774[35] support")

---
This patch is against Linus' repo -- the 'fixes' branch in Thierry Reding's repo is very outdated...

 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: linux/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
===================================================================

Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt +0 -0
@@ -2,13 +2,14 @@
 
 Required Properties:
 

Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt line 12

Quoted 10 lines
Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt +3 -2
-  - compatible: should be one of the following.
+  - compatible: must contain one or more of the following:
     - "renesas,tpu-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible PWM controller.
     - "renesas,tpu-r8a7740": for R8A7740 (R-Mobile A1) compatible PWM controller.
     - "renesas,tpu-r8a7743": for R8A7743 (RZ/G1M) compatible PWM controller.
     - "renesas,tpu-r8a7745": for R8A7745 (RZ/G1E) compatible PWM controller.
     - "renesas,tpu-r8a7790": for R8A7790 (R-Car H2) compatible PWM controller.
-    - "renesas,tpu": for generic R-Car and RZ/G1 TPU PWM controller.
+    - "renesas,tpu": for the generic TPU PWM controller; this is a fallback for
+		     the above .

Oops, forgot to refresh the patch. :-(

[...]

MBR, Sergei

Reviewed-by on v1 1/1
#2 lore raw
In reply to Sergei Shtylyov
Quoted 5 lines · Sergei Shtylyov

The "compatible" property description contradicts even the example given:
it only says that there must be a single value while the example has the fallback value too -- which makes much more sense. Moreover, the generic property value is misdocumented as being R-Car (and RZ/G1) specific...

Quoted 7 lines
Fixes 382457e562bb ("pwm: renesas-tpu: Add DT support")
Fixes 3ba111a01822 ("dt-bindings: pwm: renesas-tpu: Document r8a774[35] support")

---
This patch is against Linus' repo -- the 'fixes' branch in Thierry Reding's repo is very outdated...