Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/bus/allwinner,sun8i-a23-rsb.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Allwinner A23 RSB |
| 8 | |
| 9 | maintainers: |
| 10 | - Chen-Yu Tsai <wens@csie.org> |
| 11 | - Maxime Ripard <mripard@kernel.org> |
| 12 | |
| 13 | properties: |
| 14 | "#address-cells": |
| 15 | const: 1 |
| 16 | |
| 17 | "#size-cells": |
| 18 | const: 0 |
| 19 | |
| 20 | compatible: |
| 21 | oneOf: |
| 22 | - const: allwinner,sun8i-a23-rsb |
| 23 | - items: |
| 24 | - enum: |
| 25 | - allwinner,sun8i-a83t-rsb |
| 26 | - allwinner,sun50i-h616-rsb |
| 27 | - const: allwinner,sun8i-a23-rsb |
| 28 | |
| 29 | reg: |
| 30 | maxItems: 1 |
| 31 | |
| 32 | interrupts: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | clocks: |
| 36 | maxItems: 1 |
| 37 | |
| 38 | resets: |
| 39 | maxItems: 1 |
| 40 | |
| 41 | clock-frequency: |
| 42 | minimum: 1 |
| 43 | maximum: 20000000 |
| 44 | |
| 45 | patternProperties: |
| 46 | "^.*@[0-9a-fA-F]+$": |
| 47 | type: object |
| 48 | additionalProperties: true |
| 49 | properties: |
| 50 | reg: |
| 51 | maxItems: 1 |
| 52 | |
| 53 | required: |
| 54 | - reg |
| 55 | |
| 56 | required: |
| 57 | - compatible |
| 58 | - reg |
| 59 | - interrupts |
| 60 | - clocks |
| 61 | - resets |
| 62 | |
| 63 | examples: |
| 64 | - | |
| 65 | rsb@1f03400 { |
| 66 | compatible = "allwinner,sun8i-a23-rsb"; |
| 67 | reg = <0x01f03400 0x400>; |
| 68 | interrupts = <0 39 4>; |
| 69 | clocks = <&apb0_gates 3>; |
| 70 | clock-frequency = <3000000>; |
| 71 | resets = <&apb0_rst 3>; |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
| 74 | |
| 75 | pmic@3e3 { |
| 76 | reg = <0x3e3>; |
| 77 | |
| 78 | /* ... */ |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | additionalProperties: false |