From nobody Tue Jan 11 10:50:45 2022 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 E51A7194D926 for ; Tue, 11 Jan 2022 10:51:04 +0000 (UTC) (envelope-from bscott@bunyatech.com.au) Received: from vmse01.mailcluster.com.au (vmse01.mailcluster.com.au [IPv6:2401:fc00:2:13f::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4JY6tZ3bgKz3Fwg for ; Tue, 11 Jan 2022 10:51:01 +0000 (UTC) (envelope-from bscott@bunyatech.com.au) Received: from vmcp43.digitalpacific.com.au ([101.0.119.58]) by vmse01.mailcluster.com.au with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1n7Ejo-0004FQ-5d for freebsd-arm@freebsd.org; Tue, 11 Jan 2022 21:50:50 +1100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bunyatech.com.au; s=default; h=Content-Transfer-Encoding:Content-Type: Subject:From:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+3aKdazOKe/wLBEXiRapYkKVpbVGXBKaCoHq6ESzn+w=; b=DuTEoPip41wOKd/De2ng492I0w a8WIqItsfPnoL2vhNknvDaHqOqqb/MbLZ0PNwXOXXpxq54CEtJrnH2imXOq4VnWo5rY8imrPGaQfv tbhk5k1X+qFalNBhBkRZ+VH8dm/frxq8+NBkS/BHvEmV63EeJtE35rLzi0RwcILM9pHmMBH/F1MLc dIrZwiGu4G+3vh8rvDIvmwysK9NbEPFJoyErn88AwcFm7ORKBRRAuxc7/NodUI/XFluPkqvby2y4E 1fqTPb7W5ZCnZv9SmjaBjgBHVrYfvF4IOqMKb7FXJD0I0ZvLkWf6G8GMmR0Vo7YeWnlF+mCtWivPf SdJLMG1g==; Received: from ppp221-139.static.internode.on.net ([150.101.221.139]:53475 helo=[10.0.1.106]) by vmcp43.digitalpacific.com.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1n7Ejm-007bzx-GW for freebsd-arm@freebsd.org; Tue, 11 Jan 2022 21:50:46 +1100 Message-ID: <7ddec2da-b22a-9d3d-b64b-6c8137ff8f6d@bunyatech.com.au> Date: Tue, 11 Jan 2022 21:50:45 +1100 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 To: freebsd-arm@freebsd.org From: Brian Scott Subject: RPi4B, POE+. Fan Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: bscott@bunyatech.com.au X-Authenticator: dovecot_plain X-Originating-IP: 101.0.119.58 X-SpamExperts-Domain: digipac-sh-outbound4.mailcluster.com.au X-SpamExperts-Username: 101.0.119.58 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9WLQux0N3HQm8ltz8rnu+BPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wOvGg18h18lTsuUGH1KgAagLCWYuPCxwJEfxKP87A95+fH zJ6mVE7ewsipSVIfs4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: 4JY6tZ3bgKz3Fwg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bunyatech.com.au header.s=default header.b=DuTEoPip; dmarc=none; spf=pass (mx1.freebsd.org: domain of bscott@bunyatech.com.au designates 2401:fc00:2:13f::6 as permitted sender) smtp.mailfrom=bscott@bunyatech.com.au X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bunyatech.com.au:s=default]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[bunyatech.com.au]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.992]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[bunyatech.com.au:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:55803, ipnet:2401:fc00::/32, country:AU]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi List, Is there a known method to get the fan running on the rpi-poe+ board under FreeBSD? It looks like it is controlled completely by the kernel in Linux land. Adding the rpi-poe dtb overlay has no effect on FreeBSD so I'm guessing there is no driver for it. From what I've read, its controlled by something on the iic bus used for HAT identification. Beyond that, information seems to get very scarce. The Linux driver operates it by sending messages to the firmware. This would be a lot more tricky than just sending commands to an iic device from userland and beyond my hacking skills. CPU temperature currently is: dev.cpu.0.temperature: 86.6C so I would quite happy if I could just turn it on. Running FreeBSD 13 Stable with a snapshot from 16 December 2021. System is loosely based on nanobsd. Cheers, Brian