Skip to content

Commit 601cbef

Browse files
krzkgregkh
authored andcommitted
pinctrl: qcom: sm8350-lpass-lpi: Merge with SC7280 to fix I2S2 and SWR TX pins
[ Upstream commit 1fbe3ab ] Qualcomm SC7280 and SM8350 SoCs have slightly different LPASS audio blocks (v9.4.5 and v9.2), however the LPASS LPI pin controllers are exactly the same. The driver for SM8350 has two issues, which can be fixed by simply moving over to SC7280 driver which has them correct: 1. "i2s2_data_groups" listed twice GPIO12, but should have both GPIO12 and GPIO13, 2. "swr_tx_data_groups" contained GPIO5 for "swr_tx_data2" function, but that function is also available on GPIO14, thus listing it twice is not necessary. OTOH, GPIO5 has also "swr_rx_data1", so selecting swr_rx_data function should not block the TX one. Fixes: be9f6d5 ("pinctrl: qcom: sm8350-lpass-lpi: add SM8350 LPASS TLMM") Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Linus Walleij <linusw@kernel.org> [ .remove_new vs .remove ] Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3845bd3 commit 601cbef

5 files changed

Lines changed: 6 additions & 165 deletions

File tree

arch/arm64/configs/defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ CONFIG_PINCTRL_LPASS_LPI=m
635635
CONFIG_PINCTRL_SC7280_LPASS_LPI=m
636636
CONFIG_PINCTRL_SM6115_LPASS_LPI=m
637637
CONFIG_PINCTRL_SM8250_LPASS_LPI=m
638-
CONFIG_PINCTRL_SM8350_LPASS_LPI=m
639638
CONFIG_PINCTRL_SM8450_LPASS_LPI=m
640639
CONFIG_PINCTRL_SC8280XP_LPASS_LPI=m
641640
CONFIG_PINCTRL_SM8550_LPASS_LPI=m

drivers/pinctrl/qcom/Kconfig

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ config PINCTRL_LPASS_LPI
6060
(Low Power Island) found on the Qualcomm Technologies Inc SoCs.
6161

6262
config PINCTRL_SC7280_LPASS_LPI
63-
tristate "Qualcomm Technologies Inc SC7280 LPASS LPI pin controller driver"
63+
tristate "Qualcomm Technologies Inc SC7280 and SM8350 LPASS LPI pin controller driver"
6464
depends on ARM64 || COMPILE_TEST
6565
depends on PINCTRL_LPASS_LPI
6666
help
6767
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
6868
Qualcomm Technologies Inc LPASS (Low Power Audio SubSystem) LPI
69-
(Low Power Island) found on the Qualcomm Technologies Inc SC7280 platform.
69+
(Low Power Island) found on the Qualcomm Technologies Inc SC7280
70+
and SM8350 platforms.
7071

7172
config PINCTRL_SM4250_LPASS_LPI
7273
tristate "Qualcomm Technologies Inc SM4250 LPASS LPI pin controller driver"
@@ -95,16 +96,6 @@ config PINCTRL_SM8250_LPASS_LPI
9596
Qualcomm Technologies Inc LPASS (Low Power Audio SubSystem) LPI
9697
(Low Power Island) found on the Qualcomm Technologies Inc SM8250 platform.
9798

98-
config PINCTRL_SM8350_LPASS_LPI
99-
tristate "Qualcomm Technologies Inc SM8350 LPASS LPI pin controller driver"
100-
depends on ARM64 || COMPILE_TEST
101-
depends on PINCTRL_LPASS_LPI
102-
help
103-
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
104-
Qualcomm Technologies Inc LPASS (Low Power Audio SubSystem) LPI
105-
(Low Power Island) found on the Qualcomm Technologies Inc SM8350
106-
platform.
107-
10899
config PINCTRL_SM8450_LPASS_LPI
109100
tristate "Qualcomm Technologies Inc SM8450 LPASS LPI pin controller driver"
110101
depends on ARM64 || COMPILE_TEST

drivers/pinctrl/qcom/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ obj-$(CONFIG_PINCTRL_SM8150) += pinctrl-sm8150.o
5555
obj-$(CONFIG_PINCTRL_SM8250) += pinctrl-sm8250.o
5656
obj-$(CONFIG_PINCTRL_SM8250_LPASS_LPI) += pinctrl-sm8250-lpass-lpi.o
5757
obj-$(CONFIG_PINCTRL_SM8350) += pinctrl-sm8350.o
58-
obj-$(CONFIG_PINCTRL_SM8350_LPASS_LPI) += pinctrl-sm8350-lpass-lpi.o
5958
obj-$(CONFIG_PINCTRL_SM8450) += pinctrl-sm8450.o
6059
obj-$(CONFIG_PINCTRL_SM8450_LPASS_LPI) += pinctrl-sm8450-lpass-lpi.o
6160
obj-$(CONFIG_PINCTRL_SM8550) += pinctrl-sm8550.o

drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ static const struct of_device_id lpi_pinctrl_of_match[] = {
131131
{
132132
.compatible = "qcom,sc7280-lpass-lpi-pinctrl",
133133
.data = &sc7280_lpi_data,
134+
}, {
135+
.compatible = "qcom,sm8350-lpass-lpi-pinctrl",
136+
.data = &sc7280_lpi_data,
134137
},
135138
{ }
136139
};

drivers/pinctrl/qcom/pinctrl-sm8350-lpass-lpi.c

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)