add new target 'oxnas'
[openwrt.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 / {
13         model = "Shuttle KD20";
14
15         chosen {
16                 bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
17         };
18
19         pcie-controller@47C00000 {
20                 status = "okay";
21         };
22
23         uart@44200000 {
24                 status = "okay";
25         };
26
27         sata@45900000 {
28                 status = "okay";
29         };
30
31         nand@41000000 {
32                 status = "okay";
33
34                 partition@0 {
35                         label = "boot";
36                         reg = <0x00000000 0x00e00000>;
37                         /*read-only;*/
38                 };
39
40                 partition@e00000 {
41                         label = "ubi";
42                         reg = <0x00e00000 0x07200000>;
43                 };
44         };
45
46         ethernet@40400000 {
47                 status = "okay";
48                 snps,phy-addr = <1>;
49                 phy-mode = "rgmii-id";
50         };
51
52         ehci@40200100 {
53                 status = "okay";
54         };
55
56         i2c-gpio {
57                 compatible = "i2c-gpio";
58                 gpios = <&GPIOB 9 0 &GPIOB 10 0>;
59                 i2c-gpio,delay-us = <10>;
60                 #address-cells = <1>;
61                 #size-cells = <0>;
62                 pcf8563: rtc@51 {
63                         compatible = "nxp,pcf8563";
64                         reg = <0x51>;
65                 };
66         };
67
68         gpio-keys-polled {
69                 compatible = "gpio-keys-polled";
70                 #address-cells = <1>;
71                 #size-cells = <0>;
72                 poll-interval = <100>;
73
74                 power {
75                         label = "power";
76                         gpios = <&GPIOA 10 1>;
77                         linux,code = <116>;
78                 };
79                 reset {
80                         label = "reset";
81                         gpios = <&GPIOA 11 1>;
82                         linux,code = <0x198>;
83                 };
84                 eject1 {
85                         label = "eject1";
86                         gpios = <&GPIOA 5 1>;
87                         linux,code = <161>;
88                 };
89                 eject2 {
90                         label = "eject2";
91                         gpios = <&GPIOA 6 1>;
92                         linux,code = <162>;
93                 };
94         };
95
96         gpio-leds {
97                 compatible = "gpio-leds";
98                 status {
99                         label = "kd20:blue:status";
100                         gpios = <&GPIOB 16 0>;
101                 };
102                 status2 {
103                         label = "kd20:red:status";
104                         gpios = <&GPIOB 17 0>;
105                 };
106                 hdd1blue {
107                         label = "kd20:blue:hdd1";
108                         gpios = <&GPIOA 27 0>;
109                 };
110                 hdd1red {
111                         label = "kd20:red:hdd1";
112                         gpios = <&GPIOB 4 0>;
113                 };
114                 hdd2blue {
115                         label = "kd20:blue:hdd2";
116                         gpios = <&GPIOB 6 0>;
117                 };
118                 hdd2red {
119                         label = "kd20:red:hdd2";
120                         gpios = <&GPIOB 7 0>;
121                 };
122                 usb {
123                         label = "kd20:blue:usb";
124                         gpios = <&GPIOB 8 0>;
125                 };
126                 buzzer {
127                         label = "kd20:buzzer";
128                         gpios = <&GPIOB 11 0>;
129                 };
130         };
131
132         gpio-fan {
133                 compatible = "gpio-fan";
134                 gpios = <&GPIOA 2 1>;
135         };
136 };