xref: /linux/scripts/dtc/include-prefixes/arm/marvell/orion5x-rd88f5182-nas.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2724ba675SRob Herring// Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3724ba675SRob Herring
4724ba675SRob Herring/dts-v1/;
5724ba675SRob Herring
6724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
7724ba675SRob Herring#include "orion5x-mv88f5182.dtsi"
8724ba675SRob Herring
9724ba675SRob Herring/ {
10724ba675SRob Herring	model = "Marvell Reference Design 88F5182 NAS";
11724ba675SRob Herring	compatible = "marvell,rd-88f5182-nas", "marvell,orion5x-88f5182", "marvell,orion5x";
12724ba675SRob Herring
13724ba675SRob Herring	memory {
14724ba675SRob Herring		device_type = "memory";
15724ba675SRob Herring		reg = <0x00000000 0x4000000>; /* 64 MB */
16724ba675SRob Herring	};
17724ba675SRob Herring
18724ba675SRob Herring	chosen {
19724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
20724ba675SRob Herring		stdout-path = &uart0;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	soc {
24724ba675SRob Herring		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
25724ba675SRob Herring		         <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
26724ba675SRob Herring			 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x80000>,
27724ba675SRob Herring			 <MBUS_ID(0x01, 0x1d) 0 0xfc000000 0x1000000>;
28724ba675SRob Herring	};
29724ba675SRob Herring
30724ba675SRob Herring	gpio-leds {
31724ba675SRob Herring		compatible = "gpio-leds";
32724ba675SRob Herring		pinctrl-0 = <&pmx_debug_led>;
33724ba675SRob Herring		pinctrl-names = "default";
34724ba675SRob Herring
35*5b3566a7SKrzysztof Kozlowski		led-0 {
36724ba675SRob Herring			label = "rd88f5182:cpu";
37724ba675SRob Herring			linux,default-trigger = "heartbeat";
38724ba675SRob Herring			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
39724ba675SRob Herring		};
40724ba675SRob Herring	};
41724ba675SRob Herring};
42724ba675SRob Herring
43724ba675SRob Herring&devbus_bootcs {
44724ba675SRob Herring	status = "okay";
45724ba675SRob Herring
46724ba675SRob Herring	/* Read parameters */
47724ba675SRob Herring	devbus,bus-width    = <8>;
48724ba675SRob Herring	devbus,turn-off-ps  = <90000>;
49724ba675SRob Herring	devbus,badr-skew-ps = <0>;
50724ba675SRob Herring	devbus,acc-first-ps = <186000>;
51724ba675SRob Herring	devbus,acc-next-ps  = <186000>;
52724ba675SRob Herring
53724ba675SRob Herring	/* Write parameters */
54724ba675SRob Herring	devbus,wr-high-ps  = <90000>;
55724ba675SRob Herring	devbus,wr-low-ps   = <90000>;
56724ba675SRob Herring	devbus,ale-wr-ps   = <90000>;
57724ba675SRob Herring
58724ba675SRob Herring	flash@0 {
59724ba675SRob Herring		compatible = "cfi-flash";
60724ba675SRob Herring		reg = <0 0x80000>;
61724ba675SRob Herring		bank-width = <1>;
62724ba675SRob Herring	};
63724ba675SRob Herring};
64724ba675SRob Herring
65724ba675SRob Herring&devbus_cs1 {
66724ba675SRob Herring	status = "okay";
67724ba675SRob Herring
68724ba675SRob Herring	/* Read parameters */
69724ba675SRob Herring	devbus,bus-width    = <8>;
70724ba675SRob Herring	devbus,turn-off-ps  = <90000>;
71724ba675SRob Herring	devbus,badr-skew-ps = <0>;
72724ba675SRob Herring	devbus,acc-first-ps = <186000>;
73724ba675SRob Herring	devbus,acc-next-ps  = <186000>;
74724ba675SRob Herring
75724ba675SRob Herring	/* Write parameters */
76724ba675SRob Herring	devbus,wr-high-ps  = <90000>;
77724ba675SRob Herring	devbus,wr-low-ps   = <90000>;
78724ba675SRob Herring	devbus,ale-wr-ps   = <90000>;
79724ba675SRob Herring
80724ba675SRob Herring	flash@0 {
81724ba675SRob Herring		compatible = "cfi-flash";
82724ba675SRob Herring		reg = <0 0x1000000>;
83724ba675SRob Herring		bank-width = <1>;
84724ba675SRob Herring	};
85724ba675SRob Herring};
86724ba675SRob Herring
87724ba675SRob Herring&ehci0 {
88724ba675SRob Herring	status = "okay";
89724ba675SRob Herring};
90724ba675SRob Herring
91724ba675SRob Herring&ehci1 {
92724ba675SRob Herring	status = "okay";
93724ba675SRob Herring};
94724ba675SRob Herring
95724ba675SRob Herring&eth {
96724ba675SRob Herring	status = "okay";
97724ba675SRob Herring
98724ba675SRob Herring	ethernet-port@0 {
99724ba675SRob Herring		phy-handle = <&ethphy>;
100724ba675SRob Herring	};
101724ba675SRob Herring};
102724ba675SRob Herring
103724ba675SRob Herring&i2c {
104724ba675SRob Herring	status = "okay";
105724ba675SRob Herring	clock-frequency = <100000>;
106724ba675SRob Herring	#address-cells = <1>;
107724ba675SRob Herring
108724ba675SRob Herring	rtc@68 {
109724ba675SRob Herring		pinctrl-0 = <&pmx_rtc>;
110724ba675SRob Herring		pinctrl-names = "default";
111724ba675SRob Herring		compatible = "dallas,ds1338";
112724ba675SRob Herring		reg = <0x68>;
113724ba675SRob Herring	};
114724ba675SRob Herring};
115724ba675SRob Herring
116724ba675SRob Herring&mdio {
117724ba675SRob Herring	status = "okay";
118724ba675SRob Herring
119724ba675SRob Herring	ethphy: ethernet-phy {
120724ba675SRob Herring		reg = <8>;
121724ba675SRob Herring	};
122724ba675SRob Herring};
123724ba675SRob Herring
124724ba675SRob Herring&pinctrl {
125724ba675SRob Herring	pinctrl-0 = <&pmx_reset_switch &pmx_misc_gpios
126724ba675SRob Herring		&pmx_pci_gpios>;
127724ba675SRob Herring	pinctrl-names = "default";
128724ba675SRob Herring
129724ba675SRob Herring	/*
130724ba675SRob Herring	 * MPP[20] PCI Clock to MV88F5182
131724ba675SRob Herring	 * MPP[21] PCI Clock to mini PCI CON11
132724ba675SRob Herring	 * MPP[22] USB 0 over current indication
133724ba675SRob Herring	 * MPP[23] USB 1 over current indication
134724ba675SRob Herring	 * MPP[24] USB 1 over current enable
135724ba675SRob Herring	 * MPP[25] USB 0 over current enable
136724ba675SRob Herring	 */
137724ba675SRob Herring
138724ba675SRob Herring	pmx_debug_led: pmx-debug_led {
139724ba675SRob Herring		marvell,pins = "mpp0";
140724ba675SRob Herring		marvell,function = "gpio";
141724ba675SRob Herring	};
142724ba675SRob Herring
143724ba675SRob Herring	pmx_reset_switch: pmx-reset-switch {
144724ba675SRob Herring		marvell,pins = "mpp1";
145724ba675SRob Herring		marvell,function = "gpio";
146724ba675SRob Herring	};
147724ba675SRob Herring
148724ba675SRob Herring	pmx_rtc: pmx-rtc {
149724ba675SRob Herring		marvell,pins = "mpp3";
150724ba675SRob Herring		marvell,function = "gpio";
151724ba675SRob Herring	};
152724ba675SRob Herring
153724ba675SRob Herring	pmx_misc_gpios: pmx-misc-gpios {
154724ba675SRob Herring		marvell,pins = "mpp4", "mpp5";
155724ba675SRob Herring		marvell,function = "gpio";
156724ba675SRob Herring	};
157724ba675SRob Herring
158724ba675SRob Herring	pmx_pci_gpios: pmx-pci-gpios {
159724ba675SRob Herring		marvell,pins = "mpp6", "mpp7";
160724ba675SRob Herring		marvell,function = "gpio";
161724ba675SRob Herring	};
162724ba675SRob Herring};
163724ba675SRob Herring
164724ba675SRob Herring&sata {
165724ba675SRob Herring	pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
166724ba675SRob Herring	pinctrl-names = "default";
167724ba675SRob Herring	status = "okay";
168724ba675SRob Herring	nr-ports = <2>;
169724ba675SRob Herring};
170724ba675SRob Herring
171724ba675SRob Herring&uart0 {
172724ba675SRob Herring	status = "okay";
173724ba675SRob Herring};
174