kirkwood: add 3.18 support
[openwrt/svn-archive/archive.git] / target / linux / kirkwood / patches-3.18 / 150-pogoplug_e02.patch
1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -147,6 +147,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += kirkwood-
4 kirkwood-openrd-base.dtb \
5 kirkwood-openrd-client.dtb \
6 kirkwood-openrd-ultimate.dtb \
7 + kirkwood-pogo_e02.dtb \
8 kirkwood-rd88f6192.dtb \
9 kirkwood-rd88f6281-z0.dtb \
10 kirkwood-rd88f6281-a.dtb \
11 --- /dev/null
12 +++ b/arch/arm/boot/dts/kirkwood-pogo_e02.dts
13 @@ -0,0 +1,114 @@
14 +/dts-v1/;
15 +
16 +#include "kirkwood.dtsi"
17 +#include "kirkwood-6281.dtsi"
18 +
19 +/ {
20 + model = "Cloud Engines Pogoplug E02";
21 + compatible = "cloudengines,pogoe02", "marvell,kirkwood-88f6281", "marvell,kirkwood";
22 +
23 + memory {
24 + device_type = "memory";
25 + reg = <0x00000000 0x10000000>;
26 + };
27 +
28 + chosen {
29 + bootargs = "console=ttyS0,115200n8 earlyprintk";
30 + };
31 +
32 + ocp@f1000000 {
33 + pinctrl: pin-controller@10000 {
34 + pmx_usb_power_enable: pmx-usb-power-enable {
35 + marvell,pins = "mpp29";
36 + marvell,function = "gpio";
37 + };
38 + pmx_led_green: pmx-led_green {
39 + marvell,pins = "mpp48";
40 + marvell,function = "gpio";
41 + };
42 + pmx_led_orange: pmx-led_orange {
43 + marvell,pins = "mpp49";
44 + marvell,function = "gpio";
45 + };
46 + };
47 + serial@12000 {
48 + status = "ok";
49 + };
50 + };
51 + gpio-leds {
52 + compatible = "gpio-leds";
53 + pinctrl-0 = < &pmx_usb_power_enable &pmx_led_orange
54 + &pmx_led_green >;
55 + pinctrl-names = "default";
56 +
57 + health {
58 + label = "status:green:health";
59 + gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
60 + default-state = "keep";
61 + };
62 + fault {
63 + label = "status:orange:fault";
64 + gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
65 + };
66 + };
67 + regulators {
68 + compatible = "simple-bus";
69 + #address-cells = <1>;
70 + #size-cells = <0>;
71 + pinctrl-0 = <&pmx_usb_power_enable>;
72 + pinctrl-names = "default";
73 +
74 + usb_power: regulator@1 {
75 + compatible = "regulator-fixed";
76 + reg = <1>;
77 + regulator-name = "USB Power";
78 + regulator-min-microvolt = <5000000>;
79 + regulator-max-microvolt = <5000000>;
80 + enable-active-high;
81 + regulator-always-on;
82 + regulator-boot-on;
83 + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
84 + };
85 + };
86 +};
87 +
88 +&nand {
89 + chip-delay = <40>;
90 + status = "okay";
91 +
92 + partition@0 {
93 + label = "u-boot";
94 + reg = <0x0000000 0x100000>;
95 + read-only;
96 + };
97 +
98 + partition@100000 {
99 + label = "uImage";
100 + reg = <0x0100000 0x400000>;
101 + };
102 +
103 + partition@500000 {
104 + label = "pogoplug";
105 + reg = <0x0500000 0x2000000>;
106 + };
107 +
108 + partition@2500000 {
109 + label = "root";
110 + reg = <0x02500000 0x5b00000>;
111 + };
112 +};
113 +
114 +&mdio {
115 + status = "okay";
116 +
117 + ethphy0: ethernet-phy@0 {
118 + reg = <0>;
119 + };
120 +};
121 +
122 +&eth0 {
123 + status = "okay";
124 + ethernet0-port@0 {
125 + phy-handle = <&ethphy0>;
126 + };
127 +};