0001 /*
0002 * Device Tree file for Buffalo Linkstation LS-WTGL
0003 *
0004 * Copyright (C) 2015, 2016
0005 * Roger Shimizu <rogershimizu@gmail.com>
0006 *
0007 * This file is dual-licensed: you can use it either under the terms
0008 * of the GPL or the X11 license, at your option. Note that this dual
0009 * licensing only applies to this file, and not this project as a
0010 * whole.
0011 *
0012 * a) This file is free software; you can redistribute it and/or
0013 * modify it under the terms of the GNU General Public License as
0014 * published by the Free Software Foundation; either version 2 of the
0015 * License, or (at your option) any later version.
0016 *
0017 * This file is distributed in the hope that it will be useful,
0018 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0020 * GNU General Public License for more details.
0021 *
0022 * Or, alternatively,
0023 *
0024 * b) Permission is hereby granted, free of charge, to any person
0025 * obtaining a copy of this software and associated documentation
0026 * files (the "Software"), to deal in the Software without
0027 * restriction, including without limitation the rights to use,
0028 * copy, modify, merge, publish, distribute, sublicense, and/or
0029 * sell copies of the Software, and to permit persons to whom the
0030 * Software is furnished to do so, subject to the following
0031 * conditions:
0032 *
0033 * The above copyright notice and this permission notice shall be
0034 * included in all copies or substantial portions of the Software.
0035 *
0036 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0037 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0038 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0039 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0040 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0041 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0042 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0043 * OTHER DEALINGS IN THE SOFTWARE.
0044 */
0045
0046 /dts-v1/;
0047
0048 #include "orion5x-linkstation.dtsi"
0049 #include "mvebu-linkstation-gpio-simple.dtsi"
0050 #include "mvebu-linkstation-fan.dtsi"
0051 #include <dt-bindings/gpio/gpio.h>
0052
0053 / {
0054 model = "Buffalo Linkstation LS-WTGL";
0055 compatible = "buffalo,lswtgl", "marvell,orion5x-88f5182", "marvell,orion5x";
0056
0057 memory { /* 64 MB */
0058 device_type = "memory";
0059 reg = <0x00000000 0x4000000>;
0060 };
0061
0062 gpio_keys {
0063 power-on-switch {
0064 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
0065 };
0066
0067 power-auto-switch {
0068 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
0069 };
0070 };
0071
0072 gpio_leds {
0073 blue-power-led {
0074 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
0075 };
0076
0077 red-alarm-led {
0078 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
0079 };
0080
0081 amber-info-led {
0082 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
0083 };
0084 };
0085
0086 gpio_fan {
0087 gpios = <&gpio0 14 GPIO_ACTIVE_LOW
0088 &gpio0 17 GPIO_ACTIVE_LOW>;
0089
0090 alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
0091 };
0092 };
0093
0094 &pinctrl {
0095 pmx_led_power: pmx-leds {
0096 marvell,pins = "mpp0";
0097 marvell,function = "gpio";
0098 };
0099
0100 pmx_power_hdd: pmx-power-hdd {
0101 marvell,pins = "mpp1";
0102 marvell,function = "gpio";
0103 };
0104
0105 pmx_led_alarm: pmx-leds {
0106 marvell,pins = "mpp2";
0107 marvell,function = "gpio";
0108 };
0109
0110 pmx_led_info: pmx-leds {
0111 marvell,pins = "mpp3";
0112 marvell,function = "gpio";
0113 };
0114
0115 pmx_fan_lock: pmx-fan-lock {
0116 marvell,pins = "mpp6";
0117 marvell,function = "gpio";
0118 };
0119
0120 pmx_power_switch: pmx-power-switch {
0121 marvell,pins = "mpp8", "mpp10";
0122 marvell,function = "gpio";
0123 };
0124
0125 pmx_power_usb: pmx-power-usb {
0126 marvell,pins = "mpp9";
0127 marvell,function = "gpio";
0128 };
0129
0130 pmx_fan_high: pmx-fan-high {
0131 marvell,pins = "mpp14";
0132 marvell,function = "gpio";
0133 };
0134
0135 pmx_fan_low: pmx-fan-low {
0136 marvell,pins = "mpp17";
0137 marvell,function = "gpio";
0138 };
0139 };
0140
0141 &hdd_power {
0142 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
0143 };
0144
0145 &usb_power {
0146 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
0147 };
0148
0149 &sata {
0150 nr-ports = <2>;
0151 };