Commit | Line | Data |
---|---|---|
f17073a3 NI |
1 | /dts-v1/; |
2 | ||
0ab6129c EG |
3 | #include "kirkwood.dtsi" |
4 | #include "kirkwood-6282.dtsi" | |
f17073a3 NI |
5 | |
6 | / { | |
7 | model = "Plat'Home OpenBlocksA6"; | |
8 | compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood"; | |
9 | ||
10 | memory { | |
11 | device_type = "memory"; | |
12 | reg = <0x00000000 0x20000000>; | |
13 | }; | |
14 | ||
15 | chosen { | |
16 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | |
17 | }; | |
18 | ||
19 | ocp@f1000000 { | |
20 | serial@12000 { | |
f17073a3 | 21 | status = "ok"; |
c5a36c96 TP |
22 | pinctrl-0 = <&pmx_uart0>; |
23 | pinctrl-names = "default"; | |
f17073a3 NI |
24 | }; |
25 | ||
26 | serial@12100 { | |
f17073a3 | 27 | status = "ok"; |
c5a36c96 TP |
28 | pinctrl-0 = <&pmx_uart1>; |
29 | pinctrl-names = "default"; | |
f17073a3 NI |
30 | }; |
31 | ||
f17073a3 NI |
32 | sata@80000 { |
33 | nr-ports = <1>; | |
34 | status = "okay"; | |
35 | }; | |
1fd7b4dd NI |
36 | |
37 | i2c@11100 { | |
38 | status = "okay"; | |
c5a36c96 TP |
39 | pinctrl-0 = <&pmx_twsi1>; |
40 | pinctrl-names = "default"; | |
1fd7b4dd NI |
41 | |
42 | s35390a: s35390a@30 { | |
43 | compatible = "s35390a"; | |
44 | reg = <0x30>; | |
45 | }; | |
46 | }; | |
50ab9554 NI |
47 | |
48 | pinctrl: pinctrl@10000 { | |
a24ac20d | 49 | pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>; |
50ab9554 NI |
50 | pinctrl-names = "default"; |
51 | ||
52 | pmx_uart0: pmx-uart0 { | |
53 | marvell,pins = "mpp10", "mpp11", "mpp15", | |
54 | "mpp16"; | |
55 | marvell,function = "uart0"; | |
56 | }; | |
57 | ||
58 | pmx_uart1: pmx-uart1 { | |
59 | marvell,pins = "mpp13", "mpp14", "mpp8", | |
60 | "mpp9"; | |
61 | marvell,function = "uart1"; | |
62 | }; | |
63 | ||
64 | pmx_sysrst: pmx-sysrst { | |
65 | marvell,pins = "mpp6"; | |
66 | marvell,function = "sysrst"; | |
67 | }; | |
68 | ||
a24ac20d TP |
69 | pmx_dip_switches: pmx-dip-switches { |
70 | marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23"; | |
50ab9554 NI |
71 | marvell,function = "gpio"; |
72 | }; | |
73 | ||
a24ac20d TP |
74 | pmx_gpio_header: pmx-gpio-header { |
75 | marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27", | |
76 | "mpp28", "mpp29", "mpp30", "mpp31"; | |
50ab9554 NI |
77 | marvell,function = "gpio"; |
78 | }; | |
79 | ||
80 | pmx_gpio_init: pmx-init { | |
81 | marvell,pins = "mpp38"; | |
82 | marvell,function = "gpio"; | |
83 | }; | |
84 | ||
85 | pmx_usb_oc: pmx-usb-oc { | |
86 | marvell,pins = "mpp39"; | |
87 | marvell,function = "gpio"; | |
88 | }; | |
89 | ||
a24ac20d TP |
90 | pmx_leds: pmx-leds { |
91 | marvell,pins = "mpp41", "mpp42", "mpp43"; | |
50ab9554 NI |
92 | marvell,function = "gpio"; |
93 | }; | |
94 | }; | |
f17073a3 | 95 | }; |
155acbe7 NI |
96 | |
97 | gpio-leds { | |
98 | compatible = "gpio-leds"; | |
a24ac20d | 99 | pinctrl-0 = <&pmx_leds>; |
c5a36c96 | 100 | pinctrl-names = "default"; |
155acbe7 NI |
101 | |
102 | led-red { | |
103 | label = "obsa6:red:stat"; | |
104 | gpios = <&gpio1 9 1>; | |
105 | }; | |
106 | ||
107 | led-green { | |
108 | label = "obsa6:green:stat"; | |
109 | gpios = <&gpio1 10 1>; | |
110 | }; | |
111 | ||
112 | led-yellow { | |
113 | label = "obsa6:yellow:stat"; | |
114 | gpios = <&gpio1 11 1>; | |
115 | }; | |
116 | }; | |
9196024a TP |
117 | |
118 | gpio_keys { | |
119 | compatible = "gpio-keys"; | |
120 | pinctrl-0 = <&pmx_gpio_init>; | |
121 | pinctrl-names = "default"; | |
122 | #address-cells = <1>; | |
123 | #size-cells = <0>; | |
124 | ||
125 | button@1 { | |
126 | label = "Init Button"; | |
127 | linux,code = <116>; | |
128 | gpios = <&gpio1 6 0>; | |
129 | }; | |
130 | }; | |
f17073a3 | 131 | }; |
876e2333 | 132 | |
7045ff5a JG |
133 | &nand { |
134 | chip-delay = <25>; | |
135 | status = "okay"; | |
136 | pinctrl-0 = <&pmx_nand>; | |
137 | pinctrl-names = "default"; | |
138 | ||
139 | partition@0 { | |
140 | label = "uboot"; | |
141 | reg = <0x0 0x90000>; | |
142 | }; | |
143 | ||
144 | partition@90000 { | |
145 | label = "env"; | |
146 | reg = <0x90000 0x44000>; | |
147 | }; | |
148 | ||
149 | partition@d4000 { | |
150 | label = "test"; | |
151 | reg = <0xd4000 0x24000>; | |
152 | }; | |
153 | ||
154 | partition@f4000 { | |
155 | label = "conf"; | |
156 | reg = <0xf4000 0x400000>; | |
157 | }; | |
158 | ||
159 | partition@4f4000 { | |
160 | label = "linux"; | |
161 | reg = <0x4f4000 0x1d20000>; | |
162 | }; | |
163 | ||
164 | partition@2214000 { | |
165 | label = "user"; | |
166 | reg = <0x2214000 0x1dec000>; | |
167 | }; | |
168 | }; | |
169 | ||
876e2333 SH |
170 | &mdio { |
171 | status = "okay"; | |
172 | ||
173 | ethphy0: ethernet-phy@0 { | |
174 | device_type = "ethernet-phy"; | |
175 | reg = <0>; | |
176 | }; | |
177 | }; | |
178 | ||
179 | ð0 { | |
180 | status = "okay"; | |
181 | ethernet0-port@0 { | |
182 | phy-handle = <ðphy0>; | |
183 | }; | |
184 | }; |