Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree common file for kirkwood-6281 based 2-Bay Buffalo Linkstation
0004  *
0005  * Copyright (C) 2015, 2016
0006  * Roger Shimizu <rogershimizu@gmail.com>
0007  */
0008 
0009 #include "kirkwood.dtsi"
0010 #include "kirkwood-6281.dtsi"
0011 #include "kirkwood-linkstation.dtsi"
0012 
0013 / {
0014         ocp@f1000000 {
0015                 pinctrl: pin-controller@10000 {
0016                         pmx_power_hdd0: pmx-power-hdd0 {
0017                                 marvell,pins = "mpp28";
0018                                 marvell,function = "gpio";
0019                         };
0020                         pmx_power_hdd1: pmx-power-hdd1 {
0021                                 marvell,pins = "mpp29";
0022                                 marvell,function = "gpio";
0023                         };
0024                         pmx_usb_vbus: pmx-usb-vbus {
0025                                 marvell,pins = "mpp37";
0026                                 marvell,function = "gpio";
0027                         };
0028                         pmx_led_alarm: pmx-led-alarm {
0029                                 marvell,pins = "mpp49";
0030                                 marvell,function = "gpio";
0031                         };
0032                         pmx_led_function_red: pmx-led-function-red {
0033                                 marvell,pins = "mpp34";
0034                                 marvell,function = "gpio";
0035                         };
0036                         pmx_led_function_blue: pmx-led-function-blue {
0037                                 marvell,pins = "mpp36";
0038                                 marvell,function = "gpio";
0039                         };
0040                         pmx_led_info: pmx-led-info {
0041                                 marvell,pins = "mpp38";
0042                                 marvell,function = "gpio";
0043                         };
0044                         pmx_led_power: pmx-led-power {
0045                                 marvell,pins = "mpp39";
0046                                 marvell,function = "gpio";
0047                         };
0048                         pmx_button_function: pmx-button-function {
0049                                 marvell,pins = "mpp41";
0050                                 marvell,function = "gpio";
0051                         };
0052                         pmx_power_switch: pmx-power-switch {
0053                                 marvell,pins = "mpp42";
0054                                 marvell,function = "gpio";
0055                         };
0056                         pmx_power_auto_switch: pmx-power-auto-switch {
0057                                 marvell,pins = "mpp43";
0058                                 marvell,function = "gpio";
0059                         };
0060                 };
0061 
0062                 sata@80000 {
0063                         nr-ports = <2>;
0064                 };
0065         };
0066 
0067         gpio_keys {
0068                 function-button {
0069                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0070                 };
0071 
0072                 power-on-switch {
0073                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
0074                 };
0075 
0076                 power-auto-switch {
0077                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0078                 };
0079         };
0080 
0081         gpio_leds {
0082                 red-alarm-led {
0083                         label = "linkstation:red:alarm";
0084                         gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
0085                 };
0086 
0087                 red-function-led {
0088                         label = "linkstation:red:function";
0089                         gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
0090                 };
0091 
0092                 amber-info-led {
0093                         label = "linkstation:amber:info";
0094                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0095                 };
0096 
0097                 blue-function-led {
0098                         label = "linkstation:blue:function";
0099                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0100                 };
0101 
0102                 blue-power-led {
0103                         label = "linkstation:blue:power";
0104                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
0105                         default-state = "keep";
0106                 };
0107         };
0108 
0109         regulators {
0110                 pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
0111 
0112                 usb_power: regulator@1 {
0113                         gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
0114                 };
0115 
0116                 hdd_power0: regulator@2 {
0117                         gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
0118                 };
0119 
0120                 hdd_power1: regulator@3 {
0121                         compatible = "regulator-fixed";
0122                         reg = <3>;
0123                         regulator-name = "HDD1 Power";
0124                         regulator-min-microvolt = <5000000>;
0125                         regulator-max-microvolt = <5000000>;
0126                         enable-active-high;
0127                         regulator-always-on;
0128                         regulator-boot-on;
0129                         gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0130                 };
0131         };
0132 };
0133 
0134 &mdio {
0135         status = "okay";
0136 
0137         ethphy1: ethernet-phy@8 {
0138                 device_type = "ethernet-phy";
0139                 reg = <8>;
0140         };
0141 };
0142 
0143 &eth1 {
0144         status = "okay";
0145 
0146         ethernet1-port@0 {
0147                 phy-handle = <&ethphy1>;
0148         };
0149 };