blob: 7a002f523ec44d361d5874acc677424d0d44ac84 [file] [log] [blame]
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +02001/*
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";
Beniamino Galvaniac4eba82014-05-06 19:10:11 +020020 compatible = "radxa,rock", "rockchip,rk3188";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020021
22 memory {
23 reg = <0x60000000 0x80000000>;
24 };
25
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020026 uart0: serial@10124000 {
27 status = "okay";
28 };
29
30 uart1: serial@10126000 {
31 status = "okay";
32 };
33
34 uart2: serial@20064000 {
35 pinctrl-names = "default";
36 pinctrl-0 = <&uart2_xfer>;
37 status = "okay";
38 };
39
40 uart3: serial@20068000 {
41 status = "okay";
42 };
43
44 gpio-keys {
45 compatible = "gpio-keys";
46 #address-cells = <1>;
47 #size-cells = <0>;
48 autorepeat;
49
50 button@0 {
51 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
52 linux,code = <116>;
53 label = "GPIO Key Power";
54 linux,input-type = <1>;
55 gpio-key,wakeup = <1>;
56 debounce-interval = <100>;
57 };
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62
63 green {
64 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
65 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020066 };
67
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020068 yellow {
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020071 };
72
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020073 sleep {
74 gpios = <&gpio0 15 0>;
75 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020076 };
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020077 };
78};