brintos

brintos / linux-shallow public Read only

0
0
Text · 2.5 KiB · a4dfa09 Raw
104 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas R-Car Timer Pulse Unit PWM Controller8 9maintainers:10  - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>11 12select:13  properties:14    compatible:15      contains:16        const: renesas,tpu17  required:18    - compatible19    - '#pwm-cells'20 21properties:22  compatible:23    items:24      - enum:25          - renesas,tpu-r8a73a4   # R-Mobile APE626          - renesas,tpu-r8a7740   # R-Mobile A127          - renesas,tpu-r8a7742   # RZ/G1H28          - renesas,tpu-r8a7743   # RZ/G1M29          - renesas,tpu-r8a7744   # RZ/G1N30          - renesas,tpu-r8a7745   # RZ/G1E31          - renesas,tpu-r8a7790   # R-Car H232          - renesas,tpu-r8a7791   # R-Car M2-W33          - renesas,tpu-r8a7792   # R-Car V2H34          - renesas,tpu-r8a7793   # R-Car M2-N35          - renesas,tpu-r8a7794   # R-Car E236          - renesas,tpu-r8a7795   # R-Car H337          - renesas,tpu-r8a7796   # R-Car M3-W38          - renesas,tpu-r8a77961  # R-Car M3-W+39          - renesas,tpu-r8a77965  # R-Car M3-N40          - renesas,tpu-r8a77970  # R-Car V3M41          - renesas,tpu-r8a77980  # R-Car V3H42          - renesas,tpu-r8a779a0  # R-Car V3U43          - renesas,tpu-r8a779g0  # R-Car V4H44          - renesas,tpu-r8a779h0  # R-Car V4M45      - const: renesas,tpu46 47  reg:48    # Base address and length of each memory resource used by the PWM49    # controller hardware module.50    maxItems: 151 52  interrupts:53    maxItems: 154 55  '#pwm-cells':56    # should be 3. See pwm.yaml in this directory for a description of57    # the cells format. The only third cell flag supported by this binding is58    # PWM_POLARITY_INVERTED.59    const: 360 61  clocks:62    maxItems: 163 64  power-domains:65    maxItems: 166 67  resets:68    maxItems: 169 70required:71  - compatible72  - reg73  - clocks74  - power-domains75 76allOf:77  - $ref: pwm.yaml#78 79  - if:80      not:81        properties:82          compatible:83            contains:84              enum:85                - renesas,tpu-r8a73a486                - renesas,tpu-r8a774087    then:88      required:89        - resets90 91additionalProperties: false92 93examples:94  - |95    #include <dt-bindings/clock/r8a7740-clock.h>96 97    tpu: pwm@e6600000 {98        compatible = "renesas,tpu-r8a7740", "renesas,tpu";99        reg = <0xe6600000 0x148>;100        clocks = <&mstp3_clks R8A7740_CLK_TPU0>;101        power-domains = <&pd_a3sp>;102        #pwm-cells = <3>;103    };104