xref: /freebsd/sys/contrib/device-tree/Bindings/clock/mediatek,mtmips-sysc.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*f126890aSEmmanuel Vadot%YAML 1.2
3*f126890aSEmmanuel Vadot---
4*f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/mediatek,mtmips-sysc.yaml#
5*f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadottitle: MTMIPS SoCs System Controller
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadotmaintainers:
10*f126890aSEmmanuel Vadot  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadotdescription: |
13*f126890aSEmmanuel Vadot  MediaTek MIPS and Ralink SoCs provides a system controller to allow
14*f126890aSEmmanuel Vadot  to access to system control registers. These registers include clock
15*f126890aSEmmanuel Vadot  and reset related ones so this node is both clock and reset provider
16*f126890aSEmmanuel Vadot  for the rest of the world.
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot  These SoCs have an XTAL from where the cpu clock is
19*f126890aSEmmanuel Vadot  provided as well as derived clocks for the bus and the peripherals.
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadotproperties:
22*f126890aSEmmanuel Vadot  compatible:
23*f126890aSEmmanuel Vadot    items:
24*f126890aSEmmanuel Vadot      - enum:
25*f126890aSEmmanuel Vadot          - ralink,mt7620-sysc
26*f126890aSEmmanuel Vadot          - ralink,mt7628-sysc
27*f126890aSEmmanuel Vadot          - ralink,mt7688-sysc
28*f126890aSEmmanuel Vadot          - ralink,rt2880-sysc
29*f126890aSEmmanuel Vadot          - ralink,rt3050-sysc
30*f126890aSEmmanuel Vadot          - ralink,rt3052-sysc
31*f126890aSEmmanuel Vadot          - ralink,rt3352-sysc
32*f126890aSEmmanuel Vadot          - ralink,rt3883-sysc
33*f126890aSEmmanuel Vadot          - ralink,rt5350-sysc
34*f126890aSEmmanuel Vadot      - const: syscon
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot  reg:
37*f126890aSEmmanuel Vadot    maxItems: 1
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot  '#clock-cells':
40*f126890aSEmmanuel Vadot    description:
41*f126890aSEmmanuel Vadot      The first cell indicates the clock number.
42*f126890aSEmmanuel Vadot    const: 1
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot  '#reset-cells':
45*f126890aSEmmanuel Vadot    description:
46*f126890aSEmmanuel Vadot      The first cell indicates the reset bit within the register.
47*f126890aSEmmanuel Vadot    const: 1
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadotrequired:
50*f126890aSEmmanuel Vadot  - compatible
51*f126890aSEmmanuel Vadot  - reg
52*f126890aSEmmanuel Vadot  - '#clock-cells'
53*f126890aSEmmanuel Vadot  - '#reset-cells'
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel VadotadditionalProperties: false
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadotexamples:
58*f126890aSEmmanuel Vadot  - |
59*f126890aSEmmanuel Vadot    syscon@0 {
60*f126890aSEmmanuel Vadot      compatible = "ralink,rt5350-sysc", "syscon";
61*f126890aSEmmanuel Vadot      reg = <0x0 0x100>;
62*f126890aSEmmanuel Vadot      #clock-cells = <1>;
63*f126890aSEmmanuel Vadot      #reset-cells = <1>;
64*f126890aSEmmanuel Vadot    };
65