Skip to content
  • Timur Tabi's avatar
    pinctrl: qcom: qdf2xxx: add support for new ACPI HID QCOM8002 · e5080990
    Timur Tabi authored and Linus Walleij's avatar Linus Walleij committed
    
    
    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: default avatarTimur Tabi <timur@codeaurora.org>
    Acked-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
    Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    e5080990