oxnas: enable pcie_phy on boards utilizing PCIe
[openwrt/staging/wigyori.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-shuttle-kd20.dts
1 /dts-v1/;
2
3 #include "ox820.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Shuttle KD20";
9
10 compatible = "shuttle,kd20", "oxsemi,ox820";
11
12 chosen {
13 bootargs = "earlyprintk console=ttyS0,115200";
14 stdout-path = "serial0:115200n8";
15 };
16
17 memory {
18 /* 256Mbytes DDR */
19 reg = <0x60000000 0x10000000>;
20 };
21
22 aliases {
23 serial0 = &uart0;
24 gpio0 = &gpio0;
25 gpio1 = &gpio1;
26 led-boot = &led_status;
27 led-failsafe = &led_warn;
28 led-running = &led_status;
29 led-upgrade = &led_warn;
30 };
31
32 i2c-gpio {
33 compatible = "i2c-gpio";
34 gpios = <&gpio1 9 0 &gpio1 10 0>;
35 i2c-gpio,delay-us = <10>;
36 #address-cells = <1>;
37 #size-cells = <0>;
38 rtc0: rtc@51 {
39 compatible = "nxp,pcf8563";
40 reg = <0x51>;
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys-polled";
46 #address-cells = <1>;
47 #size-cells = <0>;
48 poll-interval = <100>;
49
50 power {
51 label = "power";
52 gpios = <&gpio0 10 1>;
53 linux,code = <KEY_POWER>;
54 };
55 reset {
56 label = "reset";
57 gpios = <&gpio0 11 1>;
58 linux,code = <KEY_RESTART>;
59 };
60 eject1 {
61 label = "eject1";
62 gpios = <&gpio0 5 1>;
63 linux,code = <KEY_EJECTCD>;
64 };
65 eject2 {
66 label = "eject2";
67 gpios = <&gpio0 6 1>;
68 linux,code = <162>;
69 };
70 };
71
72 leds {
73 compatible = "gpio-leds";
74 led_status: status {
75 label = "kd20:blue:status";
76 gpios = <&gpio1 16 0>;
77 };
78 led_warn: status2 {
79 label = "kd20:red:status";
80 gpios = <&gpio1 17 0>;
81 };
82 hdd1blue {
83 label = "kd20:blue:hdd1";
84 gpios = <&gpio0 27 0>;
85 linux,default-trigger = "ata1";
86 };
87 hdd1red {
88 label = "kd20:red:hdd1";
89 gpios = <&gpio1 4 0>;
90 };
91 hdd2blue {
92 label = "kd20:blue:hdd2";
93 gpios = <&gpio1 6 0>;
94 linux,default-trigger = "ata2";
95 };
96 hdd2red {
97 label = "kd20:red:hdd2";
98 gpios = <&gpio1 7 0>;
99 };
100 usb {
101 label = "kd20:blue:usb";
102 gpios = <&gpio1 8 0>;
103 trigger-sources = <&ehci_port1>, <&ehci_port2>;
104 linux,default-trigger = "usbport";
105 };
106 };
107
108 beeper: beeper {
109 compatible = "gpio-beeper";
110 gpios = <&gpio1 11 0>;
111 };
112
113 gpio-fan {
114 compatible = "gpio-fan";
115 gpios = <&gpio0 2 1>;
116 gpio-fan,speed-map = <0 0
117 3000 1>;
118 };
119
120 gpio-poweroff {
121 compatible = "gpio-poweroff";
122 gpios = <&gpio0 9 0>;
123 };
124 };
125
126 &uart0 {
127 status = "okay";
128
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_uart0>;
131 };
132
133 &nandc {
134 status = "okay";
135
136 pinctrl-names = "default";
137 pinctrl-0 = <&pinctrl_nand>;
138
139 nand@0 {
140 reg = <0>;
141 #address-cells = <1>;
142 #size-cells = <1>;
143 nand-ecc-mode = "soft";
144 nand-ecc-algo = "hamming";
145
146 partition@0 {
147 label = "stage1";
148 reg = <0x00000000 0x00040000>;
149 read-only;
150 };
151
152 partition@40000 {
153 label = "u-boot";
154 reg = <0x00040000 0x001e0000>;
155 read-only;
156 };
157
158 partition@220000 {
159 label = "u-boot-env";
160 reg = <0x00220000 0x00020000>;
161 };
162
163 partition@240000 {
164 label = "initrd";
165 reg = <0x00240000 0x00600000>;
166 };
167
168 partition@840000 {
169 label = "kernel";
170 reg = <0x00840000 0x007C0000>;
171 };
172
173 partition@e00000 {
174 label = "ubi";
175 reg = <0x01000000 0x07000000>;
176 };
177 };
178 };
179
180 &etha {
181 status = "okay";
182
183 pinctrl-names = "default";
184 pinctrl-0 = <&pinctrl_etha_mdio>;
185 };
186
187 &ehci {
188 status = "okay";
189 };
190
191 &sata {
192 status = "okay";
193 nr-ports = <2>;
194 };
195
196 &pcie_phy {
197 status = "okay";
198 };
199
200 &pcie0 {
201 status = "okay";
202 };