Commit | Line | Data |
---|---|---|
2cc64b56 MH |
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"; | |
ab833614 | 27 | stdout-path = &uart0; |
2cc64b56 MH |
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 { | |
2cc64b56 MH |
41 | status = "okay"; |
42 | }; | |
43 | ||
44 | i2c@11000 { | |
2cc64b56 MH |
45 | status = "okay"; |
46 | ||
47 | eeprom@50 { | |
0d606c08 | 48 | compatible = "atmel,24c04"; |
2cc64b56 MH |
49 | pagesize = <16>; |
50 | reg = <0x50>; | |
51 | }; | |
52 | }; | |
53 | ||
a9483969 | 54 | pinctrl: pin-controller@10000 { |
2cc64b56 MH |
55 | pmx_usb_power_enable: pmx-usb-power-enable { |
56 | marvell,pins = "mpp14"; | |
57 | marvell,function = "gpio"; | |
58 | }; | |
59 | }; | |
60 | }; | |
61 | ||
62 | gpio_keys { | |
63 | compatible = "gpio-keys"; | |
64 | ||
65 | button@1{ | |
66 | label = "Power push button"; | |
67 | linux,code = <KEY_POWER>; | |
68 | gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; | |
69 | }; | |
70 | }; | |
71 | ||
72 | gpio-leds { | |
73 | compatible = "gpio-leds"; | |
74 | ||
75 | red-fail { | |
76 | label = "laplug_v2:red:power"; | |
77 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | |
78 | }; | |
79 | blue-power { | |
80 | label = "laplug_v2:blue:power"; | |
81 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; | |
82 | linux,default-trigger = "default-on"; | |
83 | }; | |
84 | }; | |
85 | ||
86 | gpio_poweroff { | |
87 | compatible = "gpio-poweroff"; | |
88 | gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; | |
89 | }; | |
90 | ||
91 | regulators { | |
92 | compatible = "simple-bus"; | |
93 | #address-cells = <1>; | |
94 | #size-cells = <0>; | |
95 | pinctrl-0 = <&pmx_usb_power_enable>; | |
96 | pinctrl-names = "default"; | |
97 | ||
98 | usb_power_back1: regulator@1 { | |
99 | compatible = "regulator-fixed"; | |
100 | reg = <1>; | |
101 | regulator-name = "USB Power Back 1"; | |
102 | regulator-min-microvolt = <5000000>; | |
103 | regulator-max-microvolt = <5000000>; | |
104 | enable-active-high; | |
105 | regulator-always-on; | |
106 | regulator-boot-on; | |
107 | gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; | |
108 | }; | |
109 | ||
110 | usb_power_back2: regulator@2 { | |
111 | compatible = "regulator-fixed"; | |
112 | reg = <2>; | |
113 | regulator-name = "USB Power Back 2"; | |
114 | regulator-min-microvolt = <5000000>; | |
115 | regulator-max-microvolt = <5000000>; | |
116 | enable-active-high; | |
117 | regulator-always-on; | |
118 | regulator-boot-on; | |
119 | gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>; | |
120 | }; | |
121 | ||
122 | usb_power_front: regulator@3 { | |
123 | compatible = "regulator-fixed"; | |
124 | reg = <3>; | |
125 | regulator-name = "USB Power Front"; | |
126 | regulator-min-microvolt = <5000000>; | |
127 | regulator-max-microvolt = <5000000>; | |
128 | enable-active-high; | |
129 | regulator-always-on; | |
130 | regulator-boot-on; | |
131 | gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>; | |
132 | }; | |
133 | }; | |
134 | }; | |
135 | ||
136 | &nand { | |
137 | /* Total size : 512MB */ | |
138 | status = "okay"; | |
2cc64b56 MH |
139 | |
140 | partition@0 { | |
141 | label = "u-boot"; | |
142 | reg = <0x0 0x100000>; /* 1MB */ | |
143 | read-only; | |
144 | }; | |
145 | ||
146 | partition@100000 { | |
147 | label = "uImage"; | |
148 | reg = <0x100000 0x1000000>; /* 16MB */ | |
149 | }; | |
150 | ||
151 | partition@1100000 { | |
152 | label = "rootfs"; | |
153 | reg = <0x1100000 0x1EF00000>; /* 495MB */ | |
154 | }; | |
155 | }; | |
156 | ||
157 | &mdio { | |
158 | status = "okay"; | |
159 | ||
160 | ethphy0: ethernet-phy@0 { | |
161 | device_type = "ethernet-phy"; | |
162 | reg = <0>; | |
163 | }; | |
164 | }; | |
165 | ||
166 | ð0 { | |
167 | status = "okay"; | |
168 | ethernet0-port@0 { | |
169 | phy-handle = <ðphy0>; | |
170 | }; | |
171 | }; |