Date: Fri, 12 May 2023 16:43:55 +0100 From: Doug Rabson <dfr@rabson.org> To: freebsd-arm@freebsd.org Subject: Raspberry Pi POE+ hat overlay Message-ID: <CACA0VUh9-7o55pXcyn=Ep9mPexAkgjKLEKUh6HqMovTxe2_R0Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000a0dbd105fb80f981 Content-Type: text/plain; charset="UTF-8" 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: dtoverlay=rpi-poe-plus dtparam=poe_fan_temp0=45000,dtparam=poe_fan_temp0_hyst=3000 dtparam=poe_fan_temp1=50000,dtparam=poe_fan_temp1_hyst=3000 dtparam=poe_fan_temp2=62000,dtparam=poe_fan_temp2_hyst=4000 dtparam=poe_fan_temp3=70000,dtparam=poe_fan_temp3_hyst=5000 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? --000000000000a0dbd105fb80f981 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I have a pi4 with the official POE+ hat which I want to ru= n FreeBSD on. One thing I noticed is that the fan doesn't run in FreeBS= D 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 t= his to /boot/msdos/config.txt:<div><br></div><div>dtoverlay=3Drpi-poe-plus<= br>dtparam=3Dpoe_fan_temp0=3D45000,dtparam=3Dpoe_fan_temp0_hyst=3D3000<br>d= tparam=3Dpoe_fan_temp1=3D50000,dtparam=3Dpoe_fan_temp1_hyst=3D3000<br>dtpar= am=3Dpoe_fan_temp2=3D62000,dtparam=3Dpoe_fan_temp2_hyst=3D4000<br>dtparam= =3Dpoe_fan_temp3=3D70000,dtparam=3Dpoe_fan_temp3_hyst=3D5000<br></div><div>= <br></div><div>Unfortunately this is where I'm stuck - the overlay is n= ot present in the final DTB given to the kernel so there isn't anything= to hook a driver to. Are dtoverlays=C2=A0supposed to work on FreeBSD?</div= ><div><br></div></div> --000000000000a0dbd105fb80f981--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACA0VUh9-7o55pXcyn=Ep9mPexAkgjKLEKUh6HqMovTxe2_R0Q>