racky
January 25, 2025, 2:54pm
1
I have researched the net, tried every way possible to get this 3W to use a I2C display but can’t find a way to make it work.
Details:
Latest Radxa Debian
RSetup to use I2C3-M0
installed all tools and see the display using i2cdetect -y 3
Using SDA/SCK on pins 3 and 5 respectively
Help???
Nasca
January 26, 2025, 1:46am
2
i2c3-m0 was occupied by kernel, maybe you need to write the ssd1306 node in the kernel’s dts if you want use i2c3-m0, I’d suggest you try using another i2c bus.
committed 02:44AM - 19 Nov 24 UTC
&vop {
status = "okay";
assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
};
&vop_mmu {
status = "okay";
};
&i2c3 {
status = "okay";
pinctrl-0 = <&i2c3m1_xfer>;
usbc0: fusb302@22 {
compatible = "fcs,fusb302";
reg = <0x22>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PC7 IRQ_TYPE_LEVEL_LOW>;
sel-gpios= <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
Nasca
January 26, 2025, 1:49am
3
to let ssd1306 work, you can refer to this sample code
racky
January 26, 2025, 5:09am
4
Thank you, this was very helpful and I was able to use it on I2c-4 after activating it in rsetup.
Now it’s up to me to write the code.
Thanks for getting back quickly.