ath79: ar7242: Update dts for current ag71xx driver
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.9 / 001-4.12-05-spi-bcm63xx-hsspi-document-device-tree-bindings.patch
1 From ff759cc25db31bbb3469abb16a0306f110c4c7fa Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Thu, 10 Sep 2015 14:52:32 +0200
4 Subject: [PATCH 2/3] dt-bindings: spi: document bcm63xx HS SPI devicetree
5  bindings
6
7 Add documentation for the bindings of the high speed SPI controller found
8 on newer bcm63xx SoCs.
9
10 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
11 ---
12  .../devicetree/bindings/spi/spi-bcm63xx-hsspi.txt  | 33 ++++++++++++++++++++++
13  1 file changed, 33 insertions(+)
14  create mode 100644 Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt
18 @@ -0,0 +1,33 @@
19 +Binding for Broadcom BCM6328 High Speed SPI controller
20 +
21 +Required properties:
22 +- compatible: must contain of "brcm,bcm6328-hsspi".
23 +- reg: Base address and size of the controllers memory area.
24 +- interrupts: Interrupt for the SPI block.
25 +- clocks: phandles of the SPI clock and the PLL clock.
26 +- clock-names: must be "hsspi", "pll".
27 +- #address-cells: <1>, as required by generic SPI binding.
28 +- #size-cells: <0>, also as required by generic SPI binding.
29 +
30 +Optional properties:
31 +- num-cs: some controllers have less than 8 cs signals. Defaults to 8
32 +  if absent.
33 +
34 +Child nodes as per the generic SPI binding.
35 +
36 +Example:
37 +
38 +       spi@10001000 {
39 +               compatible = "brcm,bcm6328-hsspi";
40 +               reg = <0x10001000 0x600>;
41 +
42 +               interrupts = <29>;
43 +
44 +               clocks = <&clkctl 9>, <&hsspi_pll>;
45 +               clock-names = "hsspi", "pll";
46 +
47 +               num-cs = <2>;
48 +
49 +               #address-cells = <1>;
50 +               #size-cells = <0>;
51 +       };