From nobody Thu Sep 21 13:09:45 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 4Rrwjg5VrLz4v77P for ; Thu, 21 Sep 2023 13:09:59 +0000 (UTC) (envelope-from pmh@hausen.com) Received: from mail2.pluspunkthosting.de (mail2.pluspunkthosting.de [217.29.33.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rrwjc6RXGz3PRy for ; Thu, 21 Sep 2023 13:09:56 +0000 (UTC) (envelope-from pmh@hausen.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of pmh@hausen.com designates 217.29.33.228 as permitted sender) smtp.mailfrom=pmh@hausen.com; dmarc=none Received: from smtpclient.apple (87.138.185.145) by mail2.pluspunkthosting.de (Axigen) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA id 070CDE; Thu, 21 Sep 2023 15:09:55 +0200 From: "Patrick M. Hausen" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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.700.6\)) Subject: Re: FreeBSD 14, RPI CM3+ - how to use I2C? Date: Thu, 21 Sep 2023 15:09:45 +0200 References: <8B10870E-C485-4626-BBCF-BEE0771D8B5A@hausen.com> To: freebsd-arm In-Reply-To: <8B10870E-C485-4626-BBCF-BEE0771D8B5A@hausen.com> Message-Id: <6E552CD8-4248-4EBE-A919-2A56CA1A87FA@hausen.com> X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: - X-Spamd-Result: default: False [-1.17 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.39)[-0.388]; R_SPF_ALLOW(-0.20)[+a:mail2.pluspunkthosting.de]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; BLOCKLISTDE_FAIL(0.00)[87.138.185.145:server fail,217.29.33.228:server fail]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[hausen.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Rrwjc6RXGz3PRy Hi, > Am 21.09.2023 um 14:10 schrieb Patrick M. Hausen : > dtoverlay=3Di2c1,pins_44_45 > dtoverlay=3Di2c-rtc,mcp7940x >=20 > Source: = https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i2c >=20 > Did that, but >=20 > i2c -s >=20 > shows now output [...] Turns out the FreeBSD installation does not come with all (?) overlays by default like e.g. Ubuntu. I downloaded the two missing files from here: https://github.com/raspberrypi/firmware and placed them in /boot/efi/overlays. Bingo: root@pi1:~ # i2c -s 57 5c root@pi1:~ # i2c -a 0x57 -o 0xf2 -d r -c 1 ff Now I finally understand what all of this weird stuff *is* - sort of ;-) Kind regards, Patrick=