Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Device Tree file for Seagate Blackarmor NAS220
0004  *
0005  * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com>
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include "kirkwood.dtsi"
0013 #include "kirkwood-6192.dtsi"
0014 
0015 / {
0016         model = "Seagate Blackarmor NAS220";
0017         compatible = "seagate,blackarmor-nas220","marvell,kirkwood-88f6192",
0018                      "marvell,kirkwood";
0019 
0020         memory { /* 128 MB */
0021                 device_type = "memory";
0022                 reg = <0x00000000 0x8000000>;
0023         };
0024 
0025         chosen {
0026                 bootargs = "console=ttyS0,115200n8";
0027                 stdout-path = &uart0;
0028         };
0029 
0030         gpio_poweroff {
0031                 compatible = "gpio-poweroff";
0032                 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
0033         };
0034 
0035         gpio_keys {
0036                 compatible = "gpio-keys";
0037 
0038                 reset {
0039                         label = "Reset";
0040                         linux,code = <KEY_POWER>;
0041                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0042                 };
0043 
0044                 button {
0045                         label = "Power";
0046                         linux,code = <KEY_SLEEP>;
0047                         gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
0048                 };
0049         };
0050 
0051         gpio-leds {
0052                 compatible = "gpio-leds";
0053 
0054                 blue-power {
0055                         label = "nas220:blue:power";
0056                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0057                         linux,default-trigger = "default-on";
0058                 };
0059         };
0060 
0061         regulators {
0062                 compatible = "simple-bus";
0063                 #address-cells = <1>;
0064                 #size-cells = <0>;
0065                 pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>;
0066                 pinctrl-names = "default";
0067 
0068                 sata0_power: regulator@1 {
0069                         compatible = "regulator-fixed";
0070                         reg = <1>;
0071                         regulator-name = "SATA0 Power";
0072                         regulator-min-microvolt = <5000000>;
0073                         regulator-max-microvolt = <5000000>;
0074                         enable-active-high;
0075                         regulator-always-on;
0076                         regulator-boot-on;
0077                         gpio = <&gpio0 24 GPIO_ACTIVE_LOW>;
0078                 };
0079 
0080                 sata1_power: regulator@2 {
0081                         compatible = "regulator-fixed";
0082                         reg = <2>;
0083                         regulator-name = "SATA1 Power";
0084                         regulator-min-microvolt = <5000000>;
0085                         regulator-max-microvolt = <5000000>;
0086                         enable-active-high;
0087                         regulator-always-on;
0088                         regulator-boot-on;
0089                         gpio = <&gpio0 28 GPIO_ACTIVE_LOW>;
0090                 };
0091         };
0092 };
0093 
0094 /*
0095  * Serial port routed to connector CN5
0096  *
0097  * pin 1 - TX (CPU's TX)
0098  * pin 4 - RX (CPU's RX)
0099  * pin 6 - GND
0100  */
0101 &uart0 {
0102         status = "okay";
0103 };
0104 
0105 &pinctrl {
0106         pinctrl-0 = <&pmx_button_reset &pmx_button_power>;
0107         pinctrl-names = "default";
0108 
0109         pmx_act_sata0: pmx-act-sata0 {
0110                 marvell,pins = "mpp15";
0111                 marvell,function = "sata0";
0112         };
0113 
0114         pmx_act_sata1: pmx-act-sata1 {
0115                 marvell,pins = "mpp16";
0116                 marvell,function = "sata1";
0117         };
0118 
0119         pmx_power_sata0: pmx-power-sata0 {
0120                 marvell,pins = "mpp24";
0121                 marvell,function = "gpio";
0122         };
0123 
0124         pmx_power_sata1: pmx-power-sata1 {
0125                 marvell,pins = "mpp28";
0126                 marvell,function = "gpio";
0127         };
0128 
0129         pmx_button_reset: pmx-button-reset {
0130                 marvell,pins = "mpp29";
0131                 marvell,function = "gpio";
0132         };
0133 
0134         pmx_button_power: pmx-button-power {
0135                 marvell,pins = "mpp26";
0136                 marvell,function = "gpio";
0137         };
0138 };
0139 
0140 &sata {
0141         status = "okay";
0142         nr-ports = <2>;
0143 };
0144 
0145 &i2c0 {
0146         status = "okay";
0147 
0148         adt7476: thermal@2e {
0149                 compatible = "adi,adt7476";
0150                 reg = <0x2e>;
0151         };
0152 };
0153 
0154 &nand {
0155         status = "okay";
0156 };
0157 
0158 &mdio {
0159         status = "okay";
0160 
0161         ethphy0: ethernet-phy@8 {
0162                  reg = <8>;
0163         };
0164 };
0165 
0166 &eth0 {
0167         status = "okay";
0168 
0169         ethernet0-port@0 {
0170                 phy-handle = <&ethphy0>;
0171         };
0172 };