tools/zstd: enable position independent code compilation
[openwrt/staging/blocktrron.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-mitrastar-stg-212.dts
1 /dts-v1/;
2
3 #include "ox820.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "MitraStar Technology Corp. STG-212";
10
11 compatible = "mitrastar,stg-212", "oxsemi,ox820";
12
13 chosen {
14 bootargs = "earlyprintk console=ttyS0,115200";
15 stdout-path = "serial0:115200n8";
16 };
17
18 memory {
19 /* 128Mbytes DDR */
20 reg = <0x60000000 0x8000000>;
21 };
22
23 aliases {
24 serial0 = &uart0;
25 gpio0 = &gpio0;
26 gpio1 = &gpio1;
27 led-boot = &led_status;
28 led-failsafe = &led_warn;
29 led-running = &led_status;
30 led-upgrade = &led_warn;
31 };
32
33 keys {
34 compatible = "gpio-keys-polled";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 poll-interval = <100>;
38
39 reset {
40 label = "reset";
41 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 copy {
45 label = "copy";
46 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_COPY>;
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53 led_status: status {
54 label = "zyxel:blue:status";
55 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
56 };
57 led_warn: status2 {
58 label = "zyxel:red:status";
59 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
60 };
61 copy {
62 label = "zyxel:orange:copy";
63 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
64 trigger-sources = <&ehci_port1>, <&ehci_port2>;
65 linux,default-trigger = "usbport";
66 };
67 };
68
69 i2c-gpio {
70 compatible = "i2c-gpio";
71 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH
72 &gpio1 10 GPIO_ACTIVE_HIGH>;
73 i2c-gpio,delay-us = <10>;
74 };
75 };
76
77 &uart0 {
78 status = "okay";
79
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_uart0>;
82 };
83
84 &nandc {
85 status = "okay";
86
87 pinctrl-names = "default";
88 pinctrl-0 = <&pinctrl_nand>;
89
90 nand@0 {
91 reg = <0>;
92 #address-cells = <1>;
93 #size-cells = <1>;
94 nand-ecc-mode = "soft";
95 nand-ecc-algo = "hamming";
96
97 partition@0 {
98 label = "stage1";
99 reg = <0x00000000 0x00040000>;
100 read-only;
101 };
102
103 partition@40000 {
104 label = "u-boot";
105 reg = <0x00040000 0x00380000>;
106 read-only;
107 };
108
109 partition@3c0000 {
110 label = "u-boot-env";
111 reg = <0x003c0000 0x00080000>;
112 };
113
114 partition@440000 {
115 label = "kernel";
116 reg = <0x00440000 0x009c0000>;
117 };
118
119 partition@e00000 {
120 label = "ubi";
121 reg = <0x00e00000 0x07200000>;
122 };
123 };
124 };
125
126 &etha {
127 status = "okay";
128
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_etha_mdio>;
131 };
132
133 &ehci {
134 status = "okay";
135 };
136
137 &sata {
138 status = "okay";
139 };