18c2ecf20Sopenharmony_ciDevice tree bindings for ARM PL353 static memory controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciPL353 static memory controller supports two kinds of memory 48c2ecf20Sopenharmony_ciinterfaces.i.e NAND and SRAM/NOR interfaces. 58c2ecf20Sopenharmony_ciThe actual devices are instantiated from the child nodes of pl353 smc node. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciRequired properties: 88c2ecf20Sopenharmony_ci- compatible : Should be "arm,pl353-smc-r2p1", "arm,primecell". 98c2ecf20Sopenharmony_ci- reg : Controller registers map and length. 108c2ecf20Sopenharmony_ci- clock-names : List of input clock names - "memclk", "apb_pclk" 118c2ecf20Sopenharmony_ci (See clock bindings for details). 128c2ecf20Sopenharmony_ci- clocks : Clock phandles (see clock bindings for details). 138c2ecf20Sopenharmony_ci- address-cells : Must be 2. 148c2ecf20Sopenharmony_ci- size-cells : Must be 1. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciChild nodes: 178c2ecf20Sopenharmony_ci For NAND the "arm,pl353-nand-r2p1" and for NOR the "cfi-flash" drivers are 188c2ecf20Sopenharmony_cisupported as child nodes. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cifor NAND partition information please refer the below file 218c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/mtd/partition.txt 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciExample: 248c2ecf20Sopenharmony_ci smcc: memory-controller@e000e000 258c2ecf20Sopenharmony_ci compatible = "arm,pl353-smc-r2p1", "arm,primecell"; 268c2ecf20Sopenharmony_ci clock-names = "memclk", "apb_pclk"; 278c2ecf20Sopenharmony_ci clocks = <&clkc 11>, <&clkc 44>; 288c2ecf20Sopenharmony_ci reg = <0xe000e000 0x1000>; 298c2ecf20Sopenharmony_ci #address-cells = <2>; 308c2ecf20Sopenharmony_ci #size-cells = <1>; 318c2ecf20Sopenharmony_ci ranges = <0x0 0x0 0xe1000000 0x1000000 //Nand CS Region 328c2ecf20Sopenharmony_ci 0x1 0x0 0xe2000000 0x2000000 //SRAM/NOR CS Region 338c2ecf20Sopenharmony_ci 0x2 0x0 0xe4000000 0x2000000>; //SRAM/NOR CS Region 348c2ecf20Sopenharmony_ci nand_0: flash@e1000000 { 358c2ecf20Sopenharmony_ci compatible = "arm,pl353-nand-r2p1" 368c2ecf20Sopenharmony_ci reg = <0 0 0x1000000>; 378c2ecf20Sopenharmony_ci (...) 388c2ecf20Sopenharmony_ci }; 398c2ecf20Sopenharmony_ci nor0: flash@e2000000 { 408c2ecf20Sopenharmony_ci compatible = "cfi-flash"; 418c2ecf20Sopenharmony_ci reg = <1 0 0x2000000>; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci nor1: flash@e4000000 { 448c2ecf20Sopenharmony_ci compatible = "cfi-flash"; 458c2ecf20Sopenharmony_ci reg = <2 0 0x2000000>; 468c2ecf20Sopenharmony_ci }; 478c2ecf20Sopenharmony_ci }; 48