ARM: dts: kirkwood: set default pinctrl for SPI0
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-laplug.dts
1 /*
2  * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.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 "kirkwood.dtsi"
14 #include "kirkwood-6192.dtsi"
15
16 / {
17         model = "LaCie LaPlug";
18         compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
19
20         memory {
21                 device_type = "memory";
22                 reg = <0x00000000 0x8000000>; /* 128 MB */
23         };
24
25         chosen {
26                 bootargs = "console=ttyS0,115200n8 earlyprintk";
27                 stdout-path = &uart0;
28         };
29
30         mbus {
31                 pcie-controller {
32                         status = "okay";
33                         pcie@1,0 {
34                                 status = "okay";
35                         };
36                 };
37         };
38
39         ocp@f1000000 {
40                 serial@12000 {
41                         status = "okay";
42                 };
43
44                 i2c@11000 {
45                         pinctrl-0 = <&pmx_twsi0>;
46                         pinctrl-names = "default";
47                         status = "okay";
48
49                         eeprom@50 {
50                                 compatible = "at,24c04";
51                                 pagesize = <16>;
52                                 reg = <0x50>;
53                         };
54                 };
55
56                 pinctrl: pin-controller@10000 {
57                         pmx_usb_power_enable: pmx-usb-power-enable {
58                                 marvell,pins = "mpp14";
59                                 marvell,function = "gpio";
60                         };
61                 };
62         };
63
64         gpio_keys {
65                 compatible = "gpio-keys";
66
67                 button@1{
68                         label = "Power push button";
69                         linux,code = <KEY_POWER>;
70                         gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
71                 };
72         };
73
74         gpio-leds {
75                 compatible = "gpio-leds";
76
77                 red-fail {
78                         label = "laplug_v2:red:power";
79                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
80                 };
81                 blue-power {
82                         label = "laplug_v2:blue:power";
83                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
84                         linux,default-trigger = "default-on";
85                 };
86         };
87
88         gpio_poweroff {
89                 compatible = "gpio-poweroff";
90                 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
91         };
92
93         regulators {
94                 compatible = "simple-bus";
95                 #address-cells = <1>;
96                 #size-cells = <0>;
97                 pinctrl-0 = <&pmx_usb_power_enable>;
98                 pinctrl-names = "default";
99
100                 usb_power_back1: regulator@1 {
101                         compatible = "regulator-fixed";
102                         reg = <1>;
103                         regulator-name = "USB Power Back 1";
104                         regulator-min-microvolt = <5000000>;
105                         regulator-max-microvolt = <5000000>;
106                         enable-active-high;
107                         regulator-always-on;
108                         regulator-boot-on;
109                         gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
110                 };
111
112                 usb_power_back2: regulator@2 {
113                         compatible = "regulator-fixed";
114                         reg = <2>;
115                         regulator-name = "USB Power Back 2";
116                         regulator-min-microvolt = <5000000>;
117                         regulator-max-microvolt = <5000000>;
118                         enable-active-high;
119                         regulator-always-on;
120                         regulator-boot-on;
121                         gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
122                 };
123
124                 usb_power_front: regulator@3 {
125                         compatible = "regulator-fixed";
126                         reg = <3>;
127                         regulator-name = "USB Power Front";
128                         regulator-min-microvolt = <5000000>;
129                         regulator-max-microvolt = <5000000>;
130                         enable-active-high;
131                         regulator-always-on;
132                         regulator-boot-on;
133                         gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
134                 };
135         };
136 };
137
138 &nand {
139         /* Total size : 512MB */
140         status = "okay";
141         pinctrl-0 = <&pmx_nand>;
142
143         partition@0 {
144                 label = "u-boot";
145                 reg = <0x0 0x100000>; /* 1MB */
146                 read-only;
147         };
148
149         partition@100000 {
150                 label = "uImage";
151                 reg = <0x100000 0x1000000>; /* 16MB */
152         };
153
154         partition@1100000 {
155                 label = "rootfs";
156                 reg = <0x1100000 0x1EF00000>; /* 495MB */
157         };
158 };
159
160 &mdio {
161         status = "okay";
162
163         ethphy0: ethernet-phy@0 {
164                 device_type = "ethernet-phy";
165                 reg = <0>;
166         };
167 };
168
169 &eth0 {
170         status = "okay";
171         ethernet0-port@0 {
172                 phy-handle = <&ethphy0>;
173         };
174 };