1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree file for Buffalo Linkstation LS-WXL
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2015, 2016
6*724ba675SRob Herring * Roger Shimizu <rogershimizu@gmail.com>
7*724ba675SRob Herring */
8*724ba675SRob Herring
9*724ba675SRob Herring/dts-v1/;
10*724ba675SRob Herring#include "kirkwood-linkstation-duo-6281.dtsi"
11*724ba675SRob Herring
12*724ba675SRob Herring/ {
13*724ba675SRob Herring	model = "Buffalo Linkstation LS-WXL";
14*724ba675SRob Herring	compatible = "buffalo,lswxl", "marvell,kirkwood-88f6281", "marvell,kirkwood";
15*724ba675SRob Herring
16*724ba675SRob Herring	memory { /* 128 MB */
17*724ba675SRob Herring		device_type = "memory";
18*724ba675SRob Herring		reg = <0x00000000 0x8000000>;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	ocp@f1000000 {
22*724ba675SRob Herring		pinctrl: pin-controller@10000 {
23*724ba675SRob Herring			pmx_led_hdderr0: pmx-led-hdderr0 {
24*724ba675SRob Herring				marvell,pins = "mpp8";
25*724ba675SRob Herring				marvell,function = "gpio";
26*724ba675SRob Herring			};
27*724ba675SRob Herring			pmx_led_hdderr1: pmx-led-hdderr1 {
28*724ba675SRob Herring				marvell,pins = "mpp46";
29*724ba675SRob Herring				marvell,function = "gpio";
30*724ba675SRob Herring			};
31*724ba675SRob Herring			pmx_fan_lock: pmx-fan-lock {
32*724ba675SRob Herring				marvell,pins = "mpp40";
33*724ba675SRob Herring				marvell,function = "gpio";
34*724ba675SRob Herring			};
35*724ba675SRob Herring			pmx_fan_high: pmx-fan-high {
36*724ba675SRob Herring				marvell,pins = "mpp47";
37*724ba675SRob Herring				marvell,function = "gpio";
38*724ba675SRob Herring			};
39*724ba675SRob Herring			pmx_fan_low: pmx-fan-low {
40*724ba675SRob Herring				marvell,pins = "mpp48";
41*724ba675SRob Herring				marvell,function = "gpio";
42*724ba675SRob Herring			};
43*724ba675SRob Herring		};
44*724ba675SRob Herring	};
45*724ba675SRob Herring
46*724ba675SRob Herring	gpio_leds {
47*724ba675SRob Herring		pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
48*724ba675SRob Herring			     &pmx_led_info &pmx_led_power
49*724ba675SRob Herring			     &pmx_led_function_blue
50*724ba675SRob Herring			     &pmx_led_hdderr0
51*724ba675SRob Herring			     &pmx_led_hdderr1>;
52*724ba675SRob Herring
53*724ba675SRob Herring		red-hdderr0-led {
54*724ba675SRob Herring			label = "linkstation:red:hdderr0";
55*724ba675SRob Herring			gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
56*724ba675SRob Herring		};
57*724ba675SRob Herring
58*724ba675SRob Herring		red-hdderr1-led {
59*724ba675SRob Herring			label = "linkstation:red:hdderr1";
60*724ba675SRob Herring			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
61*724ba675SRob Herring		};
62*724ba675SRob Herring	};
63*724ba675SRob Herring
64*724ba675SRob Herring	gpio_fan {
65*724ba675SRob Herring		compatible = "gpio-fan";
66*724ba675SRob Herring		pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
67*724ba675SRob Herring		pinctrl-names = "default";
68*724ba675SRob Herring
69*724ba675SRob Herring		gpios = <&gpio1 16 GPIO_ACTIVE_LOW
70*724ba675SRob Herring			 &gpio1 15 GPIO_ACTIVE_LOW>;
71*724ba675SRob Herring
72*724ba675SRob Herring		gpio-fan,speed-map = <0 3
73*724ba675SRob Herring				1500 2
74*724ba675SRob Herring				3250 1
75*724ba675SRob Herring				5000 0>;
76*724ba675SRob Herring
77*724ba675SRob Herring		alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
78*724ba675SRob Herring	};
79*724ba675SRob Herring};
80