Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
[cascardo/linux.git] / arch / arm / boot / dts / rk3288-evb.dtsi
1 /*
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         };
38
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         };
50 };
51
52 &i2c0 {
53         status = "okay";
54 };
55
56 &wdt {
57         status = "okay";
58 };
59
60 &uart0 {
61         status = "okay";
62 };
63
64 &uart1 {
65         status = "okay";
66 };
67
68 &uart2 {
69         status = "okay";
70 };
71
72 &uart3 {
73         status = "okay";
74 };
75
76 &uart4 {
77         status = "okay";
78 };
79
80 &pinctrl {
81         buttons {
82                 pwrbtn: pwrbtn {
83                         rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
84                 };
85         };
86
87         usb {
88                 host_vbus_drv: host-vbus-drv {
89                         rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
90                 };
91         };
92 };
93
94 &usb_host0_ehci {
95         status = "okay";
96 };