Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / kirkwood-pogo_e02.dts
1 /*
2  * kirkwood-pogo_e02.dts - Device tree file for Pogoplug E02
3  *
4  * Copyright (C) 2015 Christoph Junghans <ottxor@gentoo.org>
5  *
6  * based on information of dts files from
7  *  Arch Linux ARM by Oleg Rakhmanov <moonman.ca@gmail.com>
8  *  OpenWrt by Felix Kaechele <heffer@fedoraproject.org>
9  *
10  * This file is licensed under the terms of the GNU General Public
11  * License version 2.  This program is licensed "as is" without any
12  * warranty of any kind, whether express or implied.
13  */
14
15 /dts-v1/;
16
17 #include "kirkwood.dtsi"
18 #include "kirkwood-6281.dtsi"
19
20 / {
21         model = "Cloud Engines Pogoplug E02";
22         compatible = "cloudengines,pogoe02", "marvell,kirkwood-88f6281",
23                      "marvell,kirkwood";
24
25         memory {
26                 device_type = "memory";
27                 reg = <0x00000000 0x10000000>;
28         };
29
30         chosen {
31                 bootargs = "console=ttyS0,115200n8";
32                 stdout-path = &uart0;
33         };
34
35         gpio-leds {
36                 compatible = "gpio-leds";
37
38                 health {
39                         label = "pogo_e02:green:health";
40                         gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
41                         default-state = "keep";
42                 };
43                 fault {
44                         label = "pogo_e02:orange:fault";
45                         gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
46                 };
47         };
48
49         regulators {
50                 compatible = "simple-bus";
51                 #address-cells = <1>;
52                 #size-cells = <0>;
53                 pinctrl-0 = <&pmx_usb_power_enable>;
54                 pinctrl-names = "default";
55
56                 usb_power: regulator@1 {
57                         compatible = "regulator-fixed";
58                         reg = <1>;
59                         regulator-name = "USB Power";
60                         regulator-min-microvolt = <5000000>;
61                         regulator-max-microvolt = <5000000>;
62                         enable-active-high;
63                         regulator-always-on;
64                         regulator-boot-on;
65                         gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
66                 };
67         };
68 };
69
70 &pinctrl {
71         pinctrl-0 = < &pmx_usb_power_enable &pmx_led_orange
72                       &pmx_led_green >;
73         pinctrl-names = "default";
74
75         pmx_usb_power_enable: pmx-usb-power-enable {
76                 marvell,pins = "mpp29";
77                 marvell,function = "gpio";
78         };
79
80         pmx_led_green: pmx-led-green {
81                 marvell,pins = "mpp48";
82                 marvell,function = "gpio";
83         };
84
85         pmx_led_orange: pmx-led-orange {
86                 marvell,pins = "mpp49";
87                 marvell,function = "gpio";
88         };
89 };
90
91 &uart0 {
92         status = "okay";
93 };
94
95 &nand {
96         chip-delay = <40>;
97         status = "okay";
98
99         partition@0 {
100                 label = "u-boot";
101                 reg = <0x0000000 0x100000>;
102                 read-only;
103         };
104
105         partition@100000 {
106                 label = "uImage";
107                 reg = <0x0100000 0x400000>;
108         };
109
110         partition@500000 {
111                 label = "pogoplug";
112                 reg = <0x0500000 0x2000000>;
113         };
114
115         partition@2500000 {
116                 label = "root";
117                 reg = <0x02500000 0x5b00000>;
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 };