SDM670 LPASS LPI pin controller support
Subsystems (7)
cover SDM670 LPASS LPI pin controller support
This adds support for the LPASS LPI pin controller on SDM670, which controls some audio pins (e.g. TDM or PDM busses). The ADSP patches are not sent yet.
Richard Acayan (3):
dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
pinctrl: qcom: add sdm670 lpi tlmm
arm64: dts: qcom: sdm670: add lpi pinctrl
.../qcom,sdm670-lpass-lpi-pinctrl.yaml | 81 ++++++++ arch/arm64/boot/dts/qcom/sdm670.dtsi | 74 ++++++++ drivers/pinctrl/qcom/Kconfig | 10 + drivers/pinctrl/qcom/Makefile | 1 + .../pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c | 174 ++++++++++++++++++ 5 files changed, 340 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c
Signature · 1 line
2.53.0
PATCH 1/3 dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
Add the pin controller for the audio Low-Power Island (LPI) on SDM670.
--- .../qcom,sdm670-lpass-lpi-pinctrl.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +81 -0
@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM670 SoC LPASS LPI TLMM + +maintainers: + - Richard Acayan <[email protected]> + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SDM670 SoC. + +properties: + compatible: + const: qcom,sdm670-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sdm670-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sdm670-lpass-state" + additionalProperties: false + +$defs: + qcom-sdm670-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|1[0-9]|2[0-9]|3[0-1])$" + + function: + enum: [ gpio, comp_rx, dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, + lpi_cdc_rst, mclk0, pdm_tx, pdm_clk, pdm_rx, pdm_sync, sec_tdm, + sec_tdm_din, sec_tdm_dout ] + description: + Specify the alternative function to be configured for the specified + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0x62b40000 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + + cdc_comp_default: cdc-comp-default-state { + pins = "gpio22", "gpio24"; + function = "comp_rx"; + drive-strength = <4>; + }; + };
Signature · 1 line
2.53.0
Re: [PATCH 1/3] dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
Quoted 1 line · Richard Acayan
Add the pin controller for the audio Low-Power Island (LPI) on SDM670.
Subject: Missing "LPASS" before LPI. I really thought you just add TLMM...
Quoted 26 lines
Signed-off-by Richard Acayan <[email protected]>--- .../qcom,sdm670-lpass-lpi-pinctrl.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yamlDocumentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +13
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM670 SoC LPASS LPI TLMM + +maintainers: + - Richard Acayan <[email protected]> + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +10
-0+ (LPASS) Low Power Island (LPI) of Qualcomm SDM670 SoC. + +properties: + compatible: + const: qcom,sdm670-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers +
Hm, no clocks? In most designs there has to be HW macro or HW codec vote. I see SDM660 does not have it either, but I think this might be exactly the same mistake.
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml line 32
Quoted 9 lines
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +9
-0+patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sdm670-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sdm670-lpass-state" + additionalProperties: false +
Best regards,
Krzysztof
Re: [PATCH 1/3] dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
Quoted 4 lines · Krzysztof Kozlowski
Quoted 1 line · Richard Acayan
Add the pin controller for the audio Low-Power Island (LPI) on SDM670.
Subject: Missing "LPASS" before LPI. I really thought you just add TLMM...
Added, but does this extend to the other patches as well?
Quoted 32 lines
Quoted 32 lines
Signed-off-by Richard Acayan <[email protected]>--- .../qcom,sdm670-lpass-lpi-pinctrl.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yamlDocumentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +19
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM670 SoC LPASS LPI TLMM + +maintainers: + - Richard Acayan <[email protected]> + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SDM670 SoC. + +properties: + compatible: + const: qcom,sdm670-lpass-lpi-pinctrl +
Quoted 8 lines
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-lpass-lpi-pinctrl.yaml new file +4
-0+ reg: + items: + - description: LPASS LPI TLMM Control and Status registers +Hm, no clocks? In most designs there has to be HW macro or HW codec vote. I see SDM660 does not have it either, but I think this might be exactly the same mistake.
No clocks for the pin controller, unless the ADSP enables them on its own.
I see other clocks required for full sound support (including some board-specific codecs), which are unrelated:
- INT_MCLK_0
- PRI_TDM_IBIT
- SEC_TDM_IBIT
- INT0_MI2S_IBIT
- INT3_MI2S_IBIT
Re: [PATCH 1/3] dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
In reply to Richard AcayanQuoted 4 lines · Richard Acayan
Add the pin controller for the audio Low-Power Island (LPI) on SDM670.
Signed-off-by Richard Acayan <[email protected]>---
Best regards,
Krzysztof
PATCH 2/3 pinctrl: qcom: add sdm670 lpi tlmm
In reply to Richard AcayanThe Snapdragon 670 has an Low-Power Island (LPI) TLMM for configuring pins related to audio. Add the driver for this.
--- drivers/pinctrl/qcom/Kconfig | 10 + drivers/pinctrl/qcom/Makefile | 1 + .../pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c | 174 ++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c
drivers/pinctrl/qcom/Kconfig +10 -0
@@ -88,6 +88,16 @@ config PINCTRL_SM4250_LPASS_LPI Qualcomm Technologies Inc LPASS (Low Power Audio SubSystem) LPI (Low Power Island) found on the Qualcomm Technologies Inc SM4250 platform. +config PINCTRL_SDM670_LPASS_LPI + tristate "Qualcomm Technologies Inc SDM670 LPASS LPI pin controller driver" + depends on GPIOLIB + depends on ARM64 || COMPILE_TEST + depends on PINCTRL_LPASS_LPI + help + This is the pinctrl, pinmux, pinconf and gpiolib driver for the + Qualcomm Technologies Inc LPASS (Low Power Audio SubSystem) LPI + (Low Power Island) found on the Qualcomm Technologies Inc SDM670 platform. + config PINCTRL_SM6115_LPASS_LPI tristate "Qualcomm Technologies Inc SM6115 LPASS LPI pin controller driver" depends on ARM64 || COMPILE_TEST
drivers/pinctrl/qcom/Makefile +1 -0
@@ -48,6 +48,7 @@ obj-$(CONFIG_PINCTRL_SC8280XP) += pinctrl-sc8280xp.o obj-$(CONFIG_PINCTRL_SDM660) += pinctrl-sdm660.o obj-$(CONFIG_PINCTRL_SDM660_LPASS_LPI) += pinctrl-sdm660-lpass-lpi.o obj-$(CONFIG_PINCTRL_SDM670) += pinctrl-sdm670.o +obj-$(CONFIG_PINCTRL_SDM670_LPASS_LPI) += pinctrl-sdm670-lpass-lpi.o obj-$(CONFIG_PINCTRL_SDM845) += pinctrl-sdm845.o obj-$(CONFIG_PINCTRL_SDX55) += pinctrl-sdx55.o obj-$(CONFIG_PINCTRL_SDX65) += pinctrl-sdx65.o
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +174 -0
174 lines not on this page · raw message
Signature · 1 line
2.53.0
Re: [PATCH 2/3] pinctrl: qcom: add sdm670 lpi tlmm
Quoted 5 lines · Richard Acayan
The Snapdragon 670 has an Low-Power Island (LPI) TLMM for configuring pins related to audio. Add the driver for this.
Signed-off-by Richard Acayan <[email protected]>---
[...]
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 96
Quoted 11 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +11
-0+const struct lpi_pingroup sdm670_lpi_pinctrl_groups[] = { +LPI_PINGROUP (0 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (1 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (2 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (3 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (4 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (5 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (6 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (7 ,LPI_NO_SLEW , _, _, _, _), + +LPI_PINGROUP (8 ,LPI_NO_SLEW , _, _, sec_tdm, _),
"i2s1_clk"
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 97
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(9, LPI_NO_SLEW, _, _, sec_tdm, _),
"i2s1_ws"
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 98
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(10, LPI_NO_SLEW, _, _, _, sec_tdm_din),
"i2s1_data"
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 99
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(11, LPI_NO_SLEW, _, sec_tdm_dout, _, _),
"i2s1_data"
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 108
Quoted 9 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +9
-0+ +LPI_PINGROUP (12 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (13 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (14 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (15 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (16 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (17 ,LPI_NO_SLEW , _, _, _, _), + + LPI_PINGROUP(18, LPI_NO_SLEW, _, pdm_clk, _, _),
"slimbus_clk"
Konrad
Re: [PATCH 2/3] pinctrl: qcom: add sdm670 lpi tlmm
Quoted 27 lines · Konrad Dybcio
Quoted 5 lines · Richard Acayan
The Snapdragon 670 has an Low-Power Island (LPI) TLMM for configuring pins related to audio. Add the driver for this.
Signed-off-by Richard Acayan <[email protected]>---
[...]
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 96
Quoted 11 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +11
-0+const struct lpi_pingroup sdm670_lpi_pinctrl_groups[] = { +LPI_PINGROUP (0 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (1 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (2 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (3 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (4 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (5 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (6 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (7 ,LPI_NO_SLEW , _, _, _, _), + +LPI_PINGROUP (8 ,LPI_NO_SLEW , _, _, sec_tdm, _),"
i2s1_clk"drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 97
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(9, LPI_NO_SLEW, _, _, sec_tdm, _),"
i2s1_ws"
Quoted 7 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 98
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(10, LPI_NO_SLEW, _, _, _, sec_tdm_din),"
i2s1_data"drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 99
Quoted 1 line
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +1
-0+ LPI_PINGROUP(11, LPI_NO_SLEW, _, sec_tdm_dout, _, _),"
i2s1_data"
What are the pinfunc numbers for these? Or are the pinfuncs the same between I2S and TDM?
Quoted 11 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 108
Quoted 9 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +9
-0+ +LPI_PINGROUP (12 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (13 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (14 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (15 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (16 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (17 ,LPI_NO_SLEW , _, _, _, _), + + LPI_PINGROUP(18, LPI_NO_SLEW, _, pdm_clk, _, _),"
slimbus_clk"
Again, what pinfunc? Is PDM, the protocol between analog and digital codec, using the SLIM clock?
Re: [PATCH 2/3] pinctrl: qcom: add sdm670 lpi tlmm
Quoted 7 lines · Richard Acayan
Quoted 6 lines · Konrad Dybcio
Quoted 5 lines · Richard Acayan
The Snapdragon 670 has an Low-Power Island (LPI) TLMM for configuring pins related to audio. Add the driver for this.
Signed-off-by Richard Acayan <[email protected]>---
[...]
Quoted 11 lines
Quoted 10 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c line 108
Quoted 8 lines
drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c new file +8
-0+LPI_PINGROUP (12 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (13 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (14 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (15 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (16 ,LPI_NO_SLEW , _, _, _, _), +LPI_PINGROUP (17 ,LPI_NO_SLEW , _, _, _, _), + + LPI_PINGROUP(18, LPI_NO_SLEW, _, pdm_clk, _, _),"
slimbus_clk"
Quoted 2 lines
Again, what pinfunc? Is PDM, the protocol between analog and digital codec, using the SLIM clock?
Where I suggested other names, they're at the same index as the existing entries, just that they align better with the documentation I have
Konrad
PATCH 3/3 arm64: dts: qcom: sdm670: add lpi pinctrl
In reply to Richard AcayanThe Snapdragon 670 has a separate TLMM for audio pins. Add the device node for it.
--- arch/arm64/boot/dts/qcom/sdm670.dtsi | 74 ++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+)
arch/arm64/boot/dts/qcom/sdm670.dtsi +74 -0
@@ -2273,5 +2273,79 @@ cpufreq_hw: cpufreq@17d43000 { #freq-domain-cells = <1>; }; + + lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0 0x62b40000 0 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + status = "disabled"; + + cdc_pdm_default: cdc-pdm-default-state { + clk-pins { + pins = "gpio18"; + function = "pdm_clk"; + drive-strength = <4>; + output-low; + }; + + sync-pins { + pins = "gpio19"; + function = "pdm_sync"; + drive-strength = <4>; + output-low; + }; + + tx-pins { + pins = "gpio20"; + function = "pdm_tx"; + drive-strength = <8>; + }; + + rx-pins { + pins = "gpio21", "gpio23", "gpio25"; + function = "pdm_rx"; + drive-strength = <4>; + output-low; + }; + }; + + cdc_comp_default: cdc-comp-default-state { + pins = "gpio22", "gpio24"; + function = "comp_rx"; + drive-strength = <4>; + }; + + cdc_dmic_default: cdc-dmic-default-state { + clk1-pins { + pins = "gpio26"; + function = "dmic1_clk"; + drive-strength = <8>; + output-high; + }; + + clk2-pins { + pins = "gpio28"; + function = "dmic2_clk"; + drive-strength = <8>; + output-high; + }; + + data1-pins { + pins = "gpio27"; + function = "dmic1_data"; + drive-strength = <8>; + input-enable; + }; + + data2-pins { + pins = "gpio29"; + function = "dmic2_data"; + drive-strength = <8>; + input-enable; + }; + }; + }; }; };
Signature · 1 line
2.53.0
Re: [PATCH 3/3] arm64: dts: qcom: sdm670: add lpi pinctrl
Quoted 14 lines · Richard Acayan
The Snapdragon 670 has a separate TLMM for audio pins. Add the device node for it.
Signed-off-by Richard Acayan <[email protected]>--- arch/arm64/boot/dts/qcom/sdm670.dtsi | 74 ++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+)arch/arm64/boot/dts/qcom/sdm670.dtsi +0
-0@@ -2273,5 +2273,79 @@ cpufreq_hw: cpufreq@17d43000 {
arch/arm64/boot/dts/qcom/sdm670.dtsi cpufreq_hw: cpufreq@17d43000 { · line 2283
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm670.dtsi +8
-0#freq-domain-cells = <1>; }; + + lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0 0x62b40000 0 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + status = "disabled";
Why is this disabled? We disable blocks needing external resources or being busses/connectors. This is not the case.
Best regards,
Krzysztof
Re: [PATCH 3/3] arm64: dts: qcom: sdm670: add lpi pinctrl
Quoted 11 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/sdm670.dtsi cpufreq_hw: cpufreq@17d43000 { · line 2283
Quoted 7 lines · Richard Acayan
arch/arm64/boot/dts/qcom/sdm670.dtsi +7
-0+ lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0 0x62b40000 0 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + status = "disabled";Why is this disabled? We disable blocks needing external resources or being busses/connectors. This is not the case.
There are reserved GPIOs on the Pixel 3a. Since commit 4f0d22ec60ce ("pinctrl: lpass-lpi: implement .get_direction() for the GPIO driver"), this can't be probed when the reserved GPIOs are unspecified.
Re: [PATCH 3/3] arm64: dts: qcom: sdm670: add lpi pinctrl
Quoted 13 lines · Richard Acayan
Quoted 11 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/sdm670.dtsi cpufreq_hw: cpufreq@17d43000 { · line 2283
Quoted 7 lines · Richard Acayan
arch/arm64/boot/dts/qcom/sdm670.dtsi +7
-0+ lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0 0x62b40000 0 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + status = "disabled";Why is this disabled? We disable blocks needing external resources or being busses/connectors. This is not the case.
Quoted 3 lines
There are reserved GPIOs on the Pixel 3a. Since commit
4f0d22ec60ce("pinctrl: lpass-lpi: implement .get_direction() for the GPIO driver"), this can't be probed when the reserved GPIOs are unspecified.
Are all of them reserved?
Does gpio-reserved-ranges help?
Konrad
Re: [PATCH 3/3] arm64: dts: qcom: sdm670: add lpi pinctrl
Quoted 14 lines · Konrad Dybcio
Quoted 13 lines · Richard Acayan
Quoted 11 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/sdm670.dtsi cpufreq_hw: cpufreq@17d43000 { · line 2283
Quoted 7 lines · Richard Acayan
arch/arm64/boot/dts/qcom/sdm670.dtsi +7
-0+ lpi_tlmm: pinctrl@62b40000 { + compatible = "qcom,sdm670-lpass-lpi-pinctrl"; + reg = <0 0x62b40000 0 0x20000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 32>; + status = "disabled";Why is this disabled? We disable blocks needing external resources or being busses/connectors. This is not the case.
Quoted 7 lines
Quoted 3 lines
There are reserved GPIOs on the Pixel 3a. Since commit
4f0d22ec60ce("pinctrl: lpass-lpi: implement .get_direction() for the GPIO driver"), this can't be probed when the reserved GPIOs are unspecified.Are all of them reserved?
Does gpio-reserved-ranges help?
Yes. It would need changes in dt-bindings and in sdm670-google-common.dtsi (introducing a dependency on Pixel 3a XL support).
Linus Walleij
maintainerQuoted 8 lines · Richard Acayan
This adds support for the LPASS LPI pin controller on SDM670, which controls some audio pins (e.g. TDM or PDM busses). The ADSP patches are not sent yet.
Richard Acayan (3):
dt-bindings: pinctrl: qcom: Add SDM670 LPI pinctrl
pinctrl: qcom: add sdm670 lpi tlmm
arm64: dts: qcom: sdm670: add lpi pinctrl
The way I read it there are some review comments on 2/3, so resend this as soon as you manage to revise it.
Yours,
Linus Walleij