mm: hugetlb: fix hugepage memory leak caused by wrong reserve count
[linux/fpc-iii.git] / arch / arm / boot / dts / kirkwood-t5325.dts
blobed956b849a71fcf3b2d8b6e1b65bc3ca931c0dde
1 /*
2  * Device Tree file for HP t5325 Thin Client"
3  *
4  * Copyright (C) 2014
5  *
6  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7  * Andrew Lunn <andrew@lunn.ch>
8  *
9  * This file is licensed under the terms of the GNU General Public
10  * License version 2.  This program is licensed "as is" without any
11  * warranty of any kind, whether express or implied.
14 /dts-v1/;
16 #include "kirkwood.dtsi"
17 #include "kirkwood-6281.dtsi"
19 / {
20         model = "HP t5325 Thin Client";
21         compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood";
23         memory {
24                 device_type = "memory";
25                 reg = <0x00000000 0x20000000>;
26         };
28         chosen {
29                 bootargs = "console=ttyS0,115200n8";
30                 stdout-path = &uart0;
31         };
33         mbus {
34                 pcie-controller {
35                         status = "okay";
37                         pcie@1,0 {
38                                 status = "okay";
39                         };
40                 };
41         };
43         ocp@f1000000 {
44                 pinctrl: pin-controller@10000 {
45                         pinctrl-0 = <&pmx_i2s &pmx_sysrst>;
46                         pinctrl-names = "default";
48                         pmx_button_power: pmx-button_power {
49                                 marvell,pins = "mpp45";
50                                 marvell,function = "gpio";
51                         };
53                         pmx_power_off: pmx-power-off {
54                                 marvell,pins = "mpp48";
55                                 marvell,function = "gpio";
56                         };
58                         pmx_led: pmx-led {
59                                 marvell,pins = "mpp21";
60                                 marvell,function = "gpio";
61                         };
63                         pmx_usb_sata_power_enable: pmx-usb-sata-power-enable {
64                                 marvell,pins = "mpp44";
65                                 marvell,function = "gpio";
66                         };
68                         pmx_spi: pmx-spi {
69                                 marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7";
70                                 marvell,function = "spi";
71                         };
73                         pmx_sysrst: pmx-sysrst {
74                                 marvell,pins = "mpp6";
75                                 marvell,function = "sysrst";
76                         };
78                         pmx_i2s: pmx-i2s {
79                                 marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42",
80                                                "mpp43";
81                                 marvell,function = "audio";
82                         };
83                 };
85                 spi@10600 {
86                         status = "okay";
88                         flash@0 {
89                                 #address-cells = <1>;
90                                 #size-cells = <1>;
91                                 compatible = "st,m25p80", "jedec,spi-nor";
92                                 spi-max-frequency = <86000000>;
93                                 reg = <0>;
94                                 mode = <0>;
96                                 partition@0 {
97                                         reg = <0x0 0x80000>;
98                                         label = "u-boot";
99                                 };
101                                 partition@1 {
102                                         reg = <0x80000 0x40000>;
103                                         label = "SSD firmware";
104                                 };
106                                 partition@2 {
107                                         reg = <0xc0000 0x10000>;
108                                         label = "u-boot env";
109                                 };
111                                 partition@3 {
112                                         reg = <0xd0000 0x10000>;
113                                         label = "permanent u-boot env";
114                                 };
116                                 partition@4 {
117                                         reg = <0xd0000 0x10000>;
118                                         label = "permanent u-boot env";
119                                 };
120                         };
121                 };
123                 i2c@11000 {
124                         status = "okay";
126                         alc5621: alc5621@1a {
127                                 compatible = "realtek,alc5621";
128                                 reg = <0x1a>;
129                                 #sound-dai-cells = <0>;
130                                 add-ctrl = <0x3700>;
131                                 jack-det-ctrl = <0x4810>;
132                         };
133                 };
135                 serial@12000 {
136                         status = "okay";
137                 };
139                 sata@80000 {
140                         status = "okay";
141                         nr-ports = <2>;
142                 };
144                 audio: audio-controller@a0000 {
145                         status = "okay";
146                 };
147         };
149         regulators {
150                 compatible = "simple-bus";
151                 #address-cells = <1>;
152                 #size-cells = <0>;
153                 pinctrl-0 = <&pmx_usb_sata_power_enable>;
154                 pinctrl-names = "default";
156                 usb_power: regulator@1 {
157                         compatible = "regulator-fixed";
158                         reg = <1>;
159                         regulator-name = "USB-SATA Power";
160                         regulator-min-microvolt = <5000000>;
161                         regulator-max-microvolt = <5000000>;
162                         enable-active-high;
163                         regulator-always-on;
164                         regulator-boot-on;
165                         gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
166                 };
167         };
169         gpio_keys {
170                 compatible = "gpio-keys";
171                 #address-cells = <1>;
172                 #size-cells = <0>;
173                 pinctrl-0 = <&pmx_button_power>;
174                 pinctrl-names = "default";
176                 button@1 {
177                         label = "Power Button";
178                         linux,code = <KEY_POWER>;
179                         gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
180                 };
181         };
183         gpio_poweroff {
184                 compatible = "gpio-poweroff";
185                 pinctrl-0 = <&pmx_power_off>;
186                 pinctrl-names = "default";
187                 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
188         };
190         sound {
191                 compatible = "simple-audio-card";
192                 simple-audio-card,format = "i2s";
193                 simple-audio-card,routing =
194                         "Headphone Jack", "HPL",
195                         "Headphone Jack", "HPR",
196                         "Speaker", "SPKOUT",
197                         "Speaker", "SPKOUTN",
198                         "MIC1", "Mic Jack",
199                         "MIC2", "Mic Jack";
200                 simple-audio-card,widgets =
201                         "Headphone", "Headphone Jack",
202                         "Speaker", "Speaker",
203                         "Microphone", "Mic Jack";
205                 simple-audio-card,mclk-fs = <256>;
207                 simple-audio-card,cpu {
208                         sound-dai = <&audio>;
209                 };
211                 simple-audio-card,codec {
212                         sound-dai = <&alc5621>;
213                 };
214         };
217 &mdio {
218         status = "okay";
220         ethphy0: ethernet-phy {
221                 device_type = "ethernet-phy";
222                 reg = <8>;
223         };
226 &eth0 {
227         status = "okay";
228         ethernet0-port@0 {
229                 phy-handle = <&ethphy0>;
230         };