From nobody Fri May 12 16:27:41 2023 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 4QHvM31mG3z4BCF3 for ; Fri, 12 May 2023 16:27:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (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 4QHvM25pc7z4Km9 for ; Fri, 12 May 2023 16:27:58 +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=1683908876; bh=gyl2h4tb0YP3o7zWJdv7BDBN1e/cPDHU/yZEah1myyc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Kjgl3qxQpRBzvzF8o1s9HvyP/0Fxhv4FVabpkjQsWX89C8b56LJcc/PBUZLorOq5M6Lj7urhVK25xlYMgm42eFihjQjEdpv6tWK4ttjJSFRfWG9dDZ1jllp+zShYh6FXKTPii75gg7/DXXv7C4DDbG4Qewj7iRlwOmndKQEYjqg8TcgrmlZPo4F+UclXer6ZHSgIjO3PZHKqLl5ZWzX3LL8/s4ZvpaM0XdLnashcBy+8vV7zGCKfs1KDmsILHjhoZpwmfAK64yZQyVuN+456aDL9oFKJ7FvwndgaSsBI7wTiwZnIeX09T3cg8BDRANqryXtWtEoArlMCKJCuuNwSuA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683908876; bh=rUU9YX8n3L8WcdtYI4zkRKW4GamXdrmB36kC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W5kIQVrm4A1e.s0SFPdBMpwis.bxDcFVqlCFUVXNpOsVq4R2uLDqMdeXYPEVMqIJqlP zg1_lUEPQ36HGPZOxblscYU4re_Oe5lSyHFG3bjysn4Skf96oEnB9xSusxFfu9V27ZhTRGm5zPmS MKnLtg2pRmB4u7bJAujRXVm3AAFNrOQ8Mqh673a6.etYf4iAfi5b6ZWvn71T6OCCTfMmYqYM6zry 3SiC25Q0ay05BktImjLvuHQmmJXftkB8OrnJCx7OYUj9mvbUbANXCapeVRB_CSsqaTKDQuSai9_v FGy3KVVxiaSX8.CQzkIrHRh2VaQDUDmeyG0qeS7EP4pBP_ZbLMC_se1jbTfkCvpcYyLCFC6rH2Rs zb3dmJycZANqhqEcC1XQy.pKAb52P2MKtgCrTnD9Le1QicQ_l82QXarJd2pJK3XnE34UxTlSMhSY K_K2dytmgJyjQPmcY.l5du5lPiHkeBGsm.0zXvdr.ub7yiSyCTgK0a0l9klwSiHVcFTahjfNWcwX MxPfCSlWivoeD.ndyfGvwGU.dp.oRnV9PTK0vP9baiT_.F7grOwMdlOeAzHKRpRWCKPfVzDeOtbk - X-Sonic-MF: X-Sonic-ID: 0a0510a0-0e5f-48e2-9a4c-7be512e595bd Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Fri, 12 May 2023 16:27:56 +0000 Received: by hermes--production-gq1-6db989bfb-js4gb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d2ab93eb8dd315530ac945311f466db6; Fri, 12 May 2023 16:27:51 +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 \(3731.400.51.1.1\)) Subject: Re: Raspberry Pi POE+ hat overlay From: Mark Millard In-Reply-To: Date: Fri, 12 May 2023 09:27:41 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Doug Rabson X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4QHvM25pc7z4Km9 X-Spamd-Bar: ---- 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] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On May 12, 2023, at 08:43, Doug Rabson wrote: > I have a pi4 with the official POE+ hat which I want to run FreeBSD = on. One thing I noticed is that the fan doesn't run in FreeBSD so I = decided to try and write a little driver for it. First step seems to be = to load the corresponding devicetree overlay by adding something like = this to /boot/msdos/config.txt: >=20 > dtoverlay=3Drpi-poe-plus > dtparam=3Dpoe_fan_temp0=3D45000,dtparam=3Dpoe_fan_temp0_hyst=3D3000 > dtparam=3Dpoe_fan_temp1=3D50000,dtparam=3Dpoe_fan_temp1_hyst=3D3000 > dtparam=3Dpoe_fan_temp2=3D62000,dtparam=3Dpoe_fan_temp2_hyst=3D4000 > dtparam=3Dpoe_fan_temp3=3D70000,dtparam=3Dpoe_fan_temp3_hyst=3D5000 >=20 > Unfortunately this is where I'm stuck - the overlay is not present in = the final DTB given to the kernel so there isn't anything to hook a = driver to. Are dtoverlays supposed to work on FreeBSD? The RPi* firwmare version that FreeBSD has in ports and uses in making snapshots and other images does not have that overlay: # ls -Tld /usr/local/share/rpi-firmware/overlays/rpi* -rw-r--r-- 1 root wheel 489 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-backlight.dtbo -rw-r--r-- 1 root wheel 4081 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-cirrus-wm5102.dtbo -rw-r--r-- 1 root wheel 643 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-dac.dtbo -rw-r--r-- 1 root wheel 2574 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-display.dtbo -rw-r--r-- 1 root wheel 842 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-ft5406.dtbo -rw-r--r-- 1 root wheel 2937 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-poe.dtbo -rw-r--r-- 1 root wheel 771 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-proto.dtbo -rw-r--r-- 1 root wheel 893 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-sense.dtbo -rw-r--r-- 1 root wheel 567 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpi-tv.dtbo -rw-r--r-- 1 root wheel 1226 Mar 3 05:29:57 2021 = /usr/local/share/rpi-firmware/overlays/rpivid-v4l2.dtbo You do not mention establishing a copy of overlays/rpi-poe-plus.dtbo . You also do not mention what version of FreeBSD you are using on the RPi4B. The output of the command: # uname -apKU would indicate the branch and version of the kernel in use and some more. This can be relevant to what sort of experimental (unsupported) RPi* firmware configurations can be used. =3D=3D=3D Mark Millard marklmi at yahoo.com