FDT help
Milan Obuch
freebsd-arm at dino.sk
Fri Apr 24 09:39:58 UTC 2015
On Fri, 24 Apr 2015 12:22:10 +0300
Daniel Braniss <danny at cs.huji.ac.il> wrote:
>
> > On Apr 24, 2015, at 11:16 AM, Milan Obuch <freebsd-arm at dino.sk>
> > wrote:
> >
> > On Fri, 24 Apr 2015 11:00:33 +0300
> > Daniel Braniss <danny at cs.huji.ac.il> wrote:
> >
> >> Hi,
> >> I have this in my rpi.dts file:
> >> spi0 {
> >> rfid0 {
> >> compatible = “rfid,mfrc5”;
> >> spi-chipselect = <0>;
> >> reset {
> >> compatible = “pcd-reset”;
> >> gpios = <&gpio 22 2>;
> >> };
> >> };
> >>
> >> my mfrc5 driver is starting to work - i can load, open, ioctl,
> >> unload, but after much grepping, I can’t figure out how from
> >> inside the driver i can access the reset pin - which i have
> >> defined as gpio 22 ofwdump -aP
[ snip ]
> > Hello,
> >
> > I think following could help - I am forwarding what was given to me
> > in similar circumstances :)
> >
> > http://pastebin.com/4mbZFuv1 <http://pastebin.com/4mbZFuv1>
>
> argh, is this for -stable or -current?
>
Well, I am not sure - maybe -current. I used it just as an inspiration,
basically took the '+' prefixed lines as a raw first version of what I
needed then to do - parse FDT blob and do what was necessary with GPIO
pin defined.
Regards,
Milan
More information about the freebsd-arm
mailing list