Re: GPIO driver for Intel Atom SoC

2016-06-13 Thread Lundberg, Johannes
Hi Imre I got the device in /dev/mmcsd0. I think the reason was that mmcsd wasn't loaded (need to load manually it seems..) Do you think your patch in mmc is something that should be pushed upstream in FreeBSD or is it more of a hack? I am talking about https://gitweb.dragonflybsd.org/~ivadasz/dr

Re: GPIO driver for Intel Atom SoC

2016-06-13 Thread Lundberg, Johannes
Hi Imre This is great information. Thank you! My device have an emmc chip on the pcb (non-removable). Have you tested you code on that kind of system? Current unmodified FreeBSD can detect the sdhci_pci controller and a mmc card on slot0 but timeouts when trying to init the mmc. Not sure why it

Re: GPIO driver for Intel Atom SoC

2016-06-13 Thread Imre Vadasz
Hi, Microsoft has some documentation on GPIO handling with SD card controllers, which should apply to most Cherryview devices: https://msdn.microsoft.com/windows/hardware/drivers/bringup/other-acpi-namespace-objects#sd I did some work on Cherryview SoC support in DragonFlyBSD. In DragonFly m

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Lundberg, Johannes
On Sun, Jun 12, 2016 at 11:02 AM, Ian Lepore wrote: > > Why do we need gpio support for emmc/sdhci? Is there a power-enable > pin that has to be asserted or something? I don't think we have an API > that lets an arbitrary driver which is not a child of the gpiobus > manipulate pins, outside of

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Ian Lepore
On Sun, 2016-06-12 at 10:48 -0700, Lundberg, Johannes wrote: > Thanks Adrian > > Looks like this is something I can base the new driver on. > Hopefully with this we can get eMMC support for Intel SDHCI > controller. > Why do we need gpio support for emmc/sdhci? Is there a power-enable pin that

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Lundberg, Johannes
Thanks Adrian Looks like this is something I can base the new driver on. Hopefully with this we can get eMMC support for Intel SDHCI controller. On Sun, Jun 12, 2016 at 12:11 AM, Adrian Chadd wrote: > Take a look at what one of the gpio controllers do. Eg ar71xx_gpio.c. > You have to implement

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Lundberg, Johannes
Hi Ian Thanks for the heads up. This is a vanilla Intel chip with ACPI. ACPI ID is INT33FF (Intel Serial IO GPIO Controller). I don't think I need to worry about FDT. (Hopefully) I can't find any traces of FDT in the Linux driver. On Sun, Jun 12, 2016 at 10:12 AM, Ian Lepore wrote: > On Sat,

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Ian Lepore
On Sat, 2016-06-11 at 21:59 -0700, Lundberg, Johannes wrote: > Hi > > I want to port the pinctrl-cherryview driver from Linux. > > I've seen there is the gpiobus and a controller gpioc, can any of > these be > leverage when porting pinctrl? > > What is the recommend way to proceed? > > Thanks!

Re: GPIO driver for Intel Atom SoC

2016-06-12 Thread Adrian Chadd
Take a look at what one of the gpio controllers do. Eg ar71xx_gpio.c. You have to implement those methods. (I think someone did a GPIO controller thing for some AMD CPU too?) -a On 11 June 2016 at 21:59, Lundberg, Johannes wrote: > Hi > > I want to port the pinctrl-cherryview driver from Linu

GPIO driver for Intel Atom SoC

2016-06-11 Thread Lundberg, Johannes
Hi I want to port the pinctrl-cherryview driver from Linux. I've seen there is the gpiobus and a controller gpioc, can any of these be leverage when porting pinctrl? What is the recommend way to proceed? Thanks! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送