Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/timer/thead,c900-aclint-mtimer.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Sophgo CLINT Timer |
| 8 | |
| 9 | maintainers: |
| 10 | - Inochi Amaoto <inochiama@outlook.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | items: |
| 15 | - enum: |
| 16 | - sophgo,sg2042-aclint-mtimer |
| 17 | - const: thead,c900-aclint-mtimer |
| 18 | |
| 19 | reg: |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 20 | items: |
| 21 | - description: MTIMECMP Registers |
| 22 | |
| 23 | reg-names: |
| 24 | items: |
| 25 | - const: mtimecmp |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 26 | |
| 27 | interrupts-extended: |
| 28 | minItems: 1 |
| 29 | maxItems: 4095 |
| 30 | |
| 31 | additionalProperties: false |
| 32 | |
| 33 | required: |
| 34 | - compatible |
| 35 | - reg |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 36 | - reg-names |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 37 | - interrupts-extended |
| 38 | |
| 39 | examples: |
| 40 | - | |
| 41 | timer@ac000000 { |
| 42 | compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; |
| 43 | interrupts-extended = <&cpu1intc 7>, |
| 44 | <&cpu2intc 7>, |
| 45 | <&cpu3intc 7>, |
| 46 | <&cpu4intc 7>; |
| 47 | reg = <0xac000000 0x00010000>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 48 | reg-names = "mtimecmp"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 49 | }; |
| 50 | ... |