aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-09 12:47:19 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-06-10 08:11:50 -0400
commitb19bf379767943f0c094490c52f3d75f9397b503 (patch)
tree1357dffd8b9693ba1dffc9f2c23c173df63a8820
parentfb53b61d77684b268e71246a3042a5f28ed14eb6 (diff)
pinctrl: mvebu: armada-xp: add dram functions
The latest Armada XP datasheet documents several new DRAM related functions on various MPPs. This commit adds the description of these new functions in the Armada XP pinctrl driver and its DT binding documentation. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/pinctrl/marvell,armada-xp-pinctrl.txt6
-rw-r--r--drivers/pinctrl/mvebu/pinctrl-armada-xp.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/marvell,armada-xp-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/marvell,armada-xp-pinctrl.txt
index bd8af477cd4a..76da7222ff92 100644
--- a/Documentation/devicetree/bindings/pinctrl/marvell,armada-xp-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/marvell,armada-xp-pinctrl.txt
@@ -51,8 +51,8 @@ mpp29 29 gpio, lcd(ref-clk), tdm(int0), ptp(clk)
51mpp30 30 gpio, tdm(int1), sd0(clk) 51mpp30 30 gpio, tdm(int1), sd0(clk)
52mpp31 31 gpio, tdm(int2), sd0(cmd) 52mpp31 31 gpio, tdm(int2), sd0(cmd)
53mpp32 32 gpio, tdm(int3), sd0(d0) 53mpp32 32 gpio, tdm(int3), sd0(d0)
54mpp33 33 gpio, tdm(int4), sd0(d1), dram(bat) 54mpp33 33 gpio, tdm(int4), sd0(d1), dram(bat), dram(vttctrl)
55mpp34 34 gpio, tdm(int5), sd0(d2), sata0(prsnt) 55mpp34 34 gpio, tdm(int5), sd0(d2), sata0(prsnt), dram(deccerr)
56mpp35 35 gpio, tdm(int6), sd0(d3), sata1(prsnt) 56mpp35 35 gpio, tdm(int6), sd0(d3), sata1(prsnt)
57mpp36 36 gpio, spi0(mosi) 57mpp36 36 gpio, spi0(mosi)
58mpp37 37 gpio, spi0(miso) 58mpp37 37 gpio, spi0(miso)
@@ -68,7 +68,7 @@ mpp43 43 gpio, uart2(txd), uart0(rts), spi0(cs3), pcie(rstout),
68mpp44 44 gpio, uart2(cts), uart3(rxd), spi0(cs4), pcie(clkreq2), 68mpp44 44 gpio, uart2(cts), uart3(rxd), spi0(cs4), pcie(clkreq2),
69 dram(bat), spi1(cs4) 69 dram(bat), spi1(cs4)
70mpp45 45 gpio, uart2(rts), uart3(txd), spi0(cs5), sata1(prsnt), 70mpp45 45 gpio, uart2(rts), uart3(txd), spi0(cs5), sata1(prsnt),
71 spi1(cs5) 71 spi1(cs5), dram(vttctrl)
72mpp46 46 gpio, uart3(rts), uart1(rts), spi0(cs6), sata0(prsnt), 72mpp46 46 gpio, uart3(rts), uart1(rts), spi0(cs6), sata0(prsnt),
73 spi1(cs6) 73 spi1(cs6)
74mpp47 47 gpio, uart3(cts), uart1(cts), spi0(cs7), pcie(clkreq3), 74mpp47 47 gpio, uart3(cts), uart1(cts), spi0(cs7), pcie(clkreq3),
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-xp.c b/drivers/pinctrl/mvebu/pinctrl-armada-xp.c
index 937d868007c1..bf70e0953576 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-xp.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-xp.c
@@ -215,12 +215,14 @@ static struct mvebu_mpp_mode armada_xp_mpp_modes[] = {
215 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS), 215 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS),
216 MPP_VAR_FUNCTION(0x1, "sd0", "d1", V_MV78230_PLUS), 216 MPP_VAR_FUNCTION(0x1, "sd0", "d1", V_MV78230_PLUS),
217 MPP_VAR_FUNCTION(0x3, "tdm", "int4", V_MV78230_PLUS), 217 MPP_VAR_FUNCTION(0x3, "tdm", "int4", V_MV78230_PLUS),
218 MPP_VAR_FUNCTION(0x4, "dram", "bat", V_MV78230_PLUS)), 218 MPP_VAR_FUNCTION(0x4, "dram", "bat", V_MV78230_PLUS),
219 MPP_VAR_FUNCTION(0x5, "dram", "vttctrl", V_MV78230_PLUS)),
219 MPP_MODE(34, 220 MPP_MODE(34,
220 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS), 221 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS),
221 MPP_VAR_FUNCTION(0x1, "sd0", "d2", V_MV78230_PLUS), 222 MPP_VAR_FUNCTION(0x1, "sd0", "d2", V_MV78230_PLUS),
222 MPP_VAR_FUNCTION(0x2, "sata0", "prsnt", V_MV78230_PLUS), 223 MPP_VAR_FUNCTION(0x2, "sata0", "prsnt", V_MV78230_PLUS),
223 MPP_VAR_FUNCTION(0x3, "tdm", "int5", V_MV78230_PLUS)), 224 MPP_VAR_FUNCTION(0x3, "tdm", "int5", V_MV78230_PLUS),
225 MPP_VAR_FUNCTION(0x4, "dram", "deccerr", V_MV78230_PLUS)),
224 MPP_MODE(35, 226 MPP_MODE(35,
225 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS), 227 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS),
226 MPP_VAR_FUNCTION(0x1, "sd0", "d3", V_MV78230_PLUS), 228 MPP_VAR_FUNCTION(0x1, "sd0", "d3", V_MV78230_PLUS),
@@ -280,6 +282,7 @@ static struct mvebu_mpp_mode armada_xp_mpp_modes[] = {
280 MPP_VAR_FUNCTION(0x2, "uart3", "txd", V_MV78230_PLUS), 282 MPP_VAR_FUNCTION(0x2, "uart3", "txd", V_MV78230_PLUS),
281 MPP_VAR_FUNCTION(0x3, "spi0", "cs5", V_MV78230_PLUS), 283 MPP_VAR_FUNCTION(0x3, "spi0", "cs5", V_MV78230_PLUS),
282 MPP_VAR_FUNCTION(0x4, "sata1", "prsnt", V_MV78230_PLUS), 284 MPP_VAR_FUNCTION(0x4, "sata1", "prsnt", V_MV78230_PLUS),
285 MPP_VAR_FUNCTION(0x5, "dram", "vttctrl", V_MV78230_PLUS),
283 MPP_VAR_FUNCTION(0x6, "spi1", "cs5", V_MV78230_PLUS)), 286 MPP_VAR_FUNCTION(0x6, "spi1", "cs5", V_MV78230_PLUS)),
284 MPP_MODE(46, 287 MPP_MODE(46,
285 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS), 288 MPP_VAR_FUNCTION(0x0, "gpio", NULL, V_MV78230_PLUS),