From: John Crispin <blogic@openwrt.org>
To: Ralf Baechle <ralf@linux-mips.org>,
Linus Walleij <linus.walleij@linaro.org>
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Subject: [PATCH 3/4] pinctrl: ralink: add binding documentation
Date: Thu, 9 Oct 2014 04:55:26 +0200 [thread overview]
Message-ID: <1412823327-10296-4-git-send-email-blogic@openwrt.org> (raw)
In-Reply-To: <1412823327-10296-1-git-send-email-blogic@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
---
.../bindings/pinctrl/ralink,rt2880-pinmux.txt | 74 ++++++++++++++++++++
1 file changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.txt
diff --git a/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.txt
new file mode 100644
index 0000000..20e6cc0
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.txt
@@ -0,0 +1,74 @@
+Ralink rt2880 pinmux controller
+
+Required properties:
+- compatible: "lantiq,rt2880-pinmux"
+- reg: Should contain the physical address and length of the gpio/pinmux
+ register range
+
+The rt2880 pinmux can only set the muxing of pin groups. muxing indiviual pins
+is not supported. There is no pinconf support.
+
+Definition of mux function groups:
+
+Required subnode-properties:
+- ralink,group : An array of strings. Each string contains the name of a group.
+ Valid values for these names are listed below.
+- ralink,function: A string containing the name of the function to mux to the
+ group. Valid values for function names are listed below.
+
+Valid values for group and function names:
+ mux groups (rt2880):
+ i2c, spi, uartlite, jtag, mdio, sdram, pci
+
+ mux functions (rt2880):
+ gpio, i2c, spi, uartlite, jtag, mdio, sdram, pci
+
+ mux groups (rt3050):
+ i2c, spi, uartf, uartlite, jtag, mdio, rgmii, sdram
+
+ mux functions (rt3050):
+ gpio, i2c, spi, uartf, pcm uartf, pcm i2s, i2s uartf, pcm gpio, gpio uartf,
+ gpio i2s, uartlite, jtag, mdio, sdram
+
+ mux groups (rt3352):
+ i2c, spi, uartf, uartlite, jtag, mdio, rgmii, lna, pna, led
+
+ mux functions (rt3050):
+ gpio, i2c, spi, uartf, pcm uartf, pcm i2s, i2s uartf, pcm gpio, gpio uartf,
+ gpio i2s, uartlite, jtag, mdio, lna, pna, led
+
+ mux groups (rt5350):
+ i2c, spi, uartf, uartlite, jtag, pna, led, spi cs1
+
+ mux functions (rt5350):
+ gpio, i2c, spi, uartf, pcm uartf, pcm i2s, i2s uartf, pcm gpio, gpio uartf,
+ gpio i2s, uartlite, jtag, spi_cs1, wdg
+
+
+Example:
+ pinctrl {
+ compatible = "ralink,rt2880-pinmux";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&state_default>;
+
+ state_default: pinctrl0 {
+ sdram {
+ ralink,group = "sdram";
+ ralink,function = "sdram";
+ };
+ };
+
+ spi_pins: spi {
+ spi {
+ ralink,group = "spi";
+ ralink,function = "spi";
+ };
+ };
+ uartlite_pins: uartlite {
+ uart {
+ ralink,group = "uartlite";
+ ralink,function = "uartlite";
+ };
+ };
+ };
--
1.7.10.4
next prev parent reply other threads:[~2014-10-09 19:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 2:55 [PATCH 0/4] pinctrl: ralink: add support for rt2880 pinmux John Crispin
2014-10-09 2:55 ` [PATCH 1/4] MIPS: ralink: cleanup the soc specific pinmux data John Crispin
2014-10-09 2:55 ` [PATCH 2/4] pinctrl: ralink: add a pinctrl driver for the rt2880 family of SoCs John Crispin
2014-10-27 16:20 ` Linus Walleij
2014-10-09 2:55 ` John Crispin [this message]
2014-10-27 16:22 ` [PATCH 3/4] pinctrl: ralink: add binding documentation Linus Walleij
2014-10-09 2:55 ` [PATCH 4/4] MIPS: ralink: always enable pinctrl on ralink SoC John Crispin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412823327-10296-4-git-send-email-blogic@openwrt.org \
--to=blogic@openwrt.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®