xref: /freebsd/sys/contrib/device-tree/Bindings/spi/brcm,bcm2835-spi.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBroadcom BCM2835 SPI0 controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe BCM2835 contains two forms of SPI master controller, one known simply as
4*c66ec88fSEmmanuel VadotSPI0, and the other known as the "Universal SPI Master"; part of the
5*c66ec88fSEmmanuel Vadotauxiliary block. This binding applies to the SPI0 controller.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot- compatible: Should be one of "brcm,bcm2835-spi" for BCM2835/2836/2837 or
9*c66ec88fSEmmanuel Vadot  "brcm,bcm2711-spi" for BCM2711 or "brcm,bcm7211-spi" for BCM7211.
10*c66ec88fSEmmanuel Vadot- reg: Should contain register location and length.
11*c66ec88fSEmmanuel Vadot- interrupts: Should contain interrupt.
12*c66ec88fSEmmanuel Vadot- clocks: The clock feeding the SPI controller.
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel VadotExample:
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadotspi@20204000 {
17*c66ec88fSEmmanuel Vadot	compatible = "brcm,bcm2835-spi";
18*c66ec88fSEmmanuel Vadot	reg = <0x7e204000 0x1000>;
19*c66ec88fSEmmanuel Vadot	interrupts = <2 22>;
20*c66ec88fSEmmanuel Vadot	clocks = <&clk_spi>;
21*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
22*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
23*c66ec88fSEmmanuel Vadot};
24