blob: ebce49a66a12ae6bfa6b19e920ec13db5495e716 [file] [log] [blame]
Heiko Stuebner6ce05622014-07-15 20:09:44 +02001/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "rk3288.dtsi"
14
15/ {
16 memory {
17 reg = <0x0 0x80000000>;
18 };
19
20 gpio-keys {
21 compatible = "gpio-keys";
22 #address-cells = <1>;
23 #size-cells = <0>;
24 autorepeat;
25
26 pinctrl-names = "default";
27 pinctrl-0 = <&pwrbtn>;
28
29 button@0 {
30 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
31 linux,code = <116>;
32 label = "GPIO Key Power";
33 linux,input-type = <1>;
34 gpio-key,wakeup = <1>;
35 debounce-interval = <100>;
36 };
37 };
Doug Anderson83a742b2014-07-30 13:00:10 -070038
39 /* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
40 vcc_host: vcc-host-regulator {
41 compatible = "regulator-fixed";
42 enable-active-high;
43 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
44 pinctrl-names = "default";
45 pinctrl-0 = <&host_vbus_drv>;
46 regulator-name = "vcc_host";
47 regulator-always-on;
48 regulator-boot-on;
49 };
Heiko Stuebner6ce05622014-07-15 20:09:44 +020050};
51
Doug Anderson2c31d942014-08-12 16:21:14 -070052&emmc {
53 broken-cd;
54 bus-width = <8>;
55 cap-mmc-highspeed;
56 disable-wp;
57 non-removable;
58 num-slots = <1>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
61 status = "okay";
62};
63
64&sdmmc {
65 bus-width = <4>;
66 cap-mmc-highspeed;
67 cap-sd-highspeed;
68 card-detect-delay = <200>;
69 disable-wp; /* wp not hooked up */
70 num-slots = <1>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
73 status = "okay";
74};
75
Heiko Stuebner6ce05622014-07-15 20:09:44 +020076&i2c0 {
77 status = "okay";
78};
79
80&wdt {
81 status = "okay";
82};
83
84&uart0 {
85 status = "okay";
86};
87
88&uart1 {
89 status = "okay";
90};
91
92&uart2 {
93 status = "okay";
94};
95
96&uart3 {
97 status = "okay";
98};
99
100&uart4 {
101 status = "okay";
102};
103
104&pinctrl {
105 buttons {
106 pwrbtn: pwrbtn {
107 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
108 };
109 };
Doug Anderson83a742b2014-07-30 13:00:10 -0700110
111 usb {
112 host_vbus_drv: host-vbus-drv {
113 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
114 };
115 };
Heiko Stuebner6ce05622014-07-15 20:09:44 +0200116};
Doug Anderson163cb912014-07-30 13:00:12 -0700117
118&usb_host0_ehci {
119 status = "okay";
120};