0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree file for LaCie 5Big Network v2
0004 *
0005 * Copyright (C) 2014
0006 *
0007 * Andrew Lunn <andrew@lunn.ch>
0008 *
0009 * Based on netxbig_v2-setup.c,
0010 * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
0011 *
0012 */
0013
0014 /dts-v1/;
0015
0016 #include "kirkwood.dtsi"
0017 #include "kirkwood-6281.dtsi"
0018 #include "kirkwood-netxbig.dtsi"
0019
0020 / {
0021 model = "LaCie 5Big Network v2";
0022 compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0023
0024 memory {
0025 device_type = "memory";
0026 reg = <0x00000000 0x20000000>;
0027 };
0028
0029 };
0030
0031 ®ulators {
0032 regulator@2 {
0033 compatible = "regulator-fixed";
0034 reg = <2>;
0035 regulator-name = "hdd1power";
0036 regulator-min-microvolt = <5000000>;
0037 regulator-max-microvolt = <5000000>;
0038 enable-active-high;
0039 regulator-always-on;
0040 regulator-boot-on;
0041 gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
0042 };
0043
0044 regulator@3 {
0045 compatible = "regulator-fixed";
0046 reg = <3>;
0047 regulator-name = "hdd2power";
0048 regulator-min-microvolt = <5000000>;
0049 regulator-max-microvolt = <5000000>;
0050 enable-active-high;
0051 regulator-always-on;
0052 regulator-boot-on;
0053 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
0054 };
0055
0056 regulator@4 {
0057 compatible = "regulator-fixed";
0058 reg = <4>;
0059 regulator-name = "hdd3power";
0060 regulator-min-microvolt = <5000000>;
0061 regulator-max-microvolt = <5000000>;
0062 enable-active-high;
0063 regulator-always-on;
0064 regulator-boot-on;
0065 gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
0066 };
0067
0068 regulator@5 {
0069 compatible = "regulator-fixed";
0070 reg = <5>;
0071 regulator-name = "hdd4power";
0072 regulator-min-microvolt = <5000000>;
0073 regulator-max-microvolt = <5000000>;
0074 enable-active-high;
0075 regulator-always-on;
0076 regulator-boot-on;
0077 gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
0078 };
0079
0080 clocks {
0081 g762_clk: g762-oscillator {
0082 compatible = "fixed-clock";
0083 #clock-cells = <0>;
0084 clock-frequency = <32768>;
0085 };
0086 };
0087
0088 netxbig-leds {
0089 blue-sata2 {
0090 label = "netxbig:blue:sata2";
0091 mode-addr = <5>;
0092 mode-val = <NETXBIG_LED_OFF 0
0093 NETXBIG_LED_ON 7
0094 NETXBIG_LED_SATA 1
0095 NETXBIG_LED_TIMER1 3>;
0096 bright-addr = <2>;
0097 max-brightness = <7>;
0098 };
0099 red-sata2 {
0100 label = "netxbig:red:sata2";
0101 mode-addr = <5>;
0102 mode-val = <NETXBIG_LED_OFF 0
0103 NETXBIG_LED_ON 2
0104 NETXBIG_LED_TIMER1 4>;
0105 bright-addr = <2>;
0106 max-brightness = <7>;
0107 };
0108 blue-sata3 {
0109 label = "netxbig:blue:sata3";
0110 mode-addr = <6>;
0111 mode-val = <NETXBIG_LED_OFF 0
0112 NETXBIG_LED_ON 7
0113 NETXBIG_LED_SATA 1
0114 NETXBIG_LED_TIMER1 3>;
0115 bright-addr = <2>;
0116 max-brightness = <7>;
0117 };
0118 red-sata3 {
0119 label = "netxbig:red:sata3";
0120 mode-addr = <6>;
0121 mode-val = <NETXBIG_LED_OFF 0
0122 NETXBIG_LED_ON 2
0123 NETXBIG_LED_TIMER1 4>;
0124 bright-addr = <2>;
0125 max-brightness = <7>;
0126 };
0127 blue-sata4 {
0128 label = "netxbig:blue:sata4";
0129 mode-addr = <7>;
0130 mode-val = <NETXBIG_LED_OFF 0
0131 NETXBIG_LED_ON 7
0132 NETXBIG_LED_SATA 1
0133 NETXBIG_LED_TIMER1 3>;
0134 bright-addr = <2>;
0135 max-brightness = <7>;
0136 };
0137 red-sata4 {
0138 label = "netxbig:red:sata4";
0139 mode-addr = <7>;
0140 mode-val = <NETXBIG_LED_OFF 0
0141 NETXBIG_LED_ON 2
0142 NETXBIG_LED_TIMER1 4>;
0143 bright-addr = <2>;
0144 max-brightness = <7>;
0145 };
0146 };
0147 };
0148
0149 &mdio {
0150 ethphy1: ethernet-phy@1 {
0151 reg = <0>;
0152 };
0153 };
0154
0155 ð1 {
0156 status = "okay";
0157 ethernet1-port@0 {
0158 phy-handle = <ðphy1>;
0159 };
0160 };
0161
0162
0163 &i2c0 {
0164 g762@3e {
0165 compatible = "gmt,g762";
0166 reg = <0x3e>;
0167 clocks = <&g762_clk>;
0168 };
0169 };