kernel: update 4.1 to 4.1.13
[openwrt/openwrt.git] / target / linux / mediatek / patches / 0034-mmc-dt-bindings-add-Mediatek-MMC-bindings.patch
1 From fe43da8836dbf8e48377d208000877a17e465f3f Mon Sep 17 00:00:00 2001
2 From: Chaotian Jing <chaotian.jing@mediatek.com>
3 Date: Mon, 15 Jun 2015 19:20:47 +0800
4 Subject: [PATCH 34/76] mmc: dt-bindings: add Mediatek MMC bindings
5
6 Document the device-tree binding of Mediatek MMC host
7
8 Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
9 ---
10 Documentation/devicetree/bindings/mmc/mtk-sd.txt | 32 ++++++++++++++++++++++
11 1 file changed, 32 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/mmc/mtk-sd.txt
13
14 --- /dev/null
15 +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
16 @@ -0,0 +1,32 @@
17 +* MTK MMC controller
18 +
19 +The MTK MSDC can act as a MMC controller
20 +to support MMC, SD, and SDIO types of memory cards.
21 +
22 +This file documents differences between the core properties in mmc.txt
23 +and the properties used by the msdc driver.
24 +
25 +Required properties:
26 +- compatible: Should be "mediatek,mt8173-mmc","mediatek,mt8135-mmc"
27 +- interrupts: Should contain MSDC interrupt number
28 +- clocks: MSDC source clock, HCLK
29 +- clock-names: "source", "hclk"
30 +- pinctrl-names: should be "default", "state_uhs"
31 +- pinctrl-0: should contain default/high speed pin ctrl
32 +- pinctrl-1: should contain uhs mode pin ctrl
33 +- vmmc-supply: power to the Core
34 +- vqmmc-supply: power to the IO
35 +
36 +Examples:
37 +mmc0: mmc@11230000 {
38 + compatible = "mediatek,mt8173-mmc", "mediatek,mt8135-mmc";
39 + reg = <0 0x11230000 0 0x108>;
40 + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
41 + vmmc-supply = <&mt6397_vemc_3v3_reg>;
42 + vqmmc-supply = <&mt6397_vio18_reg>;
43 + clocks = <&pericfg CLK_PERI_MSDC30_0>, <&topckgen CLK_TOP_MSDC50_0_H_SEL>;
44 + clock-names = "source", "hclk";
45 + pinctrl-names = "default", "state_uhs";
46 + pinctrl-0 = <&mmc0_pins_default>;
47 + pinctrl-1 = <&mmc0_pins_uhs>;
48 +};