From nobody Thu Sep 21 13:50:34 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 4Rrxcr4KZWz4v9mK for ; Thu, 21 Sep 2023 13:50:52 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rrxcr1CyWz3YHV for ; Thu, 21 Sep 2023 13:50:51 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1695304244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4yTOfuAMcEwp5JWMwKTXoPAl7w0y2FRYlrtWBiF6Qk=; b=G3pn0YogLVnpVSoRKVLJfRdmHZOdW+1CqGQTF4Yw4yocZjA//Yk7jWKbjwDi9lXk+m9Iqi fH+thb7gjHhsfRTjpMPndQ2q686hCDgtG/RnAXJWEPnf4u0Ftb2D3og9kHmzOBpMcanwji sduWWClabGkhnZ736zZJA9z2XDGE//4= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 8b4aad4a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 21 Sep 2023 13:50:44 +0000 (UTC) Date: Thu, 21 Sep 2023 15:50:34 +0200 From: Emmanuel Vadot To: "Patrick M. Hausen" Cc: freebsd-arm Subject: Re: FreeBSD 14, RPI CM3+ - how to use I2C? Message-Id: <20230921155034.863ebfa8ead5bc85046fa988@bidouilliste.com> In-Reply-To: <6E552CD8-4248-4EBE-A919-2A56CA1A87FA@hausen.com> References: <8B10870E-C485-4626-BBCF-BEE0771D8B5A@hausen.com> <6E552CD8-4248-4EBE-A919-2A56CA1A87FA@hausen.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4Rrxcr1CyWz3YHV On Thu, 21 Sep 2023 15:09:45 +0200 "Patrick M. Hausen" wrote: > Hi, > > > Am 21.09.2023 um 14:10 schrieb Patrick M. Hausen : > > dtoverlay=i2c1,pins_44_45 > > dtoverlay=i2c-rtc,mcp7940x > > > > Source: https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i2c > > > > Did that, but > > > > i2c -s > > > > 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. We don't install them all on the image but everything is packaged in the rpi-firmware package. > 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 -- Emmanuel Vadot