blob: e2abc8246bf3370ef4e2a360a0e15239ad474a60 [file] [log] [blame]
Jason Cooper3d468b62012-02-27 16:07:13 +00001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6281.dtsi"
Jason Cooper3d468b62012-02-27 16:07:13 +00005
6/ {
7 model = "Globalscale Technologies Dreamplug";
Andrew Lunn77843502012-07-18 19:22:54 +02008 compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
Jason Cooper3d468b62012-02-27 16:07:13 +00009
10 memory {
11 device_type = "memory";
12 reg = <0x00000000 0x20000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200n8 earlyprintk";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020017 stdout-path = &uart0;
Jason Cooper3d468b62012-02-27 16:07:13 +000018 };
19
Jason Cooper163f2ce2012-03-15 01:00:27 +000020 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020021 pinctrl: pin-controller@10000 {
Andrew Lunn56942282012-11-17 17:00:50 +010022 pmx_led_bluetooth: pmx-led-bluetooth {
23 marvell,pins = "mpp47";
24 marvell,function = "gpio";
25 };
26 pmx_led_wifi: pmx-led-wifi {
27 marvell,pins = "mpp48";
28 marvell,function = "gpio";
29 };
30 pmx_led_wifi_ap: pmx-led-wifi-ap {
31 marvell,pins = "mpp49";
32 marvell,function = "gpio";
33 };
34 };
Jason Cooper163f2ce2012-03-15 01:00:27 +000035 serial@12000 {
Jason Cooper163f2ce2012-03-15 01:00:27 +000036 status = "ok";
37 };
Michael Wallebe2aa952012-06-06 20:40:30 +020038
39 spi@10600 {
40 status = "okay";
41
42 m25p40@0 {
43 #address-cells = <1>;
44 #size-cells = <1>;
Rafał Miłecki943d45a2015-05-19 13:40:16 +020045 compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
Michael Wallebe2aa952012-06-06 20:40:30 +020046 reg = <0>;
47 spi-max-frequency = <50000000>;
48 mode = <0>;
49
50 partition@0 {
51 reg = <0x0 0x80000>;
52 label = "u-boot";
53 };
54
55 partition@100000 {
56 reg = <0x100000 0x10000>;
57 label = "u-boot env";
58 };
59
60 partition@180000 {
61 reg = <0x180000 0x10000>;
62 label = "dtb";
63 };
64 };
65 };
Andrew Lunn2cef1a22012-06-10 16:58:11 +020066
67 sata@80000 {
68 status = "okay";
69 nr-ports = <1>;
70 };
Thomas Petazzonia49da462012-12-21 15:49:11 +010071
72 mvsdio@90000 {
73 pinctrl-0 = <&pmx_sdio>;
74 pinctrl-names = "default";
75 status = "okay";
76 /* No CD or WP GPIOs */
Simon Baatzd87b5fb2013-05-13 23:18:58 +020077 broken-cd;
Thomas Petazzonia49da462012-12-21 15:49:11 +010078 };
Jason Cooper759a4512012-02-27 16:07:14 +000079 };
Michael Wallebe2aa952012-06-06 20:40:30 +020080
Andrew Lunnb94a2572012-07-17 07:55:37 +020081 gpio-leds {
82 compatible = "gpio-leds";
Thomas Petazzoni16f37ecc2013-05-24 11:44:41 +020083 pinctrl-0 = <&pmx_led_bluetooth &pmx_led_wifi
84 &pmx_led_wifi_ap >;
85 pinctrl-names = "default";
Andrew Lunnb94a2572012-07-17 07:55:37 +020086
87 bluetooth {
88 label = "dreamplug:blue:bluetooth";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010089 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020090 };
91 wifi {
92 label = "dreamplug:green:wifi";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010093 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020094 };
95 wifi-ap {
96 label = "dreamplug:green:wifi_ap";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010097 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020098 };
99 };
Jason Cooper3d468b62012-02-27 16:07:13 +0000100};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200101
102&mdio {
103 status = "okay";
104
105 ethphy0: ethernet-phy@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200106 reg = <0>;
107 };
108
109 ethphy1: ethernet-phy@1 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200110 reg = <1>;
111 };
112};
113
114&eth0 {
115 status = "okay";
116 ethernet0-port@0 {
117 phy-handle = <&ethphy0>;
118 };
119};
120
121&eth1 {
122 status = "okay";
123 ethernet1-port@0 {
124 phy-handle = <&ethphy1>;
125 };
126};