From owner-freebsd-arm@freebsd.org Sun May 2 21:01:08 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 66D385FA524 for ; Sun, 2 May 2021 21:01:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FYJRl1k33z3L2r for ; Sun, 2 May 2021 21:01:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1619989265; bh=ZLrr2f8J3wGi9S9LDp4HVddYnUFS4L1Jp2Uk8+FGz65=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=oIpywv7qNNg2J4Vayu/fcMSDpwbVTjGH12s9sYYki+UxrybC/yV8igmHdn9g1au1ANLr2AKTQgzJRVkAs9wt3p7WirdwrGQ/6RiwS6RpKE/xvjEhPgCm32HCRNDe/JwFKoMGPsqk83z6i314yanJCmMhWiEdxm0s6UDp7dcwjO/OAOsCYmXjZuLHuyotDXLXgZe/Mrn9SHtc1wTVFllPdXk4rpB2k3j+QKNo7pHRcuRfFMDPLNm5dso9zQ+lMEUW7MLqk4eJEj1+iT/9/l7zQ5R2xrnKLWgW1t+OJVDeOnftRP7IST4esbC9oKbuYVLic6V1IxsDv/l1TT6/uGEGxQ== X-YMail-OSG: _TD1_E8VM1lrCYqPFupvml.gfeh1t4aPBfkOO.ug8g8ybaHChva9SOdhERHUrjS gGahSggX14615r7ucyonSj9viw.srnA9AexuBLdFd_7WAvMGbsWA0834glxUahkeSd9dj7xaNpSW 6GYmNXklxh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u1Uh06IwWjdsTIS0LLuy6mDkJCvA4t M64kr7uVtBeZftJzFxk8xISV0703JLyGqfvH94wFPoKydMyU2kSr8AO3fAI5Ay4MFnW9Ngek60nm DOJO3KKyKADZCgVHORE01J7bpxiG.ZDvHgwlwXBj7CTXIe3v6pYyKHfU1Sp40os7H7I7IEmNY4ZH JRj9oXtFs1XfydR8DFLrlwoHTs64vZlskg9WDdI.okrFhHCYFFzv94yizoNYLagouFq7So.g0JZy 2psTnqUSE0Q-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 2 May 2021 21:01:05 +0000 Received: by kubenode512.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e5aab8248274a069bd02ac2c45fce49c; Sun, 02 May 2021 21:00:59 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: I2C/IIC working on RPI4 From: Mark Millard In-Reply-To: Date: Sun, 2 May 2021 14:00:58 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <31C7EFC2-E266-49D6-919D-73D07B54FF53@yahoo.com> References: To: Elwood Downey X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FYJRl1k33z3L2r X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.69.205:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.69.205:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.205:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2021 21:01:08 -0000 On 2021-May-2, at 11:05, Elwood Downey = wrote: > I've been trying everything to get I2C working since I started using > freebsd on rpi a few years ago. With this change to config.txt, my = hamclock > project can finally = access all > the I2C devices. Now that everything works I will also submit hamclock = as a > new package. Turns out this is controllable from FreeBSD's shells and programmatically: sysctl and its internal-call equivalents. (This basically repeats a note to Mark Murray.) For example of via sysctl usage from /bin/sh : # sysctl dev.gpio.0.pin.3.function dev.gpio.0.pin.2.function dev.gpio.0.pin.3.function: input dev.gpio.0.pin.2.function: input # sysctl dev.gpio.0.pin.3.function=3Dalt0 dev.gpio.0.pin.2.function=3Dalt0= dev.gpio.0.pin.3.function: input -> alt0 dev.gpio.0.pin.2.function: input -> alt0 # sysctl dev.gpio.0.pin.3.function dev.gpio.0.pin.2.function dev.gpio.0.pin.3.function: alt0 dev.gpio.0.pin.2.function: alt0 # gpioctl -f /dev/gpioc0 -l -v pin 00: 1 pin 0, = caps: pin 01: 1 pin 1, = caps: pin 02: 1 pin 2<>, = caps: pin 03: 1 pin 3<>, = caps: pin 04: 1 pin 4, = caps: pin 05: 1 pin 5, = caps: . . . Such can be used to avoid folks needing to adjust the contents of the msdos file system that has the RPi* firmware ( and its config.txt ). =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)