* [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1
@ 2018-12-06 23:41 Fabio Estevam
2018-12-07 3:32 ` Chris Healy
2018-12-09 12:57 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2018-12-06 23:41 UTC (permalink / raw)
To: shawnguo
Cc: andrew.smirnov, Fabio Estevam, linux-arm-kernel, cphealy, l.stach
From: Andrey Smirnov <andrew.smirnov@gmail.com>
TPA6130A2 SD pin on RDU1 is not really controlled by SoC and instead
is only meant to notify the system that audio was "muted" by external
actors. To accommodate that, drop "power-gpio" property of hpa1 node as
well as specify a name for that GPIO so that userspace can access it.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/boot/dts/imx51-zii-rdu1.dts | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/imx51-zii-rdu1.dts b/arch/arm/boot/dts/imx51-zii-rdu1.dts
index 28e9dca..a8220f0 100644
--- a/arch/arm/boot/dts/imx51-zii-rdu1.dts
+++ b/arch/arm/boot/dts/imx51-zii-rdu1.dts
@@ -478,6 +478,15 @@
};
&gpio1 {
+ gpio-line-names = "", "", "", "",
+ "", "", "", "",
+ "", "hp-amp-shutdown-b", "", "",
+ "", "", "", "",
+ "", "", "", "",
+ "", "", "", "",
+ "", "", "", "",
+ "", "", "", "";
+
unused-sd3-wp-gpio {
/*
* See pinctrl_esdhc1 below for more details on this
@@ -496,9 +505,6 @@
hpa1: amp@60 {
compatible = "ti,tpa6130a2";
reg = <0x60>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ampgpio>;
- power-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
Vdd-supply = <®_3p3v>;
};
@@ -672,7 +678,10 @@
};
&iomuxc {
- pinctrl_ampgpio: ampgpiogrp {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_hog>;
+
+ pinctrl_hog: hoggrp {
fsl,pins = <
MX51_PAD_GPIO1_9__GPIO1_9 0x5e
>;
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1
2018-12-06 23:41 [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1 Fabio Estevam
@ 2018-12-07 3:32 ` Chris Healy
2018-12-09 12:57 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Chris Healy @ 2018-12-07 3:32 UTC (permalink / raw)
To: Fabio Estevam; +Cc: Andrey Smirnov, Shawn Guo, linux ARM, Lucas Stach
> From: Andrey Smirnov <andrew.smirnov@gmail.com>
>
> TPA6130A2 SD pin on RDU1 is not really controlled by SoC and instead
> is only meant to notify the system that audio was "muted" by external
> actors. To accommodate that, drop "power-gpio" property of hpa1 node as
> well as specify a name for that GPIO so that userspace can access it.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> arch/arm/boot/dts/imx51-zii-rdu1.dts | 17 +++++++++++++----
> 1 file changed, 13 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/imx51-zii-rdu1.dts b/arch/arm/boot/dts/imx51-zii-rdu1.dts
> index 28e9dca..a8220f0 100644
> --- a/arch/arm/boot/dts/imx51-zii-rdu1.dts
> +++ b/arch/arm/boot/dts/imx51-zii-rdu1.dts
> @@ -478,6 +478,15 @@
> };
>
> &gpio1 {
> + gpio-line-names = "", "", "", "",
> + "", "", "", "",
Tested-by: Chris Healy <cphealy@gmail.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1
2018-12-06 23:41 [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1 Fabio Estevam
2018-12-07 3:32 ` Chris Healy
@ 2018-12-09 12:57 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-12-09 12:57 UTC (permalink / raw)
To: Fabio Estevam; +Cc: andrew.smirnov, linux-arm-kernel, cphealy, l.stach
On Thu, Dec 06, 2018 at 09:41:17PM -0200, Fabio Estevam wrote:
> From: Andrey Smirnov <andrew.smirnov@gmail.com>
>
> TPA6130A2 SD pin on RDU1 is not really controlled by SoC and instead
> is only meant to notify the system that audio was "muted" by external
> actors. To accommodate that, drop "power-gpio" property of hpa1 node as
> well as specify a name for that GPIO so that userspace can access it.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-09 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-06 23:41 [PATCH] ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1 Fabio Estevam
2018-12-07 3:32 ` Chris Healy
2018-12-09 12:57 ` Shawn Guo
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).