Commit | Line | Data |
---|---|---|
5dda254d ML |
1 | /* |
2 | * Device Tree file for Buffalo Linkstation LS-QVL | |
3 | * | |
4 | * Copyright (C) 2016, Mario Lange <mario_lange@gmx.net> | |
5 | * | |
6 | * Based on kirkwood-linkstation-lswvl.dts, | |
7 | * Copyright (C) 2015, 2016 | |
8 | * Roger Shimizu <rogershimizu@gmail.com> | |
9 | * | |
10 | * This file is dual-licensed: you can use it either under the terms | |
11 | * of the GPL or the X11 license, at your option. Note that this dual | |
12 | * licensing only applies to this file, and not this project as a | |
13 | * whole. | |
14 | * | |
15 | * a) This file is free software; you can redistribute it and/or | |
16 | * modify it under the terms of the GNU General Public License as | |
17 | * published by the Free Software Foundation; either version 2 of the | |
18 | * License, or (at your option) any later version. | |
19 | * | |
20 | * This file is distributed in the hope that it will be useful | |
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | * GNU General Public License for more details. | |
24 | * | |
25 | * Or, alternatively | |
26 | * | |
27 | * b) Permission is hereby granted, free of charge, to any person | |
28 | * obtaining a copy of this software and associated documentation | |
29 | * files (the "Software"), to deal in the Software without | |
30 | * restriction, including without limitation the rights to use | |
31 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
32 | * sell copies of the Software, and to permit persons to whom the | |
33 | * Software is furnished to do so, subject to the following | |
34 | * conditions: | |
35 | * | |
36 | * The above copyright notice and this permission notice shall be | |
37 | * included in all copies or substantial portions of the Software. | |
38 | * | |
39 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND | |
40 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
41 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
42 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
43 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY | |
44 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
45 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
46 | * OTHER DEALINGS IN THE SOFTWARE. | |
47 | */ | |
48 | ||
49 | /dts-v1/; | |
50 | #include "kirkwood-linkstation-6282.dtsi" | |
51 | ||
52 | / { | |
53 | model = "Buffalo Linkstation LS-QVL"; | |
54 | compatible = "buffalo,lsqvl", "marvell,kirkwood-88f6282", "marvell,kirkwood"; | |
55 | ||
56 | memory { /* 256 MB */ | |
57 | device_type = "memory"; | |
58 | reg = <0x00000000 0x10000000>; | |
59 | }; | |
60 | ||
61 | ocp@f1000000 { | |
62 | pinctrl: pin-controller@10000 { | |
63 | pmx_power_hdd1: pmx-power-hdd1 { | |
64 | marvell,pins = "mpp9"; | |
65 | marvell,function = "gpio"; | |
66 | }; | |
67 | pmx_led_hdderr0: pmx-led-hdderr0 { | |
68 | marvell,pins = "mpp34"; | |
69 | marvell,function = "gpio"; | |
70 | }; | |
71 | pmx_led_hdderr1: pmx-led-hdderr1 { | |
72 | marvell,pins = "mpp35"; | |
73 | marvell,function = "gpio"; | |
74 | }; | |
75 | pmx_led_hdderr2: pmx-led-hdderr2 { | |
76 | marvell,pins = "mpp24"; | |
77 | marvell,function = "gpio"; | |
78 | }; | |
79 | pmx_led_hdderr3: pmx-led-hdderr3 { | |
80 | marvell,pins = "mpp25"; | |
81 | marvell,function = "gpio"; | |
82 | }; | |
83 | }; | |
84 | ||
85 | sata@80000 { | |
86 | nr-ports = <2>; | |
87 | }; | |
88 | }; | |
89 | ||
90 | gpio_leds { | |
91 | pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm | |
92 | &pmx_led_info &pmx_led_power | |
93 | &pmx_led_function_blue | |
94 | &pmx_led_hdderr0 | |
95 | &pmx_led_hdderr1 | |
96 | &pmx_led_hdderr2 | |
97 | &pmx_led_hdderr3>; | |
98 | ||
99 | red-hdderr0-led { | |
100 | label = "linkstation:red:hdderr0"; | |
101 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; | |
102 | }; | |
103 | ||
104 | red-hdderr1-led { | |
105 | label = "linkstation:red:hdderr1"; | |
106 | gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; | |
107 | }; | |
108 | ||
109 | red-hdderr2-led { | |
110 | label = "linkstation:red:hdderr2"; | |
111 | gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; | |
112 | }; | |
113 | ||
114 | red-hdderr3-led { | |
115 | label = "linkstation:red:hdderr3"; | |
116 | gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; | |
117 | }; | |
118 | }; | |
119 | ||
120 | regulators { | |
121 | pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>; | |
122 | ||
123 | hdd_power1: regulator@3 { | |
124 | compatible = "regulator-fixed"; | |
125 | reg = <3>; | |
126 | regulator-name = "HDD1 Power"; | |
127 | regulator-min-microvolt = <5000000>; | |
128 | regulator-max-microvolt = <5000000>; | |
129 | enable-active-high; | |
130 | regulator-always-on; | |
131 | regulator-boot-on; | |
132 | gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; | |
133 | }; | |
134 | }; | |
135 | }; |