xref: /linux/arch/arm/boot/dts/marvell/armada-370-seagate-personal-cloud.dtsi (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree common file for the Seagate Personal Cloud NAS 1 and 2-Bay
4 * (Armada 370 SoC).
5 *
6 * Copyright (C) 2015 Seagate
7 *
8 * Author: Simon Guinot <simon.guinot@sequanux.org>
9 */
10
11/*
12 * TODO: add support for the white SATA LED.
13 */
14
15#include "armada-370.dtsi"
16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/input/input.h>
18
19/ {
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23
24	memory@0 {
25		device_type = "memory";
26		reg = <0x00000000 0x20000000>; /* 512 MB */
27	};
28
29	soc {
30		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
31			  MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
32
33		internal-regs {
34			coherency-fabric@20200 {
35				broken-idle;
36			};
37
38			serial@12000 {
39				status = "okay";
40			};
41
42			ethernet@74000 {
43				status = "okay";
44				pinctrl-0 = <&ge1_rgmii_pins>;
45				pinctrl-names = "default";
46				phy = <&phy0>;
47				phy-mode = "rgmii-id";
48			};
49
50			usb@50000 {
51				status = "okay";
52			};
53		};
54	};
55
56	regulator-0 {
57		compatible = "regulator-fixed";
58		regulator-name = "USB Power";
59		regulator-min-microvolt = <5000000>;
60		regulator-max-microvolt = <5000000>;
61		regulator-always-on;
62		regulator-boot-on;
63		gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
64	};
65
66	regulator-1 {
67		compatible = "regulator-fixed";
68		regulator-name = "SATA0 power";
69		regulator-min-microvolt = <5000000>;
70		regulator-max-microvolt = <5000000>;
71		enable-active-high;
72		regulator-always-on;
73		regulator-boot-on;
74		gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
75	};
76
77	gpio-keys {
78		compatible = "gpio-keys";
79
80		button-power {
81			label = "Power button";
82			linux,code = <KEY_POWER>;
83			gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
84			debounce-interval = <100>;
85		};
86		button-reset {
87			label = "Reset Button";
88			linux,code = <KEY_RESTART>;
89			gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
90			debounce-interval = <100>;
91		};
92		button-usb {
93			label = "USB VBUS error";
94			linux,code = <KEY_UNKNOWN>;
95			gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
96			debounce-interval = <100>;
97		};
98	};
99
100	gpio-leds {
101		compatible = "gpio-leds";
102
103		led-red-sata0 {
104			label = "cumulus:red:sata0";
105			gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
106			default-state = "off";
107		};
108	};
109
110	gpio_poweroff {
111		compatible = "gpio-poweroff";
112		gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>;
113	};
114};
115
116&pciec {
117	status = "okay";
118
119	/* USB 3.0 Bridge ASM1042A */
120	pcie@1,0 {
121		status = "okay";
122	};
123};
124
125&mdio {
126	pinctrl-0 = <&mdio_pins>;
127	pinctrl-names = "default";
128
129	phy0: ethernet-phy@0 {
130		reg = <0>;
131	};
132};
133
134&pinctrl {
135	pinctrl-0 = <&sata_led_pin>;
136	pinctrl-names = "default";
137
138	sata_led_pin: sata-led-pin {
139		marvell,pins = "mpp60";
140		marvell,function = "sata0";
141	};
142	gpio_led_pin: gpio-led-pin {
143		marvell,pins = "mpp60";
144		marvell,function = "gpio";
145	};
146};
147
148&spi0 {
149	status = "okay";
150	pinctrl-0 = <&spi0_pins2>;
151	pinctrl-names = "default";
152
153	flash@0 {
154		#address-cells = <1>;
155		#size-cells = <1>;
156		/* MX25L8006E */
157		compatible = "mxicy,mx25l8005", "jedec,spi-nor";
158		reg = <0>; /* Chip select 0 */
159		spi-max-frequency = <50000000>;
160
161		partition@0 {
162			label = "u-boot";
163			reg = <0x0 0x100000>;
164		};
165	};
166};
167