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