From 9aa1399ebaf0da37f4c24a1b36301c791078437a Mon Sep 17 00:00:00 2001 From: Mayank Grover Date: Mon, 27 Jul 2020 13:28:31 +0530 Subject: [PATCH] driver: pinctrl: Add reserved GPIOs for Holi Certain GPIOs are reserved for secure world and cannot be accessed by HLOS. Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid. Change-Id: I07807f37adfd6d90e7b1bdc72b2106520f378b02 Signed-off-by: Mayank Grover --- drivers/pinctrl/qcom/pinctrl-holi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-holi.c b/drivers/pinctrl/qcom/pinctrl-holi.c index d57111c20c94..692723dd5d76 100644 --- a/drivers/pinctrl/qcom/pinctrl-holi.c +++ b/drivers/pinctrl/qcom/pinctrl-holi.c @@ -1532,6 +1532,10 @@ static const struct msm_pingroup holi_groups[] = { [163] = SDC_QDSD_PINGROUP(sdc2_data, 0x1a2000, 9, 0), }; +static const int holi_reserved_gpios[] = { + 13, 14, 15, 16, 45, 46, 56, 57, -1 +}; + static const struct msm_gpio_wakeirq_map holi_mpm_map[] = { {0, 84}, {3, 6}, @@ -1609,6 +1613,7 @@ static const struct msm_pinctrl_soc_data holi_pinctrl = { .nfunctions = ARRAY_SIZE(holi_functions), .groups = holi_groups, .ngroups = ARRAY_SIZE(holi_groups), + .reserved_gpios = holi_reserved_gpios, .ngpios = 157, .wakeirq_map = holi_mpm_map, .nwakeirq_map = ARRAY_SIZE(holi_mpm_map),