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