9efcd2dc79d3f74eaffb2b95bc9ff4fb9c7662db
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-ts219-6282.dts
1 /dts-v1/;
2
3 #include "kirkwood.dtsi"
4 #include "kirkwood-6282.dtsi"
5 #include "kirkwood-ts219.dtsi"
6
7 / {
8         mbus {
9                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
10                 pcie-controller {
11                         status = "okay";
12
13                         pcie@2,0 {
14                                 status = "okay";
15                         };
16                 };
17         };
18
19         ocp@f1000000 {
20                 pinctrl: pinctrl@10000 {
21
22                         pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
23                         pinctrl-names = "default";
24
25                         pmx_ram_size: pmx-ram-size {
26                                 /* RAM: 0: 256 MB, 1: 512 MB */
27                                 marvell,pins = "mpp36";
28                                 marvell,function = "gpio";
29                         };
30                         pmx_reset_button: pmx-reset-button {
31                                 marvell,pins = "mpp37";
32                                 marvell,function = "gpio";
33                         };
34                         pmx_USB_copy_button: pmx-USB-copy-button {
35                                 marvell,pins = "mpp43";
36                                 marvell,function = "gpio";
37                         };
38                         pmx_board_id: pmx-board-id {
39                                 /* 0: TS-11x, 1: TS-21x */
40                                 marvell,pins = "mpp44";
41                                 marvell,function = "gpio";
42                         };
43                 };
44         };
45
46         gpio_keys {
47                 compatible = "gpio-keys";
48                 #address-cells = <1>;
49                 #size-cells = <0>;
50                 pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
51                 pinctrl-names = "default";
52
53                 button@1 {
54                         label = "USB Copy";
55                         linux,code = <133>;
56                         gpios = <&gpio1 11 1>;
57                 };
58                 button@2 {
59                         label = "Reset";
60                         linux,code = <0x198>;
61                         gpios = <&gpio1 5 1>;
62                 };
63         };
64 };
65
66 &ethphy0 { reg = <0>; };