0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for Buffalo Linkstation LS-QVL
0004 *
0005 * Copyright (C) 2016, Mario Lange <mario_lange@gmx.net>
0006 *
0007 * Based on kirkwood-linkstation-lswvl.dts,
0008 * Copyright (C) 2015, 2016
0009 * Roger Shimizu <rogershimizu@gmail.com>
0010 */
0011
0012 /dts-v1/;
0013 #include "kirkwood-linkstation-6282.dtsi"
0014
0015 / {
0016 model = "Buffalo Linkstation LS-QVL";
0017 compatible = "buffalo,lsqvl", "marvell,kirkwood-88f6282", "marvell,kirkwood";
0018
0019 memory { /* 256 MB */
0020 device_type = "memory";
0021 reg = <0x00000000 0x10000000>;
0022 };
0023
0024 ocp@f1000000 {
0025 pinctrl: pin-controller@10000 {
0026 pmx_power_hdd1: pmx-power-hdd1 {
0027 marvell,pins = "mpp9";
0028 marvell,function = "gpio";
0029 };
0030 pmx_led_hdderr0: pmx-led-hdderr0 {
0031 marvell,pins = "mpp34";
0032 marvell,function = "gpio";
0033 };
0034 pmx_led_hdderr1: pmx-led-hdderr1 {
0035 marvell,pins = "mpp35";
0036 marvell,function = "gpio";
0037 };
0038 pmx_led_hdderr2: pmx-led-hdderr2 {
0039 marvell,pins = "mpp24";
0040 marvell,function = "gpio";
0041 };
0042 pmx_led_hdderr3: pmx-led-hdderr3 {
0043 marvell,pins = "mpp25";
0044 marvell,function = "gpio";
0045 };
0046 };
0047
0048 sata@80000 {
0049 nr-ports = <2>;
0050 };
0051 };
0052
0053 gpio_leds {
0054 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
0055 &pmx_led_info &pmx_led_power
0056 &pmx_led_function_blue
0057 &pmx_led_hdderr0
0058 &pmx_led_hdderr1
0059 &pmx_led_hdderr2
0060 &pmx_led_hdderr3>;
0061
0062 red-hdderr0-led {
0063 label = "linkstation:red:hdderr0";
0064 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
0065 };
0066
0067 red-hdderr1-led {
0068 label = "linkstation:red:hdderr1";
0069 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
0070 };
0071
0072 red-hdderr2-led {
0073 label = "linkstation:red:hdderr2";
0074 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
0075 };
0076
0077 red-hdderr3-led {
0078 label = "linkstation:red:hdderr3";
0079 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
0080 };
0081 };
0082
0083 regulators {
0084 pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
0085
0086 hdd_power1: regulator@3 {
0087 compatible = "regulator-fixed";
0088 reg = <3>;
0089 regulator-name = "HDD1 Power";
0090 regulator-min-microvolt = <5000000>;
0091 regulator-max-microvolt = <5000000>;
0092 enable-active-high;
0093 regulator-always-on;
0094 regulator-boot-on;
0095 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
0096 };
0097 };
0098 };