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