Merge branch 'timers/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-nsa310.dts
1 /dts-v1/;
2
3 #include "kirkwood-nsa310-common.dtsi"
4
5 / {
6         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         mbus {
18                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
19                 pcie-controller {
20                         status = "okay";
21
22                         pcie@1,0 {
23                                 status = "okay";
24                         };
25                 };
26         };
27
28         ocp@f1000000 {
29                 pinctrl: pinctrl@10000 {
30                         pinctrl-0 = <&pmx_unknown>;
31                         pinctrl-names = "default";
32
33                         pmx_led_esata_green: pmx-led-esata-green {
34                                 marvell,pins = "mpp12";
35                                 marvell,function = "gpio";
36                         };
37
38                         pmx_led_esata_red: pmx-led-esata-red {
39                                 marvell,pins = "mpp13";
40                                 marvell,function = "gpio";
41                         };
42
43                         pmx_led_usb_green: pmx-led-usb-green {
44                                 marvell,pins = "mpp15";
45                                 marvell,function = "gpio";
46                         };
47
48                         pmx_led_usb_red: pmx-led-usb-red {
49                                 marvell,pins = "mpp16";
50                                 marvell,function = "gpio";
51                         };
52
53                         pmx_led_sys_green: pmx-led-sys-green {
54                                 marvell,pins = "mpp28";
55                                 marvell,function = "gpio";
56                         };
57
58                         pmx_led_sys_red: pmx-led-sys-red {
59                                 marvell,pins = "mpp29";
60                                 marvell,function = "gpio";
61                         };
62
63                         pmx_btn_reset: pmx-btn-reset {
64                                 marvell,pins = "mpp36";
65                                 marvell,function = "gpio";
66                         };
67
68                         pmx_btn_copy: pmx-btn-copy {
69                                 marvell,pins = "mpp37";
70                                 marvell,function = "gpio";
71                         };
72
73                         pmx_led_copy_green: pmx-led-copy-green {
74                                 marvell,pins = "mpp39";
75                                 marvell,function = "gpio";
76                         };
77
78                         pmx_led_copy_red: pmx-led-copy-red {
79                                 marvell,pins = "mpp40";
80                                 marvell,function = "gpio";
81                         };
82
83                         pmx_led_hdd_green: pmx-led-hdd-green {
84                                 marvell,pins = "mpp41";
85                                 marvell,function = "gpio";
86                         };
87
88                         pmx_led_hdd_red: pmx-led-hdd-red {
89                                 marvell,pins = "mpp42";
90                                 marvell,function = "gpio";
91                         };
92
93                         pmx_unknown: pmx-unknown {
94                                 marvell,pins = "mpp44";
95                                 marvell,function = "gpio";
96                         };
97
98                         pmx_btn_power: pmx-btn-power {
99                                 marvell,pins = "mpp46";
100                                 marvell,function = "gpio";
101                         };
102                 };
103
104                 i2c@11000 {
105                         status = "okay";
106
107                         adt7476: adt7476a@2e {
108                                 compatible = "adt7476";
109                                 reg = <0x2e>;
110                         };
111                 };
112         };
113
114         gpio_keys {
115                 compatible = "gpio-keys";
116                 #address-cells = <1>;
117                 #size-cells = <0>;
118                 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
119                 pinctrl-names = "default";
120
121                 button@1 {
122                         label = "Power Button";
123                         linux,code = <116>;
124                         gpios = <&gpio1 14 0>;
125                 };
126                 button@2 {
127                         label = "Copy Button";
128                         linux,code = <133>;
129                         gpios = <&gpio1 5 1>;
130                 };
131                 button@3 {
132                         label = "Reset Button";
133                         linux,code = <0x198>;
134                         gpios = <&gpio1 4 1>;
135                 };
136         };
137
138         gpio-leds {
139                 compatible = "gpio-leds";
140                 pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
141                              &pmx_led_usb_green &pmx_led_usb_red
142                              &pmx_led_sys_green &pmx_led_sys_red
143                              &pmx_led_copy_green &pmx_led_copy_red
144                              &pmx_led_hdd_green &pmx_led_hdd_red>;
145                 pinctrl-names = "default";
146
147                 green-sys {
148                         label = "nsa310:green:sys";
149                         gpios = <&gpio0 28 0>;
150                 };
151                 red-sys {
152                         label = "nsa310:red:sys";
153                         gpios = <&gpio0 29 0>;
154                 };
155                 green-hdd {
156                         label = "nsa310:green:hdd";
157                         gpios = <&gpio1 9 0>;
158                 };
159                 red-hdd {
160                         label = "nsa310:red:hdd";
161                         gpios = <&gpio1 10 0>;
162                 };
163                 green-esata {
164                         label = "nsa310:green:esata";
165                         gpios = <&gpio0 12 0>;
166                 };
167                 red-esata {
168                         label = "nsa310:red:esata";
169                         gpios = <&gpio0 13 0>;
170                 };
171                 green-usb {
172                         label = "nsa310:green:usb";
173                         gpios = <&gpio0 15 0>;
174                 };
175                 red-usb {
176                         label = "nsa310:red:usb";
177                         gpios = <&gpio0 16 0>;
178                 };
179                 green-copy {
180                         label = "nsa310:green:copy";
181                         gpios = <&gpio1 7 0>;
182                 };
183                 red-copy {
184                         label = "nsa310:red:copy";
185                         gpios = <&gpio1 8 0>;
186                 };
187         };
188 };