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
7title: Allwinner A23 RSB Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
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        - const: allwinner,sun8i-a83t-rsb
25        - const: allwinner,sun8i-a23-rsb
26
27  reg:
28    maxItems: 1
29
30  interrupts:
31    maxItems: 1
32
33  clocks:
34    maxItems: 1
35
36  resets:
37    maxItems: 1
38
39  clock-frequency:
40    minimum: 1
41    maximum: 20000000
42
43patternProperties:
44  "^.*@[0-9a-fA-F]+$":
45    type: object
46    properties:
47      reg:
48        maxItems: 1
49
50    required:
51      - reg
52
53required:
54  - compatible
55  - reg
56  - interrupts
57  - clocks
58  - resets
59
60examples:
61  - |
62    rsb@1f03400 {
63        compatible = "allwinner,sun8i-a23-rsb";
64        reg = <0x01f03400 0x400>;
65        interrupts = <0 39 4>;
66        clocks = <&apb0_gates 3>;
67        clock-frequency = <3000000>;
68        resets = <&apb0_rst 3>;
69        #address-cells = <1>;
70        #size-cells = <0>;
71
72        pmic@3e3 {
73            reg = <0x3e3>;
74
75            /* ... */
76        };
77    };
78
79additionalProperties: false
80