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