ARM: dts: uses handles to reference nodes for changes
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188-radxarock.dts
1 /*
2  * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  */
14
15 /dts-v1/;
16 #include "rk3188.dtsi"
17
18 / {
19         model = "Radxa Rock";
20         compatible = "radxa,rock", "rockchip,rk3188";
21
22         memory {
23                 reg = <0x60000000 0x80000000>;
24         };
25
26         gpio-keys {
27                 compatible = "gpio-keys";
28                 #address-cells = <1>;
29                 #size-cells = <0>;
30                 autorepeat;
31
32                 button@0 {
33                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
34                         linux,code = <116>;
35                         label = "GPIO Key Power";
36                         linux,input-type = <1>;
37                         gpio-key,wakeup = <1>;
38                         debounce-interval = <100>;
39                 };
40         };
41
42         gpio-leds {
43                 compatible = "gpio-leds";
44
45                 green {
46                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
47                         default-state = "off";
48                 };
49
50                 yellow {
51                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52                         default-state = "off";
53                 };
54
55                 sleep {
56                         gpios = <&gpio0 15 0>;
57                         default-state = "off";
58                 };
59         };
60 };
61
62 &uart0 {
63         status = "okay";
64 };
65
66 &uart1 {
67         status = "okay";
68 };
69
70 &uart2 {
71         pinctrl-names = "default";
72         pinctrl-0 = <&uart2_xfer>;
73         status = "okay";
74 };
75
76 &uart3 {
77         status = "okay";
78 };