]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dts/bindings-localbus.txt
libevent: Import libevent 2.1.12
[FreeBSD/FreeBSD.git] / sys / dts / bindings-localbus.txt
1
2 Marvell Device bus (localbus) configuration.
3 ============================================
4
5 1. Properties for localbus nodes
6
7 1.1 ranges
8
9 Property:       ranges
10
11 Value type:     <prop-encoded-array> encoded as arbitrary number of localbus 
12                 nodes specifiers.
13                 
14 Description:    ranges property defines values used for mapping devices 
15                 connected to localbus, in Marvell devices it is used also for 
16                 setting decoding windows. 
17                 
18                 a) child node address-cells:
19                    - first cell: number of bank (chip select) 
20                    - second cell: (Marvell devices) Target ID for decoding
21                         windows setup
22                         
23                 b) parent node address cells:
24                    - address offset: used with parent's node base address to 
25                         specify base address of mapped device
26                 
27                 c) child node size-cells:
28                    - size: defines amount of memory that should be reserved for
29                         device      
30                         
31 1.2 bank-count
32
33 Property:       bank-count
34
35 Value type:     <u32>   
36
37 Description:    The bank_count property defines maximum number of banks on
38                 localbus node. Bank is most often interpreted as device chip
39                 select, but may also describe another device (e.g. SPI flash).  
40                 
41 1.3 Example
42
43         localbus@0 {
44                 #address-cells = <2>;
45                 #size-cells = <1>;
46                 compatible = "mrvl,lbc";
47                 bank-count = <5>;
48
49                 /* This reflects CPU decode windows setup. */
50                 ranges = <0x0 0x2f 0xb2200000 0x00100000
51                           0x1 0x3e 0xb2100000 0x00100000
52                           0x2 0x3d 0xb0000000 0x02000000
53                           0x3 0x3b 0xb2000000 0x00100000>;
54         };
55
56 2. Properties for localbus consumer nodes:
57
58 2.1 reg
59
60 Property:       reg
61
62 Value type:     <prop-encoded-array>
63
64 Description:    A standard property required for localbus child nodes. Defines 
65                 the device memory region.
66                 
67                 a) first cell: number of bank (chip select)
68                 
69                 b) address offset: used with address offset from parent's ranges
70                         for corresponding bank to specify base address of 
71                         the device
72                         
73                 c) size: defines size of the device memory region
74                 
75 2.2 Example
76
77         nor@0,0 {
78                 #address-cells = <1>;
79                 #size-cells = <1>;
80                 compatible = "cfi-flash";
81                 reg = <0x0 0x0 0x00100000>;
82         };