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