This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/TMP75:温度传感器移植会议(Android OS)

Guru**** 2589265 points
Other Parts Discussed in Thread: TMP75

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/612804/linux-tmp75-temperature-sensor-porting-confer-android-os

器件型号:TMP75

工具/软件:Linux

你(们)好  

抱歉、最近我尝试将 tmp75移植到 Android 操作系统、下面提供了一些信息

操作系统:Android 6.0.1

Linux 版本:4.1.15

第一步探测器驱动程序已经完成、功率 GPIO 设置完成、但 进入系统时、日志如下所示  

附件文件是我的 tmp75驱动程序(LM75.c / LM75.h)

能不能让任何人帮助我检查 为什么"thermical_zone_for_sensor_register()"可能会出现错误(红色数字[4.772457] data->tz 为-19 )

4.675158]****** 输入 dm5155_switch_AUX (CVBS)
[4.680067 CVBS 为1
[4.68367] dm5150 CVBSin1 (Mux0)
[4.687127]********* 在 dm5155_switch_AUX()中输入 dm5155_get_std
[4.693935] tmp 为0
[4.696133]视频标准无效!
[4.707995] VD_MISC:0x06
[4.710725]**** ioctl_g_fmt_cap 中
[4.715854] mxc_v4l2_output v4l2_out:注册为 video16的 V4L2器件
[4.722700] mxc_v4l2_output v4l2_out:v4L2器件注册为 video17
[4.729755] usbcore:注册的新接口驱动程序 uvcvideo
[4.735516] USB 视频类驱动程序(1.1.1)
[4.740640 添加 LM75驱动程序*******
[4.747357]**** 启动探头 tmp75****
[4.751382]探头开关****
[4.754707]种类是19
[4.757101]选择 tmp75
[4.759645]***** LM75_READ_VALUE 中
[4.763402] 1.
[4.765620]**** 探头状态为0
[4.769793]配置0x60
[4.772457] data->tz 为-19
[4.775264] data->tz is error****
[4.778792] 8??5%?
[4.782207] imx2-WDT 20bc000.wdog:超时60秒(nowaout=0)
[4.788660]设备映射器:uevent:版本1.0.3
[4.793701]设备映射器:ioctl:4.31.0-ioctl (2015-3-12)已初始化:dm-devel@redhat.com
[4.802263]蓝牙:HCI UART 驱动程序版本2.3
[4.806746]蓝牙:已注册 HCI UART 协议 H4
[4.811897]蓝牙:已注册 HCI UART 协议 BCSP
[4.817243]蓝牙:HCI UART 协议 ATH3K 已注册
[4.822768] usbcore:注册的新接口驱动程序 btusb
[4.828502] sdhci:安全数字主机控制器接口驱动程序
[4.834700] sdhci:版权所有(c) Pierre Osman

真 THX

e2e.ti.com/.../lm75.c

e2e.ti.com/.../lm75.h

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    TI 不支持直接开源驱动程序。 社区成员可能有一些指示。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你(们)好

    还可以。。。 我花了很多时间来解决这个问题,它首先起作用:)