xref: /linux/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
12a197ce6SYoshihiro Kaneko# SPDX-License-Identifier: GPL-2.0
22a197ce6SYoshihiro Kaneko%YAML 1.2
32a197ce6SYoshihiro Kaneko---
42a197ce6SYoshihiro Kaneko$id: http://devicetree.org/schemas/pwm/renesas,pwm-rcar.yaml#
52a197ce6SYoshihiro Kaneko$schema: http://devicetree.org/meta-schemas/core.yaml#
62a197ce6SYoshihiro Kaneko
72a197ce6SYoshihiro Kanekotitle: Renesas R-Car PWM Timer Controller
82a197ce6SYoshihiro Kaneko
92a197ce6SYoshihiro Kanekomaintainers:
102a197ce6SYoshihiro Kaneko  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
112a197ce6SYoshihiro Kaneko
122a197ce6SYoshihiro Kanekoproperties:
132a197ce6SYoshihiro Kaneko  compatible:
142a197ce6SYoshihiro Kaneko    items:
152a197ce6SYoshihiro Kaneko      - enum:
163b1954cdSLad Prabhakar          - renesas,pwm-r8a7742   # RZ/G1H
172a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7743   # RZ/G1M
182a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7744   # RZ/G1N
192a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7745   # RZ/G1E
202a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77470  # RZ/G1C
212a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a774a1  # RZ/G2M
2297bb24a6SBiju Das          - renesas,pwm-r8a774b1  # RZ/G2N
232a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a774c0  # RZ/G2E
240142ee3fSMarian-Cristian Rotariu          - renesas,pwm-r8a774e1  # RZ/G2H
252a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7778   # R-Car M1A
262a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7779   # R-Car H1
272a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7790   # R-Car H2
282a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7791   # R-Car M2-W
292a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7794   # R-Car E2
302a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7795   # R-Car H3
312a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a7796   # R-Car M3-W
3207b053ffSYoshihiro Shimoda          - renesas,pwm-r8a77961  # R-Car M3-W+
332a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77965  # R-Car M3-N
342a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77970  # R-Car V3M
352a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77980  # R-Car V3H
362a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77990  # R-Car E3
372a197ce6SYoshihiro Kaneko          - renesas,pwm-r8a77995  # R-Car D3
385442c33fSWolfram Sang          - renesas,pwm-r8a779a0  # R-Car V3U
395719efccSGeert Uytterhoeven          - renesas,pwm-r8a779g0  # R-Car V4H
40*24e529c5SWolfram Sang          - renesas,pwm-r8a779h0  # R-Car V4M
412a197ce6SYoshihiro Kaneko      - const: renesas,pwm-rcar
422a197ce6SYoshihiro Kaneko
432a197ce6SYoshihiro Kaneko  reg:
442a197ce6SYoshihiro Kaneko    # base address and length of the registers block for the PWM.
452a197ce6SYoshihiro Kaneko    maxItems: 1
462a197ce6SYoshihiro Kaneko
472a197ce6SYoshihiro Kaneko  '#pwm-cells':
4889650a1eSKrzysztof Kozlowski    # should be 2. See pwm.yaml in this directory for a description of
492a197ce6SYoshihiro Kaneko    # the cells format.
502a197ce6SYoshihiro Kaneko    const: 2
512a197ce6SYoshihiro Kaneko
522a197ce6SYoshihiro Kaneko  clocks:
532a197ce6SYoshihiro Kaneko    # clock phandle and specifier pair.
542a197ce6SYoshihiro Kaneko    maxItems: 1
552a197ce6SYoshihiro Kaneko
562a197ce6SYoshihiro Kaneko  power-domains:
572a197ce6SYoshihiro Kaneko    maxItems: 1
582a197ce6SYoshihiro Kaneko
592a197ce6SYoshihiro Kaneko  resets:
602a197ce6SYoshihiro Kaneko    maxItems: 1
612a197ce6SYoshihiro Kaneko
622a197ce6SYoshihiro Kanekorequired:
632a197ce6SYoshihiro Kaneko  - compatible
642a197ce6SYoshihiro Kaneko  - reg
652a197ce6SYoshihiro Kaneko  - clocks
664fa9ee2eSGeert Uytterhoeven  - power-domains
674fa9ee2eSGeert Uytterhoeven
6884b3b8dfSKrzysztof KozlowskiallOf:
6984b3b8dfSKrzysztof Kozlowski  - $ref: pwm.yaml#
7084b3b8dfSKrzysztof Kozlowski
7184b3b8dfSKrzysztof Kozlowski  - if:
724fa9ee2eSGeert Uytterhoeven      not:
734fa9ee2eSGeert Uytterhoeven        properties:
744fa9ee2eSGeert Uytterhoeven          compatible:
754fa9ee2eSGeert Uytterhoeven            contains:
764fa9ee2eSGeert Uytterhoeven              enum:
774fa9ee2eSGeert Uytterhoeven                - renesas,pwm-r8a7778
784fa9ee2eSGeert Uytterhoeven                - renesas,pwm-r8a7779
794fa9ee2eSGeert Uytterhoeven    then:
804fa9ee2eSGeert Uytterhoeven      required:
814fa9ee2eSGeert Uytterhoeven        - resets
822a197ce6SYoshihiro Kaneko
832a197ce6SYoshihiro KanekoadditionalProperties: false
842a197ce6SYoshihiro Kaneko
852a197ce6SYoshihiro Kanekoexamples:
862a197ce6SYoshihiro Kaneko  - |
872a197ce6SYoshihiro Kaneko    #include <dt-bindings/clock/r8a7743-cpg-mssr.h>
882a197ce6SYoshihiro Kaneko    #include <dt-bindings/power/r8a7743-sysc.h>
892a197ce6SYoshihiro Kaneko
902a197ce6SYoshihiro Kaneko    pwm0: pwm@e6e30000 {
912a197ce6SYoshihiro Kaneko        compatible = "renesas,pwm-r8a7743", "renesas,pwm-rcar";
92fba56184SRob Herring        reg = <0xe6e30000 0x8>;
932a197ce6SYoshihiro Kaneko        clocks = <&cpg CPG_MOD 523>;
942a197ce6SYoshihiro Kaneko        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
952a197ce6SYoshihiro Kaneko        resets = <&cpg 523>;
962a197ce6SYoshihiro Kaneko        #pwm-cells = <2>;
972a197ce6SYoshihiro Kaneko        pinctrl-0 = <&pwm0_pins>;
982a197ce6SYoshihiro Kaneko        pinctrl-names = "default";
992a197ce6SYoshihiro Kaneko    };
100