0560073660d062fad9b1da05a91b69f86e079521
[openwrt/openwrt.git] / target / linux / kirkwood / patches-3.18 / 180-goflexhome.patch
1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -120,6 +120,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += kirkwood-
4 kirkwood-ds411.dtb \
5 kirkwood-ds411j.dtb \
6 kirkwood-ds411slim.dtb \
7 + kirkwood-goflexhome.dtb \
8 kirkwood-goflexnet.dtb \
9 kirkwood-guruplug-server-plus.dtb \
10 kirkwood-ib62x0.dtb \
11 --- /dev/null
12 +++ b/arch/arm/boot/dts/kirkwood-goflexhome.dts
13 @@ -0,0 +1,127 @@
14 +/dts-v1/;
15 +
16 +#include "kirkwood.dtsi"
17 +#include "kirkwood-6281.dtsi"
18 +
19 +/ {
20 + model = "Seagate GoFlex Home";
21 + compatible = "seagate,goflexhome", "marvell,kirkwood-88f6281", "marvell,kirkwood";
22 +
23 + memory {
24 + device_type = "memory";
25 + reg = <0x00000000 0x8000000>;
26 + };
27 +
28 + chosen {
29 + bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
30 + stdout-path = &uart0;
31 + };
32 +
33 + ocp@f1000000 {
34 + pinctrl: pin-controller@10000 {
35 + pmx_usb_power_enable: pmx-usb-power-enable {
36 + marvell,pins = "mpp29";
37 + marvell,function = "gpio";
38 + };
39 + pmx_led_white: pmx-led-white {
40 + marvell,pins = "mpp40";
41 + marvell,function = "gpio";
42 + };
43 + pmx_led_green: pmx-led_green {
44 + marvell,pins = "mpp46";
45 + marvell,function = "gpio";
46 + };
47 + pmx_led_orange: pmx-led-orange {
48 + marvell,pins = "mpp47";
49 + marvell,function = "gpio";
50 + };
51 + };
52 + serial@12000 {
53 + status = "ok";
54 + };
55 +
56 + sata@80000 {
57 + status = "okay";
58 + nr-ports = <2>;
59 + };
60 +
61 + };
62 + gpio-leds {
63 + compatible = "gpio-leds";
64 +
65 + health {
66 + label = "status:green:health";
67 + gpios = <&gpio1 14 1>;
68 + linux,default-trigger = "default-on";
69 + };
70 + fault {
71 + label = "status:orange:fault";
72 + gpios = <&gpio1 15 1>;
73 + };
74 + misc {
75 + label = "status:white:misc";
76 + gpios = <&gpio1 8 1>;
77 + linux,default-trigger = "ide-disk";
78 + };
79 + };
80 + regulators {
81 + compatible = "simple-bus";
82 + #address-cells = <1>;
83 + #size-cells = <0>;
84 + pinctrl-0 = <&pmx_usb_power_enable>;
85 + pinctrl-names = "default";
86 +
87 + usb_power: regulator@1 {
88 + compatible = "regulator-fixed";
89 + reg = <1>;
90 + regulator-name = "USB Power";
91 + regulator-min-microvolt = <5000000>;
92 + regulator-max-microvolt = <5000000>;
93 + enable-active-high;
94 + regulator-always-on;
95 + regulator-boot-on;
96 + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
97 + };
98 + };
99 +};
100 +
101 +&nand {
102 + chip-delay = <40>;
103 + status = "okay";
104 +
105 + partition@0 {
106 + label = "u-boot";
107 + reg = <0x0000000 0x100000>;
108 + read-only;
109 + };
110 +
111 + partition@100000 {
112 + label = "uImage";
113 + reg = <0x0100000 0x400000>;
114 + };
115 +
116 + partition@500000 {
117 + label = "pogoplug";
118 + reg = <0x0500000 0x2000000>;
119 + };
120 +
121 + partition@2500000 {
122 + label = "root";
123 + reg = <0x02500000 0xd800000>;
124 + };
125 +};
126 +
127 +&mdio {
128 + status = "okay";
129 +
130 + ethphy0: ethernet-phy@0 {
131 + reg = <0>;
132 + };
133 +};
134 +
135 +&eth0 {
136 + status = "okay";
137 + ethernet0-port@0 {
138 + phy-handle = <&ethphy0>;
139 + };
140 +};