treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/lynxis/omap.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 #include <dt-bindings/input/input.h>
13
14 / {
15 model = "Akitio MyCloud mini";
16
17 chosen {
18 bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
19 };
20
21 pcie-controller@47C00000 {
22 status = "disabled";
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 = "boot";
39 reg = <0x0 0x26c0000>;
40 };
41
42 partition@26c0000 {
43 label = "ubi";
44 reg = <0x26c0000 0xd940000>;
45 };
46 };
47
48 ethernet@40400000 {
49 status = "okay";
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 pinctrl-names = "default";
60 pinctrl-0 = <&pinctrl_i2c>;
61 i2c-gpio,delay-us = <10>;
62 #address-cells = <1>;
63 #size-cells = <0>;
64 ds1307: rtc@68 {
65 compatible = "dallas,ds1307";
66 reg = <0x68>;
67 };
68 };
69
70 gpio-keys-polled {
71 compatible = "gpio-keys-polled";
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_buttons>;
74 #address-cells = <1>;
75 #size-cells = <0>;
76 poll-interval = <100>;
77 power {
78 label = "power";
79 gpios = <&GPIOA 11 1>;
80 linux,code = <KEY_POWER>;
81 };
82 reset {
83 label = "reset";
84 gpios = <&GPIOB 6 1>;
85 linux,code = <KEY_RESTART>;
86 };
87 };
88
89 gpio-leds {
90 compatible = "gpio-leds";
91 pinctrl-names = "default";
92 pinctrl-0 = <&pinctrl_leds>;
93 status {
94 label = "akitio:red:status";
95 gpios = <&GPIOA 29 0>;
96 };
97 };
98
99 gpio-poweroff {
100 compatible = "gpio-poweroff";
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_poweroff>;
103 gpios = <&GPIOB 13 2>;
104 };
105
106 pinctrl {
107 i2c {
108 pinctrl_i2c: i2c-0 {
109 plxtech,pins =
110 <1 9 0 4 /* MF_B9 GPIO debounce */
111 1 10 0 4>; /* MF_B10 GPIO debounce */
112 };
113 };
114 buttons {
115 pinctrl_buttons: buttons-0 {
116 plxtech,pins =
117 <0 11 0 0 /* MF_A11 GPIO */
118 1 6 0 0>; /* MF_B6 GPIO */
119 };
120 };
121 leds {
122 pinctrl_leds: leds-0 {
123 plxtech,pins =
124 <0 29 0 0>; /* MF_A29 GPIO */
125 };
126 };
127 poweroff {
128 pinctrl_poweroff: poweroff-0 {
129 plxtech,pins =
130 <1 13 0 0>; /* MF_B13 GPIO */
131 };
132 };
133 };
134 };