Merge tag 'for-linus-4.15-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / arch / arm / boot / dts / gemini-rut1xx.dts
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
d08bd6b3
LW
2/*
3 * Device Tree file for Teltonika RUT1xx
4 */
5
6/dts-v1/;
7
8#include "gemini.dtsi"
9#include <dt-bindings/input/input.h>
10
11/ {
12 model = "Teltonika RUT1xx";
13 compatible = "teltonika,rut1xx", "cortina,gemini";
14 #address-cells = <1>;
15 #size-cells = <1>;
16
17 memory { /* 128 MB */
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
20 };
21
22 chosen {
23 bootargs = "console=ttyS0,115200n8";
24 stdout-path = &uart0;
25 };
26
27 gpio_keys {
28 compatible = "gpio-keys";
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 button@28 {
33 debounce_interval = <50>;
34 wakeup-source;
35 linux,code = <KEY_SETUP>;
36 label = "Reset to defaults";
f328c2ea 37 /* Conflict with TVC */
d08bd6b3
LW
38 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44 led@7 {
45 /* FIXME: add the LED color */
46 label = "rut1xx::gsm";
f328c2ea 47 /* Conflict with ICE */
d08bd6b3
LW
48 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
49 default-state = "on";
50 };
51 led@31 {
52 /* FIXME: add the LED color */
53 label = "rut1xx::power";
f328c2ea 54 /* Conflict with NAND CE0 */
d08bd6b3
LW
55 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
57 linux,default-trigger = "heartbeat";
58 };
59 };
60
61 soc {
62 flash@30000000 {
63 status = "okay";
64 /* 8MB of flash */
65 reg = <0x30000000 0x00800000>;
66 /* TODO: add flash partitions here */
67 };
f328c2ea
LW
68
69 syscon: syscon@40000000 {
70 pinctrl {
71 /*
72 * gpio0bgrp cover line 7 used by GSM LED
73 * gpio0fgrp cover line 17 used by power LED
74 */
75 gpio0_default_pins: pinctrl-gpio0 {
76 mux {
77 function = "gpio0";
78 groups = "gpio0bgrp",
79 "gpio0fgrp";
80 };
81 };
82 /*
83 * gpio1dgrp cover line 28-31 otherwise used
84 * by TVC.
85 */
86 gpio1_default_pins: pinctrl-gpio1 {
87 mux {
88 function = "gpio1";
89 groups = "gpio1dgrp";
90 };
91 };
92 };
93 };
94
95 gpio0: gpio@4d000000 {
96 pinctrl-names = "default";
97 pinctrl-0 = <&gpio0_default_pins>;
98 };
99
100 gpio1: gpio@4e000000 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&gpio1_default_pins>;
103 };
d08bd6b3
LW
104 };
105};