oxnas: dts: Unify naming of gpio-keys nodes
[openwrt/openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-mitrastar-stg212.dts
1 /dts-v1/;
2
3 #include "ox820.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "MitraStar Technology Corp. STG-212";
9
10 compatible = "mitrastar,stg-212", "oxsemi,ox820";
11
12 chosen {
13 bootargs = "earlyprintk console=ttyS0,115200";
14 stdout-path = "serial0:115200n8";
15 };
16
17 memory {
18 /* 128Mbytes DDR */
19 reg = <0x60000000 0x8000000>;
20 };
21
22 aliases {
23 serial0 = &uart0;
24 gpio0 = &gpio0;
25 gpio1 = &gpio1;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <100>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio1 11 1>;
37 linux,code = <KEY_RESTART>;
38 };
39 copy {
40 label = "copy";
41 gpios = <&gpio1 13 1>;
42 linux,code = <KEY_COPY>;
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48 status {
49 label = "zyxel:blue:status";
50 gpios = <&gpio1 5 0>;
51 };
52 status2 {
53 label = "zyxel:red:status";
54 gpios = <&gpio1 6 1>;
55 };
56 copy {
57 label = "zyxel:orange:copy";
58 gpios = <&gpio1 8 1>;
59 };
60 };
61
62 i2c-gpio {
63 compatible = "i2c-gpio";
64 gpios = <&gpio1 9 0 &gpio1 10 0>;
65 i2c-gpio,delay-us = <10>;
66 };
67 };
68
69 &uart0 {
70 status = "okay";
71
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_uart0>;
74 };
75
76 &nandc {
77 status = "okay";
78
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_nand>;
81
82 nand@0 {
83 reg = <0>;
84 #address-cells = <1>;
85 #size-cells = <1>;
86 nand-ecc-mode = "soft";
87 nand-ecc-algo = "hamming";
88
89 partition@0 {
90 label = "boot";
91 reg = <0x00000000 0x00e00000>;
92 read-only;
93 };
94
95 partition@e00000 {
96 label = "ubi";
97 reg = <0x00e00000 0x07200000>;
98 };
99 };
100 };
101
102 &etha {
103 status = "okay";
104
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_etha_mdio>;
107 };
108
109 &ehci {
110 status = "okay";
111 };
112
113 &sata {
114 status = "okay";
115 };