xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-pogo_e02.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * kirkwood-pogo_e02.dts - Device tree file for Pogoplug E02
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2015 Christoph Junghans <ottxor@gentoo.org>
6724ba675SRob Herring *
7724ba675SRob Herring * based on information of dts files from
8724ba675SRob Herring *  Arch Linux ARM by Oleg Rakhmanov <moonman.ca@gmail.com>
9724ba675SRob Herring *  OpenWrt by Felix Kaechele <heffer@fedoraproject.org>
10724ba675SRob Herring *
11724ba675SRob Herring */
12724ba675SRob Herring
13724ba675SRob Herring/dts-v1/;
14724ba675SRob Herring
15724ba675SRob Herring#include "kirkwood.dtsi"
16724ba675SRob Herring#include "kirkwood-6281.dtsi"
17724ba675SRob Herring
18724ba675SRob Herring/ {
19724ba675SRob Herring	model = "Cloud Engines Pogoplug E02";
20724ba675SRob Herring	compatible = "cloudengines,pogoe02", "marvell,kirkwood-88f6281",
21724ba675SRob Herring		     "marvell,kirkwood";
22724ba675SRob Herring
23724ba675SRob Herring	memory {
24724ba675SRob Herring		device_type = "memory";
25724ba675SRob Herring		reg = <0x00000000 0x10000000>;
26724ba675SRob Herring	};
27724ba675SRob Herring
28724ba675SRob Herring	chosen {
29724ba675SRob Herring		bootargs = "console=ttyS0,115200n8";
30724ba675SRob Herring		stdout-path = &uart0;
31724ba675SRob Herring	};
32724ba675SRob Herring
33724ba675SRob Herring	gpio-leds {
34724ba675SRob Herring		compatible = "gpio-leds";
35724ba675SRob Herring
36*9d0120b7SKrzysztof Kozlowski		led-health {
37724ba675SRob Herring			label = "pogo_e02:green:health";
38724ba675SRob Herring			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
39724ba675SRob Herring			default-state = "keep";
40724ba675SRob Herring		};
41*9d0120b7SKrzysztof Kozlowski		led-fault {
42724ba675SRob Herring			label = "pogo_e02:orange:fault";
43724ba675SRob Herring			gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
44724ba675SRob Herring		};
45724ba675SRob Herring	};
46724ba675SRob Herring
47724ba675SRob Herring	regulators {
48724ba675SRob Herring		compatible = "simple-bus";
49724ba675SRob Herring		#address-cells = <1>;
50724ba675SRob Herring		#size-cells = <0>;
51724ba675SRob Herring		pinctrl-0 = <&pmx_usb_power_enable>;
52724ba675SRob Herring		pinctrl-names = "default";
53724ba675SRob Herring
54724ba675SRob Herring		usb_power: regulator@1 {
55724ba675SRob Herring			compatible = "regulator-fixed";
56724ba675SRob Herring			reg = <1>;
57724ba675SRob Herring			regulator-name = "USB Power";
58724ba675SRob Herring			regulator-min-microvolt = <5000000>;
59724ba675SRob Herring			regulator-max-microvolt = <5000000>;
60724ba675SRob Herring			enable-active-high;
61724ba675SRob Herring			regulator-always-on;
62724ba675SRob Herring			regulator-boot-on;
63724ba675SRob Herring			gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
64724ba675SRob Herring		};
65724ba675SRob Herring	};
66724ba675SRob Herring};
67724ba675SRob Herring
68724ba675SRob Herring&pinctrl {
69724ba675SRob Herring	pinctrl-0 = < &pmx_usb_power_enable &pmx_led_orange
70724ba675SRob Herring		      &pmx_led_green >;
71724ba675SRob Herring	pinctrl-names = "default";
72724ba675SRob Herring
73724ba675SRob Herring	pmx_usb_power_enable: pmx-usb-power-enable {
74724ba675SRob Herring		marvell,pins = "mpp29";
75724ba675SRob Herring		marvell,function = "gpio";
76724ba675SRob Herring	};
77724ba675SRob Herring
78724ba675SRob Herring	pmx_led_green: pmx-led-green {
79724ba675SRob Herring		marvell,pins = "mpp48";
80724ba675SRob Herring		marvell,function = "gpio";
81724ba675SRob Herring	};
82724ba675SRob Herring
83724ba675SRob Herring	pmx_led_orange: pmx-led-orange {
84724ba675SRob Herring		marvell,pins = "mpp49";
85724ba675SRob Herring		marvell,function = "gpio";
86724ba675SRob Herring	};
87724ba675SRob Herring};
88724ba675SRob Herring
89724ba675SRob Herring&uart0 {
90724ba675SRob Herring	status = "okay";
91724ba675SRob Herring};
92724ba675SRob Herring
93724ba675SRob Herring&nand {
94724ba675SRob Herring	chip-delay = <40>;
95724ba675SRob Herring	status = "okay";
96724ba675SRob Herring
97724ba675SRob Herring	partition@0 {
98724ba675SRob Herring		label = "u-boot";
99724ba675SRob Herring		reg = <0x0000000 0x100000>;
100724ba675SRob Herring		read-only;
101724ba675SRob Herring	};
102724ba675SRob Herring
103724ba675SRob Herring	partition@100000 {
104724ba675SRob Herring		label = "uImage";
105724ba675SRob Herring		reg = <0x0100000 0x400000>;
106724ba675SRob Herring	};
107724ba675SRob Herring
108724ba675SRob Herring	partition@500000 {
109724ba675SRob Herring		label = "pogoplug";
110724ba675SRob Herring		reg = <0x0500000 0x2000000>;
111724ba675SRob Herring	};
112724ba675SRob Herring
113724ba675SRob Herring	partition@2500000 {
114724ba675SRob Herring		label = "root";
115724ba675SRob Herring		reg = <0x02500000 0x5b00000>;
116724ba675SRob Herring	};
117724ba675SRob Herring};
118724ba675SRob Herring
119724ba675SRob Herring&mdio {
120724ba675SRob Herring	status = "okay";
121724ba675SRob Herring
122724ba675SRob Herring	ethphy0: ethernet-phy@0 {
123724ba675SRob Herring		reg = <0>;
124724ba675SRob Herring	};
125724ba675SRob Herring};
126724ba675SRob Herring
127724ba675SRob Herring&eth0 {
128724ba675SRob Herring	status = "okay";
129724ba675SRob Herring	ethernet0-port@0 {
130724ba675SRob Herring		phy-handle = <&ethphy0>;
131724ba675SRob Herring	};
132724ba675SRob Herring};
133