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