* [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema
@ 2019-09-20 19:36 Yoshihiro Kaneko
2019-09-23 11:36 ` Simon Horman
2019-10-01 22:22 ` Rob Herring
0 siblings, 2 replies; 3+ messages in thread
From: Yoshihiro Kaneko @ 2019-09-20 19:36 UTC (permalink / raw)
To: linux-renesas-soc
Cc: Rob Herring, Geert Uytterhoeven, Simon Horman, Magnus Damm, devicetree
Convert Renesas R-Car Timer Pulse Unit PWM Controller bindings documentation
to json-schema.
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
---
.../devicetree/bindings/pwm/renesas,tpu-pwm.txt | 35 -----------
.../devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 69 ++++++++++++++++++++++
2 files changed, 69 insertions(+), 35 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
create mode 100644 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
deleted file mode 100644
index 848a92b..0000000
--- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-* Renesas R-Car Timer Pulse Unit PWM Controller
-
-Required Properties:
-
- - 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-r8a7744": for R8A7744 (RZ/G1N) 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-r8a77970": for R8A77970 (R-Car V3M) compatible PWM
- controller.
- - "renesas,tpu-r8a77980": for R8A77980 (R-Car V3H) compatible PWM
- controller.
- - "renesas,tpu": for the generic TPU PWM controller; this is a fallback for
- the entries listed above.
-
- - reg: Base address and length of each memory resource used by the PWM
- controller hardware module.
-
- - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
- the cells format. The only third cell flag supported by this binding is
- PWM_POLARITY_INVERTED.
-
-Please refer to pwm.txt in this directory for details of the common PWM bindings
-used by client devices.
-
-Example: R8A7740 (R-Mobile A1) TPU controller node
-
- tpu: pwm@e6600000 {
- compatible = "renesas,tpu-r8a7740", "renesas,tpu";
- reg = <0xe6600000 0x148>;
- #pwm-cells = <3>;
- };
diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
new file mode 100644
index 0000000..4908f00
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas R-Car Timer Pulse Unit PWM Controller
+
+maintainers:
+ - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - renesas,tpu-r8a73a4 # R-Mobile APE6
+ - renesas,tpu-r8a7740 # R-Mobile A1
+ - renesas,tpu-r8a7743 # RZ/G1M
+ - renesas,tpu-r8a7744 # RZ/G1N
+ - renesas,tpu-r8a7745 # RZ/G1E
+ - renesas,tpu-r8a7790 # R-Car H2
+ - renesas,tpu-r8a7795 # R-Car H3
+ - renesas,tpu-r8a7796 # R-Car M3-W
+ - renesas,tpu-r8a77965 # R-Car M3-N
+ - renesas,tpu-r8a77970 # R-Car V3M
+ - renesas,tpu-r8a77980 # R-Car V3H
+ - const: renesas,tpu
+
+ reg:
+ # Base address and length of each memory resource used by the PWM
+ # controller hardware module.
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ '#pwm-cells':
+ # should be 3. See pwm.txt in this directory for a description of
+ # the cells format. The only third cell flag supported by this binding is
+ # PWM_POLARITY_INVERTED.
+ const: 3
+
+ clocks:
+ maxItems: 1
+
+ power-domains:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - '#pwm-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/r8a7740-clock.h>
+
+ tpu: pwm@e6600000 {
+ compatible = "renesas,tpu-r8a7740", "renesas,tpu";
+ reg = <0xe6600000 0x148>;
+ clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
+ power-domains = <&pd_a3sp>;
+ #pwm-cells = <3>;
+ };
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema
2019-09-20 19:36 [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema Yoshihiro Kaneko
@ 2019-09-23 11:36 ` Simon Horman
2019-10-01 22:22 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2019-09-23 11:36 UTC (permalink / raw)
To: Yoshihiro Kaneko
Cc: linux-renesas-soc, Rob Herring, Geert Uytterhoeven, Magnus Damm,
devicetree
On Sat, Sep 21, 2019 at 04:36:29AM +0900, Yoshihiro Kaneko wrote:
> Convert Renesas R-Car Timer Pulse Unit PWM Controller bindings documentation
> to json-schema.
>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema
2019-09-20 19:36 [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema Yoshihiro Kaneko
2019-09-23 11:36 ` Simon Horman
@ 2019-10-01 22:22 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2019-10-01 22:22 UTC (permalink / raw)
To: Yoshihiro Kaneko
Cc: linux-renesas-soc, Geert Uytterhoeven, Simon Horman, Magnus Damm,
devicetree
On Sat, Sep 21, 2019 at 04:36:29AM +0900, Yoshihiro Kaneko wrote:
> Convert Renesas R-Car Timer Pulse Unit PWM Controller bindings documentation
> to json-schema.
>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> ---
> .../devicetree/bindings/pwm/renesas,tpu-pwm.txt | 35 -----------
> .../devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 69 ++++++++++++++++++++++
> 2 files changed, 69 insertions(+), 35 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt
> create mode 100644 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-01 22:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 19:36 [PATCH] dt-bindings: pwm: renesas: tpu: convert bindings to json-schema Yoshihiro Kaneko
2019-09-23 11:36 ` Simon Horman
2019-10-01 22:22 ` Rob Herring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.