Skip to contentSkip to conversation

Marvell Armada 375 and 38x pinctrl drivers

PATCH New Thomas Petazzoni 3 participants 11 messages Feb 10, 2014 – Feb 24, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

Linus,

Here are two patches that add the pinctrl drivers for two new Marvell ARM SOCs that belong to the mach-mvebu family: the Armada 375 and the Armada 380/385. They are based on Cortex-A9 CPU cores, and share a number of peripherals with their predecessors in the mach-mvebu family. pinctrl-wise, they have a completely similar register layout than Armada 370/XP, so only a list of pins and functions has to be introduced, and therefore the drivers are straightforward.

The core support (arch/arm/mach-mvebu) for these SOCs will be posted shortly, and we're aiming at having this merged for 3.15 if possible.

Thanks!

Thomas

Thomas Petazzoni (2):
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   8 +
 drivers/pinctrl/mvebu/Makefile                     |   2 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 ++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 6 files changed, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/2 pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375

The Marvell Armada 375 is a new ARM SoC from Marvell, part of the mvebu family, but using a Cortex-A9 CPU core. In terms of pin-muxing, it is similar to Armada 370 and XP for the register layout, only different in the number of available pins and their functions. Therefore, we simply use the existing drivers/pinctrl/mvebu/ infrastructure, with no other changes that the list of pins and corresponding functions.

---
 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   4 +
 drivers/pinctrl/mvebu/Makefile                     |   1 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 +++++++++++++++++++++
 4 files changed, 527 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt new file +81 -0
