oxnas: drop support for kernel 4.1
[lede.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-kd20.dts
1 /*
2  * Copyright (C) 2014 Daniel Golle <daniel@makrotopia.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 /dts-v1/;
10 #include "ox820.dtsi"
11
12 #include <dt-bindings/input/input.h>
13
14 / {
15         model = "Shuttle KD20";
16
17         chosen {
18                 bootargs = "console=ttyS0,115200n8 earlyprintk=serial mem=256M";
19         };
20
21         pcie-controller@47C00000 {
22                 status = "okay";
23         };
24
25         uart@44200000 {
26                 status = "okay";
27         };
28
29         sata@45900000 {
30                 status = "okay";
31                 nr-ports = <2>;
32         };
33
34         nand@41000000 {
35                 status = "okay";
36
37                 partition@0 {
38                         label = "stage1";
39                         reg = <0x00000000 0x00040000>;
40                         read-only;
41                 };
42
43                 partition@40000 {
44                         label = "u-boot";
45                         reg = <0x00040000 0x00200000>;
46                         read-only;
47                 };
48
49                 partition@240000 {
50                         label = "initrd";
51                         reg = <0x00240000 0x00600000>;
52                 };
53
54                 partition@840000 {
55                         label = "kernel";
56                         reg = <0x00840000 0x007C0000>;
57                 };
58
59                 partition@e00000 {
60                         label = "ubi";
61                         reg = <0x01000000 0x07000000>;
62                 };
63         };
64
65         ethernet@40400000 {
66                 status = "okay";
67                 snps,phy-addr = <1>;
68                 phy-mode = "rgmii-id";
69         };
70
71         ehci@40200100 {
72                 status = "okay";
73         };
74
75         i2c-gpio {
76                 compatible = "i2c-gpio";
77                 gpios = <&GPIOB 9 0 &GPIOB 10 0>;
78                 i2c-gpio,delay-us = <10>;
79                 #address-cells = <1>;
80                 #size-cells = <0>;
81                 pcf8563: rtc@51 {
82                         compatible = "nxp,pcf8563";
83                         reg = <0x51>;
84                 };
85         };
86
87         gpio-keys-polled {
88                 compatible = "gpio-keys-polled";
89                 #address-cells = <1>;
90                 #size-cells = <0>;
91                 poll-interval = <100>;
92
93                 power {
94                         label = "power";
95                         gpios = <&GPIOA 10 1>;
96                         linux,code = <KEY_POWER>;
97                 };
98                 reset {
99                         label = "reset";
100                         gpios = <&GPIOA 11 1>;
101                         linux,code = <KEY_RESTART>;
102                 };
103                 eject1 {
104                         label = "eject1";
105                         gpios = <&GPIOA 5 1>;
106                         linux,code = <KEY_EJECTCD>;
107                 };
108                 eject2 {
109                         label = "eject2";
110                         gpios = <&GPIOA 6 1>;
111                         linux,code = <162>;
112                 };
113         };
114
115         gpio-leds {
116                 compatible = "gpio-leds";
117                 status {
118                         label = "kd20:blue:status";
119                         gpios = <&GPIOB 16 0>;
120                 };
121                 status2 {
122                         label = "kd20:red:status";
123                         gpios = <&GPIOB 17 0>;
124                 };
125                 hdd1blue {
126                         label = "kd20:blue:hdd1";
127                         gpios = <&GPIOA 27 0>;
128                         linux,default-trigger = "ata1";
129                 };
130                 hdd1red {
131                         label = "kd20:red:hdd1";
132                         gpios = <&GPIOB 4 0>;
133                 };
134                 hdd2blue {
135                         label = "kd20:blue:hdd2";
136                         gpios = <&GPIOB 6 0>;
137                         linux,default-trigger = "ata2";
138                 };
139                 hdd2red {
140                         label = "kd20:red:hdd2";
141                         gpios = <&GPIOB 7 0>;
142                 };
143                 usb {
144                         label = "kd20:blue:usb";
145                         gpios = <&GPIOB 8 0>;
146                 };
147         };
148
149         beeper: beeper {
150                 compatible = "gpio-beeper";
151                 gpios = <&GPIOB 11 0>;
152         };
153
154         gpio-fan {
155                 compatible = "gpio-fan";
156                 gpios = <&GPIOA 2 1>;
157                 gpio-fan,speed-map = <0    0
158                                       3000 1>;
159         };
160
161         gpio-poweroff {
162                 compatible = "gpio-poweroff";
163                 gpios = <&GPIOA 9 0>;
164         };
165 };