ARM: orion5x: convert edmini_v2 to DT pinctrl
[pandora-kernel.git] / arch / arm / boot / dts / orion5x-lacie-ethernet-disk-mini-v2.dts
1 /*
2  * Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3  *
4  * This file is licensed under the terms of the GNU General Public
5  * License version 2. This program is licensed "as is" without any
6  * warranty of any kind, whether express or implied.
7  */
8
9 /dts-v1/;
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include "orion5x-mv88f5182.dtsi"
14
15 / {
16         model = "LaCie Ethernet Disk mini V2";
17         compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
18
19         memory {
20                 reg = <0x00000000 0x4000000>; /* 64 MB */
21         };
22
23         chosen {
24                 bootargs = "console=ttyS0,115200n8 earlyprintk";
25                 linux,stdout-path = &uart0;
26         };
27
28         soc {
29                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
30                          <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>;
31         };
32
33         gpio-keys {
34                 compatible = "gpio-keys";
35                 pinctrl-0 = <&pmx_power_button>;
36                 pinctrl-names = "default";
37                 #address-cells = <1>;
38                 #size-cells = <0>;
39                 button@1 {
40                         label = "Power-on Switch";
41                         linux,code = <KEY_POWER>;
42                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
43                 };
44         };
45
46         gpio-leds {
47                 compatible = "gpio-leds";
48                 pinctrl-0 = <&pmx_power_led>;
49                 pinctrl-names = "default";
50
51                 led@1 {
52                         label = "power:blue";
53                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
54                 };
55         };
56 };
57
58 &eth {
59         status = "okay";
60
61         ethernet-port@0 {
62                 phy-handle = <&ethphy>;
63         };
64 };
65
66 &mdio {
67         status = "okay";
68
69         ethphy: ethernet-phy {
70                 reg = <8>;
71         };
72 };
73
74 &pinctrl {
75         pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>;
76         pinctrl-names = "default";
77
78         pmx_power_button: pmx-power-button {
79                 marvell,pins = "mpp18";
80                 marvell,function = "gpio";
81         };
82
83         pmx_power_led: pmx-power-led {
84                 marvell,pins = "mpp16";
85                 marvell,function = "gpio";
86         };
87
88         pmx_power_led_ctrl: pmx-power-led-ctrl {
89                 marvell,pins = "mpp17";
90                 marvell,function = "gpio";
91         };
92
93         pmx_rtc: pmx-rtc {
94                 marvell,pins = "mpp3";
95                 marvell,function = "gpio";
96         };
97 };
98
99 &sata {
100         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
101         pinctrl-names = "default";
102         status = "okay";
103         nr-ports = <2>;
104 };
105
106 &uart0 {
107         status = "okay";
108 };