]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/armada-370-seagate-nas-xbay.dtsi
Merge tag 'linux-watchdog-4.17-rc1' of git://www.linux-watchdog.org/linux-watchdog
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / armada-370-seagate-nas-xbay.dtsi
CommitLineData
ca36855e 1// SPDX-License-Identifier: GPL-2.0
85a9efcd
VD
2/*
3 * Device Tree common file for the Seagate NAS 2 and 4-bay (Armada 370 SoC).
4 *
5 * Copyright (C) 2015 Seagate
6 *
7 * Author: Vincent Donnefort <vdonnefort@gmail.com>
85a9efcd
VD
8 */
9
10/*
11 * TODO: add support for the white SATA LEDs associated with HDD 0 and 1.
12 */
13
14#include "armada-370.dtsi"
15#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/input/input.h>
17
18/ {
19 chosen {
20 stdout-path = "serial0:115200n8";
21 };
22
6f477f43 23 memory@0 {
85a9efcd
VD
24 device_type = "memory";
25 reg = <0x00000000 0x20000000>; /* 512 MB */
26 };
27
28 soc {
29 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
30 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
31
85a9efcd
VD
32 internal-regs {
33 serial@12000 {
34 status = "okay";
35 };
36
37 sata@a0000 {
38 nr-ports = <2>;
39 status = "okay";
40 };
41
85a9efcd
VD
42 ethernet@70000 {
43 status = "okay";
44 pinctrl-0 = <&ge0_rgmii_pins>;
45 pinctrl-names = "default";
46 phy = <&phy0>;
47 phy-mode = "rgmii-id";
48 };
49
50 i2c@11000 {
51 status = "okay";
52 pinctrl-0 = <&i2c0_pins>;
53 pinctrl-names = "default";
54 clock-frequency = <100000>;
55
56 /* RTC - NXP 8563T (second source) */
57 rtc@51 {
58 compatible = "nxp,pcf8563";
59 reg = <0x51>;
60 interrupts = <110>;
61 };
62 /* RTC - MCP7940NT */
63 rtc@6f {
64 compatible = "microchip,mcp7941x";
65 reg = <0x6f>;
66 interrupts = <110>;
67 };
68 };
69
70 nand@d0000 {
71 status = "okay";
72 num-cs = <1>;
73 marvell,nand-keep-config;
74 marvell,nand-enable-arbiter;
75 nand-on-flash-bbt;
76 nand-ecc-strength = <4>;
77 nand-ecc-step-size = <512>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x300000>;
82 };
83 partition@300000 {
84 label = "device-tree";
85 reg = <0x300000 0x20000>;
86 };
87 partition@320000 {
88 label = "linux";
89 reg = <0x320000 0x2000000>;
90 };
91 partition@2320000 {
92 label = "rootfs";
93 reg = <0x2320000 0xdce0000>;
94 };
95 };
96 };
97
98 };
99
100 regulators {
101 compatible = "simple-bus";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 pinctrl-names = "default";
105
106 regulator@1 {
107 compatible = "regulator-fixed";
108 reg = <1>;
109 regulator-name = "SATA0 power";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112 enable-active-high;
113 regulator-always-on;
114 regulator-boot-on;
115 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
116 };
117 regulator@2 {
118 compatible = "regulator-fixed";
119 reg = <2>;
120 regulator-name = "SATA1 power";
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
123 enable-active-high;
124 regulator-always-on;
125 regulator-boot-on;
126 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
127 };
128 };
129
130 gpio-fan {
131 compatible = "gpio-fan";
132 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH
133 &gpio2 1 GPIO_ACTIVE_HIGH>;
134 };
135
136 gpio-keys {
137 compatible = "gpio-keys";
138 #address-cells = <1>;
139 #size-cells = <0>;
140
9e622af0 141 power {
85a9efcd
VD
142 label = "Power button";
143 linux,code = <KEY_POWER>;
144 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
145 debounce-interval = <100>;
146 };
9e622af0 147 backup {
85a9efcd
VD
148 label = "Backup button";
149 linux,code = <KEY_OPTION>;
150 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
151 debounce-interval = <100>;
152 };
9e622af0 153 reset {
85a9efcd
VD
154 label = "Reset Button";
155 linux,code = <KEY_RESTART>;
156 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
157 debounce-interval = <100>;
158 };
159 };
160
161 gpio-leds {
162 compatible = "gpio-leds";
163
164 white-power {
165 label = "dart:white:power";
166 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
167 linux,default-trigger = "timer";
168
169 };
170 red-power {
171 label = "dart:red:power";
172 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
173 };
174 red-sata0 {
175 label = "dart:red:sata0";
176 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
177 };
178 red-sata1 {
179 label = "dart:red:sata1";
180 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
181 };
182 };
183
184 gpio_poweroff {
185 compatible = "gpio-poweroff";
186 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
187 };
188};
189
8d977093
GC
190&pciec {
191 status = "okay";
192
193 /* USB 3.0 bridge ASM1042A */
194 pcie@2,0 {
195 status = "okay";
196 };
197};
198
199
1fc21295
GC
200&mdio {
201 pinctrl-0 = <&mdio_pins>;
202 pinctrl-names = "default";
203
204 phy0: ethernet-phy@0 {
205 reg = <0>;
206 };
207};
208
85a9efcd
VD
209&pinctrl {
210 pinctrl-0 = <&hdd0_led_sata_pin>, <&hdd1_led_sata_pin>;
211 pinctrl-names = "default";
212
213 hdd0_led_sata_pin: hdd0-led-sata-pin {
214 marvell,pins = "mpp48";
215 marvell,function = "sata1";
216 };
217 hdd0_led_gpio_pin: hdd0-led-gpio-pin {
218 marvell,pins = "mpp48";
219 marvell,function = "gpio";
220 };
221 hdd1_led_sata_pin: hdd1-led-sata-pin {
222 marvell,pins = "mpp57";
223 marvell,function = "sata0";
224 };
225 hdd1_led_gpio_pin: hdd1-led-gpio-pin {
226 marvell,pins = "mpp57";
227 marvell,function = "gpio";
228 };
229};