oxnas: switch to kmod-ledtrig-usb-port
[openwrt/staging/wigyori.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 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 trigger-sources = <&ehci_port1>, <&ehci_port2>;
60 linux,default-trigger = "usbport";
61 };
62 };
63
64 i2c-gpio {
65 compatible = "i2c-gpio";
66 gpios = <&gpio1 9 0 &gpio1 10 0>;
67 i2c-gpio,delay-us = <10>;
68 };
69 };
70
71 &uart0 {
72 status = "okay";
73
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_uart0>;
76 };
77
78 &nandc {
79 status = "okay";
80
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_nand>;
83
84 nand@0 {
85 reg = <0>;
86 #address-cells = <1>;
87 #size-cells = <1>;
88 nand-ecc-mode = "soft";
89 nand-ecc-algo = "hamming";
90
91 partition@0 {
92 label = "stage1";
93 reg = <0x00000000 0x00040000>;
94 read-only;
95 };
96
97 partition@40000 {
98 label = "u-boot";
99 reg = <0x00040000 0x00380000>;
100 read-only;
101 };
102
103 partition@3c0000 {
104 label = "u-boot-env";
105 reg = <0x003c0000 0x00080000>;
106 };
107
108 partition@440000 {
109 label = "kernel";
110 reg = <0x00440000 0x009c0000>;
111 };
112
113 partition@e00000 {
114 label = "ubi";
115 reg = <0x00e00000 0x07200000>;
116 };
117 };
118 };
119
120 &etha {
121 status = "okay";
122
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_etha_mdio>;
125 };
126
127 &ehci {
128 status = "okay";
129 };
130
131 &sata {
132 status = "okay";
133 };