0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for Buffalo Linkstation LS-WXL
0004 *
0005 * Copyright (C) 2015, 2016
0006 * Roger Shimizu <rogershimizu@gmail.com>
0007 */
0008
0009 /dts-v1/;
0010 #include "kirkwood-linkstation-duo-6281.dtsi"
0011
0012 / {
0013 model = "Buffalo Linkstation LS-WXL";
0014 compatible = "buffalo,lswxl", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0015
0016 memory { /* 128 MB */
0017 device_type = "memory";
0018 reg = <0x00000000 0x8000000>;
0019 };
0020
0021 ocp@f1000000 {
0022 pinctrl: pin-controller@10000 {
0023 pmx_led_hdderr0: pmx-led-hdderr0 {
0024 marvell,pins = "mpp8";
0025 marvell,function = "gpio";
0026 };
0027 pmx_led_hdderr1: pmx-led-hdderr1 {
0028 marvell,pins = "mpp46";
0029 marvell,function = "gpio";
0030 };
0031 pmx_fan_lock: pmx-fan-lock {
0032 marvell,pins = "mpp40";
0033 marvell,function = "gpio";
0034 };
0035 pmx_fan_high: pmx-fan-high {
0036 marvell,pins = "mpp47";
0037 marvell,function = "gpio";
0038 };
0039 pmx_fan_low: pmx-fan-low {
0040 marvell,pins = "mpp48";
0041 marvell,function = "gpio";
0042 };
0043 };
0044 };
0045
0046 gpio_leds {
0047 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
0048 &pmx_led_info &pmx_led_power
0049 &pmx_led_function_blue
0050 &pmx_led_hdderr0
0051 &pmx_led_hdderr1>;
0052
0053 red-hdderr0-led {
0054 label = "linkstation:red:hdderr0";
0055 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
0056 };
0057
0058 red-hdderr1-led {
0059 label = "linkstation:red:hdderr1";
0060 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
0061 };
0062 };
0063
0064 gpio_fan {
0065 compatible = "gpio-fan";
0066 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
0067 pinctrl-names = "default";
0068
0069 gpios = <&gpio1 16 GPIO_ACTIVE_LOW
0070 &gpio1 15 GPIO_ACTIVE_LOW>;
0071
0072 gpio-fan,speed-map = <0 3
0073 1500 2
0074 3250 1
0075 5000 0>;
0076
0077 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0078 };
0079 };