cca65f2141be025b8eab4dcc346f3a9705f679e0
[openwrt/staging/stintel.git] / target / linux / kirkwood / patches-4.19 / 105-goflexhome.patch
1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -256,6 +256,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,124 @@
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@0 {
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 + default-state = "on";
76 + };
77 + led_fault: fault {
78 + label = "status:orange:fault";
79 + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
80 + };
81 + misc {
82 + label = "status:white:misc";
83 + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
84 + linux,default-trigger = "disk-activity";
85 + };
86 + };
87 + regulators {
88 + compatible = "simple-bus";
89 + #address-cells = <1>;
90 + #size-cells = <0>;
91 + pinctrl-0 = <&pmx_usb_power_enable>;
92 + pinctrl-names = "default";
93 +
94 + usb_power: regulator@1 {
95 + compatible = "regulator-fixed";
96 + reg = <1>;
97 + regulator-name = "USB Power";
98 + regulator-min-microvolt = <5000000>;
99 + regulator-max-microvolt = <5000000>;
100 + enable-active-high;
101 + regulator-always-on;
102 + regulator-boot-on;
103 + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
104 + };
105 + };
106 +};
107 +
108 +&nand {
109 + chip-delay = <40>;
110 + status = "okay";
111 +
112 + partition@0 {
113 + label = "u-boot";
114 + reg = <0x0000000 0x100000>;
115 + read-only;
116 + };
117 +
118 + partition@100000 {
119 + label = "ubi";
120 + reg = <0x100000 0x0ff00000>;
121 + };
122 +};
123 +
124 +&mdio {
125 + status = "okay";
126 +
127 + ethphy0: ethernet-phy@0 {
128 + reg = <0>;
129 + };
130 +};
131 +
132 +&eth0 {
133 + status = "okay";
134 + ethernet0-port@0 {
135 + phy-handle = <&ethphy0>;
136 + };
137 +};