8f181ac4722d0874426d14e64ba4ee9dfeab1d54
[openwrt/openwrt.git] / target / linux / kirkwood / patches-4.14 / 105-goflexhome.patch
1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -237,6 +237,7 @@ dtb-$(CONFIG_MACH_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,123 @@
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 + aliases {
24 + led-boot = &led_health;
25 + led-failsafe = &led_fault;
26 + led-running = &led_health;
27 + led-upgrade = &led_fault;
28 + };
29 +
30 + memory {
31 + device_type = "memory";
32 + reg = <0x00000000 0x8000000>;
33 + };
34 +
35 + chosen {
36 + bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
37 + stdout-path = &uart0;
38 + };
39 +
40 + ocp@f1000000 {
41 + pinctrl: pin-controller@10000 {
42 + pmx_usb_power_enable: pmx-usb-power-enable {
43 + marvell,pins = "mpp29";
44 + marvell,function = "gpio";
45 + };
46 + pmx_led_white: pmx-led-white {
47 + marvell,pins = "mpp40";
48 + marvell,function = "gpio";
49 + };
50 + pmx_led_green: pmx-led_green {
51 + marvell,pins = "mpp46";
52 + marvell,function = "gpio";
53 + };
54 + pmx_led_orange: pmx-led-orange {
55 + marvell,pins = "mpp47";
56 + marvell,function = "gpio";
57 + };
58 + };
59 + serial@12000 {
60 + status = "ok";
61 + };
62 +
63 + sata@80000 {
64 + status = "okay";
65 + nr-ports = <2>;
66 + };
67 +
68 + };
69 + gpio-leds {
70 + compatible = "gpio-leds";
71 +
72 + led_health: health {
73 + label = "status:green:health";
74 + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
75 + };
76 + led_fault: fault {
77 + label = "status:orange:fault";
78 + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
79 + };
80 + misc {
81 + label = "status:white:misc";
82 + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
83 + linux,default-trigger = "disk-activity";
84 + };
85 + };
86 + regulators {
87 + compatible = "simple-bus";
88 + #address-cells = <1>;
89 + #size-cells = <0>;
90 + pinctrl-0 = <&pmx_usb_power_enable>;
91 + pinctrl-names = "default";
92 +
93 + usb_power: regulator@1 {
94 + compatible = "regulator-fixed";
95 + reg = <1>;
96 + regulator-name = "USB Power";
97 + regulator-min-microvolt = <5000000>;
98 + regulator-max-microvolt = <5000000>;
99 + enable-active-high;
100 + regulator-always-on;
101 + regulator-boot-on;
102 + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
103 + };
104 + };
105 +};
106 +
107 +&nand {
108 + chip-delay = <40>;
109 + status = "okay";
110 +
111 + partition@0 {
112 + label = "u-boot";
113 + reg = <0x0000000 0x100000>;
114 + read-only;
115 + };
116 +
117 + partition@100000 {
118 + label = "ubi";
119 + reg = <0x100000 0x0ff00000>;
120 + };
121 +};
122 +
123 +&mdio {
124 + status = "okay";
125 +
126 + ethphy0: ethernet-phy@0 {
127 + reg = <0>;
128 + };
129 +};
130 +
131 +&eth0 {
132 + status = "okay";
133 + ethernet0-port@0 {
134 + phy-handle = <&ethphy0>;
135 + };
136 +};