Commit | Line | Data |
---|---|---|
95866096 HS |
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"; | |
ac4eba8e | 21 | compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
95866096 HS |
22 | |
23 | memory { | |
24 | reg = <0x60000000 0x40000000>; | |
25 | }; | |
26 | ||
c3030d30 HS |
27 | vcc_sd0: fixed-regulator { |
28 | compatible = "regulator-fixed"; | |
29 | regulator-name = "sdmmc-supply"; | |
30 | regulator-min-microvolt = <3000000>; | |
31 | regulator-max-microvolt = <3000000>; | |
32 | gpio = <&gpio3 7 GPIO_ACTIVE_LOW>; | |
33 | startup-delay-us = <100000>; | |
a953a6c7 | 34 | vin-supply = <&vcc_io>; |
c3030d30 | 35 | }; |
95866096 | 36 | |
c3030d30 HS |
37 | gpio-keys { |
38 | compatible = "gpio-keys"; | |
39 | #address-cells = <1>; | |
40 | #size-cells = <0>; | |
41 | autorepeat; | |
42 | ||
43 | button@0 { | |
44 | gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ | |
45 | linux,code = <116>; | |
46 | label = "GPIO Key Power"; | |
47 | linux,input-type = <1>; | |
48 | gpio-key,wakeup = <1>; | |
49 | debounce-interval = <100>; | |
50 | }; | |
51 | button@1 { | |
52 | gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ | |
53 | linux,code = <104>; | |
54 | label = "GPIO Key Vol-"; | |
55 | linux,input-type = <1>; | |
56 | gpio-key,wakeup = <0>; | |
57 | debounce-interval = <100>; | |
95866096 | 58 | }; |
c3030d30 | 59 | /* VOL+ comes somehow thru the ADC */ |
95866096 HS |
60 | }; |
61 | }; | |
fcbbf965 | 62 | |
a953a6c7 HS |
63 | &i2c1 { |
64 | status = "okay"; | |
65 | clock-frequency = <400000>; | |
66 | ||
67 | tps: tps@2d { | |
68 | reg = <0x2d>; | |
69 | ||
70 | interrupt-parent = <&gpio6>; | |
71 | interrupts = <6 IRQ_TYPE_LEVEL_LOW>; | |
72 | ||
73 | vcc5-supply = <&vcc_io>; | |
74 | vcc6-supply = <&vcc_io>; | |
75 | ||
76 | regulators { | |
77 | vcc_rtc: regulator@0 { | |
78 | regulator-name = "vcc_rtc"; | |
79 | regulator-always-on; | |
80 | }; | |
81 | ||
82 | vcc_io: regulator@1 { | |
83 | regulator-name = "vcc_io"; | |
84 | regulator-always-on; | |
85 | }; | |
86 | ||
87 | vdd_arm: regulator@2 { | |
88 | regulator-name = "vdd_arm"; | |
89 | regulator-min-microvolt = <600000>; | |
90 | regulator-max-microvolt = <1500000>; | |
91 | regulator-boot-on; | |
92 | regulator-always-on; | |
93 | }; | |
94 | ||
95 | vcc_ddr: regulator@3 { | |
96 | regulator-name = "vcc_ddr"; | |
97 | regulator-min-microvolt = <600000>; | |
98 | regulator-max-microvolt = <1500000>; | |
99 | regulator-boot-on; | |
100 | regulator-always-on; | |
101 | }; | |
102 | ||
103 | vcc18_cif: regulator@5 { | |
104 | regulator-name = "vcc18_cif"; | |
105 | regulator-always-on; | |
106 | }; | |
107 | ||
108 | vdd_11: regulator@6 { | |
109 | regulator-name = "vdd_11"; | |
110 | regulator-always-on; | |
111 | }; | |
112 | ||
113 | vcc_25: regulator@7 { | |
114 | regulator-name = "vcc_25"; | |
115 | regulator-always-on; | |
116 | }; | |
117 | ||
118 | vcc_18: regulator@8 { | |
119 | regulator-name = "vcc_18"; | |
120 | regulator-always-on; | |
121 | }; | |
122 | ||
123 | vcc25_hdmi: regulator@9 { | |
124 | regulator-name = "vcc25_hdmi"; | |
125 | regulator-always-on; | |
126 | }; | |
127 | ||
128 | vcca_33: regulator@10 { | |
129 | regulator-name = "vcca_33"; | |
130 | regulator-always-on; | |
131 | }; | |
132 | ||
133 | vcc_tp: regulator@11 { | |
134 | regulator-name = "vcc_tp"; | |
135 | regulator-always-on; | |
136 | }; | |
137 | ||
138 | vcc28_cif: regulator@12 { | |
139 | regulator-name = "vcc28_cif"; | |
140 | regulator-always-on; | |
141 | }; | |
142 | }; | |
143 | }; | |
144 | }; | |
145 | ||
146 | /* must be included after &tps gets defined */ | |
147 | #include "tps65910.dtsi" | |
148 | ||
fcbbf965 HS |
149 | &mmc0 { /* sdmmc */ |
150 | num-slots = <1>; | |
151 | status = "okay"; | |
152 | vmmc-supply = <&vcc_sd0>; | |
153 | ||
154 | slot@0 { | |
155 | reg = <0>; | |
156 | bus-width = <4>; | |
157 | disable-wp; | |
158 | }; | |
159 | }; | |
160 | ||
161 | &mmc1 { /* wifi */ | |
162 | num-slots = <1>; | |
163 | status = "okay"; | |
164 | non-removable; | |
165 | ||
166 | pinctrl-names = "default"; | |
167 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; | |
168 | ||
169 | slot@0 { | |
170 | reg = <0>; | |
171 | bus-width = <4>; | |
172 | disable-wp; | |
173 | }; | |
174 | }; | |
175 | ||
176 | &uart0 { | |
177 | status = "okay"; | |
178 | }; | |
179 | ||
180 | &uart1 { | |
181 | status = "okay"; | |
182 | }; | |
183 | ||
184 | &uart2 { | |
185 | status = "okay"; | |
186 | }; | |
187 | ||
188 | &uart3 { | |
189 | status = "okay"; | |
190 | }; | |
eb2b9d47 HS |
191 | |
192 | &wdt { | |
193 | status = "okay"; | |
194 | }; |