1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree file for Buffalo Linkstation LS-WXL 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2015, 2016 6724ba675SRob Herring * Roger Shimizu <rogershimizu@gmail.com> 7724ba675SRob Herring */ 8724ba675SRob Herring 9724ba675SRob Herring/dts-v1/; 10724ba675SRob Herring#include "kirkwood-linkstation-duo-6281.dtsi" 11724ba675SRob Herring 12724ba675SRob Herring/ { 13724ba675SRob Herring model = "Buffalo Linkstation LS-WXL"; 14724ba675SRob Herring compatible = "buffalo,lswxl", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 15724ba675SRob Herring 16724ba675SRob Herring memory { /* 128 MB */ 17724ba675SRob Herring device_type = "memory"; 18724ba675SRob Herring reg = <0x00000000 0x8000000>; 19724ba675SRob Herring }; 20724ba675SRob Herring 21724ba675SRob Herring ocp@f1000000 { 22724ba675SRob Herring pinctrl: pin-controller@10000 { 23724ba675SRob Herring pmx_led_hdderr0: pmx-led-hdderr0 { 24724ba675SRob Herring marvell,pins = "mpp8"; 25724ba675SRob Herring marvell,function = "gpio"; 26724ba675SRob Herring }; 27724ba675SRob Herring pmx_led_hdderr1: pmx-led-hdderr1 { 28724ba675SRob Herring marvell,pins = "mpp46"; 29724ba675SRob Herring marvell,function = "gpio"; 30724ba675SRob Herring }; 31724ba675SRob Herring pmx_fan_lock: pmx-fan-lock { 32724ba675SRob Herring marvell,pins = "mpp40"; 33724ba675SRob Herring marvell,function = "gpio"; 34724ba675SRob Herring }; 35724ba675SRob Herring pmx_fan_high: pmx-fan-high { 36724ba675SRob Herring marvell,pins = "mpp47"; 37724ba675SRob Herring marvell,function = "gpio"; 38724ba675SRob Herring }; 39724ba675SRob Herring pmx_fan_low: pmx-fan-low { 40724ba675SRob Herring marvell,pins = "mpp48"; 41724ba675SRob Herring marvell,function = "gpio"; 42724ba675SRob Herring }; 43724ba675SRob Herring }; 44724ba675SRob Herring }; 45724ba675SRob Herring 46724ba675SRob Herring gpio_leds { 47724ba675SRob Herring pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm 48724ba675SRob Herring &pmx_led_info &pmx_led_power 49724ba675SRob Herring &pmx_led_function_blue 50724ba675SRob Herring &pmx_led_hdderr0 51724ba675SRob Herring &pmx_led_hdderr1>; 52724ba675SRob Herring 53724ba675SRob Herring red-hdderr0-led { 54724ba675SRob Herring label = "linkstation:red:hdderr0"; 55724ba675SRob Herring gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; 56724ba675SRob Herring }; 57724ba675SRob Herring 58724ba675SRob Herring red-hdderr1-led { 59724ba675SRob Herring label = "linkstation:red:hdderr1"; 60724ba675SRob Herring gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; 61724ba675SRob Herring }; 62724ba675SRob Herring }; 63724ba675SRob Herring 64724ba675SRob Herring gpio_fan { 65724ba675SRob Herring compatible = "gpio-fan"; 66724ba675SRob Herring pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; 67724ba675SRob Herring pinctrl-names = "default"; 68724ba675SRob Herring 69724ba675SRob Herring gpios = <&gpio1 16 GPIO_ACTIVE_LOW 70724ba675SRob Herring &gpio1 15 GPIO_ACTIVE_LOW>; 71724ba675SRob Herring 72*62f34e3eSDavid Heidelberg gpio-fan,speed-map = 73*62f34e3eSDavid Heidelberg < 0 3>, 74*62f34e3eSDavid Heidelberg <1500 2>, 75*62f34e3eSDavid Heidelberg <3250 1>, 76*62f34e3eSDavid Heidelberg <5000 0>; 77724ba675SRob Herring 78724ba675SRob Herring alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 79724ba675SRob Herring }; 80724ba675SRob Herring}; 81