From nobody Mon Mar 07 16:10:12 2022 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 1B7AF19FABFB for ; Mon, 7 Mar 2022 16:10:14 +0000 (UTC) (envelope-from mail@crcomp.net) Received: from www18.qth.com (www18.qth.com [69.16.238.59]) (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 4KC3MT1yxrz4Wmj for ; Mon, 7 Mar 2022 16:10:13 +0000 (UTC) (envelope-from mail@crcomp.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crcomp.net; s=default; h=References:Subject:From:To:Date:Sender:Reply-To:Message-ID:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1hBntDvf+PHBjgP/PlmXfdaQ5P2irTOocSD1nr2293U=; b=NVnjtymqtxSviim9e1O/OEWxKs QIyFV1FubxOf3+cAdrT+GC14kEWPgPfWVQGMoBgXikmJ9CAEzKUZyNtKPvmYs5frsl/3MwVrvKzE7 gsgl2/EcCjQ2YvRjgtBk7Q+Kup4XlW0uaMgoAF9KuZdm9XQmwdvrwNMQ/bZ3B61fBTIIawQmj65EL vfdvCpccNx4g6FB23ZfxR6D5Qt0vatkcHJk5fuexv2lS6hvRVUaMRVzvRsSwv8iILlYaOD0Q9Ye/4 950v5NgXCItUhHFYZ17IaL6M6lw6ud9cTq5H9DZR/HGKGaVRLq5YXPB/rxTOWfi7SiWaBM5Ty0+yb /t6Vv+iA==; Received: from [69.146.199.132] (port=40457 helo=michael2) by www18.qth.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1nRFw4-0005GQ-Dl for freebsd-arm@freebsd.org; Mon, 07 Mar 2022 10:10:12 -0600 Date: 07 Mar 2022 16:10:12 UTC To: From: Don Kuenz Subject: Re: PCF8574 I2C configuration for 14.0-CURRENT on a RPi2B References: <9f337b5a-4e2d-a52f-2b99-4af69ad4c480@bunyatech.com.au> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www18.qth.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crcomp.net X-Get-Message-Sender-Via: www18.qth.com: authenticated_id: mail@crcomp.net X-Authenticated-Sender: www18.qth.com: mail@crcomp.net X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4KC3MT1yxrz4Wmj X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=crcomp.net header.s=default header.b=NVnjtymq; dmarc=none; spf=pass (mx1.freebsd.org: domain of mail@crcomp.net designates 69.16.238.59 as permitted sender) smtp.mailfrom=mail@crcomp.net X-Spamd-Result: default: False [0.41 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[crcomp.net:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; INVALID_DATE(1.50)[]; HAS_X_ANTIABUSE(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[69.146.199.132:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32244, ipnet:69.16.192.0/18, country:US]; RCVD_TLS_LAST(0.00)[]; HAS_X_AS(0.00)[mail@crcomp.net]; RCVD_IN_DNSWL_LOW(-0.10)[69.16.238.59:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; R_DKIM_ALLOW(-0.20)[crcomp.net:s=default]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[crcomp.net]; RCPT_COUNT_ONE(0.00)[1]; MISSING_MID(2.50)[]; HAS_X_GMSV(0.00)[mail@crcomp.net]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N 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 Brian Scott wrote: > > I think I'm like most people here, trying to guess what you are wanting > to achieve. Pins 2 and 3 are already avalable as iic1 provided you include: > > dtparam=i2c_arm > > in your config.txt file. There's a little more magic needed on the rpi4 > but that doesn't effect you. > > Pin 3 (GPIO 2) is SDA and Pin 5 (GPIO 3) is SCL. This 'seems' to be the > opposite of what you are doing in your dts snippet so I could be wrong, > but I would have thought these functions would be hardwired in the SOC. > > As for your specific device, PCF8574; I don't have any direct experience > but it looks like a standard IIC device that should work OK. I see there > is a FreeBSD kernel module to support it but it is quite recent so > probably only in CURRENT. As I said, I don't have experience with that > particular device. > > Hope this helps, It did indeed. Problem solved. Mucho gracias! ------------------------------------------------------------------------ root@generic:~ # cat /boot/msdos/config.txt init_uart_clock=3000000 enable_uart=1 kernel=u-boot.bin kernel7=u-boot.bin dtoverlay=mmc dtparam=i2c_arm root@generic:~ # ls /dev | grep iic iic0 root@generic:~ # i2c -sv dev: /dev/iic0, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1 Hardware may not support START/STOP scanning; trying less-reliable read method. Scanning I2C devices on /dev/iic0: 27 ------------------------------------------------------------------------ Danke, -- Don, KB7RPU, https://www.qsl.net/kb7rpu There was a young lady named Bright Whose speed was far faster than light; She set out one day In a relative way And returned on the previous night.