Open WalterPrech opened 2 years ago
What sensor are you connecting and which pins on ROCK Pi do you connect? I suspect it's the voltage level issue.
I use the "blue" pins (pin 27 and 28).
In the meanwhile I figured out, that there were no overlays and no hw_intfc.conf file created in the build. And so no i2c was enabled.
I make a patch to rk3399-rock-pi-4.dtsi and added:
+&i2c2 {
+ clock-frequency = <400000>;
+ i2c-scl-rising-time-ns = <168>;
+ i2c-scl-falling-time-ns = <4>;
+ status = "okay";
+};
Now I can attach i2c-2 and get the sensors data.
Also it's a problem, that LINUX_VERSION = "4.4.154" is used. This should be 5.10 or higher.
I followed the instructions to build a yocto dunfell image for a Rockchip Pi 4b.
I build a console image
~/yocto/poky/build $ bitbake -k radxa-console-image
Testing i2c without connecting any i2c slaves get the following results:
If I connect some i2c-slaves, the result is exactly the same.
The i2c-address 0x18 should be shown for the connected sensor.
What's going wrong? Do I have to activate some settings and if yes where?