|
When looking through devices connected to the I2C buses of my Orange Pi Plus2, I've found a device at address 0x48 on I2C bus 0:
root@orange:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
According to the contents of the `/sys' directory and the schematic diagrams of similar Orange Pi H3 based boards, I2C bus 0 is TWI0, the I2C bus which originates at the TWI0_SDA (C13) and TWI0_SCK (F1) terminals of the processor. Those terminals are connected to pins 3 and 5 of the 40-pin header, respectively.
There were no external devices (boards/modules, adapters, a monitor or something) connected to the 40-pin header and the HDMI connector, so the device is definitely located on the board itself.
I'm running Armbian Jessie for Desktop v. 5.23 with the Linux 3.4.112-sun8i stock kernel for the Allwinner H3 SOC. The device shows up as being a PCF8591 8-bit A/D and D/A converter, with the documentation available from the official NXP site at
www.nxp.com/documents/data_sheet/PCF8591.pdf:
alex@orange:~$ cat /sys/bus/i2c/devices/0-0048/name
pcf8591
From the system's point of view, after the initialization, it has four analog inputs and one output, as it should do:
alex@orange:~$ ls /sys/bus/i2c/devices/0-0048
driver in0_input in2_input modalias out0_enable power uevent
hwmon in1_input in3_input name out0_output subsystem
The readings of the device are constant, and all equal to 1860mV:
alex@orange:/sys/bus/i2c/devices/0-0048$ cat in0_input in1_input in2_input in3_input
1860
1860
1860
1860
Thus, the initialization of the device is somewhat successful, though I don't think it is really a PCF8591.
Unfortunately, the schematic diagram of the development board is not available. I couldn't find such a device in the schematic diagrams of the Orange Pi Plus, the Orange Pi One, the Orange Pi Plus 2E, the Orange Pi Mini, the Orange Pi PC2 and the Orange Pi PC Plus. There is nothing similar in the SO16 package soldered on the board, either. With an ohmmeter, I've tried to find an IC directly connected to pins 3 and 5 of the 40-pin header, but without success.
What really is the device? What can it be used for, and how can it be used?
|
|