xref: /freebsd/sys/contrib/device-tree/Bindings/spi/brcm,bcm2835-aux-spi.txt (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1Broadcom BCM2835 auxiliar SPI1/2 controller
2
3The BCM2835 contains two forms of SPI master controller, one known simply as
4SPI0, and the other known as the "Universal SPI Master"; part of the
5auxiliary block. This binding applies to the SPI1/2 controller.
6
7Required properties:
8- compatible: Should be "brcm,bcm2835-aux-spi".
9- reg: Should contain register location and length for the spi block
10- interrupts: Should contain shared interrupt of the aux block
11- clocks: The clock feeding the SPI controller - needs to
12	  point to the auxiliar clock driver of the bcm2835,
13	  as this clock will enable the output gate for the specific
14	  clock.
15- cs-gpios: the cs-gpios (native cs is NOT supported)
16	    see also spi-bus.txt
17
18Example:
19
20spi1@7e215080 {
21	compatible = "brcm,bcm2835-aux-spi";
22	reg = <0x7e215080 0x40>;
23	interrupts = <1 29>;
24	clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>;
25	#address-cells = <1>;
26	#size-cells = <0>;
27	cs-gpios = <&gpio 18>, <&gpio 17>, <&gpio 16>;
28};
29
30spi2@7e2150c0 {
31	compatible = "brcm,bcm2835-aux-spi";
32	reg = <0x7e2150c0 0x40>;
33	interrupts = <1 29>;
34	clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI2>;
35	#address-cells = <1>;
36	#size-cells = <0>;
37	cs-gpios = <&gpio 43>, <&gpio 44>, <&gpio 45>;
38};
39