xref: /freebsd/sys/contrib/device-tree/Bindings/mips/ingenic/ingenic,cpu.yaml (revision 3110d4ebd6c0848cf5e25890d01791bb407e2a9b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mips/ingenic/ingenic,cpu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Bindings for Ingenic XBurst family CPUs
8
9maintainers:
10  - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
11
12description:
13  Ingenic XBurst family CPUs shall have the following properties.
14
15properties:
16  compatible:
17    oneOf:
18
19      - description: Ingenic XBurst®1 CPU Cores
20        enum:
21          - ingenic,xburst-mxu1.0
22          - ingenic,xburst-fpu1.0-mxu1.1
23          - ingenic,xburst-fpu2.0-mxu2.0
24
25      - description: Ingenic XBurst®2 CPU Cores
26        enum:
27          - ingenic,xburst2-fpu2.1-mxu2.1-smt
28
29  reg:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35required:
36  - device_type
37  - compatible
38  - reg
39  - clocks
40
41examples:
42  - |
43    #include <dt-bindings/clock/jz4780-cgu.h>
44
45    cpus {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        cpu0: cpu@0 {
50                device_type = "cpu";
51                compatible = "ingenic,xburst-fpu1.0-mxu1.1";
52                reg = <0>;
53
54                clocks = <&cgu JZ4780_CLK_CPU>;
55                clock-names = "cpu";
56        };
57
58        cpu1: cpu@1 {
59                device_type = "cpu";
60                compatible = "ingenic,xburst-fpu1.0-mxu1.1";
61                reg = <1>;
62
63                clocks = <&cgu JZ4780_CLK_CORE1>;
64                clock-names = "cpu";
65        };
66    };
67...
68