brintos

brintos / linux-shallow public Read only

0
0
Text · 3.4 KiB · acbb6f8 Raw
160 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: TI dual-mode timer8 9maintainers:10  - Tony Lindgren <tony@atomide.com>11 12description: |13  The TI dual-mode timer is a general purpose timer with PWM capabilities.14 15properties:16  compatible:17    oneOf:18      - items:19          - enum:20              - ti,am335x-timer21              - ti,am335x-timer-1ms22              - ti,am654-timer23              - ti,dm814-timer24              - ti,dm816-timer25              - ti,omap2420-timer26              - ti,omap3430-timer27              - ti,omap4430-timer28              - ti,omap5430-timer29      - items:30          - const: ti,am4372-timer31          - const: ti,am335x-timer32      - items:33          - const: ti,am4372-timer-1ms34          - const: ti,am335x-timer-1ms35 36  reg:37    items:38      - description: IO address39      - description: L3 to L4 mapping for omap4/5 L4 ABE40    minItems: 141 42  clocks:43    items:44      - description: Functional clock45      - description: System clock for omap4/5 and dra746    minItems: 147 48  clock-names:49    items:50      - const: fck51      - const: timer_sys_ck52    minItems: 153 54  power-domains:55    description:56      Power domain if available57    maxItems: 158 59  interrupts:60    description:61      Interrupt if available. The timer PWM features may be usable62      in a limited way even without interrupts.63    maxItems: 164 65  ti,timer-alwon:66    description:67      Timer is always enabled when the SoC is powered. Note that some SoCs like68      am335x can suspend to PM coprocessor RTC only mode and in that case the69      SoC power is cut including timers.70    type: boolean71 72  ti,timer-dsp:73    description:74      Timer is routable to the DSP in addition to the operating system.75    type: boolean76 77  ti,timer-pwm:78    description:79      Timer has been wired for PWM capability.80    type: boolean81 82  ti,timer-secure:83    description:84      Timer access has been limited to secure mode only.85    type: boolean86 87  ti,hwmods:88    description:89      Name of the HWMOD associated with timer. This is for legacy90      omap2/3 platforms only.91    $ref: /schemas/types.yaml#/definitions/string92    deprecated: true93 94required:95  - compatible96  - reg97 98additionalProperties: false99 100allOf:101  - if:102      properties:103        compatible:104          contains:105            const: ti,am654-timer106    then:107      required:108        - power-domains109    else:110      required:111        - interrupts112 113  - if:114      not:115        properties:116          compatible:117            contains:118              enum:119                - ti,omap3430-timer120                - ti,omap4430-timer121                - ti,omap5430-timer122    then:123      properties:124        reg:125          maxItems: 1126        clocks:127          maxItems: 1128        clock-names:129          maxItems: 1130 131  - if:132      properties:133        compatible:134          contains:135            enum:136              - ti,dm814-timer137              - ti,dm816-timer138              - ti,omap2420-timer139              - ti,omap3430-timer140    then:141      properties:142        ti,hwmods:143          items:144            - pattern: "^timer([1-9]|1[0-2])$"145    else:146      properties:147        ti,hwmods: false148 149examples:150  - |151    timer1: timer@0 {152      compatible = "ti,am335x-timer-1ms";153      reg = <0x0 0x400>;154      interrupts = <67>;155      ti,timer-alwon;156      clocks = <&timer1_fck>;157      clock-names = "fck";158    };159...160