# C-SKY CPU Bindings

_Peios Kernel / Hardware and drivers / Device tree / bindings/csky_

> Device-tree binding reference for C-SKY CPU Bindings.

---

The device tree allows to describe the layout of CPUs in a system through
the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
defining properties for every cpu.

Only SMP system need to care about the cpus node and single processor
needn't define cpus node at all.

---

## cpus and cpu node bindings definition

- cpus node

```text
	Description: Container of cpu nodes
```

```text
	The node name must be "cpus".
```

## A cpus node must define the following properties:

- #address-cells
  Usage: required
  Value type: &lt;u32&gt;
  Definition: must be set to 1
- #size-cells
  Usage: required
  Value type: &lt;u32&gt;
  Definition: must be set to 0

- cpu node

```text
	Description: Describes one of SMP cores
```

```text
	PROPERTIES
```

- device\_type
  Usage: required
  Value type: &lt;string&gt;
  Definition: must be "cpu"
- reg
  Usage: required
  Value type: &lt;u32&gt;
  Definition: CPU index
- compatible:
  Usage: required
  Value type: &lt;string&gt;
  Definition: must contain "csky", eg:
  "csky,610"
  "csky,807"
  "csky,810"
  "csky,860"

## Example:

```dts
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;
		cpu@0 {
			device_type = "cpu";
			reg = <0>;
			status = "ok";
		};

		cpu@1 {
			device_type = "cpu";
			reg = <1>;
			status = "ok";
		};
	};
```
