xref: /freebsd/sys/contrib/device-tree/Bindings/nds32/cpus.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Andestech Processor Binding
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis binding specifies what properties must be available in the device tree
4*c66ec88fSEmmanuel Vadotrepresentation of a Andestech Processor Core, which is the root node in the
5*c66ec88fSEmmanuel Vadottree.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot	- compatible:
10*c66ec88fSEmmanuel Vadot		Usage: required
11*c66ec88fSEmmanuel Vadot		Value type: <string>
12*c66ec88fSEmmanuel Vadot		Definition: Should be "andestech,<core_name>", "andestech,nds32v3" as fallback.
13*c66ec88fSEmmanuel Vadot		Must contain "andestech,nds32v3" as the most generic value, in addition to
14*c66ec88fSEmmanuel Vadot		one of the following identifiers for a particular CPU core:
15*c66ec88fSEmmanuel Vadot		"andestech,n13"
16*c66ec88fSEmmanuel Vadot		"andestech,n15"
17*c66ec88fSEmmanuel Vadot		"andestech,d15"
18*c66ec88fSEmmanuel Vadot		"andestech,n10"
19*c66ec88fSEmmanuel Vadot		"andestech,d10"
20*c66ec88fSEmmanuel Vadot	- device_type
21*c66ec88fSEmmanuel Vadot		Usage: required
22*c66ec88fSEmmanuel Vadot		Value type: <string>
23*c66ec88fSEmmanuel Vadot		Definition: must be "cpu"
24*c66ec88fSEmmanuel Vadot	- reg: Contains CPU index.
25*c66ec88fSEmmanuel Vadot	- clock-frequency: Contains the clock frequency for CPU, in Hz.
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot* Examples
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel Vadot/ {
30*c66ec88fSEmmanuel Vadot	cpus {
31*c66ec88fSEmmanuel Vadot		cpu@0 {
32*c66ec88fSEmmanuel Vadot			device_type = "cpu";
33*c66ec88fSEmmanuel Vadot			compatible = "andestech,n13", "andestech,nds32v3";
34*c66ec88fSEmmanuel Vadot			reg = <0x0>;
35*c66ec88fSEmmanuel Vadot			clock-frequency = <60000000>
36*c66ec88fSEmmanuel Vadot		};
37*c66ec88fSEmmanuel Vadot	};
38*c66ec88fSEmmanuel Vadot};
39