Commit | Line | Data |
---|---|---|
6bcf60f8 HS |
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"; | |
ac4eba8e | 20 | compatible = "radxa,rock", "rockchip,rk3188"; |
6bcf60f8 HS |
21 | |
22 | memory { | |
23 | reg = <0x60000000 0x80000000>; | |
24 | }; | |
25 | ||
26 | soc { | |
27 | uart0: serial@10124000 { | |
28 | status = "okay"; | |
29 | }; | |
30 | ||
31 | uart1: serial@10126000 { | |
32 | status = "okay"; | |
33 | }; | |
34 | ||
35 | uart2: serial@20064000 { | |
36 | pinctrl-names = "default"; | |
37 | pinctrl-0 = <&uart2_xfer>; | |
38 | status = "okay"; | |
39 | }; | |
40 | ||
41 | uart3: serial@20068000 { | |
42 | status = "okay"; | |
43 | }; | |
44 | ||
45 | gpio-keys { | |
46 | compatible = "gpio-keys"; | |
47 | #address-cells = <1>; | |
48 | #size-cells = <0>; | |
49 | autorepeat; | |
50 | ||
51 | button@0 { | |
52 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; | |
53 | linux,code = <116>; | |
54 | label = "GPIO Key Power"; | |
55 | linux,input-type = <1>; | |
56 | gpio-key,wakeup = <1>; | |
57 | debounce-interval = <100>; | |
58 | }; | |
59 | }; | |
60 | ||
61 | gpio-leds { | |
62 | compatible = "gpio-leds"; | |
63 | ||
64 | green { | |
65 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | |
66 | default-state = "off"; | |
67 | }; | |
68 | ||
69 | yellow { | |
70 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | |
71 | default-state = "off"; | |
72 | }; | |
73 | ||
74 | sleep { | |
75 | gpios = <&gpio0 15 0>; | |
76 | default-state = "off"; | |
77 | }; | |
78 | }; | |
79 | ||
80 | }; | |
81 | }; |