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