1/*
2 * Device Tree file for NETGEAR ReadyNAS 2120
3 *
4 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
--- 39 unchanged lines hidden (view full) ---
48#include <dt-bindings/gpio/gpio.h>
49#include "armada-xp-mv78230.dtsi"
50
51/ {
52 model = "NETGEAR ReadyNAS 2120";
53 compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
54
55 chosen {
56 stdout-path = "serial0:115200n8";
57 };
58
59 memory {
60 device_type = "memory";
61 reg = <0 0x00000000 0 0x80000000>; /* 2GB */
62 };
63
64 soc {
65 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
66 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
67 MBUS_ID(0x09, 0x09) 0 0 0xf8100000 0x10000
68 MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000>;
69
70 pcie-controller {
71 status = "okay";
72
73 /* Connected to first Marvell 88SE9170 SATA controller */
74 pcie@1,0 {
75 /* Port 0, Lane 0 */
76 status = "okay";
--- 8 unchanged lines hidden (view full) ---
85 /* Connected to Fresco Logic FL1009 USB 3.0 controller */
86 pcie@5,0 {
87 /* Port 1, Lane 0 */
88 status = "okay";
89 };
90 };
91
92 internal-regs {
93
94 /* RTC is provided by Intersil ISL12057 I2C RTC chip */
95 rtc@10300 {
96 status = "disabled";
97 };
98
99 i2c@11000 {
100 compatible = "marvell,mv64xxx-i2c";
101 clock-frequency = <400000>;
102 status = "okay";
103
104 /* Controller for rear fan #1 of 3 (Protechnic
105 * MGT4012XB-O20, 8000RPM) near eSATA port */
106 g762_fan1: g762@3e {
107 compatible = "gmt,g762";
108 reg = <0x3e>;
109 clocks = <&g762_clk>; /* input clock */
110 fan_gear_mode = <0>;
111 fan_startv = <1>;
--- 20 unchanged lines hidden (view full) ---
132 pwm_polarity = <0>;
133 };
134
135 /* Temperature sensor */
136 g751: g751@4c {
137 compatible = "gmt,g751";
138 reg = <0x4c>;
139 };
140
141 isl12057: isl12057@68 {
142 compatible = "isil,isl12057";
143 reg = <0x68>;
144 wakeup-source;
145 };
146 };
147
148 serial@12000 {
149 status = "okay";
150 };
151
152 /* Front USB 2.0 port */
153 usb@50000 {
154 status = "okay";
155 };
156
157 mdio {
158 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
159 reg = <0>;
160 };
161
162 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
163 reg = <1>;
164 };
165 };
166
167 ethernet@70000 {
168 status = "okay";
169 phy = <&phy0>;
170 phy-mode = "rgmii-id";
171 };
172
173 ethernet@74000 {
174 status = "okay";
175 phy = <&phy1>;
176 phy-mode = "rgmii-id";
177 };
178
179 /* Two rear eSATA ports */
180 sata@a0000 {
181 nr-ports = <2>;
182 status = "okay";
183 };
184
185 nand@d0000 {
186 status = "okay";
187 num-cs = <1>;
188 marvell,nand-keep-config;
189 marvell,nand-enable-arbiter;
190 nand-on-flash-bbt;
191
192 /* Use Hardware BCH ECC */
--- 186 unchanged lines hidden ---
2 * Device Tree file for NETGEAR ReadyNAS 2120
3 *
4 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
--- 39 unchanged lines hidden (view full) ---
48#include <dt-bindings/gpio/gpio.h>
49#include "armada-xp-mv78230.dtsi"
50
51/ {
52 model = "NETGEAR ReadyNAS 2120";
53 compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
54
55 chosen {
56 stdout-path = "serial0:115200n8";
57 };
58
59 memory {
60 device_type = "memory";
61 reg = <0 0x00000000 0 0x80000000>; /* 2GB */
62 };
63
64 soc {
65 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
66 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
67 MBUS_ID(0x09, 0x09) 0 0 0xf8100000 0x10000
68 MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000>;
69
70 pcie-controller {
71 status = "okay";
72
73 /* Connected to first Marvell 88SE9170 SATA controller */
74 pcie@1,0 {
75 /* Port 0, Lane 0 */
76 status = "okay";
--- 8 unchanged lines hidden (view full) ---
85 /* Connected to Fresco Logic FL1009 USB 3.0 controller */
86 pcie@5,0 {
87 /* Port 1, Lane 0 */
88 status = "okay";
89 };
90 };
91
92 internal-regs {
93
94 /* RTC is provided by Intersil ISL12057 I2C RTC chip */
95 rtc@10300 {
96 status = "disabled";
97 };
98
99 i2c@11000 {
100 compatible = "marvell,mv64xxx-i2c";
101 clock-frequency = <400000>;
102 status = "okay";
103
104 /* Controller for rear fan #1 of 3 (Protechnic
105 * MGT4012XB-O20, 8000RPM) near eSATA port */
106 g762_fan1: g762@3e {
107 compatible = "gmt,g762";
108 reg = <0x3e>;
109 clocks = <&g762_clk>; /* input clock */
110 fan_gear_mode = <0>;
111 fan_startv = <1>;
--- 20 unchanged lines hidden (view full) ---
132 pwm_polarity = <0>;
133 };
134
135 /* Temperature sensor */
136 g751: g751@4c {
137 compatible = "gmt,g751";
138 reg = <0x4c>;
139 };
140
141 isl12057: isl12057@68 {
142 compatible = "isil,isl12057";
143 reg = <0x68>;
144 wakeup-source;
145 };
146 };
147
148 serial@12000 {
149 status = "okay";
150 };
151
152 /* Front USB 2.0 port */
153 usb@50000 {
154 status = "okay";
155 };
156
157 mdio {
158 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
159 reg = <0>;
160 };
161
162 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
163 reg = <1>;
164 };
165 };
166
167 ethernet@70000 {
168 status = "okay";
169 phy = <&phy0>;
170 phy-mode = "rgmii-id";
171 };
172
173 ethernet@74000 {
174 status = "okay";
175 phy = <&phy1>;
176 phy-mode = "rgmii-id";
177 };
178
179 /* Two rear eSATA ports */
180 sata@a0000 {
181 nr-ports = <2>;
182 status = "okay";
183 };
184
185 nand@d0000 {
186 status = "okay";
187 num-cs = <1>;
188 marvell,nand-keep-config;
189 marvell,nand-enable-arbiter;
190 nand-on-flash-bbt;
191
192 /* Use Hardware BCH ECC */
--- 186 unchanged lines hidden ---