Date: Sat, 07 Jan 2012 16:31:42 +1100 From: Mattia Rossi <mrossi@swin.edu.au> To: Ian Lepore <freebsd@damnhippie.dyndns.org> Cc: freebsd-arm@freebsd.org Subject: Re: SDIO driver for OpenRD Ultimate/ Dreamplug Message-ID: <4F07D8BE.3060001@swin.edu.au> In-Reply-To: <1325884830.25037.91.camel@revolution.hippie.lan> References: <4F05503D.4030303@swin.edu.au> <1325884830.25037.91.camel@revolution.hippie.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/01/12 08:20, Ian Lepore wrote: > On Thu, 2012-01-05 at 18:24 +1100, Mattia Rossi wrote: >> Hi all, >> >> I've tried to compile and use the SDIO driver found here: >> http://people.freebsd.org/~raj/misc/mv_sdio.c >> > > Hmmm, on second thought, I'll bet interrupt 34 needs to be listed in the > sdio section of the FDT, not the gpio like I said earlier. The code > sets the resource id to 1 to allocate that interrupt, so it probably > needs to be listed as the 2nd interrupt for the sdio dev. > > -- Ian > Well, right, I've had a look at that as well and couldn't find where the problem was, as: sdio@90000 { compatible = "mrvl,sdio"; reg = <0x90000 0x134>; interrupts = <28>; interrupt-parent = <&PIC>; gpios = <&GPIO 29 1 0x00030000 /* GPIO[29]: IN_POL_LOW, IRQ (edge) */ &GPIO 34 2 0x00000000>; /* GPIO[34]: OUT */ }; So the second SDIO pin is set to GPIO 34, thus the logical wiring should be correct. The error message also complains about the GPIO PIN 34and not the Interrupt 34. I've found the Marvell Kirkwood 88F6281 SOC documentation online, and compared the MPP map there to the FDT MPP map, and it fits the register settings, so no error there. Given it's the same SOC as for the OpenRD Ultimate, it makes sense, as people using it would have complained otherwise. The same would apply to the GPIO description I believe. But I don't really know, so maybe somebody with some more FDT knowledge could help us out here? Mat
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F07D8BE.3060001>