Merge branch 'next' into for-linus
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / rk3066a-bqcurie2.dts
1 /*
2  * Copyright (c) 2013 MundoReader S.L.
3  * Author: Heiko Stuebner <heiko@sntech.de>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  */
15
16 /dts-v1/;
17 #include "rk3066a.dtsi"
18
19 / {
20         model = "bq Curie 2";
21         compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
22
23         memory {
24                 reg = <0x60000000 0x40000000>;
25         };
26
27         soc {
28                 uart0: serial@10124000 {
29                         status = "okay";
30                 };
31
32                 uart1: serial@10126000 {
33                         status = "okay";
34                 };
35
36                 uart2: serial@20064000 {
37                         pinctrl-names = "default";
38                         pinctrl-0 = <&uart2_xfer>;
39                         status = "okay";
40                 };
41
42                 uart3: serial@20068000 {
43                         status = "okay";
44                 };
45
46                 vcc_sd0: fixed-regulator {
47                         compatible = "regulator-fixed";
48                         regulator-name = "sdmmc-supply";
49                         regulator-min-microvolt = <3000000>;
50                         regulator-max-microvolt = <3000000>;
51                         gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
52                         startup-delay-us = <100000>;
53                 };
54
55                 dwmmc@10214000 { /* sdmmc */
56                         num-slots = <1>;
57                         status = "okay";
58
59                         pinctrl-names = "default";
60                         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4>;
61                         vmmc-supply = <&vcc_sd0>;
62
63                         slot@0 {
64                                 reg = <0>;
65                                 bus-width = <4>;
66                                 disable-wp;
67                         };
68                 };
69
70                 dwmmc@10218000 { /* wifi */
71                         num-slots = <1>;
72                         status = "okay";
73                         non-removable;
74
75                         pinctrl-names = "default";
76                         pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
77
78                         slot@0 {
79                                 reg = <0>;
80                                 bus-width = <4>;
81                                 disable-wp;
82                         };
83                 };
84
85                 gpio-keys {
86                         compatible = "gpio-keys";
87                         #address-cells = <1>;
88                         #size-cells = <0>;
89                         autorepeat;
90
91                         button@0 {
92                                 gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
93                                 linux,code = <116>;
94                                 label = "GPIO Key Power";
95                                 linux,input-type = <1>;
96                                 gpio-key,wakeup = <1>;
97                                 debounce-interval = <100>;
98                         };
99                         button@1 {
100                                 gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
101                                 linux,code = <104>;
102                                 label = "GPIO Key Vol-";
103                                 linux,input-type = <1>;
104                                 gpio-key,wakeup = <0>;
105                                 debounce-interval = <100>;
106                         };
107                         /* VOL+ comes somehow thru the ADC */
108                 };
109         };
110 };