blob: ebc3ed9f6c8bf58403634379ae83a045bc5dfc07 [file] [log] [blame]
Tero Jaaskoafcad882012-10-26 18:56:16 +03001/dts-v1/;
2
Jason Cooper97fdd4e2013-08-06 15:01:19 +00003#include "kirkwood-nsa310-common.dtsi"
Tero Jaaskoafcad882012-10-26 18:56:16 +03004
5/ {
Tero Jaaskoafcad882012-10-26 18:56:16 +03006 compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
7
8 memory {
9 device_type = "memory";
10 reg = <0x00000000 0x10000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
15 };
16
17 ocp@f1000000 {
Jason Cooper4ded6572013-01-26 20:50:14 +000018 pinctrl: pinctrl@10000 {
Thomas Petazzoni7a2c9bb2013-05-24 11:44:53 +020019 pinctrl-0 = <&pmx_unknown>;
Jason Cooper4ded6572013-01-26 20:50:14 +000020 pinctrl-names = "default";
21
22 pmx_led_esata_green: pmx-led-esata-green {
23 marvell,pins = "mpp12";
24 marvell,function = "gpio";
25 };
26
27 pmx_led_esata_red: pmx-led-esata-red {
28 marvell,pins = "mpp13";
29 marvell,function = "gpio";
30 };
31
32 pmx_led_usb_green: pmx-led-usb-green {
33 marvell,pins = "mpp15";
34 marvell,function = "gpio";
35 };
36
37 pmx_led_usb_red: pmx-led-usb-red {
38 marvell,pins = "mpp16";
39 marvell,function = "gpio";
40 };
41
Jason Cooper4ded6572013-01-26 20:50:14 +000042 pmx_led_sys_green: pmx-led-sys-green {
43 marvell,pins = "mpp28";
44 marvell,function = "gpio";
45 };
46
47 pmx_led_sys_red: pmx-led-sys-red {
48 marvell,pins = "mpp29";
49 marvell,function = "gpio";
50 };
51
52 pmx_btn_reset: pmx-btn-reset {
53 marvell,pins = "mpp36";
54 marvell,function = "gpio";
55 };
56
57 pmx_btn_copy: pmx-btn-copy {
58 marvell,pins = "mpp37";
59 marvell,function = "gpio";
60 };
61
62 pmx_led_copy_green: pmx-led-copy-green {
63 marvell,pins = "mpp39";
64 marvell,function = "gpio";
65 };
66
67 pmx_led_copy_red: pmx-led-copy-red {
68 marvell,pins = "mpp40";
69 marvell,function = "gpio";
70 };
71
72 pmx_led_hdd_green: pmx-led-hdd-green {
73 marvell,pins = "mpp41";
74 marvell,function = "gpio";
75 };
76
77 pmx_led_hdd_red: pmx-led-hdd-red {
78 marvell,pins = "mpp42";
79 marvell,function = "gpio";
80 };
81
82 pmx_unknown: pmx-unknown {
83 marvell,pins = "mpp44";
84 marvell,function = "gpio";
85 };
86
87 pmx_btn_power: pmx-btn-power {
88 marvell,pins = "mpp46";
89 marvell,function = "gpio";
90 };
Tero Jaaskoafcad882012-10-26 18:56:16 +030091 };
92
93 i2c@11000 {
94 status = "okay";
Andrew Lunnb4d2a242012-12-28 15:08:50 +010095
96 adt7476: adt7476a@2e {
97 compatible = "adt7476";
98 reg = <0x2e>;
99 };
Tero Jaaskoafcad882012-10-26 18:56:16 +0300100 };
Tero Jaaskoafcad882012-10-26 18:56:16 +0300101 };
102
103 gpio_keys {
104 compatible = "gpio-keys";
105 #address-cells = <1>;
106 #size-cells = <0>;
Thomas Petazzoni7a2c9bb2013-05-24 11:44:53 +0200107 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
108 pinctrl-names = "default";
Tero Jaaskoafcad882012-10-26 18:56:16 +0300109
110 button@1 {
111 label = "Power Button";
112 linux,code = <116>;
113 gpios = <&gpio1 14 0>;
114 };
115 button@2 {
116 label = "Copy Button";
117 linux,code = <133>;
118 gpios = <&gpio1 5 1>;
119 };
120 button@3 {
121 label = "Reset Button";
122 linux,code = <0x198>;
123 gpios = <&gpio1 4 1>;
124 };
125 };
126
127 gpio-leds {
128 compatible = "gpio-leds";
Thomas Petazzoni7a2c9bb2013-05-24 11:44:53 +0200129 pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
130 &pmx_led_usb_green &pmx_led_usb_red
131 &pmx_led_sys_green &pmx_led_sys_red
132 &pmx_led_copy_green &pmx_led_copy_red
133 &pmx_led_hdd_green &pmx_led_hdd_red>;
134 pinctrl-names = "default";
Tero Jaaskoafcad882012-10-26 18:56:16 +0300135
136 green-sys {
137 label = "nsa310:green:sys";
138 gpios = <&gpio0 28 0>;
139 };
140 red-sys {
141 label = "nsa310:red:sys";
142 gpios = <&gpio0 29 0>;
143 };
144 green-hdd {
145 label = "nsa310:green:hdd";
146 gpios = <&gpio1 9 0>;
147 };
148 red-hdd {
149 label = "nsa310:red:hdd";
150 gpios = <&gpio1 10 0>;
151 };
152 green-esata {
153 label = "nsa310:green:esata";
154 gpios = <&gpio0 12 0>;
155 };
156 red-esata {
157 label = "nsa310:red:esata";
158 gpios = <&gpio0 13 0>;
159 };
160 green-usb {
161 label = "nsa310:green:usb";
162 gpios = <&gpio0 15 0>;
163 };
164 red-usb {
165 label = "nsa310:red:usb";
166 gpios = <&gpio0 16 0>;
167 };
168 green-copy {
169 label = "nsa310:green:copy";
170 gpios = <&gpio1 7 0>;
171 };
172 red-copy {
173 label = "nsa310:red:copy";
174 gpios = <&gpio1 8 0>;
175 };
176 };
Tero Jaaskoafcad882012-10-26 18:56:16 +0300177};