xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/spi-bcm63xx.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for Broadcom BCM6348/BCM6358 SPI controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must contain one of "brcm,bcm6348-spi", "brcm,bcm6358-spi".
5*4882a593Smuzhiyun- reg: Base address and size of the controllers memory area.
6*4882a593Smuzhiyun- interrupts: Interrupt for the SPI block.
7*4882a593Smuzhiyun- clocks: phandle of the SPI clock.
8*4882a593Smuzhiyun- clock-names: has to be "spi".
9*4882a593Smuzhiyun- #address-cells: <1>, as required by generic SPI binding.
10*4882a593Smuzhiyun- #size-cells: <0>, also as required by generic SPI binding.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional properties:
13*4882a593Smuzhiyun- num-cs: some controllers have less than 8 cs signals. Defaults to 8
14*4882a593Smuzhiyun  if absent.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunChild nodes as per the generic SPI binding.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	spi@10000800 {
21*4882a593Smuzhiyun		compatible = "brcm,bcm6368-spi", "brcm,bcm6358-spi";
22*4882a593Smuzhiyun		reg = <0x10000800 0x70c>;
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun		interrupts = <1>;
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun		clocks = <&clkctl 9>;
27*4882a593Smuzhiyun		clock-names = "spi";
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		num-cs = <5>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		#address-cells = <1>;
32*4882a593Smuzhiyun		#size-cells = <0>;
33*4882a593Smuzhiyun	};
34