tools/zstd: enable position independent code compilation
[openwrt/openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-akitio-mycloud.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 = "Akitio MyCloud";
10
11 compatible = "akitio,mycloud", "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_status;
29 led-running = &led_status;
30 led-upgrade = &led_status;
31 };
32
33 i2c-gpio {
34 compatible = "i2c-gpio";
35 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH
36 &gpio1 10 GPIO_ACTIVE_HIGH>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&pinctrl_i2c>;
39 i2c-gpio,delay-us = <10>;
40 #address-cells = <1>;
41 #size-cells = <0>;
42 ds1307: rtc@68 {
43 compatible = "dallas,ds1307";
44 reg = <0x68>;
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys-polled";
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_buttons>;
52 #address-cells = <1>;
53 #size-cells = <0>;
54 poll-interval = <100>;
55 power {
56 label = "power";
57 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_POWER>;
59 };
60 reset {
61 label = "reset";
62 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
64 };
65 };
66
67 leds {
68 compatible = "gpio-leds";
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_leds>;
71 led_status: status {
72 label = "akitio:red:status";
73 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
74 };
75 };
76
77 gpio-poweroff {
78 compatible = "gpio-poweroff";
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_poweroff>;
81 gpios = <&gpio1 13 GPIO_SINGLE_ENDED>;
82 };
83 };
84
85 &pinctrl {
86 pinctrl_i2c: i2c-0 {
87 i2c {
88 pins = "gpio41", "gpio42"; /* MF_B9, MF_B10 */
89 function = "gpio";
90 /* ToDo: find a way to set debounce for those pins */
91 };
92 };
93 pinctrl_buttons: buttons-0 {
94 buttons {
95 pins = "gpio11", "gpio38"; /* MF_A11, MF_B6 GPIO */
96 function = "gpio";
97 };
98 };
99 pinctrl_leds: leds-0 {
100 leds {
101 pins = "gpio29"; /* MF_A29 GPIO */
102 function = "gpio";
103 };
104 };
105 pinctrl_poweroff: poweroff-0 {
106 poweroff {
107 pins = "gpio45"; /* MF_B13 GPIO */
108 function = "gpio";
109 };
110 };
111 };
112
113 &uart0 {
114 status = "okay";
115
116 pinctrl-names = "default";
117 pinctrl-0 = <&pinctrl_uart0>;
118 };
119
120 &nandc {
121 status = "okay";
122
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_nand>;
125
126 nand@0 {
127 reg = <0>;
128 #address-cells = <1>;
129 #size-cells = <1>;
130 nand-ecc-mode = "soft";
131 nand-ecc-algo = "hamming";
132
133 partition@0 {
134 label = "boot";
135 reg = <0x0 0x26c0000>;
136 };
137
138 partition@26c0000 {
139 label = "ubi";
140 reg = <0x26c0000 0xd940000>;
141 };
142 };
143 };
144
145 &etha {
146 status = "okay";
147
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinctrl_etha_mdio>;
150 };
151
152 &ehci {
153 status = "okay";
154 };
155
156 &sata {
157 status = "okay";
158 nr-ports = <2>;
159 };
160
161 &pcie_phy {
162 status = "okay";
163 };
164
165 &pcie0 {
166 status = "okay";
167 };