pinctrl: qcom: sc8180x: add ACPI probe support
authorShawn Guo <shawn.guo@linaro.org>
Thu, 11 Mar 2021 02:41:02 +0000 (10:41 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Mar 2021 16:30:29 +0000 (17:30 +0100)
commit6d8d67988b1a2db04d9d6083a729e8abfeb725d7
treead652fcd9d5357735e8891837da137c3ef2726f4
parent552bad043709af377aa963a5db0b2bac0b0b2fab
pinctrl: qcom: sc8180x: add ACPI probe support

It adds ACPI probe support for pinctrl-sc8180x driver.  We have one
problem with ACPI table, i.e. GIO0 (TLMM) block has one single memory
resource to cover 3 tiles defined by SC8180X.  To follow the hardware
layout of 3 tiles which is already supported DT probe, it adds one
function to replace the original single memory resource with 3 named
ones for tiles.  With that, We can map memory for ACPI in the same way
as DT.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://lore.kernel.org/r/20210311024102.15450-1-shawn.guo@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/Kconfig
drivers/pinctrl/qcom/pinctrl-sc8180x.c