From nobody Thu Sep 21 12:10:57 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 4RrvPr0Mcgz4v3FN
	for <freebsd-arm@mlmmj.nyi.freebsd.org>; Thu, 21 Sep 2023 12:11:12 +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 4RrvPp64kWz3Kxh
	for <freebsd-arm@freebsd.org>; Thu, 21 Sep 2023 12:11:10 +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 1E7C74;
 Thu, 21 Sep 2023 14:11:07 +0200
From: "Patrick M. Hausen" <pmh@hausen.com>
Content-Type: text/plain;	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
List-Id: Porting FreeBSD to ARM processors <freebsd-arm.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-arm
List-Help: <mailto:freebsd-arm+help@freebsd.org>
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Subscribe: <mailto:freebsd-arm+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-arm+unsubscribe@freebsd.org>
Sender: owner-freebsd-arm@freebsd.org
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\))
Subject: FreeBSD 14, RPI CM3+ - how to use I2C?
Message-Id: <8B10870E-C485-4626-BBCF-BEE0771D8B5A@hausen.com>
Date: Thu, 21 Sep 2023 14:10:57 +0200
To: freebsd-arm <freebsd-arm@freebsd.org>
X-Mailer: Apple Mail (2.3731.700.6)
X-Spamd-Bar: -
X-Spamd-Result: default: False [-1.65 / 15.00];
	NEURAL_HAM_MEDIUM(-1.00)[-1.000];
	SUBJECT_ENDS_QUESTION(1.00)[];
	NEURAL_HAM_SHORT(-1.00)[-1.000];
	NEURAL_HAM_LONG(-0.85)[-0.854];
	MV_CASE(0.50)[];
	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)[];
	RCVD_COUNT_ONE(0.00)[1];
	MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org];
	TO_DN_ALL(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	MID_RHS_MATCH_FROM(0.00)[];
	ARC_NA(0.00)[];
	MIME_TRACE(0.00)[0:+];
	FROM_HAS_DN(0.00)[];
	DMARC_NA(0.00)[hausen.com];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	RCVD_TLS_ALL(0.00)[]
X-Rspamd-Queue-Id: 4RrvPp64kWz3Kxh

Next topic with my TuringPi ...

The CM placed in slot 1 has got access to the management bus
of the TuringPi mainboard.

The documentation states that one should add these to config.txt:

dtoverlay=3Di2c1,pins_44_45
dtoverlay=3Di2c-rtc,mcp7940x

Source: =
https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i2c

Did that, but

i2c -s

shows now output and

root@pi1:~ # i2c -a 0x57 -o 0xf2 -d r -c 1
i2c: ioctl(I2CRDWR) failed: Input/output error

root@pi1:~ # grep iic /var/run/dmesg.boot=20
iichb0: <BCM2708/2835 BSC controller> mem 0x7e804000-0x7e804fff irq 20 =
on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0

Any hints on how to get this working?

Kind regards,
Patrick=