Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2018 13:45:31 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        Emmanuel Vadot <manu@bidouilliste.com>, Warner Losh <imp@bsdimp.com>, John Baldwin <jhb@freebsd.org>, Ravi Pokala <rpokala@mac.com>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, owner-src-committers@freebsd.org
Subject:   Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules
Message-ID:  <33452.1517233531@critter.freebsd.dk>
In-Reply-To: <20180129132736.GA66330@bluezbox.com>
References:  <90451.1516663240@critter.freebsd.dk> <2987003.eeGRFBb6N8@ralph.baldwin.cx> <CANCZdfrh0NHq7cbkq_genEdzo%2BB3G4TTAcEzpgh11sr%2B82e9aw@mail.gmail.com> <93949.1516733748@critter.freebsd.dk> <20180127210801.37b8001125dd0a2c92372f98@bidouilliste.com> <72042.1517094867@critter.freebsd.dk> <8d8ae9d10058fd72ce3ec467181c9f22@megadrive.org> <13025.1517179897@critter.freebsd.dk> <20180129063950.GA59901@bluezbox.com> <32793.1517221534@critter.freebsd.dk> <20180129132736.GA66330@bluezbox.com>

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

--------
In message <20180129132736.GA66330@bluezbox.com>, Oleksandr Tymoshenko writes:

>> If I pick a RPI[23] out of the box, download a FreeBSD image,
>> put the card in and play around, I should be able to put a
>> LED in a breadboard and configure a line for PWM or attach
>> an I2C or SPI device without reboot between every single
>> experiment.
>
>No problem. We include pwm.dtbo in our snapshot and config.txt.
>We have PWM running out of the box. Problem solved, no need for
>any hacks. I'll gladly work with Glen and Brad to get this
>functionality in snapshots/builds.

You seem to have skipped the bit about "without reboot" ?

>Raspberry Pi and other hobbyist ARM boards are basically Lego.
>They can be turned into multiple things and that's their selling
>point. They're hackers' toys.

That's *exactly* why I want us to support them better.

>You ignored my question: what would be authoritative source for this
>kind of info? World is not perfect, FreeBSD/arm support is not perfect.
>We have limited resources. Where we should apply them to guide
>new contributors?

At the very least have some place to point developers for a
resonably up-to-date idea of what the FDT related architecture
in FreeBSD is.

Either documentation or source code (preferably with a bit of
contextual comments) on our chosen reference platform.  (Source
code on ref-platform is probably more robust, as there is a
better chance that it will be kept current.)

>You also ignored my question about clkman fix. Provided you have
>all the documentation you need [...]

I don't.  The information for the PWM case was based on an affine
transform of information for the GPIO clock some shrewed guesses
and finally in-lab measurement of what actually transpired when I
frobbed registers.

But more importantly, I have no idea what servies *a* clock
manager offers, through which apis and to what clients and
at what level of abstraction and flexibility ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33452.1517233531>