blob: 89f7094117f4469e0412c25bfae61fa5d30f29b0 [file] [log] [blame]
Andrew Lunn9eb61f42012-05-12 14:57:59 +02001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6281.dtsi"
5#include "kirkwood-ts219.dtsi"
Andrew Lunn9eb61f42012-05-12 14:57:59 +02006
7/ {
Andrew Lunn1f6e46b2012-11-17 17:00:46 +01008 ocp@f1000000 {
9 pinctrl: pinctrl@10000 {
10
Thomas Petazzonia4936cf2013-05-24 11:44:56 +020011 pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
Andrew Lunn1f6e46b2012-11-17 17:00:46 +010012 pinctrl-names = "default";
13
14 pmx_ram_size: pmx-ram-size {
15 /* RAM: 0: 256 MB, 1: 512 MB */
16 marvell,pins = "mpp36";
17 marvell,function = "gpio";
18 };
19 pmx_USB_copy_button: pmx-USB-copy-button {
20 marvell,pins = "mpp15";
21 marvell,function = "gpio";
22 };
23 pmx_reset_button: pmx-reset-button {
24 marvell,pins = "mpp16";
25 marvell,function = "gpio";
26 };
27 pmx_board_id: pmx-board-id {
28 /* 0: TS-11x, 1: TS-21x */
29 marvell,pins = "mpp44";
30 marvell,function = "gpio";
31 };
32 };
33 };
34
Andrew Lunn9eb61f42012-05-12 14:57:59 +020035 gpio_keys {
36 compatible = "gpio-keys";
37 #address-cells = <1>;
38 #size-cells = <0>;
Thomas Petazzonia4936cf2013-05-24 11:44:56 +020039 pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
40 pinctrl-names = "default";
41
Andrew Lunn9eb61f42012-05-12 14:57:59 +020042 button@1 {
43 label = "USB Copy";
Andrew Lunn23301192013-12-04 16:51:38 +010044 linux,code = <KEY_COPY>;
Andrew Lunn9eb61f42012-05-12 14:57:59 +020045 gpios = <&gpio0 15 1>;
46 };
47 button@2 {
48 label = "Reset";
Andrew Lunn23301192013-12-04 16:51:38 +010049 linux,code = <KEY_RESTART>;
Andrew Lunn9eb61f42012-05-12 14:57:59 +020050 gpios = <&gpio0 16 1>;
51 };
52 };
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020053};
54
55&ethphy0 { reg = <8>; };