xref: /freebsd/sys/contrib/device-tree/Bindings/bus/allwinner,sun8i-a23-rsb.yaml (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
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
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          - 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
45patternProperties:
46  "^.*@[0-9a-fA-F]+$":
47    type: object
48    additionalProperties: true
49    properties:
50      reg:
51        maxItems: 1
52
53    required:
54      - reg
55
56required:
57  - compatible
58  - reg
59  - interrupts
60  - clocks
61  - resets
62
63examples:
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
82additionalProperties: false
83