2018-03-15 23:57:25 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-05-27 03:29:49 +08:00
|
|
|
/*
|
|
|
|
* Device Tree file for LaCie 5Big Network v2
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014
|
|
|
|
*
|
|
|
|
* Andrew Lunn <andrew@lunn.ch>
|
|
|
|
*
|
|
|
|
* Based on netxbig_v2-setup.c,
|
|
|
|
* Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "kirkwood.dtsi"
|
|
|
|
#include "kirkwood-6281.dtsi"
|
|
|
|
#include "kirkwood-netxbig.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "LaCie 5Big Network v2";
|
|
|
|
compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x00000000 0x20000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
®ulators {
|
2014-07-08 22:42:24 +08:00
|
|
|
regulator@2 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
reg = <2>;
|
|
|
|
regulator-name = "hdd1power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2014-05-27 03:29:49 +08:00
|
|
|
regulator@3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
reg = <3>;
|
|
|
|
regulator-name = "hdd2power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
2014-06-22 03:21:13 +08:00
|
|
|
gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
|
2014-05-27 03:29:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
regulator@4 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
reg = <4>;
|
|
|
|
regulator-name = "hdd3power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
2014-06-22 03:21:13 +08:00
|
|
|
gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
2014-05-27 03:29:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
regulator@5 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
reg = <5>;
|
|
|
|
regulator-name = "hdd4power";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
2014-06-22 03:21:13 +08:00
|
|
|
gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
|
2014-05-27 03:29:49 +08:00
|
|
|
};
|
2014-07-08 22:42:24 +08:00
|
|
|
|
|
|
|
clocks {
|
|
|
|
g762_clk: g762-oscillator {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
};
|
|
|
|
};
|
2015-09-27 05:02:35 +08:00
|
|
|
|
|
|
|
netxbig-leds {
|
|
|
|
blue-sata2 {
|
|
|
|
label = "netxbig:blue:sata2";
|
|
|
|
mode-addr = <5>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 7
|
|
|
|
NETXBIG_LED_SATA 1
|
|
|
|
NETXBIG_LED_TIMER1 3>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
red-sata2 {
|
|
|
|
label = "netxbig:red:sata2";
|
|
|
|
mode-addr = <5>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 2
|
|
|
|
NETXBIG_LED_TIMER1 4>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
blue-sata3 {
|
|
|
|
label = "netxbig:blue:sata3";
|
|
|
|
mode-addr = <6>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 7
|
|
|
|
NETXBIG_LED_SATA 1
|
|
|
|
NETXBIG_LED_TIMER1 3>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
red-sata3 {
|
|
|
|
label = "netxbig:red:sata3";
|
|
|
|
mode-addr = <6>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 2
|
|
|
|
NETXBIG_LED_TIMER1 4>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
blue-sata4 {
|
|
|
|
label = "netxbig:blue:sata4";
|
|
|
|
mode-addr = <7>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 7
|
|
|
|
NETXBIG_LED_SATA 1
|
|
|
|
NETXBIG_LED_TIMER1 3>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
red-sata4 {
|
|
|
|
label = "netxbig:red:sata4";
|
|
|
|
mode-addr = <7>;
|
|
|
|
mode-val = <NETXBIG_LED_OFF 0
|
|
|
|
NETXBIG_LED_ON 2
|
|
|
|
NETXBIG_LED_TIMER1 4>;
|
|
|
|
bright-addr = <2>;
|
|
|
|
max-brightness = <7>;
|
|
|
|
};
|
|
|
|
};
|
2014-05-27 03:29:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&mdio {
|
|
|
|
ethphy1: ethernet-phy@1 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
ethernet1-port@0 {
|
|
|
|
phy-handle = <ðphy1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-07-08 22:42:24 +08:00
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
g762@3e {
|
|
|
|
compatible = "gmt,g762";
|
|
|
|
reg = <0x3e>;
|
|
|
|
clocks = <&g762_clk>;
|
|
|
|
};
|
|
|
|
};
|