Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree file for Seagate NAS 4-Bay (Armada 370 SoC).
0004  *
0005  * Copyright (C) 2015 Seagate
0006  *
0007  * Author: Vincent Donnefort <vdonnefort@gmail.com>
0008  */
0009 
0010 /*
0011  * Here are some information allowing to identify the device:
0012  *
0013  * Product name                 : Seagate NAS 4-Bay
0014  * Code name (board/PCB)        : Dart 4-Bay
0015  * Model name (case sticker)    : SRPD40
0016  * Material desc (product spec) : STCUxxxxxxx
0017  */
0018 
0019 /dts-v1/;
0020 #include "armada-370-seagate-nas-xbay.dtsi"
0021 #include <dt-bindings/leds/leds-ns2.h>
0022 
0023 / {
0024         model = "Seagate NAS 4-Bay (Dart, SRPD40)";
0025         compatible = "seagate,dart-4", "marvell,armada370", "marvell,armada-370-xp";
0026 
0027         soc {
0028                 internal-regs {
0029                         ethernet@74000 {
0030                                 status = "okay";
0031                                 pinctrl-0 = <&ge1_rgmii_pins>;
0032                                 pinctrl-names = "default";
0033                                 phy = <&phy1>;
0034                                 phy-mode = "rgmii-id";
0035                         };
0036 
0037                         i2c@11000 {
0038                                 /* I2C GPIO expander (PCA9554A) */
0039                                 pca9554: pca9554@21 {
0040                                         compatible = "nxp,pca9554";
0041                                         reg = <0x21>;
0042                                         #gpio-cells = <2>;
0043                                         gpio-controller;
0044                                 };
0045                         };
0046                 };
0047         };
0048 
0049         regulators {
0050                 regulator@3 {
0051                         compatible = "regulator-fixed";
0052                         reg = <3>;
0053                         regulator-name = "SATA2 power";
0054                         regulator-min-microvolt = <5000000>;
0055                         regulator-max-microvolt = <5000000>;
0056                         enable-active-high;
0057                         regulator-always-on;
0058                         regulator-boot-on;
0059                         gpio = <&pca9554 6 GPIO_ACTIVE_HIGH>;
0060                 };
0061                 regulator@4 {
0062                         compatible = "regulator-fixed";
0063                         reg = <4>;
0064                         regulator-name = "SATA3 power";
0065                         regulator-min-microvolt = <5000000>;
0066                         regulator-max-microvolt = <5000000>;
0067                         enable-active-high;
0068                         regulator-always-on;
0069                         regulator-boot-on;
0070                         gpio = <&pca9554 7 GPIO_ACTIVE_HIGH>;
0071                 };
0072         };
0073 
0074         gpio-leds {
0075                 red-sata2 {
0076                         label = "dart:red:sata2";
0077                         gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
0078                 };
0079                 red-sata3 {
0080                         label = "dart:red:sata3";
0081                         gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
0082                 };
0083         };
0084 
0085         leds-ns2 {
0086                 compatible = "lacie,ns2-leds";
0087 
0088                 white-sata2 {
0089                         label = "dart:white:sata2";
0090                         cmd-gpio = <&pca9554 1 GPIO_ACTIVE_HIGH>;
0091                         slow-gpio = <&pca9554 2 GPIO_ACTIVE_HIGH>;
0092                         num-modes = <4>;
0093                         modes-map = <NS_V2_LED_SATA 0 0
0094                                      NS_V2_LED_OFF  0 1
0095                                      NS_V2_LED_ON   1 0
0096                                      NS_V2_LED_ON   1 1>;
0097                 };
0098                 white-sata3 {
0099                         label = "dart:white:sata3";
0100                         cmd-gpio = <&pca9554 4 GPIO_ACTIVE_HIGH>;
0101                         slow-gpio = <&pca9554 5 GPIO_ACTIVE_HIGH>;
0102                         num-modes = <4>;
0103                         modes-map = <NS_V2_LED_SATA 0 0
0104                                      NS_V2_LED_OFF  0 1
0105                                      NS_V2_LED_ON   1 0
0106                                      NS_V2_LED_ON   1 1>;
0107                 };
0108         };
0109 
0110         gpio-fan {
0111                 gpio-fan,speed-map =
0112                         <   0 3
0113                           800 2
0114                           1050 1
0115                           1300 0>;
0116         };
0117 };
0118 
0119 &pciec {
0120         /* SATA AHCI controller 88SE9170 */
0121         pcie@1,0 {
0122                 status = "okay";
0123         };
0124 };
0125 
0126 &mdio {
0127         phy1: ethernet-phy@1 {
0128                 reg = <1>;
0129         };
0130 };
0131