5da4fa441908b2d8c676195754a20ff114befb30
[openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-akitio.dts
1 /*
2  * Copyright (C) 2016 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 = "Akitio MyCloud mini";
14
15         chosen {
16                 bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
17         };
18
19         pcie-controller@47C00000 {
20                 status = "disabled";
21         };
22
23         uart@44200000 {
24                 status = "okay";
25         };
26
27         sata@45900000 {
28                 status = "okay";
29                 nr-ports = <2>;
30         };
31
32         nand@41000000 {
33                 status = "okay";
34
35                 partition@0 {
36                         label = "boot";
37                         reg = <0x0 0x26c0000>;
38                 };
39
40                 partition@26c0000 {
41                         label = "ubi";
42                         reg = <0x26c0000 0xd940000>;
43                 };
44         };
45
46         ethernet@40400000 {
47                 status = "okay";
48         };
49
50         ehci@40200100 {
51                 status = "okay";
52         };
53
54         i2c-gpio {
55                 compatible = "i2c-gpio";
56                 gpios = <&GPIOB 9 0 &GPIOB 10 0>;
57                 pinctrl-names = "default";
58                 pinctrl-0 = <&pinctrl_i2c>;
59                 i2c-gpio,delay-us = <10>;
60                 #address-cells = <1>;
61                 #size-cells = <0>;
62                 ds1307: rtc@68 {
63                         compatible = "dallas,ds1307";
64                         reg = <0x68>;
65                 };
66         };
67
68         gpio-keys-polled {
69                 compatible = "gpio-keys-polled";
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&pinctrl_buttons>;
72                 #address-cells = <1>;
73                 #size-cells = <0>;
74                 poll-interval = <100>;
75                 power {
76                         label = "power";
77                         gpios = <&GPIOA 11 1>;
78                         linux,code = <116>;
79                 }
80                 reset {
81                         label = "reset";
82                         gpios = <&GPIOB 6 1>;
83                         linux,code = <0x198>;
84                 };
85         };
86
87         gpio-leds {
88                 compatible = "gpio-leds";
89                 pinctrl-names = "default";
90                 pinctrl-0 = <&pinctrl_leds>;
91                 status {
92                         label = "akitio:red:status";
93                         gpios = <&GPIOA 29 0>;
94                 };
95         };
96
97         gpio-poweroff {
98                 compatible = "gpio-poweroff";
99                 pinctrl-names = "default";
100                 pinctrl-0 = <&pinctrl_poweroff>;
101                 gpios = <&GPIOB 13 2>;
102         };
103
104         pinctrl {
105                 i2c {
106                         pinctrl_i2c: i2c-0 {
107                                 plxtech,pins =
108                                         <1  9 0 4       /* MF_B9 GPIO debounce */
109                                          1 10 0 4>;     /* MF_B10 GPIO debounce */
110                         };
111                 };
112                 buttons {
113                         pinctrl_buttons: buttons-0 {
114                                 plxtech,pins =
115                                         <0 11 0 0       /* MF_A11 GPIO */
116                                          1  6 0 0>;     /* MF_B6 GPIO */
117                         };
118                 };
119                 leds {
120                         pinctrl_leds: leds-0 {
121                                 plxtech,pins =
122                                         <0 29 0 0>;     /* MF_A29 GPIO */
123                         };
124                 };
125                 poweroff {
126                         pinctrl_poweroff: poweroff-0 {
127                                 plxtech,pins =
128                                         <1 13 0 0>;     /* MF_B13 GPIO */
129                         };
130                 };
131         };
132 };