xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-cloudbox.dts (revision b98a91911d24babe20600ad19697570ea335356f)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include "kirkwood.dtsi"
5724ba675SRob Herring#include "kirkwood-6281.dtsi"
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "LaCie CloudBox";
9724ba675SRob Herring	compatible = "lacie,cloudbox", "marvell,kirkwood-88f6702", "marvell,kirkwood";
10724ba675SRob Herring
11724ba675SRob Herring	memory {
12724ba675SRob Herring		device_type = "memory";
13724ba675SRob Herring		reg = <0x00000000 0x10000000>;
14724ba675SRob Herring	};
15724ba675SRob Herring
16724ba675SRob Herring	chosen {
17724ba675SRob Herring		bootargs = "console=ttyS0,115200n8";
18724ba675SRob Herring		stdout-path = &uart0;
19724ba675SRob Herring	};
20724ba675SRob Herring
21724ba675SRob Herring	ocp@f1000000 {
22724ba675SRob Herring		pinctrl: pin-controller@10000 {
23724ba675SRob Herring			pmx_cloudbox_sata0: pmx-cloudbox-sata0 {
24724ba675SRob Herring				marvell,pins = "mpp15";
25724ba675SRob Herring				marvell,function = "sata0";
26724ba675SRob Herring			};
27724ba675SRob Herring		};
28724ba675SRob Herring
29724ba675SRob Herring		serial@12000 {
30724ba675SRob Herring			status = "okay";
31724ba675SRob Herring		};
32724ba675SRob Herring
33724ba675SRob Herring		sata@80000 {
34724ba675SRob Herring			pinctrl-0 = <&pmx_cloudbox_sata0>;
35724ba675SRob Herring			pinctrl-names = "default";
36724ba675SRob Herring			status = "okay";
37724ba675SRob Herring			nr-ports = <1>;
38724ba675SRob Herring		};
39724ba675SRob Herring
40724ba675SRob Herring		spi@10600 {
41724ba675SRob Herring			status = "okay";
42724ba675SRob Herring
43724ba675SRob Herring			flash@0 {
44724ba675SRob Herring				#address-cells = <1>;
45724ba675SRob Herring				#size-cells = <1>;
46724ba675SRob Herring				compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
47724ba675SRob Herring				reg = <0>;
48724ba675SRob Herring				spi-max-frequency = <20000000>;
49724ba675SRob Herring				mode = <0>;
50724ba675SRob Herring
51724ba675SRob Herring				partition@0 {
52724ba675SRob Herring					reg = <0x0 0x80000>;
53724ba675SRob Herring					label = "u-boot";
54724ba675SRob Herring				};
55724ba675SRob Herring			};
56724ba675SRob Herring		};
57724ba675SRob Herring	};
58724ba675SRob Herring
59724ba675SRob Herring	gpio_keys {
60724ba675SRob Herring		compatible = "gpio-keys";
61724ba675SRob Herring		#address-cells = <1>;
62724ba675SRob Herring		#size-cells = <0>;
63724ba675SRob Herring
64*b98a9191SKrzysztof Kozlowski		key-power {
65724ba675SRob Herring			label = "Power push button";
66724ba675SRob Herring			linux,code = <KEY_POWER>;
67724ba675SRob Herring			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
68724ba675SRob Herring		};
69724ba675SRob Herring	};
70724ba675SRob Herring
71724ba675SRob Herring	gpio-leds {
72724ba675SRob Herring		compatible = "gpio-leds";
73724ba675SRob Herring
74724ba675SRob Herring		red-fail {
75724ba675SRob Herring			label = "cloudbox:red:fail";
76724ba675SRob Herring			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
77724ba675SRob Herring		};
78724ba675SRob Herring		blue-sata {
79724ba675SRob Herring			label = "cloudbox:blue:sata";
80724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
81724ba675SRob Herring		};
82724ba675SRob Herring	};
83724ba675SRob Herring
84724ba675SRob Herring	gpio_poweroff {
85724ba675SRob Herring		compatible = "gpio-poweroff";
86724ba675SRob Herring		gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
87724ba675SRob Herring	};
88724ba675SRob Herring};
89724ba675SRob Herring
90724ba675SRob Herring&mdio {
91724ba675SRob Herring	status = "okay";
92724ba675SRob Herring
93724ba675SRob Herring	ethphy0: ethernet-phy@0 {
94724ba675SRob Herring		reg = <0>;
95724ba675SRob Herring	};
96724ba675SRob Herring};
97724ba675SRob Herring
98724ba675SRob Herring&eth0 {
99724ba675SRob Herring	status = "okay";
100724ba675SRob Herring	ethernet0-port@0 {
101724ba675SRob Herring		phy-handle = <&ethphy0>;
102724ba675SRob Herring	};
103724ba675SRob Herring};
104