From 8a987160ac972c07b61097107152c45a5d6d7825 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Wed, 18 Sep 2019 16:02:48 -0700 Subject: [PATCH] driver: pinctrl: Add reserved GPIOs for Lahaina 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: I896b1cc02221873341cb79db63fd61db155f5590 Signed-off-by: Elliot Berman --- drivers/pinctrl/qcom/pinctrl-lahaina.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-lahaina.c b/drivers/pinctrl/qcom/pinctrl-lahaina.c index d62cf7a085c2..417fee146be1 100644 --- a/drivers/pinctrl/qcom/pinctrl-lahaina.c +++ b/drivers/pinctrl/qcom/pinctrl-lahaina.c @@ -1836,6 +1836,10 @@ static const struct msm_pingroup lahaina_groups[] = { [206] = UFS_RESET(ufs_reset, 0x1d8000), }; +static const int lahaina_reserved_gpios[] = { + 52, 53, 54, 55, 56, 57, 58, 59, -1 +}; + static const struct msm_pinctrl_soc_data lahaina_pinctrl = { .pins = lahaina_pins, .npins = ARRAY_SIZE(lahaina_pins), @@ -1843,6 +1847,7 @@ static const struct msm_pinctrl_soc_data lahaina_pinctrl = { .nfunctions = ARRAY_SIZE(lahaina_functions), .groups = lahaina_groups, .ngroups = ARRAY_SIZE(lahaina_groups), + .reserved_gpios = lahaina_reserved_gpios, .ngpios = 203, };