xref: /freebsd/sys/contrib/device-tree/Bindings/spi/spi-octeon.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCavium, Inc. OCTEON SOC SPI master controller.
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible : "cavium,octeon-3010-spi"
5*c66ec88fSEmmanuel Vadot- reg : The register base for the controller.
6*c66ec88fSEmmanuel Vadot- interrupts : One interrupt, used by the controller.
7*c66ec88fSEmmanuel Vadot- #address-cells : <1>, as required by generic SPI binding.
8*c66ec88fSEmmanuel Vadot- #size-cells : <0>, also as required by generic SPI binding.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotChild nodes as per the generic SPI binding.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotExample:
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot	spi@1070000001000 {
15*c66ec88fSEmmanuel Vadot		compatible = "cavium,octeon-3010-spi";
16*c66ec88fSEmmanuel Vadot		reg = <0x10700 0x00001000 0x0 0x100>;
17*c66ec88fSEmmanuel Vadot		interrupts = <0 58>;
18*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
19*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot		eeprom@0 {
22*c66ec88fSEmmanuel Vadot			compatible = "st,m95256", "atmel,at25";
23*c66ec88fSEmmanuel Vadot			reg = <0>;
24*c66ec88fSEmmanuel Vadot			spi-max-frequency = <5000000>;
25*c66ec88fSEmmanuel Vadot			spi-cpha;
26*c66ec88fSEmmanuel Vadot			spi-cpol;
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot			pagesize = <64>;
29*c66ec88fSEmmanuel Vadot			size = <32768>;
30*c66ec88fSEmmanuel Vadot			address-width = <16>;
31*c66ec88fSEmmanuel Vadot		};
32*c66ec88fSEmmanuel Vadot	};
33*c66ec88fSEmmanuel Vadot
34