]>
Commit | Line | Data |
---|---|---|
065194a0 TP |
1 | /* |
2 | * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | |
3 | * | |
4 | * This file is licensed under the terms of the GNU General Public | |
5 | * License version 2. This program is licensed "as is" without any | |
6 | * warranty of any kind, whether express or implied. | |
7 | */ | |
8 | ||
9 | /dts-v1/; | |
10 | ||
11 | #include <dt-bindings/gpio/gpio.h> | |
12 | #include "orion5x-mv88f5182.dtsi" | |
13 | ||
14 | / { | |
15 | model = "Marvell Reference Design 88F5182 NAS"; | |
16 | compatible = "marvell,rd-88f5182-nas", "marvell,orion5x-88f5182", "marvell,orion5x"; | |
17 | ||
18 | memory { | |
19 | reg = <0x00000000 0x4000000>; /* 64 MB */ | |
20 | }; | |
21 | ||
22 | chosen { | |
23 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | |
db543066 | 24 | stdout-path = &uart0; |
065194a0 TP |
25 | }; |
26 | ||
27 | soc { | |
28 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, | |
29 | <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, | |
30 | <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x80000>, | |
31 | <MBUS_ID(0x01, 0x1d) 0 0xfc000000 0x1000000>; | |
32 | }; | |
33 | ||
34 | gpio-leds { | |
35 | compatible = "gpio-leds"; | |
36 | pinctrl-0 = <&pmx_debug_led>; | |
37 | pinctrl-names = "default"; | |
38 | ||
39 | led@0 { | |
40 | label = "rd88f5182:cpu"; | |
41 | linux,default-trigger = "heartbeat"; | |
42 | gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | |
43 | }; | |
44 | }; | |
45 | }; | |
46 | ||
47 | &devbus_bootcs { | |
48 | status = "okay"; | |
49 | ||
50 | /* Read parameters */ | |
51 | devbus,bus-width = <8>; | |
52 | devbus,turn-off-ps = <90000>; | |
53 | devbus,badr-skew-ps = <0>; | |
54 | devbus,acc-first-ps = <186000>; | |
55 | devbus,acc-next-ps = <186000>; | |
56 | ||
57 | /* Write parameters */ | |
58 | devbus,wr-high-ps = <90000>; | |
59 | devbus,wr-low-ps = <90000>; | |
60 | devbus,ale-wr-ps = <90000>; | |
61 | ||
62 | flash@0 { | |
63 | compatible = "cfi-flash"; | |
64 | reg = <0 0x80000>; | |
65 | bank-width = <1>; | |
66 | }; | |
67 | }; | |
68 | ||
69 | &devbus_cs1 { | |
70 | status = "okay"; | |
71 | ||
72 | /* Read parameters */ | |
73 | devbus,bus-width = <8>; | |
74 | devbus,turn-off-ps = <90000>; | |
75 | devbus,badr-skew-ps = <0>; | |
76 | devbus,acc-first-ps = <186000>; | |
77 | devbus,acc-next-ps = <186000>; | |
78 | ||
79 | /* Write parameters */ | |
80 | devbus,wr-high-ps = <90000>; | |
81 | devbus,wr-low-ps = <90000>; | |
82 | devbus,ale-wr-ps = <90000>; | |
83 | ||
84 | flash@0 { | |
85 | compatible = "cfi-flash"; | |
86 | reg = <0 0x1000000>; | |
87 | bank-width = <1>; | |
88 | }; | |
89 | }; | |
90 | ||
91 | &ehci0 { | |
92 | status = "okay"; | |
93 | }; | |
94 | ||
95 | &ehci1 { | |
96 | status = "okay"; | |
97 | }; | |
98 | ||
99 | ð { | |
100 | status = "okay"; | |
101 | ||
102 | ethernet-port@0 { | |
103 | phy-handle = <ðphy>; | |
104 | }; | |
105 | }; | |
106 | ||
107 | &i2c { | |
108 | status = "okay"; | |
109 | clock-frequency = <100000>; | |
110 | #address-cells = <1>; | |
111 | ||
112 | rtc@68 { | |
113 | pinctrl-0 = <&pmx_rtc>; | |
114 | pinctrl-names = "default"; | |
115 | compatible = "dallas,ds1338"; | |
116 | reg = <0x68>; | |
117 | }; | |
118 | }; | |
119 | ||
120 | &mdio { | |
121 | status = "okay"; | |
122 | ||
123 | ethphy: ethernet-phy { | |
124 | reg = <8>; | |
125 | }; | |
126 | }; | |
127 | ||
128 | &pinctrl { | |
129 | pinctrl-0 = <&pmx_reset_switch &pmx_misc_gpios | |
130 | &pmx_pci_gpios>; | |
131 | pinctrl-names = "default"; | |
132 | ||
133 | /* | |
134 | * MPP[20] PCI Clock to MV88F5182 | |
135 | * MPP[21] PCI Clock to mini PCI CON11 | |
136 | * MPP[22] USB 0 over current indication | |
137 | * MPP[23] USB 1 over current indication | |
138 | * MPP[24] USB 1 over current enable | |
139 | * MPP[25] USB 0 over current enable | |
140 | */ | |
141 | ||
142 | pmx_debug_led: pmx-debug_led { | |
143 | marvell,pins = "mpp0"; | |
144 | marvell,function = "gpio"; | |
145 | }; | |
146 | ||
147 | pmx_reset_switch: pmx-reset-switch { | |
148 | marvell,pins = "mpp1"; | |
149 | marvell,function = "gpio"; | |
150 | }; | |
151 | ||
152 | pmx_rtc: pmx-rtc { | |
153 | marvell,pins = "mpp3"; | |
154 | marvell,function = "gpio"; | |
155 | }; | |
156 | ||
157 | pmx_misc_gpios: pmx-misc-gpios { | |
158 | marvell,pins = "mpp4", "mpp5"; | |
159 | marvell,function = "gpio"; | |
160 | }; | |
161 | ||
162 | pmx_pci_gpios: pmx-pci-gpios { | |
163 | marvell,pins = "mpp6", "mpp7"; | |
164 | marvell,function = "gpio"; | |
165 | }; | |
166 | }; | |
167 | ||
168 | &sata { | |
169 | pinctrl-0 = <&pmx_sata0 &pmx_sata1>; | |
170 | pinctrl-names = "default"; | |
171 | status = "okay"; | |
172 | nr-ports = <2>; | |
173 | }; | |
174 | ||
175 | &uart0 { | |
176 | status = "okay"; | |
177 | }; |