new file mode 100644
index 0000000..2ede59d
@@ -0,0 +1,81 @@
+* Marvell Armada 375 SoC pinctrl driver for mpp
+
+Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
+part and usage.
+
+Required properties:
+- compatible: "marvell,88f6720-pinctrl"
+
+Available mpp pins/groups and functions:
+Note: brackets (x) are not part of the mpp name for marvell,function and given
+only for more detailed description in this document.
+
+name          pins     functions
+================================================================================
+mpp0          0        gpio, dev(ad2), spi0(cs1), spi1(cs1)
+mpp1          1        gpio, dev(ad3), spi0(mosi), spi1(mosi)
+mpp2          2        gpio, dev(ad4), ptp(eventreq), led(c0), audio(sdi)
+mpp3          3        gpio, dev(ad5), ptp(triggen), led(p3), audio(mclk)
+mpp4          4        gpio, dev(ad6), spi0(miso), spi1(miso)
+mpp5          5        gpio, dev(ad7), spi0(cs2), spi1(cs2)
+mpp6          6        gpio, dev(ad0), led(p1), audio(rclk)
+mpp7          7        gpio, dev(ad1), ptp(clk), led(p2), audio(extclk)
+mpp8          8        gpio, dev (bootcs), spi0(cs0), spi1(cs0)
+mpp9          9        gpio, nf(wen), spi0(sck), spi1(sck)
+mpp10        10        gpio, nf(ren), dram(vttctrl), led(c1)
+mpp11        11        gpio, dev(a0), led(c2), audio(sdo)
+mpp12        12        gpio, dev(a1), audio(bclk)
+mpp13        13        gpio, dev(readyn), pcie0(rstoutn), pcie1(rstoutn)
+mpp14        14        gpio, i2c0(sda), uart1(txd)
+mpp15        15        gpio, i2c0(sck), uart1(rxd)
+mpp16        16        gpio, uart0(txd)
+mpp17        17        gpio, uart0(rxd)
+mpp18        18        gpio, tdm(intn)
+mpp19        19        gpio, tdm(rstn)
+mpp20        20        gpio, tdm(pclk)
+mpp21        21        gpio, tdm(fsync)
+mpp22        22        gpio, tdm(drx)
+mpp23        23        gpio, tdm(dtx)
+mpp24        24        gpio, led(p0), ge1(rxd0), sd(cmd), uart0(rts)
+mpp25        25        gpio, led(p2), ge1(rxd1), sd(d0), uart0(cts)
+mpp26        26        gpio, pcie0(clkreq), ge1(rxd2), sd(d2), uart1(rts)
+mpp27        27        gpio, pcie1(clkreq), ge1(rxd3), sd(d1), uart1(cts)
+mpp28        28        gpio, led(p3), ge1(txctl), sd(clk)
+mpp29        29        gpio, pcie1(clkreq), ge1(rxclk), sd(d3)
+mpp30        30        gpio, ge1(txd0), spi1(cs0)
+mpp31        31        gpio, ge1(txd1), spi1(mosi)
+mpp32        32        gpio, ge1(txd2), spi1(sck), ptp(triggen)
+mpp33        33        gpio, ge1(txd3), spi1(miso)
+mpp34        34        gpio, ge1(txclkout), spi1(sck)
+mpp35        35        gpio, ge1(rxctl), spi1(cs1), spi0(cs2)
+mpp36        36        gpio, pcie0(clkreq)
+mpp37        37        gpio, pcie0(clkreq), tdm(intn), ge(mdc)
+mpp38        38        gpio, pcie1(clkreq), ge(mdio)
+mpp39        39        gpio, ref(clkout)
+mpp40        40        gpio, uart1(txd)
+mpp41        41        gpio, uart1(rxd)
+mpp42        42        gpio, spi1(cs2), led(c0)
+mpp43        43        gpio, sata0(prsnt), dram(vttctrl)
+mpp44        44        gpio, sata0(prsnt)
+mpp45        45        gpio, spi0(cs2), pcie0(rstoutn)
+mpp46        46        gpio, led(p0), ge0(txd0), ge1(txd0)
+mpp47        47        gpio, led(p1), ge0(txd1), ge1(txd1)
+mpp48        48        gpio, led(p2), ge0(txd2), ge1(txd2)
+mpp49        49        gpio, led(p3), ge0(txd3), ge1(txd3)
+mpp50        50        gpio, led(c0), ge0(rxd0), ge1(rxd0)
+mpp51        51        gpio, led(c1), ge0(rxd1), ge1(rxd1)
+mpp52        52        gpio, led(c2), ge0(rxd2), ge1(rxd2)
+mpp53        53        gpio, pcie1(rstoutn), ge0(rxd3), ge1(rxd3)
+mpp54        54        gpio, pcie0(rstoutn), ge0(rxctl), ge1(rxctl)
+mpp55        55        gpio, ge0(rxclk), ge1(rxclk)
+mpp56        56        gpio, ge0(txclkout), ge1(txclkout)
+mpp57        57        gpio, ge0(txctl), ge1(txctl)
+mpp58        58        gpio, led(c0)
+mpp59        59        gpio, led(c1)
+mpp60        60        gpio, uart1(txd), led(c2)
+mpp61        61        gpio, i2c1(sda), uart1(rxd), spi1(cs2), led(p0)
+mpp62        62        gpio, i2c1(sck), led(p1)
+mpp63        63        gpio, ptp(triggen), led(p2)
+mpp64        64        gpio, dram(vttctrl), led(p3)
+mpp65        65        gpio, sata1(prsnt)
+mpp66        66        gpio, ptp(eventreq), spi1(cs3)
drivers/pinctrl/mvebu/Kconfig +4 -0
index 366fa54..30c4570 100644
@@ -17,6 +17,10 @@ config PINCTRL_ARMADA_370
 	bool
 	select PINCTRL_MVEBU
 
+config PINCTRL_ARMADA_375
+	bool
+	select PINCTRL_MVEBU
+
 config PINCTRL_ARMADA_XP
 	bool
 	select PINCTRL_MVEBU
drivers/pinctrl/mvebu/Makefile +1 -0
index 37c2532..e306c64 100644
@@ -2,4 +2,5 @@ obj-$(CONFIG_PINCTRL_MVEBU)	+= pinctrl-mvebu.o
 obj-$(CONFIG_PINCTRL_DOVE)	+= pinctrl-dove.o
 obj-$(CONFIG_PINCTRL_KIRKWOOD)	+= pinctrl-kirkwood.o
 obj-$(CONFIG_PINCTRL_ARMADA_370) += pinctrl-armada-370.o
+obj-$(CONFIG_PINCTRL_ARMADA_375) += pinctrl-armada-375.o
 obj-$(CONFIG_PINCTRL_ARMADA_XP)  += pinctrl-armada-xp.o
drivers/pinctrl/mvebu/pinctrl-armada-375.c new file +441 -0

441 lines not on this page · raw message

Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 1/2 pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375

Quoted 10 lines · Thomas Petazzoni

The Marvell Armada 375 is a new ARM SoC from Marvell, part of the mvebu family, but using a Cortex-A9 CPU core. In terms of pin-muxing, it is similar to Armada 370 and XP for the register layout, only different in the number of available pins and their functions. Therefore, we simply use the existing drivers/pinctrl/mvebu/ infrastructure, with no other changes that the list of pins and corresponding functions.

