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>
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
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.
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.
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
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
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.
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/leds/leds-pca9532.h>
49 #include "rk3288-phycore-som.dtsi"
52 model = "Phytec RK3288 PCM-947";
53 compatible = "phytec,rk3288-pcm-947", "phytec,rk3288-phycore-som", "rockchip,rk3288";
55 user_buttons: user-buttons {
56 compatible = "gpio-keys";
57 pinctrl-names = "default";
58 pinctrl-0 = <&user_button_pins>;
62 linux,code = <KEY_HOME>;
63 gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
69 linux,code = <KEY_MENU>;
70 gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>;
75 vcc_host0_5v: usb-host0-regulator {
76 compatible = "regulator-fixed";
77 gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&host0_vbus_drv>;
80 regulator-name = "vcc_host0_5v";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
84 vin-supply = <&vdd_in_otg_out>;
87 vcc_host1_5v: usb-host1-regulator {
88 compatible = "regulator-fixed";
89 gpio = <&gpio2 0 GPIO_ACTIVE_HIGH>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&host1_vbus_drv>;
92 regulator-name = "vcc_host1_5v";
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
96 vin-supply = <&vdd_in_otg_out>;
99 vcc_otg_5v: usb-otg-regulator {
100 compatible = "regulator-fixed";
101 gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&otg_vbus_drv>;
104 regulator-name = "vcc_otg_5v";
105 regulator-min-microvolt = <5000000>;
106 regulator-max-microvolt = <5000000>;
108 vin-supply = <&vdd_in_otg_out>;
124 compatible = "st,stmpe811";
129 compatible = "maxim,max1037";
134 compatible = "rv4162";
136 pinctrl-names = "default";
137 pinctrl-0 = <&i2c_rtc_int>;
138 interrupt-parent = <&gpio5>;
146 i2c_eeprom_cb: eeprom@51 {
147 compatible = "atmel,24c32";
156 /* PCA9533 - 4-bit LED dimmer */
157 leddim: leddimmer@62 {
158 compatible = "nxp,pca9533";
163 linux,default-trigger = "none";
164 type = <PCA9532_TYPE_LED>;
168 label = "green:user2";
169 linux,default-trigger = "none";
170 type = <PCA9532_TYPE_LED>;
174 label = "blue:user3";
175 linux,default-trigger = "none";
176 type = <PCA9532_TYPE_LED>;
181 linux,default-trigger = "none";
182 type = <PCA9532_TYPE_LED>;
192 pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
194 drive-strength = <12>;
198 user_button_pins: user-button-pins {
200 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_pull_up>,
202 <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
207 i2c_rtc_int: i2c-rtc-int {
208 rockchip,pins = <5 10 RK_FUNC_GPIO &pcfg_pull_up>;
214 * Default drive strength isn't enough to achieve even
215 * high-speed mode on pcm-947 board so bump up to 12 mA.
217 sdmmc_bus4: sdmmc-bus4 {
218 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
219 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
220 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
221 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
224 sdmmc_clk: sdmmc-clk {
225 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_12ma>;
228 sdmmc_cmd: sdmmc-cmd {
229 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
232 sdmmc_pwr: sdmmc-pwr {
233 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
238 ts_irq_pin: ts-irq-pin {
239 rockchip,pins = <5 15 RK_FUNC_GPIO &pcfg_pull_none>;
244 host0_vbus_drv: host0-vbus-drv {
245 rockchip,pins = <2 13 RK_FUNC_GPIO &pcfg_pull_none>;
248 host1_vbus_drv: host1-vbus-drv {
249 rockchip,pins = <2 0 RK_FUNC_GPIO &pcfg_pull_none>;
254 otg_vbus_drv: otg-vbus-drv {
255 rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
264 card-detect-delay = <200>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
268 vmmc-supply = <&vdd_io_sd>;
269 vqmmc-supply = <&vdd_io_sd>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;