Loading...
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ð0 {
128 status = "okay";
129 ethernet0-port@0 {
130 phy-handle = <ðphy0>;
131 };
132};
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ð0 {
130 status = "okay";
131 ethernet0-port@0 {
132 phy-handle = <ðphy0>;
133 };
134};