Date: Wed, 27 Sep 2023 11:32:20 +0300 From: Daniel Braniss <danny@cs.huji.ac.il> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: "Patrick M. Hausen" <pmh@hausen.com>, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: FreeBSD 14, RPI CM3+ - how to use I2C? Message-ID: <705D8590-5087-4DB8-B382-398D0B225CC9@cs.huji.ac.il> In-Reply-To: <20230921155034.863ebfa8ead5bc85046fa988@bidouilliste.com> References: <8B10870E-C485-4626-BBCF-BEE0771D8B5A@hausen.com> <6E552CD8-4248-4EBE-A919-2A56CA1A87FA@hausen.com> <20230921155034.863ebfa8ead5bc85046fa988@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_DE8B6214-7B31-49C9-9BA8-E509047ED01B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii hi, is there a similar solution for allwinner i2c(twsi)? cheers, danny > On 21 Sep 2023, at 16:50, Emmanuel Vadot <manu@bidouilliste.com> = wrote: >=20 > On Thu, 21 Sep 2023 15:09:45 +0200 > "Patrick M. Hausen" <pmh@hausen.com <mailto:pmh@hausen.com>> wrote: >=20 >> Hi, >>=20 >>> Am 21.09.2023 um 14:10 schrieb Patrick M. Hausen <pmh@hausen.com>: >>> dtoverlay=3Di2c1,pins_44_45 >>> dtoverlay=3Di2c-rtc,mcp7940x >>>=20 >>> Source: = https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i2c >>>=20 >>> Did that, but >>>=20 >>> i2c -s >>>=20 >>> shows now output [...] >>=20 >> Turns out the FreeBSD installation does not come with all (?) = overlays >> by default like e.g. Ubuntu. >>=20 >> I downloaded the two missing files from here: >>=20 >> https://github.com/raspberrypi/firmware >>=20 >> and placed them in /boot/efi/overlays. >=20 > We don't install them all on the image but everything is packaged in > the rpi-firmware package. >=20 >> Bingo: >>=20 >> root@pi1:~ # i2c -s >> 57 5c >> root@pi1:~ # i2c -a 0x57 -o 0xf2 -d r -c 1 >> ff >>=20 >> Now I finally understand what all of this weird stuff *is* - sort of = ;-) >>=20 >> Kind regards, >> Patrick >=20 >=20 > --=20 > Emmanuel Vadot <manu@bidouilliste.com <mailto:manu@bidouilliste.com>> = <manu@freebsd.org <mailto:manu@freebsd.org>> --Apple-Mail=_DE8B6214-7B31-49C9-9BA8-E509047ED01B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">hi,<div class=3D"">is there a similar solution for allwinner = i2c(twsi)?</div><div class=3D"">cheers,</div><div class=3D""><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> = </span>danny</div><div class=3D""><br class=3D""><div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 21 = Sep 2023, at 16:50, Emmanuel Vadot <<a = href=3D"mailto:manu@bidouilliste.com" = class=3D"">manu@bidouilliste.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><meta = charset=3D"UTF-8" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none; float: none; display: inline !important;" = class=3D"">On Thu, 21 Sep 2023 15:09:45 +0200</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" class=3D"">"Patrick M. Hausen" = <</span><a href=3D"mailto:pmh@hausen.com" style=3D"font-family: = Helvetica; font-size: 16px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: auto; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px;" class=3D"">pmh@hausen.com</a><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" class=3D"">> wrote:</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" = class=3D""><blockquote type=3D"cite" style=3D"font-family: Helvetica; = font-size: 16px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D"">Hi,<br = class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">Am = 21.09.2023 um 14:10 schrieb Patrick M. Hausen <<a = href=3D"mailto:pmh@hausen.com" class=3D"">pmh@hausen.com</a>>:<br = class=3D"">dtoverlay=3Di2c1,pins_44_45<br = class=3D"">dtoverlay=3Di2c-rtc,mcp7940x<br class=3D""><br = class=3D"">Source: <a = href=3D"https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i= 2c" = class=3D"">https://docs.turingpi.com/docs/turing-pi1-cluster-management-bu= s-i2c</a><br class=3D""><br class=3D"">Did that, but<br class=3D""><br = class=3D"">i2c -s<br class=3D""><br class=3D"">shows now output [...]<br = class=3D""></blockquote><br class=3D"">Turns out the FreeBSD = installation does not come with all (?) overlays<br class=3D"">by = default like e.g. Ubuntu.<br class=3D""><br class=3D"">I downloaded the = two missing files from here:<br class=3D""><br class=3D""><a = href=3D"https://github.com/raspberrypi/firmware" = class=3D"">https://github.com/raspberrypi/firmware</a><br class=3D""><br = class=3D"">and placed them in /boot/efi/overlays.<br = class=3D""></blockquote><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none; float: none; display: inline !important;" = class=3D"">We don't install them all on the image but everything is = packaged in</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 16px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 16px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" class=3D"">the = rpi-firmware package.</span><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><blockquote type=3D"cite" = style=3D"font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D"">Bingo:<br class=3D""><br = class=3D"">root@pi1:~ # i2c -s<br class=3D"">57 5c<br = class=3D"">root@pi1:~ # i2c -a 0x57 -o 0xf2 -d r -c 1<br class=3D"">ff<br = class=3D""><br class=3D"">Now I finally understand what all of this = weird stuff *is* - sort of ;-)<br class=3D""><br class=3D"">Kind = regards,<br class=3D"">Patrick<br class=3D""></blockquote><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" class=3D"">--<span = class=3D"Apple-converted-space"> </span></span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" class=3D"">Emmanuel Vadot <</span><a = href=3D"mailto:manu@bidouilliste.com" style=3D"font-family: Helvetica; = font-size: 16px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px;" class=3D"">manu@bidouilliste.com</a><span= style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" class=3D"">> <</span><a = href=3D"mailto:manu@freebsd.org" style=3D"font-family: Helvetica; = font-size: 16px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px;" class=3D"">manu@freebsd.org</a><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;" = class=3D"">></span></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_DE8B6214-7B31-49C9-9BA8-E509047ED01B--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?705D8590-5087-4DB8-B382-398D0B225CC9>