]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 6 Dec 2018 23:41:17 +0000 (21:41 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:17 +0000 (20:02 +0100)
[ Upstream commit 79da07dec740a42c70963ebacbd2bf8866af9e20 ]

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>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/imx51-zii-rdu1.dts

index 69d753cac89aec6333dea879219ebfaff3aac4dc..44985f61c0baf5ee04cab3150af101a6ff5e8382 100644 (file)
 };
 
 &gpio1 {
+       gpio-line-names = "", "", "", "",
+                         "", "", "", "",
+                         "", "hp-amp-shutdown-b", "", "",
+                         "", "", "", "",
+                         "", "", "", "",
+                         "", "", "", "",
+                         "", "", "", "",
+                         "", "", "", "";
+
        unused-sd3-wp-gpio {
                /*
                 * See pinctrl_esdhc1 below for more details on this
        hpa1: amp@60 {
                compatible = "ti,tpa6130a2";
                reg = <0x60>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&pinctrl_ampgpio>;
-               power-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
                Vdd-supply = <&reg_3p3v>;
        };
 
 };
 
 &iomuxc {
-       pinctrl_ampgpio: ampgpiogrp {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_hog>;
+
+       pinctrl_hog: hoggrp {
                fsl,pins = <
                        MX51_PAD_GPIO1_9__GPIO1_9               0x5e
                >;