blob: 448b0cd23b5f146ab6779f259f745934b0bebee7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Simon Guinot98d4f2a2013-04-09 00:41:28 +02002/dts-v1/;
3
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03004#include "kirkwood.dtsi"
5#include "kirkwood-6281.dtsi"
Simon Guinot98d4f2a2013-04-09 00:41:28 +02006
7/ {
8 model = "LaCie CloudBox";
9 compatible = "lacie,cloudbox", "marvell,kirkwood-88f6702", "marvell,kirkwood";
10
11 memory {
12 device_type = "memory";
13 reg = <0x00000000 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200n8";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020018 stdout-path = &uart0;
Simon Guinot98d4f2a2013-04-09 00:41:28 +020019 };
20
21 ocp@f1000000 {
Sebastian Hesselbartha94839692014-04-30 14:56:32 +020022 pinctrl: pin-controller@10000 {
Simon Guinot98d4f2a2013-04-09 00:41:28 +020023 pmx_cloudbox_sata0: pmx-cloudbox-sata0 {
24 marvell,pins = "mpp15";
25 marvell,function = "sata0";
26 };
27 };
28
29 serial@12000 {
Simon Guinot98d4f2a2013-04-09 00:41:28 +020030 status = "okay";
31 };
32
33 sata@80000 {
Thomas Petazzoni2dd432e2013-05-24 11:44:38 +020034 pinctrl-0 = <&pmx_cloudbox_sata0>;
35 pinctrl-names = "default";
Simon Guinot98d4f2a2013-04-09 00:41:28 +020036 status = "okay";
37 nr-ports = <1>;
38 };
39
40 spi@10600 {
Simon Guinot98d4f2a2013-04-09 00:41:28 +020041 status = "okay";
42
43 flash@0 {
44 #address-cells = <1>;
45 #size-cells = <1>;
Rafał Miłecki943d45a2015-05-19 13:40:16 +020046 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
Simon Guinot98d4f2a2013-04-09 00:41:28 +020047 reg = <0>;
48 spi-max-frequency = <20000000>;
49 mode = <0>;
50
51 partition@0 {
52 reg = <0x0 0x80000>;
53 label = "u-boot";
54 };
55 };
56 };
57 };
58
59 gpio_keys {
60 compatible = "gpio-keys";
61 #address-cells = <1>;
62 #size-cells = <0>;
63
Andrew Lunn395c7552016-04-03 04:03:43 +020064 power {
Simon Guinot98d4f2a2013-04-09 00:41:28 +020065 label = "Power push button";
Andrew Lunn23301192013-12-04 16:51:38 +010066 linux,code = <KEY_POWER>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010067 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
Simon Guinot98d4f2a2013-04-09 00:41:28 +020068 };
69 };
70
71 gpio-leds {
72 compatible = "gpio-leds";
73
74 red-fail {
75 label = "cloudbox:red:fail";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010076 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
Simon Guinot98d4f2a2013-04-09 00:41:28 +020077 };
78 blue-sata {
79 label = "cloudbox:blue:sata";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010080 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
Simon Guinot98d4f2a2013-04-09 00:41:28 +020081 };
82 };
83
84 gpio_poweroff {
85 compatible = "gpio-poweroff";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010086 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
Simon Guinot98d4f2a2013-04-09 00:41:28 +020087 };
88};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020089
90&mdio {
91 status = "okay";
92
93 ethphy0: ethernet-phy@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020094 reg = <0>;
95 };
96};
97
98&eth0 {
99 status = "okay";
100 ethernet0-port@0 {
101 phy-handle = <&ethphy0>;
102 };
103};