1/*
2 * Device Tree file for Buffalo Linkstation LS-GL
3 *       (also known as Buffalo Linkstation Pro/Live)
4 *
5 * Copyright (C) 2016
6 * Roger Shimizu <rogershimizu@gmail.com>
7 *
8 * Based on the board file arch/arm/mach-orion5x/kurobox_pro-setup.c
9 * Copyright (C) Ronen Shitrit <rshitrit@marvell.com>
10 *
11 * This file is dual-licensed: you can use it either under the terms
12 * of the GPL or the X11 license, at your option. Note that this dual
13 * licensing only applies to this file, and not this project as a
14 * whole.
15 *
16 *  a) This file is free software; you can redistribute it and/or
17 *     modify it under the terms of the GNU General Public License as
18 *     published by the Free Software Foundation; either version 2 of the
19 *     License, or (at your option) any later version.
20 *
21 *     This file is distributed in the hope that it will be useful,
22 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
23 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 *     GNU General Public License for more details.
25 *
26 * Or, alternatively,
27 *
28 *  b) Permission is hereby granted, free of charge, to any person
29 *     obtaining a copy of this software and associated documentation
30 *     files (the "Software"), to deal in the Software without
31 *     restriction, including without limitation the rights to use,
32 *     copy, modify, merge, publish, distribute, sublicense, and/or
33 *     sell copies of the Software, and to permit persons to whom the
34 *     Software is furnished to do so, subject to the following
35 *     conditions:
36 *
37 *     The above copyright notice and this permission notice shall be
38 *     included in all copies or substantial portions of the Software.
39 *
40 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 *     OTHER DEALINGS IN THE SOFTWARE.
48 */
49
50/dts-v1/;
51
52#include "orion5x-linkstation.dtsi"
53#include <dt-bindings/gpio/gpio.h>
54
55/ {
56	model = "Buffalo Linkstation Pro/Live";
57	compatible = "buffalo,lsgl", "marvell,orion5x-88f5182", "marvell,orion5x";
58
59	memory { /* 128 MB */
60		device_type = "memory";
61		reg = <0x00000000 0x8000000>;
62	};
63};
64
65&pinctrl {
66	pmx_power_hdd: pmx-power-hdd {
67		marvell,pins = "mpp1";
68		marvell,function = "gpio";
69	};
70
71	pmx_power_usb: pmx-power-usb {
72		marvell,pins = "mpp9";
73		marvell,function = "gpio";
74	};
75};
76
77&hdd_power {
78	gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
79};
80
81&usb_power {
82	gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
83};
84
85&sata {
86	nr-ports = <2>;
87};
88
89&ehci1 {
90	status = "okay";
91};
92