add new target 'oxnas'
[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 / {
14         model = "MitraStar Technology Corp. STG-212";
15
16         chosen {
17                 bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
18         };
19
20         uart@44200000 {
21                 status = "okay";
22         };
23
24         sata@45900000 {
25                 status = "okay";
26         };
27
28         nand@41000000 {
29                 status = "okay";
30
31                 partition@0 {
32                         label = "boot";
33                         reg = <0x00000000 0x00e00000>;
34                         /*read-only;*/
35                 };
36
37                 partition@e00000 {
38                         label = "ubi";
39                         reg = <0x00e00000 0x07200000>;
40                 };
41         };
42
43         ethernet@40400000 {
44                 status = "okay";
45         };
46
47         ehci@40200100 {
48                 status = "okay";
49         };
50
51         gpio-keys-polled {
52                 compatible = "gpio-keys-polled";
53                 #address-cells = <1>;
54                 #size-cells = <0>;
55                 poll-interval = <100>;
56
57                 reset {
58                         label = "reset";
59                         gpios = <&GPIOB 11 1>;
60                         linux,code = <0x198>;
61                 };
62                 copy {
63                         label = "copy";
64                         gpios = <&GPIOB 13 1>;
65                         linux,code = <0x85>;
66                 };
67         };
68
69         gpio-leds {
70                 compatible = "gpio-leds";
71                 status {
72                         label = "zyxel:blue:status";
73                         gpios = <&GPIOB 5 0>;
74                 };
75                 status2 {
76                         label = "zyxel:red:status";
77                         gpios = <&GPIOB 6 1>;
78                 };
79                 copy {
80                         label = "zyxel:orange:copy";
81                         gpios = <&GPIOB 8 1>;
82                 };
83         };
84
85         i2c-gpio {
86                 compatible = "i2c-gpio";
87                 gpios = <&GPIOB 9 0 &GPIOB 10 0>;
88                 i2c-gpio,delay-us = <10>;
89         };
90
91 };