linux-stable/drivers/pinctrl/qcom
Timur Tabi e508099084 pinctrl: qcom: qdf2xxx: add support for new ACPI HID QCOM8002
Newer versions of the firmware for the Qualcomm Datacenter Technologies
QDF2400 restricts access to a subset of the GPIOs on the TLMM.  To
prevent older kernels from accidentally accessing the restricted GPIOs,
we change the ACPI HID for the TLMM block from QCOM8001 to QCOM8002,
and introduce a new property "gpios".  This property is an array of
specific GPIOs that are accessible.  When an older kernel boots on
newer (restricted) firmware, it will fail to probe.

To implement the sparse GPIO map, we register all of the GPIOs, but
fill in the data only for available GPIOs.  This ensures that the driver
cannot accidentally access an unavailable GPIO.

The pinctrl-msm driver also scans the "gpios" property to determine
which pins are available, and ensure that only those can be registered.

Support for QCOM8001 is removed as there is no longer any firmware that
implements it.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-05-02 14:36:08 +02:00
..
Kconfig pinctrl: qcom: Add sdm845 pinctrl driver 2018-02-12 10:47:23 +01:00
Makefile pinctrl: qcom: Add sdm845 pinctrl driver 2018-02-12 10:47:23 +01:00
pinctrl-apq8064.c
pinctrl-apq8084.c
pinctrl-ipq4019.c
pinctrl-ipq8064.c
pinctrl-ipq8074.c
pinctrl-mdm9615.c
pinctrl-msm.c pinctrl: qcom: remove static globals to allow multiple TLMMs 2018-05-02 14:36:08 +02:00
pinctrl-msm.h
pinctrl-msm8x74.c
pinctrl-msm8660.c
pinctrl-msm8916.c
pinctrl-msm8960.c
pinctrl-msm8994.c
pinctrl-msm8996.c
pinctrl-msm8998.c pinctrl: msm8998: Remove owner assignment from platform_driver 2018-03-27 14:05:11 +02:00
pinctrl-qdf2xxx.c pinctrl: qcom: qdf2xxx: add support for new ACPI HID QCOM8002 2018-05-02 14:36:08 +02:00
pinctrl-sdm845.c pinctrl: qcom: Add sdm845 pinctrl driver 2018-02-12 10:47:23 +01:00
pinctrl-spmi-gpio.c
pinctrl-spmi-mpp.c
pinctrl-ssbi-gpio.c
pinctrl-ssbi-mpp.c