From nobody Sun Mar 06 23:09:14 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 B9F1019F6188 for ; Sun, 6 Mar 2022 23:09:15 +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 4KBcjR0bqhz3rTp for ; Sun, 6 Mar 2022 23:09:15 +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=q4fpXhtRaYaw71svzjII9dx3dkIZEftF4QBqA1IB+zQ=; b=VOGNgvt23N4cJMk1MTVonDxMPY 4Wmng643/1Zgwj8DwDttFtiLYgEF2Iu136bjTFgeDG7pNO3BAj8oWQWo+hcS30CEiAB8+1fGFw/Iy 1qTaomT0QRuc5eQESHG04UkiKWdCq8g9vIzjuOuJ9O1mNvZYqjbx9UCPgBku7M8wq4Y0TMePsJzte sAJI7ZJcw1QbQl0/Y3GZGvsVCWJXyLzZw6Y6xE+5ZvGLkjSnRv4TfmYgd4AkLskGVEF+THhNmQ7Oi 2k9k2wGsYMMufHt7XaXNXplzV5v6EAt7Z+ZbZar6zGqWiu3mPc6yx4CKp0uKo2BTzRqoYI/S++pi5 tCxjwujw==; Received: from [69.146.199.132] (port=52255 helo=michael2) by www18.qth.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1nR002-00052s-AS for freebsd-arm@freebsd.org; Sun, 06 Mar 2022 17:09:14 -0600 Date: 06 Mar 2022 23:09:14 UTC To: From: Don Kuenz Subject: Re: PCF8574 I2C configuration for 14.0-CURRENT on a RPi2B References: <20220306231815.6ea9b3b2@zeta.dino.sk> 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: 4KBcjR0bqhz3rTp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=crcomp.net header.s=default header.b=VOGNgvt2; 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.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[crcomp.net:+]; NEURAL_HAM_SHORT(-0.97)[-0.972]; 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(-1.00)[-0.996]; 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 Milan wrote: > could you show us what's in /dev directory? Probably no iic0 file > there. Also, you did not write which kernel are you using. For > /dev/iic0 to appear, you need either 'device iic' in your kernel config > or load it dynamically via 'kldload iic', in addition to working i2c > controller. > > Showing your 'dmesg' output helps to determine what's going on, along > with DTB used as well. > > All this are just basic hints what and where to look for, there are > probably other as well, but I hope this helps. oot@generic:~ # dmesg | grep iic root@generic:~ # dmesg | grep gpio gpio0: mem 0x7e200000-0x7e2000b3 irq 7,8 on simplebus0 gpiobus0: on gpio0 gpioc0: on gpio0 gpioled0: on ofwbus0 root@generic:~ # ls /dev/iic* ls: /dev/iic*: No such file or directory root@generic:~ # kldload iic kldload: can't load iic: module already loaded or in kernel root@generic:~ # kldstat Id Refs Address Size Name 1 14 0xc0000000 d6a938 kernel 2 1 0xc0d6b000 23358 gpioiic.ko 3 2 0xc0d8f000 23fcc iicbb.ko 4 1 0xc0db3000 24f48 umodem.ko 5 2 0xc0dd8000 28328 ucom.ko FreeBSD 11.1 automatically creates /dev/iic (unsure of the suffices). But 11.1 is now obsolete. FDT replaced automatic IIC bit-bang driver discovery. You need to "wire" FDT beforehand. Although there's hints and configuration snippets all over the Inet, a full blown howto example eludes me thus far. 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.