2018-03-16 00:06:28 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2013-11-30 04:27:25 +08:00
|
|
|
/*
|
|
|
|
* Device Tree file for NETGEAR ReadyNAS Duo v2
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
|
|
|
|
*/
|
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
/dts-v1/;
|
|
|
|
|
2013-07-26 21:18:02 +08:00
|
|
|
#include "kirkwood.dtsi"
|
|
|
|
#include "kirkwood-6282.dtsi"
|
2013-03-20 06:28:06 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "NETGEAR ReadyNAS Duo v2";
|
|
|
|
compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
|
|
|
|
|
|
|
memory { /* 256 MB */
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x00000000 0x10000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200n8 earlyprintk";
|
2014-04-30 20:56:30 +08:00
|
|
|
stdout-path = &uart0;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
ocp@f1000000 {
|
2014-04-30 20:56:32 +08:00
|
|
|
pinctrl: pin-controller@10000 {
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_button_power: pmx-button-power {
|
|
|
|
marvell,pins = "mpp47";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_button_backup: pmx-button-backup {
|
|
|
|
marvell,pins = "mpp45";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_button_reset: pmx-button-reset {
|
|
|
|
marvell,pins = "mpp13";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_led_blue_power: pmx-led-blue-power {
|
|
|
|
marvell,pins = "mpp31";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_led_blue_activity: pmx-led-blue-activity {
|
|
|
|
marvell,pins = "mpp38";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_led_blue_disk1: pmx-led-blue-disk1 {
|
|
|
|
marvell,pins = "mpp23";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_led_blue_disk2: pmx-led-blue-disk2 {
|
|
|
|
marvell,pins = "mpp22";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
pmx_led_blue_backup: pmx-led-blue-backup {
|
|
|
|
marvell,pins = "mpp29";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-11-22 22:58:04 +08:00
|
|
|
pmx_poweroff: pmx-poweroff {
|
|
|
|
marvell,pins = "mpp30";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
|
|
|
|
2013-07-02 04:45:02 +08:00
|
|
|
clocks {
|
2013-11-30 04:27:25 +08:00
|
|
|
g762_clk: g762-oscillator {
|
2013-07-02 04:45:02 +08:00
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <8192>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
i2c@11000 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
rs5c372a: rs5c372a@32 {
|
|
|
|
compatible = "ricoh,rs5c372a";
|
|
|
|
reg = <0x32>;
|
|
|
|
};
|
2013-07-02 04:45:02 +08:00
|
|
|
|
|
|
|
g762: g762@3e {
|
|
|
|
compatible = "gmt,g762";
|
|
|
|
reg = <0x3e>;
|
|
|
|
clocks = <&g762_clk>; /* input clock */
|
|
|
|
fan_gear_mode = <0>;
|
|
|
|
fan_startv = <1>;
|
|
|
|
pwm_polarity = <0>;
|
|
|
|
};
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
serial@12000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata@80000 {
|
|
|
|
status = "okay";
|
|
|
|
nr-ports = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2013-05-24 17:44:52 +08:00
|
|
|
pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
|
|
|
|
&pmx_led_blue_disk1 &pmx_led_blue_disk2
|
|
|
|
&pmx_led_blue_backup >;
|
|
|
|
pinctrl-names = "default";
|
2013-03-20 06:28:06 +08:00
|
|
|
|
|
|
|
power_led {
|
|
|
|
label = "status:blue:power_led";
|
2013-11-30 04:27:25 +08:00
|
|
|
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
|
2013-10-15 01:37:55 +08:00
|
|
|
default-state = "keep";
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
activity_led {
|
|
|
|
label = "status:blue:activity_led";
|
2013-11-30 04:27:25 +08:00
|
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
disk1_led {
|
|
|
|
label = "status:blue:disk1_led";
|
2013-11-30 04:27:25 +08:00
|
|
|
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
disk2_led {
|
|
|
|
label = "status:blue:disk2_led";
|
2013-11-30 04:27:25 +08:00
|
|
|
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-03-20 06:28:06 +08:00
|
|
|
backup_led {
|
|
|
|
label = "status:blue:backup_led";
|
2013-11-30 04:27:25 +08:00
|
|
|
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-11-30 04:27:25 +08:00
|
|
|
gpio-keys {
|
2013-03-20 06:28:06 +08:00
|
|
|
compatible = "gpio-keys";
|
2013-05-24 17:44:52 +08:00
|
|
|
pinctrl-0 = <&pmx_button_power &pmx_button_backup
|
|
|
|
&pmx_button_reset>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
2013-11-30 04:27:25 +08:00
|
|
|
power-button {
|
2013-03-20 06:28:06 +08:00
|
|
|
label = "Power Button";
|
2013-11-30 04:27:25 +08:00
|
|
|
linux,code = <KEY_POWER>;
|
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-11-30 04:27:25 +08:00
|
|
|
reset-button {
|
2013-03-20 06:28:06 +08:00
|
|
|
label = "Reset Button";
|
2013-11-30 04:27:25 +08:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-11-30 04:27:58 +08:00
|
|
|
|
2013-11-30 04:27:25 +08:00
|
|
|
backup-button {
|
2013-03-20 06:28:06 +08:00
|
|
|
label = "Backup Button";
|
2013-11-30 04:27:25 +08:00
|
|
|
linux,code = <KEY_COPY>;
|
|
|
|
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-11-22 22:58:04 +08:00
|
|
|
gpio-poweroff {
|
|
|
|
compatible = "gpio-poweroff";
|
|
|
|
pinctrl-0 = <&pmx_poweroff>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2013-11-30 04:27:58 +08:00
|
|
|
regulators {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2016-04-03 10:03:50 +08:00
|
|
|
usb3_regulator: usb3-regulator@1 {
|
2013-11-30 04:27:58 +08:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
reg = <1>;
|
|
|
|
regulator-name = "USB 3.0 Power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
2013-03-20 06:28:06 +08:00
|
|
|
};
|
2013-07-08 04:34:56 +08:00
|
|
|
|
2013-09-18 02:44:33 +08:00
|
|
|
&nand {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0000000 0x180000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@180000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x180000 0x20000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@200000 {
|
|
|
|
label = "uImage";
|
|
|
|
reg = <0x0200000 0x600000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@800000 {
|
|
|
|
label = "minirootfs";
|
|
|
|
reg = <0x0800000 0x1000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@1800000 {
|
|
|
|
label = "jffs2";
|
|
|
|
reg = <0x1800000 0x6800000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-07-08 04:34:56 +08:00
|
|
|
&mdio {
|
|
|
|
status = "okay";
|
|
|
|
|
2013-11-30 04:27:25 +08:00
|
|
|
ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
|
2013-07-08 04:34:56 +08:00
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
ethernet0-port@0 {
|
|
|
|
phy-handle = <ðphy0>;
|
|
|
|
};
|
|
|
|
};
|
2016-04-03 10:03:47 +08:00
|
|
|
|
|
|
|
&pciec {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|