Sure, patch applied.

Yours,
Linus Walleij

#3 lore raw

PATCH 2/2 pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

In reply to Thomas Petazzoni

The Marvell Armada 380/385 are new ARM SoCs from Marvell, part of the mvebu family, but using a Cortex-A9 CPU core. In terms of pin-muxing, it is similar to Armada 370 and XP for the register layout, only different in the number of available pins and their functions. Therefore, we simply use the existing drivers/pinctrl/mvebu/ infrastructure, with no other changes that the list of pins and corresponding functions.

---
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   4 +
 drivers/pinctrl/mvebu/Makefile                     |   1 +
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 4 files changed, 529 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c
Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt new file +79 -0
new file mode 100644
index 0000000..1d45f9d
@@ -0,0 +1,79 @@
+* Marvell Armada 380/385 SoC pinctrl driver for mpp
+
+Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
+part and usage.
+
+Required properties:
+- compatible: "marvell,88f6810-pinctrl", "marvell,88f6820-pinctrl" or
+  "marvell,88f6828-pinctrl" depending on the specific variant of the
+  SoC being used.
+
+Available mpp pins/groups and functions:
+Note: brackets (x) are not part of the mpp name for marvell,function and given
+only for more detailed description in this document.
+
+name          pins     functions
+================================================================================
+mpp0          0        gpio, ua0(rxd)
+mpp1          1        gpio, ua0(txd)
+mpp2          2        gpio, i2c0(sck)
+mpp3          3        gpio, i2c0(sda)
+mpp4          4        gpio, ge(mdc), ua1(txd), ua0(rts)
+mpp5          5        gpio, ge(mdio), ua1(rxd), ua0(cts)
+mpp6          6        gpio, ge0(txclkout), ge0(crs), dev(cs3)
+mpp7          7        gpio, ge0(txd0), dev(ad9)
+mpp8          8        gpio, ge0(txd1), dev(ad10)
+mpp9          9        gpio, ge0(txd2), dev(ad11)
+mpp10         10       gpio, ge0(txd3), dev(ad12)
+mpp11         11       gpio, ge0(txctl), dev(ad13)
+mpp12         12       gpio, ge0(rxd0), pcie0(rstout), pcie1(rstout) [1], spi0(cs1), dev(ad14)
+mpp13         13       gpio, ge0(rxd1), pcie0(clkreq), pcie1(clkreq) [1], spi0(cs2), dev(ad15)
+mpp14         14       gpio, ge0(rxd2), ptp(clk), m(vtt_ctrl), spi0(cs3), dev(wen1)
+mpp15         15       gpio, ge0(rxd3), ge(mdc slave), pcie0(rstout), spi0(mosi), pcie1(rstout) [1]
+mpp16         16       gpio, ge0(rxctl), ge(mdio slave), m(decc_err), spi0(miso), pcie0(clkreq)
+mpp17         17       gpio, ge0(rxclk), ptp(clk), ua1(rxd), spi0(sck), sata1(prsnt)
+mpp18         18       gpio, ge0(rxerr), ptp(trig_gen), ua1(txd), spi0(cs0), pcie1(rstout) [1]
+mpp19         19       gpio, ge0(col), ptp(event_req), pcie0(clkreq), sata1(prsnt), ua0(cts)
+mpp20         20       gpio, ge0(txclk), ptp(clk), pcie1(rstout) [1], sata0(prsnt), ua0(rts)
+mpp21         21       gpio, spi0(cs1), ge1(rxd0), sata0(prsnt), sd0(cmd), dev(bootcs)
+mpp22         22       gpio, spi0(mosi), dev(ad0)
+mpp23         23       gpio, spi0(sck), dev(ad2)
+mpp24         24       gpio, spi0(miso), ua0(cts), ua1(rxd), sd0(d4), dev(ready)
+mpp25         25       gpio, spi0(cs0), ua0(rts), ua1(txd), sd0(d5), dev(cs0)
+mpp26         26       gpio, spi0(cs2), i2c1(sck), sd0(d6), dev(cs1)
+mpp27         27       gpio, spi0(cs3), ge1(txclkout), i2c1(sda), sd0(d7), dev(cs2)
+mpp28         28       gpio, ge1(txd0), sd0(clk), dev(ad5)
+mpp29         29       gpio, ge1(txd1), dev(ale0)
+mpp30         30       gpio, ge1(txd2), dev(oen)
+mpp31         31       gpio, ge1(txd3), dev(ale1)
+mpp32         32       gpio, ge1(txctl), dev(wen0)
+mpp33         33       gpio, m(decc_err), dev(ad3)
+mpp34         34       gpio, dev(ad1)
+mpp35         35       gpio, ref(clk_out1), dev(a1)
+mpp36         36       gpio, ptp(trig_gen), dev(a0)
+mpp37         37       gpio, ptp(clk), ge1(rxclk), sd0(d3), dev(ad8)
+mpp38         38       gpio, ptp(event_req), ge1(rxd1), ref(clk_out0), sd0(d0), dev(ad4)
+mpp39         39       gpio, i2c1(sck), ge1(rxd2), ua0(cts), sd0(d1), dev(a2)
+mpp40         40       gpio, i2c1(sda), ge1(rxd3), ua0(rts), sd0(d2), dev(ad6)
+mpp41         41       gpio, ua1(rxd), ge1(rxctl), ua0(cts), spi1(cs3), dev(burst/last)
+mpp42         42       gpio, ua1(txd), ua0(rts), dev(ad7)
+mpp43         43       gpio, pcie0(clkreq), m(vtt_ctrl), m(decc_err), pcie0(rstout), dev(clkout)
+mpp44         44       gpio, sata0(prsnt), sata1(prsnt), sata2(prsnt) [2], sata3(prsnt) [3], pcie0(rstout)
+mpp45         45       gpio, ref(clk_out0), pcie0(rstout), pcie1(rstout) [1], pcie2(rstout), pcie3(rstout)
+mpp46         46       gpio, ref(clk_out1), pcie0(rstout), pcie1(rstout) [1], pcie2(rstout), pcie3(rstout)
+mpp47         47       gpio, sata0(prsnt), sata1(prsnt), sata2(prsnt) [2], spi1(cs2), sata3(prsnt) [2]
+mpp48         48       gpio, sata0(prsnt), m(vtt_ctrl), tdm2c(pclk), audio(mclk), sd0(d4)
+mpp49         49       gpio, sata2(prsnt) [2], sata3(prsnt) [2], tdm2c(fsync), audio(lrclk), sd0(d5)
+mpp50         50       gpio, pcie0(rstout), pcie1(rstout) [1], tdm2c(drx), audio(extclk), sd0(cmd)
+mpp51         51       gpio, tdm2c(dtx), audio(sdo), m(decc_err)
+mpp52         52       gpio, pcie0(rstout), pcie1(rstout) [1], tdm2c(intn), audio(sdi), sd0(d6)
+mpp53         53       gpio, sata1(prsnt), sata0(prsnt), tdm2c(rstn), audio(bclk), sd0(d7)
+mpp54         54       gpio, sata0(prsnt), sata1(prsnt), pcie0(rstout), pcie1(rstout) [1], sd0(d3)
+mpp55         55       gpio, ua1(cts), ge(mdio), pcie1(clkreq) [1], spi1(cs1), sd0(d0)
+mpp56         56       gpio, ua1(rts), ge(mdc), m(decc_err), spi1(mosi)
+mpp57         57       gpio, spi1(sck), sd0(clk)
+mpp58         58       gpio, pcie1(clkreq) [1], i2c1(sck), pcie2(clkreq), spi1(miso), sd0(d1)
+mpp59         59       gpio, pcie0(rstout), i2c1(sda), pcie1(rstout) [1], spi1(cs0), sd0(d2)
+
+[1]: only available on 88F6820 and 88F6828
+[2]: only available on 88F6828
drivers/pinctrl/mvebu/Kconfig +4 -0
index 30c4570..a22b030 100644
@@ -21,6 +21,10 @@ config PINCTRL_ARMADA_375
 	bool
 	select PINCTRL_MVEBU
 
