From nobody Fri May 12 15:43:55 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 4QHtNW3SSYz4B8qg for ; Fri, 12 May 2023 15:44:11 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QHtNR0w13z4D6J for ; Fri, 12 May 2023 15:44:07 +0000 (UTC) (envelope-from dfr@rabson.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rabson-org.20221208.gappssmtp.com header.s=20221208 header.b=WX22lAQG; spf=pass (mx1.freebsd.org: domain of dfr@rabson.org designates 2607:f8b0:4864:20::b32 as permitted sender) smtp.mailfrom=dfr@rabson.org; dmarc=none Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so47413333276.0 for ; Fri, 12 May 2023 08:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rabson-org.20221208.gappssmtp.com; s=20221208; t=1683906246; x=1686498246; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xdUnJ+EYkpxq/k7Pdv9iDhbeo9TbQlV8x8bObhXxmes=; b=WX22lAQGa44jN+U+Alkvz2oss9Ukeb2JSlfKICg7C5qBRyVpdPJOGYZwyczVcT4HMo PVk5LipFC5PrWDQwFgWhcJqAdHDqZu+xC8BKPappAXBd+lgXhS7eNCGFY7suS/jGLc5n hsY+hOfUPjLSYjNqCMDPtO6OsDQX8flwFW3Gyv6ai5FHr7ekZhnEnIWid7PmYRJoes84 7MxuyLhvC0VmyKiAp/tf/rLEpJPQc1+lQIUrg69xltXPWjiZT5etqTpT2lGe6fKPdcb6 QZjBZNhYi/3prYRoKWVVnxMAbUPg9BV3c/HsiRpAmlpRAUg0kcwaN0QHuRJ9jLmYjFbB GOuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683906246; x=1686498246; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xdUnJ+EYkpxq/k7Pdv9iDhbeo9TbQlV8x8bObhXxmes=; b=SfkA6Iby+wxqSfw1g+M53FiIw4jPo6yajYw+ukmsK7UXD5SfcWPLtjuvIxFLKvM0Ge 1pXMX6dJ80KTvyAe84xM3RtD6c80tTUg7bFgvXgY00dFIGl8drtNSXygnN8xTLMDZl/Q V32tEhwx/AFuu70sG814sDvzk3TrqkM1MiiTYdHOnapgNS4UHPIWE1nRjgcHm8rwdb3b Er/RosnV3jxuaXOu9sqXOvrREK9l5CaSLdcKAVr8oBnxRQ4oW8u9HXXAddMYBEmY2VPb gdG+2g0orKxqX9KCmhMH2iT6PllNsFBVfczaVzIOpKBw92wgtiisNfanvaaIELeIwYtx 3f4Q== X-Gm-Message-State: AC+VfDwozz3FgLE/3/Ra9iMu2i3DnHgzgPTwHakKb8nRQddw70fQLt5F NQWH6ZeEXJHXJKM4JAP5g4mi0qVY90TtOgFJFFCCXSGgGtZtTDGoWfLS7g== X-Google-Smtp-Source: ACHHUZ5TeAxu8w8KeB/yd/MQzZR2TGKLtBhS6NpHEBvMR1/ObtGYIMf0X7Ndwm11JFIQ284OYshMGZ8QzvxwUuTFA+U= X-Received: by 2002:a81:5795:0:b0:55f:5d6a:97fb with SMTP id l143-20020a815795000000b0055f5d6a97fbmr12954448ywb.9.1683906246001; Fri, 12 May 2023 08:44:06 -0700 (PDT) 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 From: Doug Rabson Date: Fri, 12 May 2023 16:43:55 +0100 Message-ID: Subject: Raspberry Pi POE+ hat overlay To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a0dbd105fb80f981" X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[rabson-org.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b32:from]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[rabson-org.20221208.gappssmtp.com:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dfr]; DMARC_NA(0.00)[rabson.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QHtNR0w13z4D6J X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --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
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:

dtoverlay=3Drpi-poe-plus<= br>dtparam=3Dpoe_fan_temp0=3D45000,dtparam=3Dpoe_fan_temp0_hyst=3D3000
d= tparam=3Dpoe_fan_temp1=3D50000,dtparam=3Dpoe_fan_temp1_hyst=3D3000
dtpar= am=3Dpoe_fan_temp2=3D62000,dtparam=3Dpoe_fan_temp2_hyst=3D4000
dtparam= =3Dpoe_fan_temp3=3D70000,dtparam=3Dpoe_fan_temp3_hyst=3D5000
=
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?

--000000000000a0dbd105fb80f981--