0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for Buffalo Linkstation LS-WVL
0004 *
0005 * Copyright (C) 2015, 2016
0006 * Roger Shimizu <rogershimizu@gmail.com>
0007 */
0008
0009 /dts-v1/;
0010 #include "kirkwood-linkstation-6282.dtsi"
0011
0012 / {
0013 model = "Buffalo Linkstation LS-WVL";
0014 compatible = "buffalo,lswvl","marvell,kirkwood-88f6282", "marvell,kirkwood";
0015
0016 memory { /* 256 MB */
0017 device_type = "memory";
0018 reg = <0x00000000 0x10000000>;
0019 };
0020
0021 ocp@f1000000 {
0022 pinctrl: pin-controller@10000 {
0023 pmx_power_hdd1: pmx-power-hdd1 {
0024 marvell,pins = "mpp9";
0025 marvell,function = "gpio";
0026 };
0027 pmx_led_hdderr0: pmx-led-hdderr0 {
0028 marvell,pins = "mpp34";
0029 marvell,function = "gpio";
0030 };
0031 pmx_led_hdderr1: pmx-led-hdderr1 {
0032 marvell,pins = "mpp35";
0033 marvell,function = "gpio";
0034 };
0035 };
0036
0037 sata@80000 {
0038 nr-ports = <2>;
0039 };
0040 };
0041
0042 gpio_leds {
0043 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
0044 &pmx_led_info &pmx_led_power
0045 &pmx_led_function_blue
0046 &pmx_led_hdderr0
0047 &pmx_led_hdderr1>;
0048
0049 red-hdderr0-led {
0050 label = "linkstation:red:hdderr0";
0051 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
0052 };
0053
0054 red-hdderr1-led {
0055 label = "linkstation:red:hdderr1";
0056 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
0057 };
0058 };
0059
0060 regulators {
0061 pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
0062
0063 hdd_power1: regulator@3 {
0064 compatible = "regulator-fixed";
0065 reg = <3>;
0066 regulator-name = "HDD1 Power";
0067 regulator-min-microvolt = <5000000>;
0068 regulator-max-microvolt = <5000000>;
0069 enable-active-high;
0070 regulator-always-on;
0071 regulator-boot-on;
0072 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
0073 };
0074 };
0075 };