blob: 7f326e2674945c3176500f7a1ab393f72fecc6b9 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Jason Cooper3d468b62012-02-27 16:07:13 +00002/dts-v1/;
3
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03004#include "kirkwood.dtsi"
5#include "kirkwood-6281.dtsi"
Jason Cooper3d468b62012-02-27 16:07:13 +00006
7/ {
8 model = "Globalscale Technologies Dreamplug";
Andrew Lunn77843502012-07-18 19:22:54 +02009 compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
Jason Cooper3d468b62012-02-27 16:07:13 +000010
11 memory {
12 device_type = "memory";
13 reg = <0x00000000 0x20000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200n8 earlyprintk";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020018 stdout-path = &uart0;
Jason Cooper3d468b62012-02-27 16:07:13 +000019 };
20
Jason Cooper163f2ce2012-03-15 01:00:27 +000021 ocp@f1000000 {
Sebastian Hesselbartha94839692014-04-30 14:56:32 +020022 pinctrl: pin-controller@10000 {
Andrew Lunn56942282012-11-17 17:00:50 +010023 pmx_led_bluetooth: pmx-led-bluetooth {
24 marvell,pins = "mpp47";
25 marvell,function = "gpio";
26 };
27 pmx_led_wifi: pmx-led-wifi {
28 marvell,pins = "mpp48";
29 marvell,function = "gpio";
30 };
31 pmx_led_wifi_ap: pmx-led-wifi-ap {
32 marvell,pins = "mpp49";
33 marvell,function = "gpio";
34 };
35 };
Jason Cooper163f2ce2012-03-15 01:00:27 +000036 serial@12000 {
Jason Cooper163f2ce2012-03-15 01:00:27 +000037 status = "ok";
38 };
Michael Wallebe2aa952012-06-06 20:40:30 +020039
40 spi@10600 {
41 status = "okay";
42
43 m25p40@0 {
44 #address-cells = <1>;
45 #size-cells = <1>;
Rafał Miłecki943d45a2015-05-19 13:40:16 +020046 compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
Michael Wallebe2aa952012-06-06 20:40:30 +020047 reg = <0>;
48 spi-max-frequency = <50000000>;
49 mode = <0>;
50
51 partition@0 {
52 reg = <0x0 0x80000>;
53 label = "u-boot";
54 };
55
56 partition@100000 {
57 reg = <0x100000 0x10000>;
58 label = "u-boot env";
59 };
60
61 partition@180000 {
62 reg = <0x180000 0x10000>;
63 label = "dtb";
64 };
65 };
66 };
Andrew Lunn2cef1a22012-06-10 16:58:11 +020067
68 sata@80000 {
69 status = "okay";
70 nr-ports = <1>;
71 };
Thomas Petazzonia49da462012-12-21 15:49:11 +010072
73 mvsdio@90000 {
74 pinctrl-0 = <&pmx_sdio>;
75 pinctrl-names = "default";
76 status = "okay";
77 /* No CD or WP GPIOs */
Simon Baatzd87b5fb2013-05-13 23:18:58 +020078 broken-cd;
Thomas Petazzonia49da462012-12-21 15:49:11 +010079 };
Jason Cooper759a4512012-02-27 16:07:14 +000080 };
Michael Wallebe2aa952012-06-06 20:40:30 +020081
Andrew Lunnb94a2572012-07-17 07:55:37 +020082 gpio-leds {
83 compatible = "gpio-leds";
Thomas Petazzoni16f37ecc2013-05-24 11:44:41 +020084 pinctrl-0 = <&pmx_led_bluetooth &pmx_led_wifi
85 &pmx_led_wifi_ap >;
86 pinctrl-names = "default";
Andrew Lunnb94a2572012-07-17 07:55:37 +020087
88 bluetooth {
89 label = "dreamplug:blue:bluetooth";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010090 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020091 };
92 wifi {
93 label = "dreamplug:green:wifi";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010094 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020095 };
96 wifi-ap {
97 label = "dreamplug:green:wifi_ap";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010098 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
Andrew Lunnb94a2572012-07-17 07:55:37 +020099 };
100 };
Jason Cooper3d468b62012-02-27 16:07:13 +0000101};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200102
103&mdio {
104 status = "okay";
105
106 ethphy0: ethernet-phy@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200107 reg = <0>;
108 };
109
110 ethphy1: ethernet-phy@1 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200111 reg = <1>;
112 };
113};
114
115&eth0 {
116 status = "okay";
117 ethernet0-port@0 {
118 phy-handle = <&ethphy0>;
119 };
120};
121
122&eth1 {
123 status = "okay";
124 ethernet1-port@0 {
125 phy-handle = <&ethphy1>;
126 };
127};