From nobody Sun Mar 6 22:14:54 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 189C119E9564 for ; Sun, 6 Mar 2022 22:15:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 4KBbVx5Hsjz3jhc for ; Sun, 6 Mar 2022 22:15:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646604898; bh=zmBMWLcDHXtRZBCCz1jV2xJxn2OR3e6N8m9Q55t6BQY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=htp+x0NLLFRkivX3P+3ji7i/2C5GEGmPJIsRGfwSwDpo6a84r3EFTKUQSPSfqZgOfOiM4ia+kZZVSHGc1v48OPEXYGvWQQaeGN7o+NUHK8fTIQOFIHuZ5M0j9VOx+s1XV4r6Lg4BVEnLed1G4xC82k4wwLAPO7OndyWZwsAMCcI4QI4pM/fQ2f0d59bmI00Bid7JnSZ5GLlnxwJxoZdaAgZElhT1p9/6UoxPoIwbLh0dEjjbEHMbMBdqsdq9QbhdRo9NXgKUo4neMl+3KedcEnOcuxR35jrk8j41Zm/P4rd2LOwBpln+uTSn9WMuWMXS63gSXIkJgjVw/X5y86/7qQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646604898; bh=4KiYnNXeG3rJMiiHcgtVdt1G2f6j2WJ+agpmPtRO8Fx=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=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cuYe 1aLRK6JNAq9pNRfBQwAagq0J4jPg3pTTugc84aAl8tbm2SvjQgl9BE9XwbZ2a41KxcypOFQJv30w VaC7MTJjuYk9O0y3yfl94wOw.WVPH49yy4yeklWgXABxFy3Lp6rA57NioygQ8LTWmXpftTzVKDN8 PTk2IPV0PeUwHRymPU79X1OfrVPwqiy1wkPeaUObH8jFH6l0tz1HRHpzVWDuuHkuj0xwRZCRh8NF S1O6BALfuEL6eyu0NGvbvz0mVfwsvbvtXU1EpSoLd68JA547K7W6VvKC8S1TBUeFY6EvYU2OH7uO Xs_jWu.zW4BWdWPRYfeWc6P5D7rvzdwlF0T2YL0sBif1TdqTAyH2nVxYE5HbtMTeWzhxVQWG5ZEq mjIjU8IDcedBNFFwcHhvT5WikrAijE.SO1Zv7FHJlLLY90L1tocvZ9TTk02k2vf48iEb6i0umNWi lxNM6iRNtEgbTOAlb0MPijGdJujDBTJO.iSxsIN_bii.8lQhgSHuZWDONGvC7yNqskP1_XceNj9o zl4K2l7AAcM0- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sun, 6 Mar 2022 22:14:58 +0000 Received: by kubenode522.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 069f05b675626856e8c4bcf1133344cd; Sun, 06 Mar 2022 22:14:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: PCF8574 I2C configuration for 14.0-CURRENT on a RPi2B From: Mark Millard In-Reply-To: <20220306181214.932C51A05C0D@mlmmj.nyi.freebsd.org> Date: Sun, 6 Mar 2022 14:14:54 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <47C61079-AB2E-4E81-AD95-F6042477D4E8@yahoo.com> References: <20220306181214.932C51A05C0D@mlmmj.nyi.freebsd.org> To: Don Kuenz X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4KBbVx5Hsjz3jhc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=htp+x0NL; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-2.93 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; 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]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.43)[-0.426]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.147:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 2107 Lines: 80 On 2022-Mar-6, at 10:11, Don Kuenz wrote: > 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 config.txt seems fine up to here. But I've never seen anything indicating that the following notation is valid for config.txt files: > / { > 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"; > }; > }; If you have a reference indicating otherwise, I'd be interested to know what it is. The notation seems to be source code for part of a .dtb or .dtbo file. As I understand, there is a separate toolchain involved in producing the binary file(s) for such ( dtc ) and there is separate place to put such .dtbo binary files on the msdos file system: overlays/ . I've never made my own .dtbo and so am not able to help with the details. But I expect that producing and using a .dtbo file is the general direction of what needs to change for this part of what you were doing. "man dtc" should work for getting some information about the dtc tool and how to use it. > 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. === Mark Millard marklmi at yahoo.com