LX2160A devices not detected?

From: Pierre-Luc Drouin <pldrouin_at_pldrouin.net>
Date: Tue, 16 Jan 2024 15:33:03 UTC
Hi,

I have seen that there is some support for the LX2160A SOC in FreeBSD: https://github.com/freebsd/freebsd-src/commit/36362eb0a0a1862a0898a6e17844a54f3f28f114#diff-00274f2856d4a354783db33e78b20c78092e2e29bf86f4c3e4022982ec64620b

From what I understand this is all done through device tree probing. However when I dump the ACPI table on my system, I don't have these device tree entries. I am using lx2160a_uefi. What type of bootloader is FreeBSD expecting instead of what I am currently using? Otherwise should it be possible to get device detection working by adding device tree entries into my DSDT, recompiling the AML with iasl and loading the table in /boot/loader.conf? Thanks!

On Saturday, January 6th, 2024 at 23:43, Pierre-Luc Drouin <pldrouin@pldrouin.net> wrote:

> Hi,
>
> I would like to get access to the AMC6821 I2C fan controller on my SolidRun HoneyComb LX2 board. Currently I only see it here:
>
> devinfo -v | grep I2C
> unknown pnpinfo _HID=NXP0001 _UID=0 _CID=none at handle=\_SB_.I2C0
> unknown pnpinfo _HID=NXP0002 _UID=0 _CID=none at handle=\_SB_.I2C0.MUX0
> unknown pnpinfo _HID=PRP0001 _UID=0 _CID=none at handle=\_SB_.I2C0.MUX0.CH01.FAN1
> unknown pnpinfo _HID=PRP0001 _UID=1 _CID=none at handle=\_SB_.I2C0.MUX0.CH03.THE1
> unknown pnpinfo _HID=NXP0001 _UID=1 _CID=none at handle=\_SB_.I2C1
>
> There is no iic device in /dev
>
> There is info regarding fan control on this board here: https://community.solid-run.com/t/fan-control/205
>
> Am I correct that the only way to get access to the controller from the OS side is to write an ACPI driver for it? What is involved exactly?
>
> Thanks!