~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/memory-controllers/arm,pl172.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 * Device tree bindings for ARM PL172/PL175/PL176 MultiPort Memory Controller
  2 
  3 Required properties:
  4 
  5 - compatible:           Must be "arm,primecell" and exactly one from
  6                         "arm,pl172", "arm,pl175" or "arm,pl176".
  7 
  8 - reg:                  Must contains offset/length value for controller.
  9 
 10 - #address-cells:       Must be 2. The partition number has to be encoded in the
 11                         first address cell and it may accept values 0..N-1
 12                         (N - total number of partitions). The second cell is the
 13                         offset into the partition.
 14 
 15 - #size-cells:          Must be set to 1.
 16 
 17 - ranges:               Must contain one or more chip select memory regions.
 18 
 19 - clocks:               Must contain references to controller clocks.
 20 
 21 - clock-names:          Must contain "mpmcclk" and "apb_pclk".
 22 
 23 - clock-ranges:         Empty property indicating that child nodes can inherit
 24                         named clocks. Required only if clock tree data present
 25                         in device tree.
 26                         See clock-bindings.txt
 27 
 28 Child chip-select (cs) nodes contain the memory devices nodes connected to
 29 such as NOR (e.g. cfi-flash) and NAND.
 30 
 31 Required child cs node properties:
 32 
 33 - #address-cells:       Must be 2.
 34 
 35 - #size-cells:          Must be 1.
 36 
 37 - ranges:               Empty property indicating that child nodes can inherit
 38                         memory layout.
 39 
 40 - clock-ranges:         Empty property indicating that child nodes can inherit
 41                         named clocks. Required only if clock tree data present
 42                         in device tree.
 43 
 44 - mpmc,cs:              Chip select number. Indicates to the pl0172 driver
 45                         which chipselect is used for accessing the memory.
 46 
 47 - mpmc,memory-width:    Width of the chip select memory. Must be equal to
 48                         either 8, 16 or 32.
 49 
 50 Optional child cs node config properties:
 51 
 52 - mpmc,async-page-mode: Enable asynchronous page mode.
 53 
 54 - mpmc,cs-active-high:  Set chip select polarity to active high.
 55 
 56 - mpmc,byte-lane-low:   Set byte lane state to low.
 57 
 58 - mpmc,extended-wait:   Enable extended wait.
 59 
 60 - mpmc,buffer-enable:   Enable write buffer, option is not supported by
 61                         PL175 and PL176 controllers.
 62 
 63 - mpmc,write-protect:   Enable write protect.
 64 
 65 Optional child cs node timing properties:
 66 
 67 - mpmc,write-enable-delay:      Delay from chip select assertion to write
 68                                 enable (WE signal) in nano seconds.
 69 
 70 - mpmc,output-enable-delay:     Delay from chip select assertion to output
 71                                 enable (OE signal) in nano seconds.
 72 
 73 - mpmc,write-access-delay:      Delay from chip select assertion to write
 74                                 access in nano seconds.
 75 
 76 - mpmc,read-access-delay:       Delay from chip select assertion to read
 77                                 access in nano seconds.
 78 
 79 - mpmc,page-mode-read-delay:    Delay for asynchronous page mode sequential
 80                                 accesses in nano seconds.
 81 
 82 - mpmc,turn-round-delay:        Delay between access to memory banks in nano
 83                                 seconds.
 84 
 85 If any of the above timing parameters are absent, current parameter value will
 86 be taken from the corresponding HW reg.
 87 
 88 Example for pl172 with nor flash on chip select 0 shown below.
 89 
 90 emc: memory-controller@40005000 {
 91         compatible = "arm,pl172", "arm,primecell";
 92         reg = <0x40005000 0x1000>;
 93         clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>;
 94         clock-names = "mpmcclk", "apb_pclk";
 95         #address-cells = <2>;
 96         #size-cells = <1>;
 97         ranges = <0 0 0x1c000000 0x1000000
 98                   1 0 0x1d000000 0x1000000
 99                   2 0 0x1e000000 0x1000000
100                   3 0 0x1f000000 0x1000000>;
101 
102         cs0 {
103                 #address-cells = <2>;
104                 #size-cells = <1>;
105                 ranges;
106 
107                 mpmc,cs = <0>;
108                 mpmc,memory-width = <16>;
109                 mpmc,byte-lane-low;
110                 mpmc,write-enable-delay = <0>;
111                 mpmc,output-enable-delay = <0>;
112                 mpmc,read-enable-delay = <70>;
113                 mpmc,page-mode-read-delay = <70>;
114 
115                 flash@0,0 {
116                         compatible = "sst,sst39vf320", "cfi-flash";
117                         reg = <0 0 0x400000>;
118                         bank-width = <2>;
119                         #address-cells = <1>;
120                         #size-cells = <1>;
121                         partition@0 {
122                                 label = "data";
123                                 reg = <0 0x400000>;
124                         };
125                 };
126         };
127 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php