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