treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-stg212.dts
1 /*
2 * Copyright (C) 2013 OpenWrt.org
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 version 2 as
6 * published by the Free Software Foundation.
7 */
8
9 /dts-v1/;
10
11 #include "ox820.dtsi"
12
13 #include <dt-bindings/input/input.h>
14
15 / {
16 model = "MitraStar Technology Corp. STG-212";
17
18 chosen {
19 bootargs = "console=ttyS0,115200n8 earlyprintk=serial mem=128M";
20 };
21
22 uart@44200000 {
23 status = "okay";
24 };
25
26 sata@45900000 {
27 status = "okay";
28 };
29
30 nand@41000000 {
31 status = "okay";
32
33 partition@0 {
34 label = "boot";
35 reg = <0x00000000 0x00e00000>;
36 /*read-only;*/
37 };
38
39 partition@e00000 {
40 label = "ubi";
41 reg = <0x00e00000 0x07200000>;
42 };
43 };
44
45 ethernet@40400000 {
46 status = "okay";
47 };
48
49 ehci@40200100 {
50 status = "okay";
51 };
52
53 gpio-keys-polled {
54 compatible = "gpio-keys-polled";
55 #address-cells = <1>;
56 #size-cells = <0>;
57 poll-interval = <100>;
58
59 reset {
60 label = "reset";
61 gpios = <&GPIOB 11 1>;
62 linux,code = <KEY_RESTART>;
63 };
64 copy {
65 label = "copy";
66 gpios = <&GPIOB 13 1>;
67 linux,code = <KEY_COPY>;
68 };
69 };
70
71 gpio-leds {
72 compatible = "gpio-leds";
73 status {
74 label = "zyxel:blue:status";
75 gpios = <&GPIOB 5 0>;
76 };
77 status2 {
78 label = "zyxel:red:status";
79 gpios = <&GPIOB 6 1>;
80 };
81 copy {
82 label = "zyxel:orange:copy";
83 gpios = <&GPIOB 8 1>;
84 };
85 };
86
87 i2c-gpio {
88 compatible = "i2c-gpio";
89 gpios = <&GPIOB 9 0 &GPIOB 10 0>;
90 i2c-gpio,delay-us = <10>;
91 };
92
93 };