1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Device Tree file for Buffalo Linkstation LS-WTGL 3*f126890aSEmmanuel Vadot * 4*f126890aSEmmanuel Vadot * Copyright (C) 2015, 2016 5*f126890aSEmmanuel Vadot * Roger Shimizu <rogershimizu@gmail.com> 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 8*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 9*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 10*f126890aSEmmanuel Vadot * whole. 11*f126890aSEmmanuel Vadot * 12*f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 13*f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 14*f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 15*f126890aSEmmanuel Vadot * License, or (at your option) any later version. 16*f126890aSEmmanuel Vadot * 17*f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 18*f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 19*f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*f126890aSEmmanuel Vadot * GNU General Public License for more details. 21*f126890aSEmmanuel Vadot * 22*f126890aSEmmanuel Vadot * Or, alternatively, 23*f126890aSEmmanuel Vadot * 24*f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 25*f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 26*f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 27*f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 28*f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 29*f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 30*f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 31*f126890aSEmmanuel Vadot * conditions: 32*f126890aSEmmanuel Vadot * 33*f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 34*f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 35*f126890aSEmmanuel Vadot * 36*f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 37*f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 38*f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 39*f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 40*f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 41*f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 42*f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 43*f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 44*f126890aSEmmanuel Vadot */ 45*f126890aSEmmanuel Vadot 46*f126890aSEmmanuel Vadot/dts-v1/; 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot#include "orion5x-linkstation.dtsi" 49*f126890aSEmmanuel Vadot#include "mvebu-linkstation-gpio-simple.dtsi" 50*f126890aSEmmanuel Vadot#include "mvebu-linkstation-fan.dtsi" 51*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot/ { 54*f126890aSEmmanuel Vadot model = "Buffalo Linkstation LS-WTGL"; 55*f126890aSEmmanuel Vadot compatible = "buffalo,lswtgl", "marvell,orion5x-88f5182", "marvell,orion5x"; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot memory { /* 64 MB */ 58*f126890aSEmmanuel Vadot device_type = "memory"; 59*f126890aSEmmanuel Vadot reg = <0x00000000 0x4000000>; 60*f126890aSEmmanuel Vadot }; 61*f126890aSEmmanuel Vadot 62*f126890aSEmmanuel Vadot gpio_keys { 63*f126890aSEmmanuel Vadot power-on-switch { 64*f126890aSEmmanuel Vadot gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot power-auto-switch { 68*f126890aSEmmanuel Vadot gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 69*f126890aSEmmanuel Vadot }; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot 72*f126890aSEmmanuel Vadot gpio_leds { 73*f126890aSEmmanuel Vadot blue-power-led { 74*f126890aSEmmanuel Vadot gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot red-alarm-led { 78*f126890aSEmmanuel Vadot gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot 81*f126890aSEmmanuel Vadot amber-info-led { 82*f126890aSEmmanuel Vadot gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot gpio_fan { 87*f126890aSEmmanuel Vadot gpios = <&gpio0 14 GPIO_ACTIVE_LOW 88*f126890aSEmmanuel Vadot &gpio0 17 GPIO_ACTIVE_LOW>; 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; 91*f126890aSEmmanuel Vadot }; 92*f126890aSEmmanuel Vadot}; 93*f126890aSEmmanuel Vadot 94*f126890aSEmmanuel Vadot&pinctrl { 95*f126890aSEmmanuel Vadot pmx_led_power: pmx-leds { 96*f126890aSEmmanuel Vadot marvell,pins = "mpp0"; 97*f126890aSEmmanuel Vadot marvell,function = "gpio"; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot pmx_power_hdd: pmx-power-hdd { 101*f126890aSEmmanuel Vadot marvell,pins = "mpp1"; 102*f126890aSEmmanuel Vadot marvell,function = "gpio"; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot pmx_led_alarm: pmx-leds { 106*f126890aSEmmanuel Vadot marvell,pins = "mpp2"; 107*f126890aSEmmanuel Vadot marvell,function = "gpio"; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot pmx_led_info: pmx-leds { 111*f126890aSEmmanuel Vadot marvell,pins = "mpp3"; 112*f126890aSEmmanuel Vadot marvell,function = "gpio"; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot pmx_fan_lock: pmx-fan-lock { 116*f126890aSEmmanuel Vadot marvell,pins = "mpp6"; 117*f126890aSEmmanuel Vadot marvell,function = "gpio"; 118*f126890aSEmmanuel Vadot }; 119*f126890aSEmmanuel Vadot 120*f126890aSEmmanuel Vadot pmx_power_switch: pmx-power-switch { 121*f126890aSEmmanuel Vadot marvell,pins = "mpp8", "mpp10"; 122*f126890aSEmmanuel Vadot marvell,function = "gpio"; 123*f126890aSEmmanuel Vadot }; 124*f126890aSEmmanuel Vadot 125*f126890aSEmmanuel Vadot pmx_power_usb: pmx-power-usb { 126*f126890aSEmmanuel Vadot marvell,pins = "mpp9"; 127*f126890aSEmmanuel Vadot marvell,function = "gpio"; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot 130*f126890aSEmmanuel Vadot pmx_fan_high: pmx-fan-high { 131*f126890aSEmmanuel Vadot marvell,pins = "mpp14"; 132*f126890aSEmmanuel Vadot marvell,function = "gpio"; 133*f126890aSEmmanuel Vadot }; 134*f126890aSEmmanuel Vadot 135*f126890aSEmmanuel Vadot pmx_fan_low: pmx-fan-low { 136*f126890aSEmmanuel Vadot marvell,pins = "mpp17"; 137*f126890aSEmmanuel Vadot marvell,function = "gpio"; 138*f126890aSEmmanuel Vadot }; 139*f126890aSEmmanuel Vadot}; 140*f126890aSEmmanuel Vadot 141*f126890aSEmmanuel Vadot&hdd_power { 142*f126890aSEmmanuel Vadot gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 143*f126890aSEmmanuel Vadot}; 144*f126890aSEmmanuel Vadot 145*f126890aSEmmanuel Vadot&usb_power { 146*f126890aSEmmanuel Vadot gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot&sata { 150*f126890aSEmmanuel Vadot nr-ports = <2>; 151*f126890aSEmmanuel Vadot}; 152