Commit | Line | Data |
---|---|---|
19b85c08 TP |
1 | /* |
2 | * Device Tree file for OpenBlocks AX3-4 board | |
3 | * | |
4 | * Copyright (C) 2012 Marvell | |
5 | * | |
6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | |
7 | * | |
8 | * This file is licensed under the terms of the GNU General Public | |
9 | * License version 2. This program is licensed "as is" without any | |
10 | * warranty of any kind, whether express or implied. | |
11 | */ | |
12 | ||
13 | /dts-v1/; | |
14 | /include/ "armada-xp-mv78260.dtsi" | |
15 | ||
16 | / { | |
17 | model = "PlatHome OpenBlocks AX3-4 board"; | |
18 | compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; | |
19 | ||
20 | chosen { | |
21 | bootargs = "console=ttyS0,115200 earlyprintk"; | |
22 | }; | |
23 | ||
24 | memory { | |
25 | device_type = "memory"; | |
74898364 | 26 | reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */ |
19b85c08 TP |
27 | }; |
28 | ||
29 | soc { | |
467f54b2 GC |
30 | internal-regs { |
31 | serial@12000 { | |
32 | clock-frequency = <250000000>; | |
33 | status = "okay"; | |
19b85c08 | 34 | }; |
467f54b2 GC |
35 | serial@12100 { |
36 | clock-frequency = <250000000>; | |
37 | status = "okay"; | |
19b85c08 | 38 | }; |
467f54b2 GC |
39 | pinctrl { |
40 | led_pins: led-pins-0 { | |
41 | marvell,pins = "mpp49", "mpp51", "mpp53"; | |
42 | marvell,function = "gpio"; | |
43 | }; | |
19b85c08 | 44 | }; |
467f54b2 GC |
45 | leds { |
46 | compatible = "gpio-leds"; | |
47 | pinctrl-names = "default"; | |
48 | pinctrl-0 = <&led_pins>; | |
49 | ||
50 | red_led { | |
51 | label = "red_led"; | |
52 | gpios = <&gpio1 17 1>; | |
53 | default-state = "off"; | |
54 | }; | |
55 | ||
56 | yellow_led { | |
57 | label = "yellow_led"; | |
58 | gpios = <&gpio1 19 1>; | |
59 | default-state = "off"; | |
60 | }; | |
61 | ||
62 | green_led { | |
63 | label = "green_led"; | |
64 | gpios = <&gpio1 21 1>; | |
65 | default-state = "off"; | |
66 | linux,default-trigger = "heartbeat"; | |
67 | }; | |
19b85c08 | 68 | }; |
f69c92f4 | 69 | |
467f54b2 GC |
70 | gpio_keys { |
71 | compatible = "gpio-keys"; | |
72 | #address-cells = <1>; | |
73 | #size-cells = <0>; | |
4ca73962 | 74 | |
467f54b2 GC |
75 | button@1 { |
76 | label = "Init Button"; | |
77 | linux,code = <116>; | |
78 | gpios = <&gpio1 28 0>; | |
79 | }; | |
4ca73962 | 80 | }; |
4ca73962 | 81 | |
467f54b2 GC |
82 | mdio { |
83 | phy0: ethernet-phy@0 { | |
84 | reg = <0>; | |
85 | }; | |
f69c92f4 | 86 | |
467f54b2 GC |
87 | phy1: ethernet-phy@1 { |
88 | reg = <1>; | |
89 | }; | |
f69c92f4 | 90 | |
467f54b2 GC |
91 | phy2: ethernet-phy@2 { |
92 | reg = <2>; | |
93 | }; | |
f69c92f4 | 94 | |
467f54b2 GC |
95 | phy3: ethernet-phy@3 { |
96 | reg = <3>; | |
97 | }; | |
f69c92f4 | 98 | }; |
f69c92f4 | 99 | |
467f54b2 GC |
100 | ethernet@70000 { |
101 | status = "okay"; | |
102 | phy = <&phy0>; | |
103 | phy-mode = "sgmii"; | |
104 | }; | |
105 | ethernet@74000 { | |
106 | status = "okay"; | |
107 | phy = <&phy1>; | |
108 | phy-mode = "sgmii"; | |
109 | }; | |
110 | ethernet@30000 { | |
111 | status = "okay"; | |
112 | phy = <&phy2>; | |
113 | phy-mode = "sgmii"; | |
114 | }; | |
115 | ethernet@34000 { | |
116 | status = "okay"; | |
117 | phy = <&phy3>; | |
118 | phy-mode = "sgmii"; | |
119 | }; | |
120 | i2c@11000 { | |
121 | status = "okay"; | |
122 | clock-frequency = <400000>; | |
123 | }; | |
124 | i2c@11100 { | |
125 | status = "okay"; | |
126 | clock-frequency = <400000>; | |
14bedd4a | 127 | |
467f54b2 GC |
128 | s35390a: s35390a@30 { |
129 | compatible = "s35390a"; | |
130 | reg = <0x30>; | |
131 | }; | |
132 | }; | |
133 | sata@a0000 { | |
134 | nr-ports = <2>; | |
135 | status = "okay"; | |
136 | }; | |
137 | usb@50000 { | |
138 | status = "okay"; | |
139 | }; | |
140 | usb@51000 { | |
141 | status = "okay"; | |
14bedd4a | 142 | }; |
a7d4f818 | 143 | |
467f54b2 GC |
144 | devbus-bootcs@10400 { |
145 | status = "okay"; | |
146 | ranges = <0 0xf0000000 0x8000000>; /* @addr 0xf000000, size 0x8000000 */ | |
147 | ||
148 | /* Device Bus parameters are required */ | |
149 | ||
150 | /* Read parameters */ | |
151 | devbus,bus-width = <8>; | |
152 | devbus,turn-off-ps = <60000>; | |
153 | devbus,badr-skew-ps = <0>; | |
154 | devbus,acc-first-ps = <124000>; | |
155 | devbus,acc-next-ps = <248000>; | |
156 | devbus,rd-setup-ps = <0>; | |
157 | devbus,rd-hold-ps = <0>; | |
158 | ||
159 | /* Write parameters */ | |
160 | devbus,sync-enable = <0>; | |
161 | devbus,wr-high-ps = <60000>; | |
162 | devbus,wr-low-ps = <60000>; | |
163 | devbus,ale-wr-ps = <60000>; | |
164 | ||
165 | /* NOR 128 MiB */ | |
166 | nor@0 { | |
167 | compatible = "cfi-flash"; | |
168 | reg = <0 0x8000000>; | |
169 | bank-width = <2>; | |
170 | }; | |
a7d4f818 | 171 | }; |
95999cf0 | 172 | |
467f54b2 | 173 | pcie-controller { |
95999cf0 | 174 | status = "okay"; |
467f54b2 GC |
175 | /* Internal mini-PCIe connector */ |
176 | pcie@1,0 { | |
177 | /* Port 0, Lane 0 */ | |
178 | status = "okay"; | |
179 | }; | |
95999cf0 TP |
180 | }; |
181 | }; | |
19b85c08 TP |
182 | }; |
183 | }; |