xref: /linux/arch/arm/boot/dts/marvell/armada-370-netgear-rn102.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree file for NETGEAR ReadyNAS 102
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring
10*724ba675SRob Herring#include <dt-bindings/input/input.h>
11*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
12*724ba675SRob Herring#include "armada-370.dtsi"
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "NETGEAR ReadyNAS 102";
16*724ba675SRob Herring	compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
17*724ba675SRob Herring
18*724ba675SRob Herring	chosen {
19*724ba675SRob Herring		stdout-path = "serial0:115200n8";
20*724ba675SRob Herring	};
21*724ba675SRob Herring
22*724ba675SRob Herring	memory@0 {
23*724ba675SRob Herring		device_type = "memory";
24*724ba675SRob Herring		reg = <0x00000000 0x20000000>; /* 512 MB */
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	soc {
28*724ba675SRob Herring		ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
29*724ba675SRob Herring			  MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
30*724ba675SRob Herring			  MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
31*724ba675SRob Herring
32*724ba675SRob Herring		internal-regs {
33*724ba675SRob Herring
34*724ba675SRob Herring			/* RTC is provided by Intersil ISL12057 I2C RTC chip */
35*724ba675SRob Herring			rtc@10300 {
36*724ba675SRob Herring				status = "disabled";
37*724ba675SRob Herring			};
38*724ba675SRob Herring
39*724ba675SRob Herring			serial@12000 {
40*724ba675SRob Herring				status = "okay";
41*724ba675SRob Herring			};
42*724ba675SRob Herring
43*724ba675SRob Herring			/* eSATA interface */
44*724ba675SRob Herring			sata@a0000 {
45*724ba675SRob Herring				nr-ports = <1>;
46*724ba675SRob Herring				status = "okay";
47*724ba675SRob Herring			};
48*724ba675SRob Herring
49*724ba675SRob Herring			ethernet@74000 {
50*724ba675SRob Herring				pinctrl-0 = <&ge1_rgmii_pins>;
51*724ba675SRob Herring				pinctrl-names = "default";
52*724ba675SRob Herring				status = "okay";
53*724ba675SRob Herring				phy = <&phy0>;
54*724ba675SRob Herring				phy-mode = "rgmii-id";
55*724ba675SRob Herring			};
56*724ba675SRob Herring
57*724ba675SRob Herring			usb@50000 {
58*724ba675SRob Herring				status = "okay";
59*724ba675SRob Herring			};
60*724ba675SRob Herring
61*724ba675SRob Herring			i2c@11000 {
62*724ba675SRob Herring				clock-frequency = <100000>;
63*724ba675SRob Herring
64*724ba675SRob Herring				pinctrl-0 = <&i2c0_pins>;
65*724ba675SRob Herring				pinctrl-names = "default";
66*724ba675SRob Herring
67*724ba675SRob Herring				status = "okay";
68*724ba675SRob Herring
69*724ba675SRob Herring				isl12057: rtc@68 {
70*724ba675SRob Herring					compatible = "isil,isl12057";
71*724ba675SRob Herring					reg = <0x68>;
72*724ba675SRob Herring					wakeup-source;
73*724ba675SRob Herring				};
74*724ba675SRob Herring
75*724ba675SRob Herring				g762: g762@3e {
76*724ba675SRob Herring					compatible = "gmt,g762";
77*724ba675SRob Herring					reg = <0x3e>;
78*724ba675SRob Herring					clocks = <&g762_clk>; /* input clock */
79*724ba675SRob Herring					fan_gear_mode = <0>;
80*724ba675SRob Herring					fan_startv = <1>;
81*724ba675SRob Herring					pwm_polarity = <0>;
82*724ba675SRob Herring				};
83*724ba675SRob Herring			};
84*724ba675SRob Herring		};
85*724ba675SRob Herring	};
86*724ba675SRob Herring
87*724ba675SRob Herring	clocks {
88*724ba675SRob Herring		g762_clk: g762-oscillator {
89*724ba675SRob Herring			compatible = "fixed-clock";
90*724ba675SRob Herring			#clock-cells = <0>;
91*724ba675SRob Herring			clock-frequency = <8192>;
92*724ba675SRob Herring		};
93*724ba675SRob Herring	};
94*724ba675SRob Herring
95*724ba675SRob Herring	gpio-leds {
96*724ba675SRob Herring		compatible = "gpio-leds";
97*724ba675SRob Herring		pinctrl-0 = <&power_led_pin
98*724ba675SRob Herring			     &sata1_led_pin
99*724ba675SRob Herring			     &sata2_led_pin
100*724ba675SRob Herring			     &backup_led_pin>;
101*724ba675SRob Herring		pinctrl-names = "default";
102*724ba675SRob Herring
103*724ba675SRob Herring		blue-power-led {
104*724ba675SRob Herring			label = "rn102:blue:pwr";
105*724ba675SRob Herring			gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
106*724ba675SRob Herring			default-state = "keep";
107*724ba675SRob Herring		};
108*724ba675SRob Herring
109*724ba675SRob Herring		blue-sata1-led {
110*724ba675SRob Herring			label = "rn102:blue:sata1";
111*724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
112*724ba675SRob Herring			default-state = "on";
113*724ba675SRob Herring		};
114*724ba675SRob Herring
115*724ba675SRob Herring		blue-sata2-led {
116*724ba675SRob Herring			label = "rn102:blue:sata2";
117*724ba675SRob Herring			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
118*724ba675SRob Herring			default-state = "on";
119*724ba675SRob Herring		};
120*724ba675SRob Herring
121*724ba675SRob Herring		blue-backup-led {
122*724ba675SRob Herring			label = "rn102:blue:backup";
123*724ba675SRob Herring			gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
124*724ba675SRob Herring			default-state = "on";
125*724ba675SRob Herring		};
126*724ba675SRob Herring	};
127*724ba675SRob Herring
128*724ba675SRob Herring	gpio-keys {
129*724ba675SRob Herring		compatible = "gpio-keys";
130*724ba675SRob Herring		pinctrl-0 = <&power_button_pin
131*724ba675SRob Herring			     &reset_button_pin
132*724ba675SRob Herring			     &backup_button_pin>;
133*724ba675SRob Herring		pinctrl-names = "default";
134*724ba675SRob Herring
135*724ba675SRob Herring		power-button {
136*724ba675SRob Herring			label = "Power Button";
137*724ba675SRob Herring			linux,code = <KEY_POWER>;
138*724ba675SRob Herring			gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
139*724ba675SRob Herring		};
140*724ba675SRob Herring
141*724ba675SRob Herring		reset-button {
142*724ba675SRob Herring			label = "Reset Button";
143*724ba675SRob Herring			linux,code = <KEY_RESTART>;
144*724ba675SRob Herring			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		backup-button {
148*724ba675SRob Herring			label = "Backup Button";
149*724ba675SRob Herring			linux,code = <KEY_COPY>;
150*724ba675SRob Herring			gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
151*724ba675SRob Herring		};
152*724ba675SRob Herring	};
153*724ba675SRob Herring
154*724ba675SRob Herring	gpio-poweroff {
155*724ba675SRob Herring		compatible = "gpio-poweroff";
156*724ba675SRob Herring		pinctrl-0 = <&poweroff>;
157*724ba675SRob Herring		pinctrl-names = "default";
158*724ba675SRob Herring		gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
159*724ba675SRob Herring	};
160*724ba675SRob Herring};
161*724ba675SRob Herring
162*724ba675SRob Herring&pciec {
163*724ba675SRob Herring	status = "okay";
164*724ba675SRob Herring
165*724ba675SRob Herring	/* Connected to Marvell 88SE9170 SATA controller */
166*724ba675SRob Herring	pcie@1,0 {
167*724ba675SRob Herring		/* Port 0, Lane 0 */
168*724ba675SRob Herring		status = "okay";
169*724ba675SRob Herring	};
170*724ba675SRob Herring
171*724ba675SRob Herring	/* Connected to FL1009 USB 3.0 controller */
172*724ba675SRob Herring	pcie@2,0 {
173*724ba675SRob Herring		/* Port 1, Lane 0 */
174*724ba675SRob Herring		status = "okay";
175*724ba675SRob Herring	};
176*724ba675SRob Herring};
177*724ba675SRob Herring
178*724ba675SRob Herring&mdio {
179*724ba675SRob Herring	pinctrl-0 = <&mdio_pins>;
180*724ba675SRob Herring	pinctrl-names = "default";
181*724ba675SRob Herring	phy0: ethernet-phy@0 { /* Marvell 88E1318 */
182*724ba675SRob Herring		reg = <0>;
183*724ba675SRob Herring	};
184*724ba675SRob Herring};
185*724ba675SRob Herring
186*724ba675SRob Herring&pinctrl {
187*724ba675SRob Herring	power_led_pin: power-led-pin {
188*724ba675SRob Herring		marvell,pins = "mpp57";
189*724ba675SRob Herring		marvell,function = "gpio";
190*724ba675SRob Herring	};
191*724ba675SRob Herring
192*724ba675SRob Herring	sata1_led_pin: sata1-led-pin {
193*724ba675SRob Herring		marvell,pins = "mpp15";
194*724ba675SRob Herring		marvell,function = "gpio";
195*724ba675SRob Herring	};
196*724ba675SRob Herring
197*724ba675SRob Herring	sata2_led_pin: sata2-led-pin {
198*724ba675SRob Herring		marvell,pins = "mpp14";
199*724ba675SRob Herring		marvell,function = "gpio";
200*724ba675SRob Herring	};
201*724ba675SRob Herring
202*724ba675SRob Herring	backup_led_pin: backup-led-pin {
203*724ba675SRob Herring		marvell,pins = "mpp56";
204*724ba675SRob Herring		marvell,function = "gpio";
205*724ba675SRob Herring	};
206*724ba675SRob Herring
207*724ba675SRob Herring	backup_button_pin: backup-button-pin {
208*724ba675SRob Herring		marvell,pins = "mpp58";
209*724ba675SRob Herring		marvell,function = "gpio";
210*724ba675SRob Herring	};
211*724ba675SRob Herring
212*724ba675SRob Herring	power_button_pin: power-button-pin {
213*724ba675SRob Herring		marvell,pins = "mpp62";
214*724ba675SRob Herring		marvell,function = "gpio";
215*724ba675SRob Herring	};
216*724ba675SRob Herring
217*724ba675SRob Herring	reset_button_pin: reset-button-pin {
218*724ba675SRob Herring		marvell,pins = "mpp6";
219*724ba675SRob Herring		marvell,function = "gpio";
220*724ba675SRob Herring	};
221*724ba675SRob Herring
222*724ba675SRob Herring	poweroff: poweroff {
223*724ba675SRob Herring		marvell,pins = "mpp8";
224*724ba675SRob Herring		marvell,function = "gpio";
225*724ba675SRob Herring	};
226*724ba675SRob Herring};
227*724ba675SRob Herring
228*724ba675SRob Herring&nand_controller {
229*724ba675SRob Herring	status = "okay";
230*724ba675SRob Herring
231*724ba675SRob Herring	nand@0 {
232*724ba675SRob Herring		reg = <0>;
233*724ba675SRob Herring		label = "pxa3xx_nand-0";
234*724ba675SRob Herring		nand-rb = <0>;
235*724ba675SRob Herring		marvell,nand-keep-config;
236*724ba675SRob Herring		nand-on-flash-bbt;
237*724ba675SRob Herring
238*724ba675SRob Herring		/* Use Hardware BCH ECC */
239*724ba675SRob Herring		nand-ecc-strength = <4>;
240*724ba675SRob Herring		nand-ecc-step-size = <512>;
241*724ba675SRob Herring
242*724ba675SRob Herring		partitions {
243*724ba675SRob Herring			compatible = "fixed-partitions";
244*724ba675SRob Herring			#address-cells = <1>;
245*724ba675SRob Herring			#size-cells = <1>;
246*724ba675SRob Herring
247*724ba675SRob Herring			partition@0 {
248*724ba675SRob Herring				label = "u-boot";
249*724ba675SRob Herring				reg = <0x0000000 0x180000>;  /* 1.5MB */
250*724ba675SRob Herring				read-only;
251*724ba675SRob Herring			};
252*724ba675SRob Herring
253*724ba675SRob Herring			partition@180000 {
254*724ba675SRob Herring				label = "u-boot-env";
255*724ba675SRob Herring				reg = <0x180000 0x20000>;    /* 128KB */
256*724ba675SRob Herring				read-only;
257*724ba675SRob Herring			};
258*724ba675SRob Herring
259*724ba675SRob Herring			partition@200000 {
260*724ba675SRob Herring				label = "uImage";
261*724ba675SRob Herring				reg = <0x0200000 0x600000>;    /* 6MB */
262*724ba675SRob Herring			};
263*724ba675SRob Herring
264*724ba675SRob Herring			partition@800000 {
265*724ba675SRob Herring				label = "minirootfs";
266*724ba675SRob Herring				reg = <0x0800000 0x400000>;    /* 4MB */
267*724ba675SRob Herring			};
268*724ba675SRob Herring
269*724ba675SRob Herring			/* Last MB is for the BBT, i.e. not writable */
270*724ba675SRob Herring			partition@c00000 {
271*724ba675SRob Herring				label = "ubifs";
272*724ba675SRob Herring				reg = <0x0c00000 0x7400000>; /* 116MB */
273*724ba675SRob Herring			};
274*724ba675SRob Herring		};
275*724ba675SRob Herring	};
276*724ba675SRob Herring};
277