+config PINCTRL_ARMADA_38X
+	bool
+	select PINCTRL_MVEBU
+
 config PINCTRL_ARMADA_XP
 	bool
 	select PINCTRL_MVEBU
drivers/pinctrl/mvebu/Makefile +1 -0
index e306c64..bc1b9f1 100644
@@ -3,4 +3,5 @@ obj-$(CONFIG_PINCTRL_DOVE)	+= pinctrl-dove.o
 obj-$(CONFIG_PINCTRL_KIRKWOOD)	+= pinctrl-kirkwood.o
 obj-$(CONFIG_PINCTRL_ARMADA_370) += pinctrl-armada-370.o
 obj-$(CONFIG_PINCTRL_ARMADA_375) += pinctrl-armada-375.o
+obj-$(CONFIG_PINCTRL_ARMADA_38X) += pinctrl-armada-38x.o
 obj-$(CONFIG_PINCTRL_ARMADA_XP)  += pinctrl-armada-xp.o
drivers/pinctrl/mvebu/pinctrl-armada-38x.c new file +445 -0

445 lines not on this page · raw message

Signature · 1 line
1.8.3.2
#4 lore raw

PATCH 2/2 pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

Quoted 9 lines · Thomas Petazzoni

The Marvell Armada 380/385 are new ARM SoCs from Marvell, part of the mvebu family, but using a Cortex-A9 CPU core. In terms of pin-muxing, it is similar to Armada 370 and XP for the register layout, only different in the number of available pins and their functions. Therefore, we simply use the existing drivers/pinctrl/mvebu/ infrastructure, with no other changes that the list of pins and corresponding functions.

