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