xref: /freebsd/sys/contrib/device-tree/src/arm/marvell/kirkwood-cloudbox.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/dts-v1/;
3f126890aSEmmanuel Vadot
4f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
5f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi"
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/ {
8f126890aSEmmanuel Vadot	model = "LaCie CloudBox";
9f126890aSEmmanuel Vadot	compatible = "lacie,cloudbox", "marvell,kirkwood-88f6702", "marvell,kirkwood";
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot	memory {
12f126890aSEmmanuel Vadot		device_type = "memory";
13f126890aSEmmanuel Vadot		reg = <0x00000000 0x10000000>;
14f126890aSEmmanuel Vadot	};
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	chosen {
17f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8";
18f126890aSEmmanuel Vadot		stdout-path = &uart0;
19f126890aSEmmanuel Vadot	};
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot	ocp@f1000000 {
22f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
23f126890aSEmmanuel Vadot			pmx_cloudbox_sata0: pmx-cloudbox-sata0 {
24f126890aSEmmanuel Vadot				marvell,pins = "mpp15";
25f126890aSEmmanuel Vadot				marvell,function = "sata0";
26f126890aSEmmanuel Vadot			};
27f126890aSEmmanuel Vadot		};
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot		serial@12000 {
30f126890aSEmmanuel Vadot			status = "okay";
31f126890aSEmmanuel Vadot		};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot		sata@80000 {
34f126890aSEmmanuel Vadot			pinctrl-0 = <&pmx_cloudbox_sata0>;
35f126890aSEmmanuel Vadot			pinctrl-names = "default";
36f126890aSEmmanuel Vadot			status = "okay";
37f126890aSEmmanuel Vadot			nr-ports = <1>;
38f126890aSEmmanuel Vadot		};
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot		spi@10600 {
41f126890aSEmmanuel Vadot			status = "okay";
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot			flash@0 {
44f126890aSEmmanuel Vadot				#address-cells = <1>;
45f126890aSEmmanuel Vadot				#size-cells = <1>;
46f126890aSEmmanuel Vadot				compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
47f126890aSEmmanuel Vadot				reg = <0>;
48f126890aSEmmanuel Vadot				spi-max-frequency = <20000000>;
49f126890aSEmmanuel Vadot				mode = <0>;
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot				partition@0 {
52f126890aSEmmanuel Vadot					reg = <0x0 0x80000>;
53f126890aSEmmanuel Vadot					label = "u-boot";
54f126890aSEmmanuel Vadot				};
55f126890aSEmmanuel Vadot			};
56f126890aSEmmanuel Vadot		};
57f126890aSEmmanuel Vadot	};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot	gpio_keys {
60f126890aSEmmanuel Vadot		compatible = "gpio-keys";
61f126890aSEmmanuel Vadot
62*0e8011faSEmmanuel Vadot		key-power {
63f126890aSEmmanuel Vadot			label = "Power push button";
64f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
65f126890aSEmmanuel Vadot			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
66f126890aSEmmanuel Vadot		};
67f126890aSEmmanuel Vadot	};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot	gpio-leds {
70f126890aSEmmanuel Vadot		compatible = "gpio-leds";
71f126890aSEmmanuel Vadot
72*0e8011faSEmmanuel Vadot		led-red-fail {
73f126890aSEmmanuel Vadot			label = "cloudbox:red:fail";
74f126890aSEmmanuel Vadot			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
75f126890aSEmmanuel Vadot		};
76*0e8011faSEmmanuel Vadot		led-blue-sata {
77f126890aSEmmanuel Vadot			label = "cloudbox:blue:sata";
78f126890aSEmmanuel Vadot			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
79f126890aSEmmanuel Vadot		};
80f126890aSEmmanuel Vadot	};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot	gpio_poweroff {
83f126890aSEmmanuel Vadot		compatible = "gpio-poweroff";
84f126890aSEmmanuel Vadot		gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
85f126890aSEmmanuel Vadot	};
86f126890aSEmmanuel Vadot};
87f126890aSEmmanuel Vadot
88f126890aSEmmanuel Vadot&mdio {
89f126890aSEmmanuel Vadot	status = "okay";
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
92f126890aSEmmanuel Vadot		reg = <0>;
93f126890aSEmmanuel Vadot	};
94f126890aSEmmanuel Vadot};
95f126890aSEmmanuel Vadot
96f126890aSEmmanuel Vadot&eth0 {
97f126890aSEmmanuel Vadot	status = "okay";
98f126890aSEmmanuel Vadot	ethernet0-port@0 {
99f126890aSEmmanuel Vadot		phy-handle = <&ethphy0>;
100f126890aSEmmanuel Vadot	};
101f126890aSEmmanuel Vadot};
102