Patch applied.

Yours,
Linus Walleij

#5 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

In reply to Thomas Petazzoni
Quoted 21 lines · Thomas Petazzoni

Linus,

Here are two patches that add the pinctrl drivers for two new Marvell ARM SOCs that belong to the mach-mvebu family: the Armada 375 and the Armada 380/385. They are based on Cortex-A9 CPU cores, and share a number of peripherals with their predecessors in the mach-mvebu family. pinctrl-wise, they have a completely similar register layout than Armada 370/XP, so only a list of pins and functions has to be introduced, and therefore the drivers are straightforward.

The core support (arch/arm/mach-mvebu) for these SOCs will be posted shortly, and we're aiming at having this merged for 3.15 if possible.

Thanks!

Thomas

Thomas Petazzoni (2):
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

Quoted 11 lines
 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   8 +
 drivers/pinctrl/mvebu/Makefile                     |   2 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 ++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 6 files changed, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c

For the whole series,

thx,

Jason.

#6 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

In reply to Thomas Petazzoni

Linus,

Do you intend to integrate the following patches for 3.15 ? They have been Acked-by Jason Cooper, one of the mvebu maintainer, and are just additions of simple mvebu pinctrl drivers that follow the existing mvebu pinctrl common logic with nothing fancy.

We have agreed with Sebastian Hesselbarth, who is doing a more serious rework of the pinctrl mvebu stuff, that those two patches should go in first, so that they don't miss 3.15.

Thanks a lot,

Thomas

Quoted 33 lines · Thomas Petazzoni

Linus,

Here are two patches that add the pinctrl drivers for two new Marvell ARM SOCs that belong to the mach-mvebu family: the Armada 375 and the Armada 380/385. They are based on Cortex-A9 CPU cores, and share a number of peripherals with their predecessors in the mach-mvebu family. pinctrl-wise, they have a completely similar register layout than Armada 370/XP, so only a list of pins and functions has to be introduced, and therefore the drivers are straightforward.

The core support (arch/arm/mach-mvebu) for these SOCs will be posted shortly, and we're aiming at having this merged for 3.15 if possible.

Thanks!

Thomas

Thomas Petazzoni (2):
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   8 +
 drivers/pinctrl/mvebu/Makefile                     |   2 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 ++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 6 files changed, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

Linus,

Quoted 10 lines · Thomas Petazzoni

Linus,

Do you intend to integrate the following patches for 3.15 ? They have been Acked-by Jason Cooper, one of the mvebu maintainer, and are just additions of simple mvebu pinctrl drivers that follow the existing mvebu pinctrl common logic with nothing fancy.

We have agreed with Sebastian Hesselbarth, who is doing a more serious rework of the pinctrl mvebu stuff, that those two patches should go in first, so that they don't miss 3.15.

v4 of Sebastian's rework now depends on this series. As you've expressed consent with Sebastian's series going through mvebu/arm-soc, I'm going to go ahead and pull this into a topic branch as well.

If you'd like the mvebu pinctrl branches to go through your tree, just let me know and I'll send you a pull request for them.

thx,

Jason.

Quoted 46 lines · Thomas Petazzoni
Quoted 33 lines

Linus,

Here are two patches that add the pinctrl drivers for two new Marvell ARM SOCs that belong to the mach-mvebu family: the Armada 375 and the Armada 380/385. They are based on Cortex-A9 CPU cores, and share a number of peripherals with their predecessors in the mach-mvebu family. pinctrl-wise, they have a completely similar register layout than Armada 370/XP, so only a list of pins and functions has to be introduced, and therefore the drivers are straightforward.

