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