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