The core support (arch/arm/mach-mvebu) for these SOCs will be posted shortly, and we're aiming at having this merged for 3.15 if possible.

Thanks!

Thomas

Thomas Petazzoni (2):
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   8 +
 drivers/pinctrl/mvebu/Makefile                     |   2 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 ++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 6 files changed, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c
Signature · 8 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#8 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

Quoted 1 line · Jason Cooper

v4 of Sebastian's rework now depends on this series.

Yeah I figured so much :-)

Quoted 3 lines

As you've
expressed consent with Sebastian's series going through mvebu/arm-soc, I'm going to go ahead and pull this into a topic branch as well.

I think it's better if I pull this massive set of pinctrl changes into the pinctrl tree, and then create an immutable branch for you to pull (and forward to ARM SoC).

Quoted 2 lines

If you'd like the mvebu pinctrl branches to go through your tree, just let me know and I'll send you a pull request for them.

That's better, so hit me with this!

I'll dequeue the stuff I queued so far and wait for this.

The reason I want this in the pinctrl tree is that people tend to start sending small fixes on top and it creates a mess routing those patches. And it blocks us from major refactorings. So better keep it in my tree.

Yours,
Linus Walleij

#9 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

Quoted 10 lines · Linus Walleij
Quoted 1 line · Jason Cooper

v4 of Sebastian's rework now depends on this series.

Yeah I figured so much :-)

Quoted 3 lines

As you've
expressed consent with Sebastian's series going through mvebu/arm-soc, I'm going to go ahead and pull this into a topic branch as well.

Quoted 8 lines

I think it's better if I pull this massive set of pinctrl changes into the pinctrl tree, and then create an immutable branch for you to pull (and forward to ARM SoC).

Quoted 2 lines

If you'd like the mvebu pinctrl branches to go through your tree, just let me know and I'll send you a pull request for them.

That's better, so hit me with this!

Will do in a day or two (needs some -next time). If you'd like to take a look now, This series is in mvebu/pinctrl-3xx, based on v3.14-rc1. Sebastian's series is in mvebu/pinctrl, also based on v3.14-rc1 and depending on mvebu/pinctrl-3xx.

The tree is at git://git.infradead.org/linux-mvebu.git

Quoted 1 line

I'll dequeue the stuff I queued so far and wait for this.

Ok.

Quoted 5 lines

The reason I want this in the pinctrl tree is that people tend to start sending small fixes on top and it creates a mess routing those patches. And it blocks us from major refactorings. So better keep it in my tree.

No problem. Thanks for letting us work it this way. The more testing time we get before the merge window, the better.

thx,

Jason.

#10 lore raw

cover Marvell Armada 375 and 38x pinctrl drivers

In reply to Thomas Petazzoni
Quoted 21 lines · Thomas Petazzoni

Linus,

Here are two patches that add the pinctrl drivers for two new Marvell ARM SOCs that belong to the mach-mvebu family: the Armada 375 and the Armada 380/385. They are based on Cortex-A9 CPU cores, and share a number of peripherals with their predecessors in the mach-mvebu family. pinctrl-wise, they have a completely similar register layout than Armada 370/XP, so only a list of pins and functions has to be introduced, and therefore the drivers are straightforward.

The core support (arch/arm/mach-mvebu) for these SOCs will be posted shortly, and we're aiming at having this merged for 3.15 if possible.

Thanks!

Thomas

Thomas Petazzoni (2):
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 375
pinctrl: mvebu: add pin-muxing driver for the Marvell Armada 380/385

Quoted 11 lines
 .../pinctrl/marvell,armada-375-pinctrl.txt         |  81 ++++
 .../pinctrl/marvell,armada-38x-pinctrl.txt         |  79 ++++
 drivers/pinctrl/mvebu/Kconfig                      |   8 +
 drivers/pinctrl/mvebu/Makefile                     |   2 +
 drivers/pinctrl/mvebu/pinctrl-armada-375.c         | 441 ++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-38x.c         | 445 +++++++++++++++++++++
 6 files changed, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,armada-38x-pinctrl.txt
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-375.c
 create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c

Series tentatively applied to mvebu/pinctrl-3xx. Will wait for input from Linus on his preference for going through the pinctrl tree or the arm-soc tree.

thx,

Jason.