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