nova_mmi: add active pinctrl

Nova TP reset pin is connected to VDDI in TP module.
So this pin should set to input float pin if nova IC is used.

Change-Id: Id8e71487603504661a8a87e0ea066636e99f2f17
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1210685
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2018-07-18 00:33:43 +08:00 • committed by Jialei Hao
commit 9b736c7f56

View file

@ -39,6 +39,7 @@
#include <linux/wakelock.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/pinctrl/consumer.h>
#if defined(CONFIG_HQ_DEV_INFO)
#include <linux/dev_info.h>
@ -1299,6 +1300,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i
#if ((TOUCH_KEY_NUM > 0) || WAKEUP_GESTURE)
int32_t retry = 0;
#endif
struct pinctrl *pinctrl;
NVT_LOG("start\n");
@ -1319,6 +1321,12 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i
goto err_gpio_config_failed;
}
pinctrl = devm_pinctrl_get_select(&client->dev, "active");
if (IS_ERR(pinctrl)) {
long int error = PTR_ERR(pinctrl);
NVT_LOG("pinctrl failed err %ld\n", error);
}
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
NVT_ERR("i2c_check_functionality failed. (no I2C_FUNC_I2C)\n");
ret = -ENODEV;