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