1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/dts-v1/;
3*724ba675SRob Herring
4*724ba675SRob Herring#include "kirkwood.dtsi"
5*724ba675SRob Herring#include "kirkwood-6281.dtsi"
6*724ba675SRob Herring
7*724ba675SRob Herring/ {
8*724ba675SRob Herring	model = "Globalscale Technologies Dreamplug";
9*724ba675SRob Herring	compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10*724ba675SRob Herring
11*724ba675SRob Herring	memory {
12*724ba675SRob Herring		device_type = "memory";
13*724ba675SRob Herring		reg = <0x00000000 0x20000000>;
14*724ba675SRob Herring	};
15*724ba675SRob Herring
16*724ba675SRob Herring	chosen {
17*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
18*724ba675SRob Herring		stdout-path = &uart0;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	ocp@f1000000 {
22*724ba675SRob Herring		pinctrl: pin-controller@10000 {
23*724ba675SRob Herring			pmx_led_bluetooth: pmx-led-bluetooth {
24*724ba675SRob Herring				marvell,pins = "mpp47";
25*724ba675SRob Herring				marvell,function = "gpio";
26*724ba675SRob Herring			};
27*724ba675SRob Herring			pmx_led_wifi: pmx-led-wifi {
28*724ba675SRob Herring				marvell,pins = "mpp48";
29*724ba675SRob Herring				marvell,function = "gpio";
30*724ba675SRob Herring			};
31*724ba675SRob Herring			pmx_led_wifi_ap: pmx-led-wifi-ap {
32*724ba675SRob Herring				marvell,pins = "mpp49";
33*724ba675SRob Herring				marvell,function = "gpio";
34*724ba675SRob Herring			};
35*724ba675SRob Herring		};
36*724ba675SRob Herring		serial@12000 {
37*724ba675SRob Herring			status = "okay";
38*724ba675SRob Herring		};
39*724ba675SRob Herring
40*724ba675SRob Herring		spi@10600 {
41*724ba675SRob Herring			status = "okay";
42*724ba675SRob Herring
43*724ba675SRob Herring			m25p40@0 {
44*724ba675SRob Herring				#address-cells = <1>;
45*724ba675SRob Herring				#size-cells = <1>;
46*724ba675SRob Herring				compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
47*724ba675SRob Herring				reg = <0>;
48*724ba675SRob Herring				spi-max-frequency = <50000000>;
49*724ba675SRob Herring				mode = <0>;
50*724ba675SRob Herring
51*724ba675SRob Herring				partition@0 {
52*724ba675SRob Herring					reg = <0x0 0x80000>;
53*724ba675SRob Herring					label = "u-boot";
54*724ba675SRob Herring				};
55*724ba675SRob Herring
56*724ba675SRob Herring				partition@100000 {
57*724ba675SRob Herring					reg = <0x100000 0x10000>;
58*724ba675SRob Herring					label = "u-boot env";
59*724ba675SRob Herring				};
60*724ba675SRob Herring
61*724ba675SRob Herring				partition@180000 {
62*724ba675SRob Herring					reg = <0x180000 0x10000>;
63*724ba675SRob Herring					label = "dtb";
64*724ba675SRob Herring				};
65*724ba675SRob Herring			};
66*724ba675SRob Herring		};
67*724ba675SRob Herring
68*724ba675SRob Herring		sata@80000 {
69*724ba675SRob Herring			status = "okay";
70*724ba675SRob Herring			nr-ports = <1>;
71*724ba675SRob Herring		};
72*724ba675SRob Herring
73*724ba675SRob Herring		mvsdio@90000 {
74*724ba675SRob Herring			pinctrl-0 = <&pmx_sdio>;
75*724ba675SRob Herring			pinctrl-names = "default";
76*724ba675SRob Herring			status = "okay";
77*724ba675SRob Herring			/* No CD or WP GPIOs */
78*724ba675SRob Herring			broken-cd;
79*724ba675SRob Herring		};
80*724ba675SRob Herring	};
81*724ba675SRob Herring
82*724ba675SRob Herring	gpio-leds {
83*724ba675SRob Herring		compatible = "gpio-leds";
84*724ba675SRob Herring		pinctrl-0 = <&pmx_led_bluetooth &pmx_led_wifi
85*724ba675SRob Herring			     &pmx_led_wifi_ap >;
86*724ba675SRob Herring		pinctrl-names = "default";
87*724ba675SRob Herring
88*724ba675SRob Herring		bluetooth {
89*724ba675SRob Herring			label = "dreamplug:blue:bluetooth";
90*724ba675SRob Herring			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
91*724ba675SRob Herring		};
92*724ba675SRob Herring		wifi {
93*724ba675SRob Herring			label = "dreamplug:green:wifi";
94*724ba675SRob Herring			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
95*724ba675SRob Herring		};
96*724ba675SRob Herring		wifi-ap {
97*724ba675SRob Herring			label = "dreamplug:green:wifi_ap";
98*724ba675SRob Herring			gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
99*724ba675SRob Herring		};
100*724ba675SRob Herring	};
101*724ba675SRob Herring};
102*724ba675SRob Herring
103*724ba675SRob Herring&mdio {
104*724ba675SRob Herring	status = "okay";
105*724ba675SRob Herring
106*724ba675SRob Herring	ethphy0: ethernet-phy@0 {
107*724ba675SRob Herring		reg = <0>;
108*724ba675SRob Herring	};
109*724ba675SRob Herring
110*724ba675SRob Herring	ethphy1: ethernet-phy@1 {
111*724ba675SRob Herring		reg = <1>;
112*724ba675SRob Herring	};
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&eth0 {
116*724ba675SRob Herring	status = "okay";
117*724ba675SRob Herring	ethernet0-port@0 {
118*724ba675SRob Herring		phy-handle = <&ethphy0>;
119*724ba675SRob Herring	};
120*724ba675SRob Herring};
121*724ba675SRob Herring
122*724ba675SRob Herring&eth1 {
123*724ba675SRob Herring	status = "okay";
124*724ba675SRob Herring	ethernet1-port@0 {
125*724ba675SRob Herring		phy-handle = <&ethphy1>;
126*724ba675SRob Herring	};
127*724ba675SRob Herring};
128