[RFC PATCH] riscv: dts: spacemit: initial i2c support for OrangePi RV2

Troy Mitchell troy.mitchell at linux.spacemit.com
Sun Nov 2 18:44:25 PST 2025


On Mon, Oct 27, 2025 at 09:18:50AM +0800, Troy Mitchell wrote:
> On Sat, Oct 25, 2025 at 07:48:45AM +0000, Michael Opdenacker wrote:
> > Greetings,
> > 
> > On 10/25/25 09:45, michael.opdenacker at rootcommit.com wrote:
> > > From: Michael Opdenacker <michael.opdenacker at rootcommit.com>
> [...]
> > > +&i2c2 {
> > > +	pinctrl-0 = <&i2c2_0_cfg>;
> > > +	pinctrl-names = "default";
> > > +	status = "okay";
> > > +};
> > > +
> > > +&i2c8 {
> > > +	pinctrl-0 = <&i2c8_cfg>;
> > > +	pinctrl-names = "default";
> > > +	status = "okay";
> > > +};
> > > +
> > >   &pdma {
> > >   	status = "okay";
> > >   };
> > 
> > 
> > Unfortunately, these changes are not functional yet on OrangePi RV2, testing
> > on https://github.com/spacemit-com/linux/commits/k1/dt-for-next
> > 
> > # i2cdetect -r 2
> > WARNING! This program can confuse your I2C bus, cause data loss and worse!
> > I will probe file /dev/i2c-2 using receive byte commands.
> > I will probe address range 0x08-0x77.
> > Continue? [Y/n]
> >      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
> > 00:        [  124.675321] i2c-k1 d4012000.i2c: i2c transfer failed, ret -11
> > err 0x400000
I recall that the PMIC sometimes reports I2C timeouts.
Could you please confirm if you’re seeing this issue on your side?
If so, does it still occur when using my branch?

Thanks!

                            - Troy



More information about the linux-riscv mailing list