1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device tree file for Phytec PCM-947 carrier board
4 * Copyright (C) 2017 PHYTEC Messtechnik GmbH
5 * Author: Wadim Egorov <w.egorov@phytec.de>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/leds-pca9532.h>
12 #include "rk3288-phycore-som.dtsi"
15 model = "Phytec RK3288 PCM-947";
16 compatible = "phytec,rk3288-pcm-947", "phytec,rk3288-phycore-som", "rockchip,rk3288";
18 user_buttons: user-buttons {
19 compatible = "gpio-keys";
20 pinctrl-names = "default";
21 pinctrl-0 = <&user_button_pins>;
25 linux,code = <KEY_HOME>;
26 gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
32 linux,code = <KEY_MENU>;
33 gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>;
38 vcc_host0_5v: usb-host0-regulator {
39 compatible = "regulator-fixed";
40 gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
41 pinctrl-names = "default";
42 pinctrl-0 = <&host0_vbus_drv>;
43 regulator-name = "vcc_host0_5v";
44 regulator-min-microvolt = <5000000>;
45 regulator-max-microvolt = <5000000>;
47 vin-supply = <&vdd_in_otg_out>;
50 vcc_host1_5v: usb-host1-regulator {
51 compatible = "regulator-fixed";
52 gpio = <&gpio2 0 GPIO_ACTIVE_HIGH>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&host1_vbus_drv>;
55 regulator-name = "vcc_host1_5v";
56 regulator-min-microvolt = <5000000>;
57 regulator-max-microvolt = <5000000>;
59 vin-supply = <&vdd_in_otg_out>;
62 vcc_otg_5v: usb-otg-regulator {
63 compatible = "regulator-fixed";
64 gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&otg_vbus_drv>;
67 regulator-name = "vcc_otg_5v";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
71 vin-supply = <&vdd_in_otg_out>;
87 compatible = "st,stmpe811";
92 compatible = "maxim,max1037";
97 compatible = "rv4162";
99 pinctrl-names = "default";
100 pinctrl-0 = <&i2c_rtc_int>;
101 interrupt-parent = <&gpio5>;
109 i2c_eeprom_cb: eeprom@51 {
110 compatible = "atmel,24c32";
119 /* PCA9533 - 4-bit LED dimmer */
120 leddim: leddimmer@62 {
121 compatible = "nxp,pca9533";
126 linux,default-trigger = "none";
127 type = <PCA9532_TYPE_LED>;
131 label = "green:user2";
132 linux,default-trigger = "none";
133 type = <PCA9532_TYPE_LED>;
137 label = "blue:user3";
138 linux,default-trigger = "none";
139 type = <PCA9532_TYPE_LED>;
144 linux,default-trigger = "none";
145 type = <PCA9532_TYPE_LED>;
155 pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
157 drive-strength = <12>;
161 user_button_pins: user-button-pins {
163 rockchip,pins = <8 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>,
165 <8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
170 i2c_rtc_int: i2c-rtc-int {
171 rockchip,pins = <5 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
177 * Default drive strength isn't enough to achieve even
178 * high-speed mode on pcm-947 board so bump up to 12 mA.
180 sdmmc_bus4: sdmmc-bus4 {
181 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
182 <6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
183 <6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
184 <6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
187 sdmmc_clk: sdmmc-clk {
188 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
191 sdmmc_cmd: sdmmc-cmd {
192 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
195 sdmmc_pwr: sdmmc-pwr {
196 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
201 ts_irq_pin: ts-irq-pin {
202 rockchip,pins = <5 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
207 host0_vbus_drv: host0-vbus-drv {
208 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
211 host1_vbus_drv: host1-vbus-drv {
212 rockchip,pins = <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
217 otg_vbus_drv: otg-vbus-drv {
218 rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
227 card-detect-delay = <200>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
235 vmmc-supply = <&vdd_sd>;
236 vqmmc-supply = <&vdd_io_sd>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;