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