1*c66ec88fSEmmanuel VadotDevice tree bindings for ARM PL353 static memory controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotPL353 static memory controller supports two kinds of memory 4*c66ec88fSEmmanuel Vadotinterfaces.i.e NAND and SRAM/NOR interfaces. 5*c66ec88fSEmmanuel VadotThe actual devices are instantiated from the child nodes of pl353 smc node. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotRequired properties: 8*c66ec88fSEmmanuel Vadot- compatible : Should be "arm,pl353-smc-r2p1", "arm,primecell". 9*c66ec88fSEmmanuel Vadot- reg : Controller registers map and length. 10*c66ec88fSEmmanuel Vadot- clock-names : List of input clock names - "memclk", "apb_pclk" 11*c66ec88fSEmmanuel Vadot (See clock bindings for details). 12*c66ec88fSEmmanuel Vadot- clocks : Clock phandles (see clock bindings for details). 13*c66ec88fSEmmanuel Vadot- address-cells : Must be 2. 14*c66ec88fSEmmanuel Vadot- size-cells : Must be 1. 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel VadotChild nodes: 17*c66ec88fSEmmanuel Vadot For NAND the "arm,pl353-nand-r2p1" and for NOR the "cfi-flash" drivers are 18*c66ec88fSEmmanuel Vadotsupported as child nodes. 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel Vadotfor NAND partition information please refer the below file 21*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/mtd/partition.txt 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotExample: 24*c66ec88fSEmmanuel Vadot smcc: memory-controller@e000e000 25*c66ec88fSEmmanuel Vadot compatible = "arm,pl353-smc-r2p1", "arm,primecell"; 26*c66ec88fSEmmanuel Vadot clock-names = "memclk", "apb_pclk"; 27*c66ec88fSEmmanuel Vadot clocks = <&clkc 11>, <&clkc 44>; 28*c66ec88fSEmmanuel Vadot reg = <0xe000e000 0x1000>; 29*c66ec88fSEmmanuel Vadot #address-cells = <2>; 30*c66ec88fSEmmanuel Vadot #size-cells = <1>; 31*c66ec88fSEmmanuel Vadot ranges = <0x0 0x0 0xe1000000 0x1000000 //Nand CS Region 32*c66ec88fSEmmanuel Vadot 0x1 0x0 0xe2000000 0x2000000 //SRAM/NOR CS Region 33*c66ec88fSEmmanuel Vadot 0x2 0x0 0xe4000000 0x2000000>; //SRAM/NOR CS Region 34*c66ec88fSEmmanuel Vadot nand_0: flash@e1000000 { 35*c66ec88fSEmmanuel Vadot compatible = "arm,pl353-nand-r2p1" 36*c66ec88fSEmmanuel Vadot reg = <0 0 0x1000000>; 37*c66ec88fSEmmanuel Vadot (...) 38*c66ec88fSEmmanuel Vadot }; 39*c66ec88fSEmmanuel Vadot nor0: flash@e2000000 { 40*c66ec88fSEmmanuel Vadot compatible = "cfi-flash"; 41*c66ec88fSEmmanuel Vadot reg = <1 0 0x2000000>; 42*c66ec88fSEmmanuel Vadot }; 43*c66ec88fSEmmanuel Vadot nor1: flash@e4000000 { 44*c66ec88fSEmmanuel Vadot compatible = "cfi-flash"; 45*c66ec88fSEmmanuel Vadot reg = <2 0 0x2000000>; 46*c66ec88fSEmmanuel Vadot }; 47*c66ec88fSEmmanuel Vadot }; 48