oxnas: bring in new oxnas target
[oweals/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";
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         gpio-keys-polled {
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
70 &uart0 {
71         status = "okay";
72
73         pinctrl-names = "default";
74         pinctrl-0 = <&pinctrl_uart0>;
75 };
76
77 &nandc {
78         status = "okay";
79
80         pinctrl-names = "default";
81         pinctrl-0 = <&pinctrl_nand>;
82
83         nand@0 {
84                 reg = <0>;
85                 #address-cells = <1>;
86                 #size-cells = <1>;
87                 nand-ecc-mode = "soft";
88                 nand-ecc-algo = "hamming";
89
90                 partition@0 {
91                         label = "boot";
92                         reg = <0x00000000 0x00e00000>;
93                         read-only;
94                 };
95
96                 partition@e00000 {
97                         label = "ubi";
98                         reg = <0x00e00000 0x07200000>;
99                 };
100         };
101 };
102
103 &etha {
104         status = "okay";
105
106         pinctrl-names = "default";
107         pinctrl-0 = <&pinctrl_etha_mdio>;
108 };
109
110 &ehci {
111         status = "okay";
112 };
113
114 &sata {
115         status = "okay";
116 };