]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: qcom: make compatible with linux DTs
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 14 Nov 2023 12:55:42 +0000 (12:55 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:52 +0000 (12:26 +0000)
commit2c2cc3e9c0273d4ecfd33c17fc6fb50a8fb5bcf5
tree186e44ac52b68552e5fd54d3f29dc887a875c40a
parent24d2908e987af6b435ac818eda44fe81152296fb
pinctrl: qcom: make compatible with linux DTs

The pinctrl and GPIO drivers are currently heavily incompatible with
upstream. Most Qualcomm pinctrl blocks feature "tiles" of pins, each at
it's own address. Introduce support for these by allowing the soc driver
to specify per-pin register offsets similarly to the Linux driver.

Adjust the GPIO driver to handle these too, and finally enable support
for all pins with the same numbering as used in Linux.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
13 files changed:
arch/arm/dts/dragonboard845c-uboot.dtsi
arch/arm/dts/sdm845.dtsi
arch/arm/dts/starqltechn-uboot.dtsi
arch/arm/dts/starqltechn.dts
arch/arm/mach-snapdragon/include/mach/gpio.h
drivers/gpio/msm_gpio.c
drivers/pinctrl/qcom/pinctrl-apq8016.c
drivers/pinctrl/qcom/pinctrl-apq8096.c
drivers/pinctrl/qcom/pinctrl-ipq4019.c
drivers/pinctrl/qcom/pinctrl-qcom.c
drivers/pinctrl/qcom/pinctrl-qcom.h
drivers/pinctrl/qcom/pinctrl-qcs404.c
drivers/pinctrl/qcom/pinctrl-sdm845.c