xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/nuvoton,npcm-fiu.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Nuvoton FLASH Interface Unit (FIU) SPI Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunNPCM FIU supports single, dual and quad communication interface.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunThe NPCM7XX supports three FIU modules,
6*4882a593SmuzhiyunFIU0 and FIUx supports two chip selects,
7*4882a593SmuzhiyunFIU3 support four chip select.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRequired properties:
10*4882a593Smuzhiyun  - compatible : "nuvoton,npcm750-fiu" for the NPCM7XX BMC
11*4882a593Smuzhiyun  - #address-cells : should be 1.
12*4882a593Smuzhiyun  - #size-cells : should be 0.
13*4882a593Smuzhiyun  - reg : the first contains the register location and length,
14*4882a593Smuzhiyun          the second contains the memory mapping address and length
15*4882a593Smuzhiyun  - reg-names: Should contain the reg names "control" and "memory"
16*4882a593Smuzhiyun  - clocks : phandle of FIU reference clock.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunRequired properties in case the pins can be muxed:
19*4882a593Smuzhiyun  - pinctrl-names : a pinctrl state named "default" must be defined.
20*4882a593Smuzhiyun  - pinctrl-0 : phandle referencing pin configuration of the device.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunOptional property:
23*4882a593Smuzhiyun  - nuvoton,spix-mode: enable spix-mode for an expansion bus to an ASIC or CPLD.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunAliases:
26*4882a593Smuzhiyun- All the FIU controller nodes should be represented in the aliases node using
27*4882a593Smuzhiyun  the following format 'fiu{n}' where n is a unique number for the alias.
28*4882a593Smuzhiyun  In the NPCM7XX BMC:
29*4882a593Smuzhiyun  		fiu0 represent fiu 0 controller
30*4882a593Smuzhiyun  		fiu1 represent fiu 3 controller
31*4882a593Smuzhiyun  		fiu2 represent fiu x controller
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunExample:
34*4882a593Smuzhiyunfiu3: spi@c00000000 {
35*4882a593Smuzhiyun	compatible = "nuvoton,npcm750-fiu";
36*4882a593Smuzhiyun	#address-cells = <1>;
37*4882a593Smuzhiyun	#size-cells = <0>;
38*4882a593Smuzhiyun	reg = <0xfb000000 0x1000>, <0x80000000 0x10000000>;
39*4882a593Smuzhiyun	reg-names = "control", "memory";
40*4882a593Smuzhiyun	clocks = <&clk NPCM7XX_CLK_AHB>;
41*4882a593Smuzhiyun	pinctrl-names = "default";
42*4882a593Smuzhiyun	pinctrl-0 = <&spi3_pins>;
43*4882a593Smuzhiyun	spi-nor@0 {
44*4882a593Smuzhiyun			...
45*4882a593Smuzhiyun	};
46*4882a593Smuzhiyun};
47*4882a593Smuzhiyun
48