blob: d5344510c6763f3dbd2b74c0c71593db213fdbdd [file] [log] [blame]
Heiko Stuebner958660962013-10-14 17:28:32 +02001/*
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";
Beniamino Galvaniac4eba82014-05-06 19:10:11 +020021 compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
Heiko Stuebner958660962013-10-14 17:28:32 +020022
23 memory {
24 reg = <0x60000000 0x40000000>;
25 };
26
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020027 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>;
Heiko Stuebnera953a6c2014-06-26 01:33:58 +020034 vin-supply = <&vcc_io>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020035 };
36
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020037 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>;
Heiko Stuebner958660962013-10-14 17:28:32 +020050 };
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020051 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>;
Heiko Stuebner958660962013-10-14 17:28:32 +020058 };
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020059 /* VOL+ comes somehow thru the ADC */
Heiko Stuebner958660962013-10-14 17:28:32 +020060 };
61};
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +020062
Heiko Stuebnera953a6c2014-06-26 01:33:58 +020063&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
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200149&mmc0 { /* sdmmc */
150 num-slots = <1>;
151 status = "okay";
Heiko Stuebner1302d322014-08-11 19:51:44 +0200152 pinctrl-names = "default";
153 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200154 vmmc-supply = <&vcc_sd0>;
Jaehoon Chung356649a2014-08-07 16:38:02 +0900155 bus-width = <4>;
156 disable-wp;
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200157};
158
159&mmc1 { /* wifi */
160 num-slots = <1>;
161 status = "okay";
162 non-removable;
163
164 pinctrl-names = "default";
165 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
166
Jaehoon Chung356649a2014-08-07 16:38:02 +0900167 bus-width = <4>;
168 disable-wp;
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200169};
170
171&uart0 {
172 status = "okay";
173};
174
175&uart1 {
176 status = "okay";
177};
178
179&uart2 {
180 status = "okay";
181};
182
183&uart3 {
184 status = "okay";
185};
Heiko Stuebnereb2b9d42014-07-30 10:16:17 +0200186
187&wdt {
188 status = "okay";
189};