1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for Buffalo Linkstation LS-QVL
4 *
5 * Copyright (C) 2016, Mario Lange <mario_lange@gmx.net>
6 *
7 * Based on kirkwood-linkstation-lswvl.dts,
8 * Copyright (C) 2015, 2016
9 * Roger Shimizu <rogershimizu@gmail.com>
10 */
11
12/dts-v1/;
13#include "kirkwood-linkstation-6282.dtsi"
14
15/ {
16	model = "Buffalo Linkstation LS-QVL";
17	compatible = "buffalo,lsqvl", "marvell,kirkwood-88f6282", "marvell,kirkwood";
18
19	memory { /* 256 MB */
20		device_type = "memory";
21		reg = <0x00000000 0x10000000>;
22	};
23
24	ocp@f1000000 {
25		pinctrl: pin-controller@10000 {
26			pmx_power_hdd1: pmx-power-hdd1 {
27				marvell,pins = "mpp9";
28				marvell,function = "gpio";
29			};
30			pmx_led_hdderr0: pmx-led-hdderr0 {
31				marvell,pins = "mpp34";
32				marvell,function = "gpio";
33			};
34			pmx_led_hdderr1: pmx-led-hdderr1 {
35				marvell,pins = "mpp35";
36				marvell,function = "gpio";
37			};
38			pmx_led_hdderr2: pmx-led-hdderr2 {
39				marvell,pins = "mpp24";
40				marvell,function = "gpio";
41			};
42			pmx_led_hdderr3: pmx-led-hdderr3 {
43				marvell,pins = "mpp25";
44				marvell,function = "gpio";
45			};
46		};
47
48		sata@80000 {
49			nr-ports = <2>;
50		};
51	};
52
53	gpio_leds {
54		pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
55			     &pmx_led_info &pmx_led_power
56			     &pmx_led_function_blue
57			     &pmx_led_hdderr0
58			     &pmx_led_hdderr1
59			     &pmx_led_hdderr2
60			     &pmx_led_hdderr3>;
61
62		red-hdderr0-led {
63			label = "linkstation:red:hdderr0";
64			gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
65		};
66
67		red-hdderr1-led {
68			label = "linkstation:red:hdderr1";
69			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
70		};
71
72		red-hdderr2-led {
73			label = "linkstation:red:hdderr2";
74			gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
75		};
76
77		red-hdderr3-led {
78			label = "linkstation:red:hdderr3";
79			gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
80		};
81	};
82
83	regulators {
84		pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
85
86		hdd_power1: regulator@3 {
87			compatible = "regulator-fixed";
88			reg = <3>;
89			regulator-name = "HDD1 Power";
90			regulator-min-microvolt = <5000000>;
91			regulator-max-microvolt = <5000000>;
92			enable-active-high;
93			regulator-always-on;
94			regulator-boot-on;
95			gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
96		};
97	};
98};
99