mediatek: add support for the new MT7623 Arm SoC
[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 diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
14 new file mode 100644
15 index 0000000..04c28fd
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
18 @@ -0,0 +1,32 @@
19 +MTK SPI device
20 +
21 +Required properties:
22 +- compatible: should be one of the following.
23 + - mediatek,mt8173-spi: for mt8173 platforms
24 + - mediatek,mt8135-spi: for mt8135 platforms
25 + - mediatek,mt6589-spi: for mt6589 platforms
26 +
27 +- reg: Address and length of the register set for the device
28 +
29 +- interrupts: Should contain spi interrupt
30 +
31 +- clock-names: tuple listing input clock names.
32 + Required elements: "main"
33 +
34 +- clocks: phandles to input clocks.
35 +
36 +- pad-select: should specify spi pad used, only required for MT8173.
37 + This value should be 0~3.
38 +
39 +Example:
40 +
41 +- SoC Specific Portion:
42 +spi: spi@1100a000 {
43 + compatible = "mediatek,mt8173-spi";
44 + reg = <0 0x1100a000 0 0x1000>;
45 + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
46 + clocks = <&pericfg PERI_SPI0>;
47 + clock-names = "main";
48 + pad-select = <1>;
49 + status = "disabled";
50 +};
51 --
52 1.7.10.4
53