linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: sun6i: add SPDIF to pin description.
@ 2016-07-30 14:20 codekipper at gmail.com
  2016-07-30 15:12 ` Maxime Ripard
  2016-08-11  8:16 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: codekipper at gmail.com @ 2016-07-30 14:20 UTC (permalink / raw)
  To: linux-arm-kernel

From: Marcus Cooper <codekipper@gmail.com>

Add the SPDIF mux functionality to the pinctrl for the Allwinner A31
SoC.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
---
 drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
index 022863a..a70b529 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
@@ -896,10 +896,18 @@ static const struct sunxi_desc_pin sun6i_a31_pins[] = {
 		  SUNXI_FUNCTION(0x1, "gpio_out")),
 	SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 27),
 		  SUNXI_FUNCTION(0x0, "gpio_in"),
-		  SUNXI_FUNCTION(0x1, "gpio_out")),
+		  SUNXI_FUNCTION(0x1, "gpio_out"),
+		/*
+		 * The SPDIF block is not referenced at all in the A31 user
+		 * manual. However it is described in the code leaked and the
+		 * configuration files supplied by vendors.
+		 */
+		  SUNXI_FUNCTION(0x3, "spdif")),        /* SPDIF IN */
 	SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 28),
 		  SUNXI_FUNCTION(0x0, "gpio_in"),
-		  SUNXI_FUNCTION(0x1, "gpio_out")),
+		  SUNXI_FUNCTION(0x1, "gpio_out"),
+		/* Undocumented mux function - see above */
+		  SUNXI_FUNCTION(0x3, "spdif")),        /* SPDIF OUT */
 	SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 29),
 		  SUNXI_FUNCTION(0x0, "gpio_in"),
 		  SUNXI_FUNCTION(0x1, "gpio_out"),
-- 
2.9.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] pinctrl: sun6i: add SPDIF to pin description.
  2016-07-30 14:20 [PATCH] pinctrl: sun6i: add SPDIF to pin description codekipper at gmail.com
@ 2016-07-30 15:12 ` Maxime Ripard
  2016-08-11  8:16 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2016-07-30 15:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jul 30, 2016 at 04:20:22PM +0200, codekipper at gmail.com wrote:
> From: Marcus Cooper <codekipper@gmail.com>
> 
> Add the SPDIF mux functionality to the pinctrl for the Allwinner A31
> SoC.
> 
> Signed-off-by: Marcus Cooper <codekipper@gmail.com>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160730/9ab84793/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] pinctrl: sun6i: add SPDIF to pin description.
  2016-07-30 14:20 [PATCH] pinctrl: sun6i: add SPDIF to pin description codekipper at gmail.com
  2016-07-30 15:12 ` Maxime Ripard
@ 2016-08-11  8:16 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2016-08-11  8:16 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jul 30, 2016 at 4:20 PM,  <codekipper@gmail.com> wrote:

> From: Marcus Cooper <codekipper@gmail.com>
>
> Add the SPDIF mux functionality to the pinctrl for the Allwinner A31
> SoC.
>
> Signed-off-by: Marcus Cooper <codekipper@gmail.com>

Patch applied with Maxime's ACK.

Thanks!
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-11  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-30 14:20 [PATCH] pinctrl: sun6i: add SPDIF to pin description codekipper at gmail.com
2016-07-30 15:12 ` Maxime Ripard
2016-08-11  8:16 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).