Analog.com
Analog
Dialogue
Wiki
English
Analog.com
Analog
Dialogue
Wiki
简体中文
EngineerZone
Site
Search
User
Site
Search
User
EngineerZone
Search
Log in
Site
Search
Log in
Home
Blogs ⌵
EngineerZone Spotlight
The Engineering Mind
Browse ⌵
All Groups
All Members
Support ⌵
3D ToF Depth Sensing
Amplifiers
Analog Microcontrollers
Audio
Clock and Timing
Data Converters
Design Tools and Calculators
Direct Digital Synthesis (DDS)
Embedded Vision Sensing
Energy Monitoring and Metering
FPGA Reference Designs
Industrial Ethernet
Interface and Isolation
Low Power RF Transceivers
MEMS Inertial Sensors
Motor Control Hardware Platforms
Optical Sensing
Power By Linear
Processors and DSP
Reference Circuits
RF and Microwave
Switches/Multiplexers
Temperature Sensors
Video
Wide Band RF Transceivers
Wireless Sensor Networks Reference Library
My EZ
More
Cancel
主页
浏览 ⌵
收件箱
个人设置
会员
专区列表
论坛专区 ⌵
放大器专区
精密转换器专区
音频专区
ADE电能计量专区
MEMS和传感器专区
接口和隔离专区
Power 中文专区
ADUC微处理器专区
锁相环专区
开关和多路复用器专区
温度传感器
基准电压源专区
资源库
论坛使用指南
技术支持参考库
在线研讨会
论坛社群活动
论坛激励活动
More
Cancel
Linux Software Drivers
Q&A
LTC2631
Q&A
Discussions
Documents
File Uploads
Video/Images
Tags
Managers
More
Cancel
New
Linux Software Drivers requires membership for participation - click to join
State
Verified Answer
Replies
2 replies
Subscribers
62 subscribers
Views
843 views
Users
0 members are here
ltc2631
Options
Share
More
Cancel
Related
LTC2631
mirianas
on Oct 31, 2017
Hi,
we are trying to use the ad5064 driver with latest patch for LTC2631 (one
channel DAC).
When we try to output some voltage we get: "
-
sh: echo: write error: No such device or address"
One possibility is that the driver does not seem to read the I2C address from the device tree. I have inserted a few printk statements into "
ad5064_i2c_write" function to
print out the return value and address value:
This is the full output:
root@qcom:/sys/bus/iio/devices/iio:device1# cat uevent
MAJOR=247
MINOR=1
DEVNAME=iio:device1
DEVTYPE=iio_device
OF_NAME=ltc2631-l10
OF_FULLNAME=/soc/i2c@78b8000/ltc2631-l10@20
OF_COMPATIBLE_0=adi,ltc2631-l10
OF_COMPATIBLE_N=1
root@qcom:/sys/bus/iio/devices/iio:device1# echo 200 > out_voltage0_raw
[ 4004.255429]
[ 4004.255429] Attempting to write to LTC2631
[ 4004.255711]
[ 4004.255711] Number of bytes sent over I2C: -6 to I2C address: 0
-sh: echo: write error: No such device or address
are the required device tree entries for ad5064 driver (for the case of I2C interace) documented somewhere?
This is our device tree entry:
&blsp_i2c4 {
status = "okay";
ltc2631-l10@20 {
compatible = "adi,ltc2631-l10";
eg = <0x20>;
};
};
Printing diagnostic information from ad5064_i2c_write function indicates
that adrr value is zero while I assume it should be 0x20. Any advice? I tried to force it to be 0x20 in the driver but that did not make any difference, it still reports "
write error: No such device or address"
Thank you.
Mirianas