From nobody Sun Mar 06 18:11:50 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 4A8051A05923 for ; Sun, 6 Mar 2022 18:11:59 +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 4KBV6Q1FZcz4hKk for ; Sun, 6 Mar 2022 18:11:58 +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=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:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QUHSVREizftoZ0pw6WeWpLDd4UGiISRdoSb8Gs76FOU=; b=HUNqap86/h2ndUfxQJB3SuJnGJ Bcwez4tnBX5DQLOW/EWzveWmnbA2v4+h8ZuV0ZJjthMm7rthoKbAjSPK1xcRF9WHhpParjy3kjXr7 c5/QXP/aPDlI0Nq9Bu+vCT7uUWv7mqiFzusr2IBMuMbPdevrX8lBjYZ11aHxWOWmw85lRSxsNQUfD weMrtiCyZGAUpkfm9GqoYey0uq4H/8PBNgwOTCu8uY8CFwxlWG4ALy4cCn3A5KSHJUWKlOBqwiU2r r15bhfaEfSwkwtoxESonLOVYA2lfrnZBtMshgIG4wmqiW8wSCuTgOsZ8vK0OHu5qHikm3/S6byasz u1Ru6JMA==; Received: from [69.146.199.132] (port=21234 helo=michael2) by www18.qth.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1nQvME-0002Nk-JR for freebsd-arm@freebsd.org; Sun, 06 Mar 2022 12:11:50 -0600 Date: 06 Mar 2022 18:11:50 UTC To: From: Don Kuenz Subject: PCF8574 I2C configuration for 14.0-CURRENT on a RPi2B 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: 4KBV6Q1FZcz4hKk X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=crcomp.net header.s=default header.b=HUNqap86; 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]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[crcomp.net:+]; NEURAL_HAM_SHORT(-0.97)[-0.966]; 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)[-1.000]; 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 Greetings, My RPi2B GPIO header connects to a PCF8574 I2C adapter with these pins: RPi2B PCF8574 --------------- ------- Pin 2 - +5VDC <-> VCC Pin 3 - GPIO 2 <-> SDA Pin 5 - GPIO 3 <-> SCL Pin 39 - Gnd <-> GND /boot/loader.conf contains these lines: root@generic:/boot # cat /boot/loader.conf # Configure USB OTG; see usb_template(4). hw.usb.template=3 umodem_load="YES" # Disable the beastie menu and color beastie_disable="YES" loader_color="NO" gpioiic_load="YES" and /boot/msdos/config.txt looks like this: root@generic:/boot # cat /boot/msdos/config.txt init_uart_clock=3000000 enable_uart=1 kernel=u-boot.bin kernel7=u-boot.bin dtoverlay=mmc / { gpioiic0 { compatible = "i2c-gpio"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpioiic0>; scl-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>; status = "okay"; }; }; Nothing happens: root@generic:/boot # i2c -sv dev: /dev/iic0, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1 Error opening I2C controller (/dev/iic0): No such file or directory What's missing? Thank you in advance. 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.