1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/memory-controllers/arm,pl35x-smc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Arm PL35x Series Static Memory Controller (SMC)
10 - Miquel Raynal <miquel.raynal@bootlin.com>
11 - Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
14 The PL35x Static Memory Controller is a bus where you can connect two kinds
15 of memory interfaces, which are NAND and memory mapped interfaces (such as
16 SRAM or NOR) depending on the specific configuration.
18 The TRM is available here:
19 https://documentation-service.arm.com/static/5e8e2524fd977155116a58aa
21 # We need a select here so we don't match all nodes with 'arm,primecell'
34 pattern: "^memory-controller@[0-9a-f]+$"
41 - const: arm,primecell
52 Configuration registers for the host and sub-controllers.
53 The three chip select regions are defined in 'ranges'.
70 - description: Combined or Memory interface 0 IRQ
71 - description: Memory interface 1 IRQ
77 The child device node represents the controller connected to the SMC
78 bus. The controller can be a NAND controller or a pair of any memory
79 mapped controllers such as NOR and SRAM controllers.
84 Compatible of memory controller.
90 Chip-select ID, as in the parent range property.
94 Offset of the memory region requested by the device.
96 Length of the memory region requested by the device.
108 additionalProperties: false
119 # According to TRM, really should be 3 clocks
129 - description: clock for the memory device bus
130 - description: main clock of the SMC
139 smcc: memory-controller@e000e000 {
140 compatible = "arm,pl353-smc-r2p1", "arm,primecell";
141 reg = <0xe000e000 0x0001000>;
142 clock-names = "memclk", "apb_pclk";
143 clocks = <&clkc 11>, <&clkc 44>;
144 ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
145 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
146 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
147 #address-cells = <2>;
150 nfc0: nand-controller@0,0 {
151 compatible = "arm,pl353-nand-r2p1";
152 reg = <0 0 0x1000000>;
153 #address-cells = <1>;