1* Marvell Kirkwood SoC pinctrl driver for mpp
2
3Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
4part and usage.
5
6Required properties:
7- compatible: "marvell,88f6180-pinctrl",
8              "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl",
9              "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl"
10              "marvell,98dx4122-pinctrl"
11- reg: register specifier of MPP registers
12
13This driver supports all kirkwood variants, i.e. 88f6180, 88f619x, and 88f628x.
14It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs.
15
16Available mpp pins/groups and functions:
17Note: brackets (x) are not part of the mpp name for marvell,function and given
18only for more detailed description in this document.
19
20* Marvell Kirkwood 88f6180
21
22name          pins     functions
23================================================================================
24mpp0          0        gpio, nand(io2), spi(cs)
25mpp1          1        gpo, nand(io3), spi(mosi)
26mpp2          2        gpo, nand(io4), spi(sck)
27mpp3          3        gpo, nand(io5), spi(miso)
28mpp4          4        gpio, nand(io6), uart0(rxd), ptp(clk)
29mpp5          5        gpo, nand(io7), uart0(txd), ptp(trig)
30mpp6          6        sysrst(out), spi(mosi), ptp(trig)
31mpp7          7        gpo, pex(rsto), spi(cs), ptp(trig)
32mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
33                       mii(col)
34mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq),
35                       mii(crs)
36mpp10         10       gpo, spi(sck), uart0(txd), ptp(trig)
37mpp11         11       gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq),
38                       ptp-2(trig)
39mpp12         12       gpo, sdio(clk)
40mpp13         13       gpio, sdio(cmd), uart1(txd)
41mpp14         14       gpio, sdio(d0), uart1(rxd), mii(col)
42mpp15         15       gpio, sdio(d1), uart0(rts), uart1(txd)
43mpp16         16       gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs)
44mpp17         17       gpio, sdio(d3)
45mpp18         18       gpo, nand(io0)
46mpp19         19       gpo, nand(io1)
47mpp35         35       gpio, mii(rxerr)
48mpp36         36       gpio, audio(spdifi)
49mpp37         37       gpio, audio(spdifo)
50mpp38         38       gpio, audio(rmclk)
51mpp39         39       gpio, audio(bclk)
52mpp40         40       gpio, audio(sdo)
53mpp41         41       gpio, audio(lrclk)
54mpp42         42       gpio, audio(mclk)
55mpp43         43       gpio, audio(sdi)
56mpp44         44       gpio, audio(extclk)
57
58* Marvell Kirkwood 88f6190
59
60name          pins     functions
61================================================================================
62mpp0          0        gpio, nand(io2), spi(cs)
63mpp1          1        gpo, nand(io3), spi(mosi)
64mpp2          2        gpo, nand(io4), spi(sck)
65mpp3          3        gpo, nand(io5), spi(miso)
66mpp4          4        gpio, nand(io6), uart0(rxd), ptp(clk)
67mpp5          5        gpo, nand(io7), uart0(txd), ptp(trig), sata0(act)
68mpp6          6        sysrst(out), spi(mosi), ptp(trig)
69mpp7          7        gpo, pex(rsto), spi(cs), ptp(trig)
70mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
71                       mii(col), mii-1(rxerr)
72mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq),
73                       mii(crs), sata0(prsnt)
74mpp10         10       gpo, spi(sck), uart0(txd), ptp(trig)
75mpp11         11       gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq),
76                       ptp-2(trig), sata0(act)
77mpp12         12       gpo, sdio(clk)
78mpp13         13       gpio, sdio(cmd), uart1(txd)
79mpp14         14       gpio, sdio(d0), uart1(rxd), mii(col)
80mpp15         15       gpio, sdio(d1), uart0(rts), uart1(txd), sata0(act)
81mpp16         16       gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs)
82mpp17         17       gpio, sdio(d3), sata0(prsnt)
83mpp18         18       gpo, nand(io0)
84mpp19         19       gpo, nand(io1)
85mpp20         20       gpio, ge1(txd0)
86mpp21         21       gpio, ge1(txd1), sata0(act)
87mpp22         22       gpio, ge1(txd2)
88mpp23         23       gpio, ge1(txd3), sata0(prsnt)
89mpp24         24       gpio, ge1(rxd0)
90mpp25         25       gpio, ge1(rxd1)
91mpp26         26       gpio, ge1(rxd2)
92mpp27         27       gpio, ge1(rxd3)
93mpp28         28       gpio, ge1(col)
94mpp29         29       gpio, ge1(txclk)
95mpp30         30       gpio, ge1(rxclk)
96mpp31         31       gpio, ge1(rxclk)
97mpp32         32       gpio, ge1(txclko)
98mpp33         33       gpo, ge1(txclk)
99mpp34         34       gpio, ge1(txen)
100mpp35         35       gpio, ge1(rxerr), sata0(act), mii(rxerr)
101
102* Marvell Kirkwood 88f6192
103
104name          pins     functions
105================================================================================
106mpp0          0        gpio, nand(io2), spi(cs)
107mpp1          1        gpo, nand(io3), spi(mosi)
108mpp2          2        gpo, nand(io4), spi(sck)
109mpp3          3        gpo, nand(io5), spi(miso)
110mpp4          4        gpio, nand(io6), uart0(rxd), ptp(clk), sata1(act)
111mpp5          5        gpo, nand(io7), uart0(txd), ptp(trig), sata0(act)
112mpp6          6        sysrst(out), spi(mosi), ptp(trig)
113mpp7          7        gpo, pex(rsto), spi(cs), ptp(trig)
114mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
115                       mii(col), mii-1(rxerr), sata1(prsnt)
116mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq),
117                       mii(crs), sata0(prsnt)
118mpp10         10       gpo, spi(sck), uart0(txd), ptp(trig), sata1(act)
119mpp11         11       gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq),
120                       ptp-2(trig), sata0(act)
121mpp12         12       gpo, sdio(clk)
122mpp13         13       gpio, sdio(cmd), uart1(txd)
123mpp14         14       gpio, sdio(d0), uart1(rxd), mii(col), sata1(prsnt)
124mpp15         15       gpio, sdio(d1), uart0(rts), uart1(txd), sata0(act)
125mpp16         16       gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs),
126                       sata1(act)
127mpp17         17       gpio, sdio(d3), sata0(prsnt)
128mpp18         18       gpo, nand(io0)
129mpp19         19       gpo, nand(io1)
130mpp20         20       gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
131                       sata1(act)
132mpp21         21       gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
133                       audio(spdifo)
134mpp22         22       gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
135                       sata1(prsnt)
136mpp23         23       gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
137                       audio(bclk)
138mpp24         24       gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo)
139mpp25         25       gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk)
140mpp26         26       gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk)
141mpp27         27       gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
142mpp28         28       gpio, ge1(col), ts(mp8), tdm(int), audio(extclk)
143mpp29         29       gpio, ge1(txclk), ts(mp9), tdm(rst)
144mpp30         30       gpio, ge1(rxclk), ts(mp10), tdm(pclk)
145mpp31         31       gpio, ge1(rxclk), ts(mp11), tdm(fs)
146mpp32         32       gpio, ge1(txclko), ts(mp12), tdm(drx)
147mpp33         33       gpo, ge1(txclk), tdm(drx)
148mpp34         34       gpio, ge1(txen), tdm(spi-cs1)
149mpp35         35       gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql)
150
151* Marvell Kirkwood 88f6281
152
153name          pins     functions
154================================================================================
155mpp0          0        gpio, nand(io2), spi(cs)
156mpp1          1        gpo, nand(io3), spi(mosi)
157mpp2          2        gpo, nand(io4), spi(sck)
158mpp3          3        gpo, nand(io5), spi(miso)
159mpp4          4        gpio, nand(io6), uart0(rxd), ptp(clk), sata1(act)
160mpp5          5        gpo, nand(io7), uart0(txd), ptp(trig), sata0(act)
161mpp6          6        sysrst(out), spi(mosi), ptp(trig)
162mpp7          7        gpo, pex(rsto), spi(cs), ptp(trig)
163mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
164                       mii(col), mii-1(rxerr), sata1(prsnt)
165mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq),
166                       mii(crs), sata0(prsnt)
167mpp10         10       gpo, spi(sck), uart0(txd), ptp(trig), sata1(act)
168mpp11         11       gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq),
169                       ptp-2(trig), sata0(act)
170mpp12         12       gpio, sdio(clk)
171mpp13         13       gpio, sdio(cmd), uart1(txd)
172mpp14         14       gpio, sdio(d0), uart1(rxd), mii(col), sata1(prsnt)
173mpp15         15       gpio, sdio(d1), uart0(rts), uart1(txd), sata0(act)
174mpp16         16       gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs),
175                       sata1(act)
176mpp17         17       gpio, sdio(d3), sata0(prsnt)
177mpp18         18       gpo, nand(io0)
178mpp19         19       gpo, nand(io1)
179mpp20         20       gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
180                       sata1(act)
181mpp21         21       gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
182                       audio(spdifo)
183mpp22         22       gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
184                       sata1(prsnt)
185mpp23         23       gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
186                       audio(bclk)
187mpp24         24       gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo)
188mpp25         25       gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk)
189mpp26         26       gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk)
190mpp27         27       gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
191mpp28         28       gpio, ge1(col), ts(mp8), tdm(int), audio(extclk)
192mpp29         29       gpio, ge1(txclk), ts(mp9), tdm(rst)
193mpp30         30       gpio, ge1(rxclk), ts(mp10), tdm(pclk)
194mpp31         31       gpio, ge1(rxclk), ts(mp11), tdm(fs)
195mpp32         32       gpio, ge1(txclko), ts(mp12), tdm(drx)
196mpp33         33       gpo, ge1(txclk), tdm(drx)
197mpp34         34       gpio, ge1(txen), tdm(spi-cs1), sata1(act)
198mpp35         35       gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql)
199mpp36         36       gpio, ts(mp0), tdm(spi-cs1), audio(spdifi)
200mpp37         37       gpio, ts(mp1), tdm(tx2ql), audio(spdifo)
201mpp38         38       gpio, ts(mp2), tdm(rx2ql), audio(rmclk)
202mpp39         39       gpio, ts(mp3), tdm(spi-cs0), audio(bclk)
203mpp40         40       gpio, ts(mp4), tdm(spi-sck), audio(sdo)
204mpp41         41       gpio, ts(mp5), tdm(spi-miso), audio(lrclk)
205mpp42         42       gpio, ts(mp6), tdm(spi-mosi), audio(mclk)
206mpp43         43       gpio, ts(mp7), tdm(int), audio(sdi)
207mpp44         44       gpio, ts(mp8), tdm(rst), audio(extclk)
208mpp45         45       gpio, ts(mp9), tdm(pclk)
209mpp46         46       gpio, ts(mp10), tdm(fs)
210mpp47         47       gpio, ts(mp11), tdm(drx)
211mpp48         48       gpio, ts(mp12), tdm(dtx)
212mpp49         49       gpio, ts(mp9), tdm(rx0ql), ptp(clk)
213
214* Marvell Kirkwood 88f6282
215
216name          pins     functions
217================================================================================
218mpp0          0        gpio, nand(io2), spi(cs)
219mpp1          1        gpo, nand(io3), spi(mosi)
220mpp2          2        gpo, nand(io4), spi(sck)
221mpp3          3        gpo, nand(io5), spi(miso)
222mpp4          4        gpio, nand(io6), uart0(rxd), sata1(act), lcd(hsync)
223mpp5          5        gpo, nand(io7), uart0(txd), sata0(act), lcd(vsync)
224mpp6          6        sysrst(out), spi(mosi)
225mpp7          7        gpo, spi(cs), lcd(pwm)
226mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts), mii(col),
227                       mii-1(rxerr), sata1(prsnt)
228mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts), mii(crs),
229                       sata0(prsnt)
230mpp10         10       gpo, spi(sck), uart0(txd), sata1(act)
231mpp11         11       gpio, spi(miso), uart0(rxd), sata0(act)
232mpp12         12       gpo, sdio(clk), audio(spdifo), spi(mosi), twsi(sda)
233mpp13         13       gpio, sdio(cmd), uart1(txd), audio(rmclk), lcd(pwm)
234mpp14         14       gpio, sdio(d0), uart1(rxd), mii(col), sata1(prsnt),
235                       audio(spdifi), audio-1(sdi)
236mpp15         15       gpio, sdio(d1), uart0(rts), uart1(txd), sata0(act),
237                       spi(cs)
238mpp16         16       gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs),
239                       sata1(act), lcd(extclk)
240mpp17         17       gpio, sdio(d3), sata0(prsnt), sata1(act), twsi1(sck)
241mpp18         18       gpo, nand(io0), pex(clkreq)
242mpp19         19       gpo, nand(io1)
243mpp20         20       gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
244                       sata1(act), lcd(d0)
245mpp21         21       gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
246                       audio(spdifo), lcd(d1)
247mpp22         22       gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
248                       sata1(prsnt), lcd(d2)
249mpp23         23       gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
250                       audio(bclk), lcd(d3)
251mpp24         24       gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo),
252                       lcd(d4)
253mpp25         25       gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk),
254                       lcd(d5)
255mpp26         26       gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk),
256                       lcd(d6)
257mpp27         27       gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi),
258                       lcd(d7)
259mpp28         28       gpio, ge1(col), ts(mp8), tdm(int), audio(extclk),
260                       lcd(d8)
261mpp29         29       gpio, ge1(txclk), ts(mp9), tdm(rst), lcd(d9)
262mpp30         30       gpio, ge1(rxclk), ts(mp10), tdm(pclk), lcd(d10)
263mpp31         31       gpio, ge1(rxclk), ts(mp11), tdm(fs), lcd(d11)
264mpp32         32       gpio, ge1(txclko), ts(mp12), tdm(drx), lcd(d12)
265mpp33         33       gpo, ge1(txclk), tdm(drx), lcd(d13)
266mpp34         34       gpio, ge1(txen), tdm(spi-cs1), sata1(act), lcd(d14)
267mpp35         35       gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql),
268                       lcd(d15)
269mpp36         36       gpio, ts(mp0), tdm(spi-cs1), audio(spdifi), twsi1(sda)
270mpp37         37       gpio, ts(mp1), tdm(tx2ql), audio(spdifo), twsi1(sck)
271mpp38         38       gpio, ts(mp2), tdm(rx2ql), audio(rmclk), lcd(d18)
272mpp39         39       gpio, ts(mp3), tdm(spi-cs0), audio(bclk), lcd(d19)
273mpp40         40       gpio, ts(mp4), tdm(spi-sck), audio(sdo), lcd(d20)
274mpp41         41       gpio, ts(mp5), tdm(spi-miso), audio(lrclk), lcd(d21)
275mpp42         42       gpio, ts(mp6), tdm(spi-mosi), audio(mclk), lcd(d22)
276mpp43         43       gpio, ts(mp7), tdm(int), audio(sdi), lcd(d23)
277mpp44         44       gpio, ts(mp8), tdm(rst), audio(extclk), lcd(clk)
278mpp45         45       gpio, ts(mp9), tdm(pclk), lcd(e)
279mpp46         46       gpio, ts(mp10), tdm(fs), lcd(hsync)
280mpp47         47       gpio, ts(mp11), tdm(drx), lcd(vsync)
281mpp48         48       gpio, ts(mp12), tdm(dtx), lcd(d16)
282mpp49         49       gpo, tdm(rx0ql), pex(clkreq), lcd(d17)
283
284* Marvell Bobcat 98dx4122
285
286name          pins     functions
287================================================================================
288mpp0          0        gpio, nand(io2), spi(cs)
289mpp1          1        gpo, nand(io3), spi(mosi)
290mpp2          2        gpo, nand(io4), spi(sck)
291mpp3          3        gpo, nand(io5), spi(miso)
292mpp4          4        gpio, nand(io6), uart0(rxd)
293mpp5          5        gpo, nand(io7), uart0(txd)
294mpp6          6        sysrst(out), spi(mosi)
295mpp7          7        gpo, pex(rsto), spi(cs)
296mpp8          8        gpio, twsi0(sda), uart0(rts), uart1(rts)
297mpp9          9        gpio, twsi(sck), uart0(cts), uart1(cts)
298mpp10         10       gpo, spi(sck), uart0(txd)
299mpp11         11       gpio, spi(miso), uart0(rxd)
300mpp13         13       gpio, uart1(txd)
301mpp14         14       gpio, uart1(rxd)
302mpp15         15       gpio, uart0(rts)
303mpp16         16       gpio, uart0(cts)
304mpp18         18       gpo, nand(io0)
305mpp19         19       gpo, nand(io1)
306mpp34         34       gpio
307mpp35         35       gpio
308mpp36         36       gpio
309mpp37         37       gpio
310mpp38         38       gpio
311mpp39         39       gpio
312mpp40         40       gpio
313mpp41         41       gpio
314mpp42         42       gpio
315mpp43         43       gpio
316mpp44         44       gpio
317mpp45         45       gpio
318mpp49         49       gpio
319
320