blob: ebea8e67ead3e882d8ac525de1aaffc3b8717e27 [file] [log] [blame]
Wadim Egorov6ee2d012017-06-19 12:36:40 +02001/*
2 * Device tree file for Phytec PCM-947 carrier board
3 * Copyright (C) 2017 PHYTEC Messtechnik GmbH
4 * Author: Wadim Egorov <w.egorov@phytec.de>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
43 */
44
45/dts-v1/;
46
47#include <dt-bindings/input/input.h>
48#include "rk3288-phycore-som.dtsi"
49
50/ {
51 model = "Phytec RK3288 PCM-947";
52 compatible = "phytec,rk3288-pcm-947", "phytec,rk3288-phycore-som", "rockchip,rk3288";
53
54 chosen {
55 stdout-path = &uart2;
56 };
57
Wadim Egorov6ee2d012017-06-19 12:36:40 +020058 user_buttons: user-buttons {
59 compatible = "gpio-keys";
60 pinctrl-names = "default";
61 pinctrl-0 = <&user_button_pins>;
62
63 button@0 {
64 label = "home";
65 linux,code = <KEY_HOME>;
66 gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
67 wakeup-source;
68 };
69
70 button@1 {
71 label = "menu";
72 linux,code = <KEY_MENU>;
73 gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>;
74 wakeup-source;
75 };
76 };
77
78 vcc_host0_5v: usb-host0-regulator {
79 compatible = "regulator-fixed";
80 gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&host0_vbus_drv>;
83 regulator-name = "vcc_host0_5v";
84 regulator-min-microvolt = <5000000>;
85 regulator-max-microvolt = <5000000>;
86 regulator-always-on;
87 vin-supply = <&vdd_in_otg_out>;
88 };
89
90 vcc_host1_5v: usb-host1-regulator {
91 compatible = "regulator-fixed";
92 gpio = <&gpio2 0 GPIO_ACTIVE_HIGH>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&host1_vbus_drv>;
95 regulator-name = "vcc_host1_5v";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
98 regulator-always-on;
99 vin-supply = <&vdd_in_otg_out>;
100 };
101
102 vcc_otg_5v: usb-otg-regulator {
103 compatible = "regulator-fixed";
104 gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&otg_vbus_drv>;
107 regulator-name = "vcc_otg_5v";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
110 regulator-always-on;
111 vin-supply = <&vdd_in_otg_out>;
112 };
113};
114
Wadim Egorov6ee2d012017-06-19 12:36:40 +0200115&gmac {
116 status = "okay";
117};
118
119&hdmi {
120 status = "okay";
121};
122
123&i2c1 {
124 status = "okay";
125
126 touchscreen@44 {
127 compatible = "st,stmpe811";
128 reg = <0x44>;
129 };
130
131 adc@64 {
132 compatible = "maxim,max1037";
133 reg = <0x64>;
134 };
135
136 i2c_rtc: rtc@68 {
137 compatible = "rv4162";
138 reg = <0x68>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c_rtc_int>;
141 interrupt-parent = <&gpio5>;
142 interrupts = <10 0>;
143 };
144};
145
146&i2c3 {
147 status = "okay";
148
149 i2c_eeprom_cb: eeprom@51 {
150 compatible = "atmel,24c32";
151 reg = <0x51>;
152 pagesize = <32>;
153 };
154};
155
156&i2c4 {
157 status = "okay";
158};
159
160&i2c5 {
161 status = "okay";
162};
163
164&pinctrl {
Wadim Egorov6ee2d012017-06-19 12:36:40 +0200165 pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
166 bias-pull-up;
167 drive-strength = <12>;
168 };
169
170 buttons {
171 user_button_pins: user-button-pins {
172 /* button 1 */
173 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_pull_up>,
174 /* button 2 */
175 <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
176 };
177 };
178
179 rv4162 {
180 i2c_rtc_int: i2c-rtc-int {
181 rockchip,pins = <5 10 RK_FUNC_GPIO &pcfg_pull_up>;
182 };
183 };
184
185 sdmmc {
186 /*
187 * Default drive strength isn't enough to achieve even
188 * high-speed mode on pcm-947 board so bump up to 12 mA.
189 */
190 sdmmc_bus4: sdmmc-bus4 {
191 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
192 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
193 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
194 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
195 };
196
197 sdmmc_clk: sdmmc-clk {
198 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_12ma>;
199 };
200
201 sdmmc_cmd: sdmmc-cmd {
202 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
203 };
204
205 sdmmc_pwr: sdmmc-pwr {
206 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
207 };
208 };
209
210 touchscreen {
211 ts_irq_pin: ts-irq-pin {
212 rockchip,pins = <5 15 RK_FUNC_GPIO &pcfg_pull_none>;
213 };
214 };
215
216 usb_host {
217 host0_vbus_drv: host0-vbus-drv {
218 rockchip,pins = <2 13 RK_FUNC_GPIO &pcfg_pull_none>;
219 };
220
221 host1_vbus_drv: host1-vbus-drv {
222 rockchip,pins = <2 0 RK_FUNC_GPIO &pcfg_pull_none>;
223 };
224 };
225
226 usb_otg {
227 otg_vbus_drv: otg-vbus-drv {
228 rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
229 };
230 };
231};
232
233&sdmmc {
Wadim Egorov6ee2d012017-06-19 12:36:40 +0200234 bus-width = <4>;
235 cap-mmc-highspeed;
236 cap-sd-highspeed;
237 card-detect-delay = <200>;
238 disable-wp;
239 num-slots = <1>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
242 vmmc-supply = <&vdd_io_sd>;
243 vqmmc-supply = <&vdd_io_sd>;
244 status = "okay";
245};
246
247&uart0 {
248 pinctrl-names = "default";
249 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
250 status = "okay";
251};
252
253&uart2 {
Wadim Egorov6ee2d012017-06-19 12:36:40 +0200254 status = "okay";
255};
256
257&usbphy {
258 status = "okay";
259};
260
261&usb_host0_ehci {
262 status = "okay";
263};
264
265&usb_host1 {
266 status = "okay";
267};
268
269&usb_otg {
270 status = "okay";
271};