From nobody Tue Jan 16 17:25:47 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TDwsB2QZmz57fb8 for ; Tue, 16 Jan 2024 17:26:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TDwsB01kQz4m8d for ; Tue, 16 Jan 2024 17:26:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705425962; bh=i9VgB8cw7SuJnpjaCfpSWEZTEYmynu55oM4ufYOcKbo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ABlmVDN7xeODUKzcsYdypi8vptJENfdHt8niGExIv+EwImOxR36VcxGqLsQQ66uHYlsBQMG6kw6oCGlaVG4P0DVdly3DXVthMK0CCarJYkEk8L7GWFewV4joa2o3A9v3XpY5BGnaNR1N9YFkoVlYAYdffdukqXWrHjS6zxmiZ8iSLOWct45cv5Xg3EveTRmFDbu2W0Vq1vAOAdbvFtDs46dvAQQtc3n0aIR18qLLIIdwRbOoNth7OTqjjuQuFDM/PMSaKYv2vVavkay5MoQBOyOuCqjgn+QB/Nbjqr4tRAmkXzfqUj5eJZAuxqmcgxSiis3M+ZdQdC1Se42hxs7tNw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705425962; bh=f+va1jatdrnS0UZkDZPHUXjaL93+2G3f1f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P6tj7JevldY5An8ZfN6dLfbcDw56YRQZzLDSnd7OdhnPrqx86qUoJmI0IdCUbW0No p_I6OC6uqVL8qMaEiHrfxvzvjx1VaxaW1slb6iH2PhTbotbiMnFLDM0KEIF9fe24JSIeqyB3xFHx GjLJyT2qRLOIaiPm4QduPJJ8VcDS96UXKMr866ZrnPZaGEFwdIoxsLXCDHnG09_AOtPlrIHVLph2 7dKmxWyFtPgRKYayee802ZoN10W8zGAE6Dw_miTXxY5Y5dnV0FgPFWdgoDxXAzzH0slTrC5wSuna YoJmL2dqkzJXehfM.Jknn4K_.9IDVAlsOLEOKndgGWuAN7GVpRroAEyQ5UIE8gXR.b1j077iLhQU ckit4ZedGzL5vUli9T9lxPovWGt2gCna3EWld08AgfT8gKDz4W35EFM.f8hrExV2n8xW1iiLNVD0 dwXr7swWvCDQwOGx2zRf0wn61u77U6UW7cbGBtFyMlu7Cflnq0Su622ZH6t7bo1mb9_cC3TsEvpG GOt3W1tcgqz4y7PtudYRU8.UuxdQ9TxGrDBoG52a629r5auL3jR.8x.p7hmjYoytuJjIfwW_GW2A - X-Sonic-MF: X-Sonic-ID: d0145922-6d81-4d7c-8d0d-3d264cd63228 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Tue, 16 Jan 2024 17:26:02 +0000 Received: by hermes--production-gq1-78d49cd6df-l5kjh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5ff5d3ae9d1c824b30712af66ef0045c; Tue, 16 Jan 2024 17:25:58 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: LX2160A devices not detected? From: Mark Millard In-Reply-To: Date: Tue, 16 Jan 2024 09:25:47 -0800 Cc: "freebsd-arm@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: <9CEB709A-8EC0-4214-A57D-B13ECEF3D709@yahoo.com> References: To: Pierre-Luc Drouin X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4TDwsB01kQz4m8d X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Jan 16, 2024, at 07:33, Pierre-Luc Drouin = wrote: > I have seen that there is some support for the LX2160A SOC in FreeBSD: = https://github.com/freebsd/freebsd-src/commit/36362eb0a0a1862a0898a6e17844= a54f3f28f114#diff-00274f2856d4a354783db33e78b20c78092e2e29bf86f4c3e4022982= ec64620b Standard ACPI does not present fdt. This is EDK2 based for this context. Standard fdt does not present ACPI. This is U-Boot based for this = context. As for what FreeBSD does: If a fdt is presented, ACPI is not used at all by default. If no fdt is presented, ACPI is used instead (if present). (I happened to ask that question recently.) So, as I understand it, FreeBSD does not, by default, ever use a mix of fdt and ACPI as things are. (I'm not claiming such can not be forced somehow, not that I'd know how.) Your diff is for fdt. So it appears that you need to be using U-Boot to involve that code (by default). Note the lack of the network processor for U-Boot: "All peripherals but the network processor are supported." This might mean needing a network dongle or some such in order to have Ethernet working. ACPI booting supports basic use of the 1Gbit/sec Ethernet port. (I do not know the status of anything fancier for the networking processor.) I've always booted ACPI style. There is no port for U-Boot as I remember. So you would have to deal with building something appropriate. The system that I've access to has a quieter fan and better heatsink but am also not bothered as much by such noises as some folks are. (Fan control seems to be the missing thing for ACPI relative to i2c.) > =46rom what I understand this is all done through device tree probing. For U-Boot and UEFI/fdt yes; for EDK2 and UEFI/ACPI no, at least by default. > However when I dump the ACPI table on my system, I don't have these = device tree entries. I am using lx2160a_uefi. So am I. > What type of bootloader is FreeBSD expecting instead of what I am = currently using? U-Boot provides UEFI+fdt instead of UEFI+ACPI. FreeBSD supports both = forms of UEFI with its normal boot loader. Since I use UEFI/ACPI I know the kernel supports what I use. I do not know if the kernel well supports fdt. I'm not aware of anyone reporting using the HoneyComb via FreeBSD with fdt. The one clear point is the lack of network processor support. > 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? If you want EDK2 (UEFI/ACPI) + fdt use mixed by FreeBSD, you likely have more work to do. I do not know any details. > Thanks! > On Saturday, January 6th, 2024 at 23:43, Pierre-Luc Drouin = wrote: >=20 >> Hi, >>=20 >> I would like to get access to the AMC6821 I2C fan controller on my = SolidRun HoneyComb LX2 board. Currently I only see it here: >>=20 >> devinfo -v | grep I2C >> unknown pnpinfo _HID=3DNXP0001 _UID=3D0 _CID=3Dnone at = handle=3D\_SB_.I2C0 >> unknown pnpinfo _HID=3DNXP0002 _UID=3D0 _CID=3Dnone at = handle=3D\_SB_.I2C0.MUX0 >> unknown pnpinfo _HID=3DPRP0001 _UID=3D0 _CID=3Dnone at = handle=3D\_SB_.I2C0.MUX0.CH01.FAN1 >> unknown pnpinfo _HID=3DPRP0001 _UID=3D1 _CID=3Dnone at = handle=3D\_SB_.I2C0.MUX0.CH03.THE1 >> unknown pnpinfo _HID=3DNXP0001 _UID=3D1 _CID=3Dnone at = handle=3D\_SB_.I2C1 >>=20 >> There is no iic device in /dev=20 >>=20 >> There is info regarding fan control on this board here: = https://community.solid-run.com/t/fan-control/205 >>=20 >> 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? >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com