1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-mioctrl.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Socionext UniPhier media I/O block (MIO) controller
8
9maintainers:
10  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
11
12description: |+
13  Media I/O block implemented on Socionext UniPhier SoCs is a legacy
14  integrated component of the stream type peripherals including USB2.0,
15  SD/eMMC, and MIO-DMAC.
16  Media I/O block has a common logic to control the component.
17
18  Recent SoCs have SD interface logic specialized only for SD functions
19  as a subset of media I/O block. See socionext,uniphier-sdctrl.yaml.
20
21properties:
22  compatible:
23    items:
24      - enum:
25          - socionext,uniphier-ld4-mioctrl
26          - socionext,uniphier-pro4-mioctrl
27          - socionext,uniphier-sld8-mioctrl
28          - socionext,uniphier-ld11-mioctrl
29      - const: simple-mfd
30      - const: syscon
31
32  reg:
33    maxItems: 1
34
35  clock-controller:
36    $ref: /schemas/clock/socionext,uniphier-clock.yaml#
37
38  reset-controller:
39    $ref: /schemas/reset/socionext,uniphier-reset.yaml#
40
41required:
42  - compatible
43  - reg
44
45additionalProperties: false
46
47examples:
48  - |
49    syscon@5b3e0000 {
50        compatible = "socionext,uniphier-ld11-mioctrl",
51                     "simple-mfd", "syscon";
52        reg = <0x5b3e0000 0x800>;
53
54        clock-controller {
55            compatible = "socionext,uniphier-ld11-mio-clock";
56            #clock-cells = <1>;
57        };
58
59        reset-controller {
60            compatible = "socionext,uniphier-ld11-mio-reset";
61            #reset-cells = <1>;
62            resets = <&sys_rst 7>;
63        };
64    };
65
66