blob: bfc1a32d4e422d5ca25dc8e1def9d0f0f0209fce [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-6282.dtsi"
5#include "kirkwood-ts219.dtsi"
Andrew Lunn9eb61f42012-05-12 14:57:59 +02006
7/ {
Ezequiel Garcia54397d82013-07-26 10:18:05 -03008 mbus {
Ezequiel Garcia54397d82013-07-26 10:18:05 -03009 pcie-controller {
10 status = "okay";
11
12 pcie@2,0 {
13 status = "okay";
14 };
15 };
16 };
17
Andrew Lunn1f6e46b2012-11-17 17:00:46 +010018 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020019 pinctrl: pin-controller@10000 {
Andrew Lunn1f6e46b2012-11-17 17:00:46 +010020
Thomas Petazzonia4936cf2013-05-24 11:44:56 +020021 pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
Andrew Lunn1f6e46b2012-11-17 17:00:46 +010022 pinctrl-names = "default";
23
24 pmx_ram_size: pmx-ram-size {
25 /* RAM: 0: 256 MB, 1: 512 MB */
26 marvell,pins = "mpp36";
27 marvell,function = "gpio";
28 };
29 pmx_reset_button: pmx-reset-button {
30 marvell,pins = "mpp37";
31 marvell,function = "gpio";
32 };
33 pmx_USB_copy_button: pmx-USB-copy-button {
34 marvell,pins = "mpp43";
35 marvell,function = "gpio";
36 };
37 pmx_board_id: pmx-board-id {
38 /* 0: TS-11x, 1: TS-21x */
39 marvell,pins = "mpp44";
40 marvell,function = "gpio";
41 };
42 };
43 };
44
Andrew Lunn9eb61f42012-05-12 14:57:59 +020045 gpio_keys {
46 compatible = "gpio-keys";
47 #address-cells = <1>;
48 #size-cells = <0>;
Thomas Petazzonia4936cf2013-05-24 11:44:56 +020049 pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
50 pinctrl-names = "default";
51
Andrew Lunn9eb61f42012-05-12 14:57:59 +020052 button@1 {
53 label = "USB Copy";
Andrew Lunn23301192013-12-04 16:51:38 +010054 linux,code = <KEY_COPY>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010055 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
Andrew Lunn9eb61f42012-05-12 14:57:59 +020056 };
57 button@2 {
58 label = "Reset";
Andrew Lunn23301192013-12-04 16:51:38 +010059 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010060 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
Andrew Lunn9eb61f42012-05-12 14:57:59 +020061 };
62 };
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020063};
64
65&ethphy0 { reg = <0>; };