OpenHarmony开发者论坛

标题: hdf框架下触摸驱动适配问题 [打印本页]

作者: sharkfox    时间: 2024-10-21 16:05
标题: hdf框架下触摸驱动适配问题
【问题描述】
问题现象和发生的背景
开发板触摸芯片为gt9271,试着修改了input_config.hcs中的配置,成功启动触摸驱动,但是其分辨率与我在input_config.hcs里设置的不同,我设置的为1280x800,但是识别为1920x1200。

(, 下载次数: 0)

[ 2.817565] [I/device_node] launch devnode hdf_touch_gt911_service
[ 2.817603] [I/HDF_INPUT_DRV] HdfGoodixChipInit: enter
[ 2.817740] [I/HDF_LOG_TAG] ChipMatchCheck: boardNode's father name = touch0, chipNode's grandpa name = touch0
[ 2.865254] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[ 2.948675] [E/HDF_LOG_TAG] SetTiming: enable = 0
[ 2.992379] [E/HDF_LOG_TAG] InputI2cWrite: i2c write err
[ 2.992426] [E/HDF_LOG_TAG] SetResetStatus: InputI2cWrite failed, ret = -1
[ 2.992454] [E/HDF_LOG_TAG] SetTiming: SetResetStatus failed
[ 3.099044] [E/HDF_LOG_TAG] InputI2cRead: i2c read err
[ 3.099086] [E/HDF_INPUT_DRV] ChipDetect: read chip version failed
[ 3.099116] [I/HDF_LOG_TAG] ChipDriverInit: reset chip 19 time
[ 3.099164] [E/HDF_LOG_TAG] SetTiming: enable = 1
[ 3.360155] [E/HDF_INPUT_DRV] xSolution = 1920,ySolution = 1200
[ 3.360202] [I/HDF_INPUT_DRV] ChipDetect:IC FW version is 4192
[ 3.360228] [I/HDF_INPUT_DRV] ChipDetect:TOUCH IC is GT911
[ 3.360262] [I/HDF_INPUT_DRV] Product_ID: 9271_1060, x_sol = 1920, y_sol = 1200
[ 3.361151] [I/HDF_LOG_TAG] Clock ticks for an esd cycle: 600
[ 3.361192] [I/HDF_LOG_TAG] Esd protector started!
[ 3.361229] [I/HDF_LOG_TAG] ChipDriverInit: chipDetect succ, ret = 0
[ 3.361258] [I/HDF_LOG_TAG] ChipDriverInit: do not update firmware
[ 3.362006] [I/gpio_core] GpioIrqRecordCreate: gpio(101) thread started!
[ 3.362210] [I/linux_gpio_adapter] LinuxGpioSetIrq: gona request normal irq:122(101)!
[ 3.362210]
[ 3.362572] [I/HDF_LOG_TAG] RegisterInputDevice: enter
[ 3.362615] [I/HDF_LOG_TAG] RegisterInputDevice: enter devName=main_touch, devType=0
[ 3.362648] [I/HDF_LOG_TAG] CreateDeviceNode: create node succ, devId is 1
[ 3.363477] [E/HDF_LOG_TAG] HotPlugNotify: send event failed
[ 3.363525] [I/HDF_LOG_TAG] RegisterInputDevice: exit succ, devCount is 1
[ 3.363561] [I/HDF_INPUT_DRV] HdfGoodixChipInit: exit succ, chipName = gt911
[ 3.364134] [I/device_node] launch devnode

我尝试过的解决方法和结果
我尝试过更换touch_gt911.h里的firmWareParm,但没有效果。

ret = InputI2cRead(i2cClient, reg, GT_ADDR_LEN, buf, GT_CFG_INFO_LEN);
    if (ret < 0) {
        HDF_LOGE("%s: read chip version failed", __func__);
        return HDF_FAILURE;
    }

    version = (buf[GT_FW_VER_HIGH] << ONE_BYTE_OFFSET) | buf[GT_FW_VER_LOW];
    xSolution = (buf[GT_SOLU_X_HIGH] << ONE_BYTE_OFFSET) | buf[GT_SOLU_X_LOW];
    ySolution = (buf[GT_SOLU_Y_HIGH] << ONE_BYTE_OFFSET) | buf[GT_SOLU_Y_LOW];


在哪可以将对应的配置修改?
【运行环境】
设备:迅为itop-rk3568
系统:Openharmony4.1Release



作者: kuaile    时间: 2024-11-13 14:55
你好  ,可以提供完整的日志,才能看出问题出在哪里




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5