Loading Documentation/devicetree/bindings/input/touchscreen/ft5x06-ts.txt +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ Optional properties: - focaltech,fw-delay-era-flsh-ms : specify the erase flash delay in ms for firmware upgrade - focaltech,fw-auto-cal : specify whether calibration is needed after firmware upgrade - focaltech,fw-vkey-support : specify if virtual keys are supported through firmware - focaltech,ignore-id-check : specify ignore family-id check Example: i2c@f9923000{ Loading drivers/input/touchscreen/ft5x06_ts.c +4 −1 Original line number Diff line number Diff line Loading @@ -1250,6 +1250,9 @@ static int ft5x06_parse_dt(struct device *dev, pdata->fw_vkey_support = of_property_read_bool(np, "focaltech,fw-vkey-support"); pdata->ignore_id_check = of_property_read_bool(np, "focaltech,ignore-id-check"); rc = of_property_read_u32(np, "focaltech,family-id", &temp_val); if (!rc) pdata->family_id = temp_val; Loading Loading @@ -1450,7 +1453,7 @@ static int ft5x06_ts_probe(struct i2c_client *client, dev_info(&client->dev, "Device ID = 0x%x\n", reg_value); if (pdata->family_id != reg_value) { if ((pdata->family_id != reg_value) && (!pdata->ignore_id_check)) { dev_err(&client->dev, "%s:Unsupported controller\n", __func__); goto free_reset_gpio; } Loading include/linux/input/ft5x06_ts.h +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ struct ft5x06_ts_platform_data { bool fw_vkey_support; bool no_force_update; bool i2c_pull_up; bool ignore_id_check; int (*power_init) (bool); int (*power_on) (bool); }; Loading Loading
Documentation/devicetree/bindings/input/touchscreen/ft5x06-ts.txt +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ Optional properties: - focaltech,fw-delay-era-flsh-ms : specify the erase flash delay in ms for firmware upgrade - focaltech,fw-auto-cal : specify whether calibration is needed after firmware upgrade - focaltech,fw-vkey-support : specify if virtual keys are supported through firmware - focaltech,ignore-id-check : specify ignore family-id check Example: i2c@f9923000{ Loading
drivers/input/touchscreen/ft5x06_ts.c +4 −1 Original line number Diff line number Diff line Loading @@ -1250,6 +1250,9 @@ static int ft5x06_parse_dt(struct device *dev, pdata->fw_vkey_support = of_property_read_bool(np, "focaltech,fw-vkey-support"); pdata->ignore_id_check = of_property_read_bool(np, "focaltech,ignore-id-check"); rc = of_property_read_u32(np, "focaltech,family-id", &temp_val); if (!rc) pdata->family_id = temp_val; Loading Loading @@ -1450,7 +1453,7 @@ static int ft5x06_ts_probe(struct i2c_client *client, dev_info(&client->dev, "Device ID = 0x%x\n", reg_value); if (pdata->family_id != reg_value) { if ((pdata->family_id != reg_value) && (!pdata->ignore_id_check)) { dev_err(&client->dev, "%s:Unsupported controller\n", __func__); goto free_reset_gpio; } Loading
include/linux/input/ft5x06_ts.h +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ struct ft5x06_ts_platform_data { bool fw_vkey_support; bool no_force_update; bool i2c_pull_up; bool ignore_id_check; int (*power_init) (bool); int (*power_on) (bool); }; Loading