kernel: update 4.1 to 4.1.13
[openwrt/staging/lynxis/omap.git] / target / linux / mediatek / patches / 0025-dt-bindings-ARM-Mediatek-Document-devicetree-binding.patch
1 From a6de66d3cf5add25f2b8913332117f3334db506e Mon Sep 17 00:00:00 2001
2 From: Leilk Liu <leilk.liu@mediatek.com>
3 Date: Fri, 8 May 2015 16:55:41 +0800
4 Subject: [PATCH 25/76] dt-bindings: ARM: Mediatek: Document devicetree
5 bindings for spi bus
6
7 Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
8 ---
9 .../devicetree/bindings/spi/spi-mt65xx.txt | 32 ++++++++++++++++++++
10 1 file changed, 32 insertions(+)
11 create mode 100644 Documentation/devicetree/bindings/spi/spi-mt65xx.txt
12
13 --- /dev/null
14 +++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
15 @@ -0,0 +1,32 @@
16 +MTK SPI device
17 +
18 +Required properties:
19 +- compatible: should be one of the following.
20 + - mediatek,mt8173-spi: for mt8173 platforms
21 + - mediatek,mt8135-spi: for mt8135 platforms
22 + - mediatek,mt6589-spi: for mt6589 platforms
23 +
24 +- reg: Address and length of the register set for the device
25 +
26 +- interrupts: Should contain spi interrupt
27 +
28 +- clock-names: tuple listing input clock names.
29 + Required elements: "main"
30 +
31 +- clocks: phandles to input clocks.
32 +
33 +- pad-select: should specify spi pad used, only required for MT8173.
34 + This value should be 0~3.
35 +
36 +Example:
37 +
38 +- SoC Specific Portion:
39 +spi: spi@1100a000 {
40 + compatible = "mediatek,mt8173-spi";
41 + reg = <0 0x1100a000 0 0x1000>;
42 + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
43 + clocks = <&pericfg PERI_SPI0>;
44 + clock-names = "main";
45 + pad-select = <1>;
46 + status = "disabled";
47 +};