summaryrefslogtreecommitdiff
path: root/src/cmem/module/kernel/Documentation/device-tree/bindings/cmem/ti,cmem.txt
blob: 04db67814b37ffec41a6f244165b94191d56008e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CMEM module

This file provides information about, what the device tree entry for the
cmem kernel module device should contain.  The entries specify the memory
region for cmem blocks and pools allocated in each region.

Required properties:
- compatible : "ti,cmem"
- #address-cells: Specifies the number of cells used to represent
	the reg address entry. Set to 1. Must be present if the device has
	sub-nodes.
- #size-cells: Specifies the number of cells used to represent
	the reg size entry. Set to 0. Must be present if the device has
	sub-nodes
- #pool-size-cells: Specifies the number of cells used to represent
	the size of pool
- reg: region/block number
- memory-region: Point to reserved memory block node, with standard 
	reserved-memory properties
- cmem-buf-pools: Specify the number of pools and sizes each pools
	<num_pools size1 size2...>

Optional properties:

Example:

        reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;

                cmem_block_mem_0: cmem_block_mem@a0000000 {
                        reg = <0x0 0xa0000000 0x0 0x0c000000>;
                        no-map;
                        status = "okay";
                };

		cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
			reg = <0x0 0x40500000 0x0 0x100000>;
			no-map;
			status = "okay";
		};
        };

        cmem {
                compatible = "ti,cmem";
                #address-cells = <1>;
                #size-cells = <0>;

		#pool-size-cells = <2>;

                status = "okay";

                cmem_block_0: cmem_block@0 {
                        reg = <0>;
                        memory-region = <&cmem_block_mem_0>;
                        cmem-buf-pools = <1 0x0 0x0c000000>;
                };

		cmem_block_1: cmem_block@1 {
			reg = <1>;
			memory-region = <&cmem_block_mem_1_ocmc3>;
		};
        };