Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 01:33:28 +0100
From:      =?utf-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com>
To:        Mark Millard <marklmi@yahoo.com>, Mark Murray <markm@FreeBSD.org>, freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: RPI4/8GB i2c not working?
Message-ID:  <D7553FC1-7545-4823-A04D-598BA53BA94D@googlemail.com>
In-Reply-To: <599EDCF7-D716-4645-8832-E429C5E17F6E@yahoo.com>
References:  <0D013C24-3CDD-4262-922C-524916ACCB10@FreeBSD.org> <E4AACBB5-4ADB-4BDC-936F-9BF8D45B3EC9@googlemail.com> <DD3F8DC8-03ED-40A7-8709-86F7BD06F8C8@googlemail.com> <599EDCF7-D716-4645-8832-E429C5E17F6E@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> Am 10.03.2021 um 00:51 schrieb Mark Millard <marklmi@yahoo.com>:
>=20
>=20
> Nor do I see *ds3231* at:
>=20
> https://github.com/raspberrypi/firmware/tree/1.20210303/boot/overlays/
=E2=80=A6
I was only GUESSING ;-) that "the other Mark M.=E2=80=9C :-)  is trying =
to connect an RTC because=20
one of the most annoying things on cheap arm boards is that if you =
forgot to set =E2=80=9Adate' then kernel builds have the wrong date, I =
even rebuilt kern when I forgot, I also always forgot to order a bunch =
of RTCs :-)
do you have one to test ?

There=E2=80=99s a README by scrolling page down on the above link.


e.g for the ds3231 it=E2=80=99s here :
--
Name:   i2c-rtc-gpio
Info:   Adds support for a number of I2C Real Time Clock devices
        using the software i2c controller
Load:   dtoverlay=3Di2c-rtc-gpio,<param>=3D<val>
Params: abx80x                  Select one of the ABx80x family:
                                  AB0801, AB0803, AB0804, AB0805,
                                  AB1801, AB1803, AB1804, AB1805

..
=E2=80=94   ds1339                  Select the DS1339 device
=E2=80=94

So, something like :
dtoverlay=3Di2c-rtc-gpio,<param>=3D<val>
in config.txt
and additional put i2c-rtc-gpio.dtbo in=20
dtb/overlays on the msdos-partition of 14-snap
should make it working.

So this just as an example for rtc, although I can=E2=80=99t test at the =
moment and don=E2=80=99t know if there=E2=80=99s additional rtc-driver =
in src.

.. time to order a bunch of RTCs :-)

Regards

K.









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7553FC1-7545-4823-A04D-598BA53BA94D>