Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Renesas R-Car Timer Pulse Unit PWM Controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| 11 | |
Geert Uytterhoeven | d1dd216 | 2021-05-10 14:18:35 +0200 | [diff] [blame] | 12 | select: |
| 13 | properties: |
| 14 | compatible: |
| 15 | contains: |
| 16 | const: renesas,tpu |
| 17 | required: |
| 18 | - compatible |
| 19 | - '#pwm-cells' |
| 20 | |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 21 | properties: |
| 22 | compatible: |
| 23 | items: |
| 24 | - enum: |
| 25 | - renesas,tpu-r8a73a4 # R-Mobile APE6 |
| 26 | - renesas,tpu-r8a7740 # R-Mobile A1 |
Lad Prabhakar | 6a78dfb | 2020-10-06 09:19:09 +0100 | [diff] [blame] | 27 | - renesas,tpu-r8a7742 # RZ/G1H |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 28 | - renesas,tpu-r8a7743 # RZ/G1M |
| 29 | - renesas,tpu-r8a7744 # RZ/G1N |
| 30 | - renesas,tpu-r8a7745 # RZ/G1E |
| 31 | - renesas,tpu-r8a7790 # R-Car H2 |
Geert Uytterhoeven | ff17bad | 2020-03-16 11:14:53 +0100 | [diff] [blame] | 32 | - renesas,tpu-r8a7791 # R-Car M2-W |
| 33 | - renesas,tpu-r8a7792 # R-Car V2H |
| 34 | - renesas,tpu-r8a7793 # R-Car M2-N |
| 35 | - renesas,tpu-r8a7794 # R-Car E2 |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 36 | - renesas,tpu-r8a7795 # R-Car H3 |
| 37 | - renesas,tpu-r8a7796 # R-Car M3-W |
Wolfram Sang | 76c40c2 | 2021-10-27 14:29:22 +0200 | [diff] [blame] | 38 | - renesas,tpu-r8a77961 # R-Car M3-W+ |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 39 | - renesas,tpu-r8a77965 # R-Car M3-N |
| 40 | - renesas,tpu-r8a77970 # R-Car V3M |
| 41 | - renesas,tpu-r8a77980 # R-Car V3H |
Duc Nguyen | 8aea22f | 2021-10-27 14:28:09 +0200 | [diff] [blame] | 42 | - renesas,tpu-r8a779a0 # R-Car V3U |
Geert Uytterhoeven | 5031594 | 2022-11-21 17:13:42 +0100 | [diff] [blame] | 43 | - renesas,tpu-r8a779g0 # R-Car V4H |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 44 | - const: renesas,tpu |
| 45 | |
| 46 | reg: |
| 47 | # Base address and length of each memory resource used by the PWM |
| 48 | # controller hardware module. |
| 49 | maxItems: 1 |
| 50 | |
| 51 | interrupts: |
| 52 | maxItems: 1 |
| 53 | |
| 54 | '#pwm-cells': |
Krzysztof Kozlowski | 89650a1e | 2019-10-21 18:02:06 +0200 | [diff] [blame] | 55 | # should be 3. See pwm.yaml in this directory for a description of |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 56 | # the cells format. The only third cell flag supported by this binding is |
| 57 | # PWM_POLARITY_INVERTED. |
| 58 | const: 3 |
| 59 | |
| 60 | clocks: |
| 61 | maxItems: 1 |
| 62 | |
| 63 | power-domains: |
| 64 | maxItems: 1 |
| 65 | |
| 66 | resets: |
| 67 | maxItems: 1 |
| 68 | |
| 69 | required: |
| 70 | - compatible |
| 71 | - reg |
Geert Uytterhoeven | d91133e | 2021-05-10 14:18:34 +0200 | [diff] [blame] | 72 | - clocks |
| 73 | - power-domains |
| 74 | |
| 75 | allOf: |
| 76 | - $ref: pwm.yaml# |
| 77 | |
| 78 | - if: |
| 79 | not: |
| 80 | properties: |
| 81 | compatible: |
| 82 | contains: |
| 83 | enum: |
| 84 | - renesas,tpu-r8a73a4 |
| 85 | - renesas,tpu-r8a7740 |
| 86 | then: |
| 87 | required: |
| 88 | - resets |
Yoshihiro Kaneko | faf66c2 | 2019-09-21 04:36:29 +0900 | [diff] [blame] | 89 | |
| 90 | additionalProperties: false |
| 91 | |
| 92 | examples: |
| 93 | - | |
| 94 | #include <dt-bindings/clock/r8a7740-clock.h> |
| 95 | |
| 96 | tpu: pwm@e6600000 { |
| 97 | compatible = "renesas,tpu-r8a7740", "renesas,tpu"; |
| 98 | reg = <0xe6600000 0x148>; |
| 99 | clocks = <&mstp3_clks R8A7740_CLK_TPU0>; |
| 100 | power-domains = <&pd_a3sp>; |
| 101 | #pwm-cells = <3>; |
| 102 | }; |