Re: SAMA5D27 SDMMC support branch

2020-07-09 Thread Adam Feuer
I pushed a PR for the SAMA5D27 SDMMC support: https://github.com/apache/incubator-nuttx/pull/1393 After this is done, I plan to work on NuttX support for ACME RoadRunner and Groboard's GiantBoard . Both are SAMA5D27 board

Re: SAMA5D27 SDMMC support branch

2020-07-02 Thread Adam Feuer
Hi, I pushed a cleaned-up working SAMA5 SDMMC driver to this branch: https://github.com/starcat-io/incubator-nuttx/tree/feature/sama5d27-sdmmc-support It's ported from imxrt_usdhc.c, there were some differences but the structure is largely the same. This driver works with DMA, and can do widebus

Re: SAMA5D27 SDMMC support branch

2020-06-17 Thread Adam Feuer
Thanks Nathan. It's been interesting learning how to port and debug NuttX drivers. Hopefully I will be able to write something about it when I get the code accepted. It was helpful that I could port a driver used by the same chip peripheral IP block on other NuttX supported chips. I didn't have to

Re: SAMA5D27 SDMMC support branch

2020-06-17 Thread Nathan Hartman
On Wed, Jun 17, 2020 at 5:49 PM Adam Feuer wrote: > SDMMC write is working now too. So the driver can do the following: > >- Non-DMA read and write >- DMA read and write in SDMA mode >- 1 bit bus >- 4 bit bus (widebus) >- up to 25Mhz > > I'm going to work on cleanup, documenta

Re: SAMA5D27 SDMMC support branch

2020-06-17 Thread Adam Feuer
SDMMC write is working now too. So the driver can do the following: - Non-DMA read and write - DMA read and write in SDMA mode - 1 bit bus - 4 bit bus (widebus) - up to 25Mhz I'm going to work on cleanup, documentation, and PR next. I'll post a branch here when I get it somewhat cl

Re: SAMA5D27 SDMMC support branch

2020-06-15 Thread Adam Feuer
SDMMC DMA read is working now too. I'll work on DMA write next. -adam On Fri, Jun 12, 2020 at 2:45 PM Adam Feuer wrote: > I got the SDMMC write to work as well. This is in non-DMA mode. I'm going > to work on the DMA mode next. > > -adam > -- > Adam Feuer > -- Adam Feuer

Re: SAMA5D27 SDMMC support branch

2020-06-12 Thread Adam Feuer
I got the SDMMC write to work as well. This is in non-DMA mode. I'm going to work on the DMA mode next. -adam -- Adam Feuer

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Thanks, I'll check it out! -adam On Thu, Jun 11, 2020 at 3:40 PM Gregory Nutt wrote: > > > I'm talking about using drivers from the OpenBSD or FreeBSD projects, > > not the driver on Github. :) > > There is a partial port of the OpenBSD IEEE802.11 SoftMAC stack that I > did a long time ago here

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
I'm talking about using drivers from the OpenBSD or FreeBSD projects, not the driver on Github. :) There is a partial port of the OpenBSD IEEE802.11 SoftMAC stack that I did a long time ago here too: https://github.com/gregory-nutt/nuttx_ieee80211

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
> The SocketCAN project on a branch is all BSD code and we have been given > the verbal blessing to take the code into the repository. But not clear > support or direction from anyone... only obstacles. > > If you can confirm that, then SocketCAN can come onto master immediately. > That would be a

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
I'm talking about using drivers from the OpenBSD or FreeBSD projects, not the driver on Github. :) Okay This page on the Apache website is pretty clear that BSD licensed code may be included in an Apache project. The Soc

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Thanks, I see the SPDX code now. It's GPL. So I'm not psyched about using that. :) I'd rather have something I can borrow from directly. -adam On Thu, Jun 11, 2020 at 3:18 PM Gregory Nutt wrote: > > 54 Mbps would work for me. But I didn't see a LICENSE file or any text > about it in the README

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
I'm talking about using drivers from the OpenBSD or FreeBSD projects, not the driver on Github. :) -adam On Thu, Jun 11, 2020 at 3:19 PM Gregory Nutt wrote: > > > This page on the Apache website > is pretty clear > that BSD licensed code m

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
This page on the Apache website is pretty clear that BSD licensed code may be included in an Apache project. But, unfortunately, that driver on github is GPL.

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
54 Mbps would work for me. But I didn't see a LICENSE file or any text about it in the README file either in that repo. So I'm assuming this is not a driver that can be used. Or else it needs some work with Microchip to get them to clarify the license. Re: using a BSD driver, I didn't get wh

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Cool, I'll take it up the Apache folks before I start that project. This page on the Apache website is pretty clear that BSD licensed code may be included in an Apache project. -adam On Thu, Jun 11, 2020 at 3:13 PM Gregory Nutt wrote: > >

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
Re: using a BSD driver, I didn't get what you mean about bringing in 3rd party code– it's BSD licensed, my understanding is that it can be brought in. Is that wrong? You will need to discuss with Justin.  We have talked about this numerous times and still don't have any idea what is require

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Greg, 54 Mbps would work for me. But I didn't see a LICENSE file or any text about it in the README file either in that repo. So I'm assuming this is not a driver that can be used. Or else it needs some work with Microchip to get them to clarify the license. Re: using a BSD driver, I didn't get w

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Nathan Hartman
On Thu, Jun 11, 2020 at 5:26 PM Adam Feuer wrote: > This module does have a 50Mhz SDIO interface, so if it can use 4 bit mode, > it could work. However, the ATWIL3000 Linux driver on Github > does not appear to have an open > license– all the code is marked "

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Hey Greg, That looks like a cool module. The issue for me is that I need high speed Wifi connectivity (20 Mbps+, ideally 50Mbps+) for my upcoming projects. SPI/UART modules like this one usually have much lower throughput. This module does have a 50Mhz SDIO interface, so if it can use 4 bit mode,

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Gregory Nutt
Hey, SAMA5D2 guys, I have been looking at the ATSAMA5D27-WLSOM1 Evaluation Kit.  I am impressed.  It is based on the SAMAD27C and the ATWIL3000 wireless module.  I am tempted to buy one. The ATWIL3000 has an SDIO interface to the Wifi (like the Broadcom chips) and UART interface to the Bluet

Re: SAMA5D27 SDMMC support branch

2020-06-11 Thread Adam Feuer
Takeyoshi, Hey, in case you are interested, I got the SDMMC driver port working for reading data today. It's quite a mess, and on a private branch. I will try to get it working for writing, clean it up, and push it to this branch in a few days. Thanks so much for your help!! cheers adam On Mon,

Re: SAMA5D27 SDMMC support branch

2020-05-04 Thread Adam Feuer
Takeyoshi, Hi, I've been working on the SDMMC driver off and on. I still haven't got it working, but I am making some progress. Here's a log of register reads and writes captured from U-Boot on the SAMA5D27: index usecs op (bytes) register value value binary

Re: SAMA5D27 SDMMC support branch

2020-04-13 Thread Adam Feuer
Takeyoshi, I finally got the new sama5 sam_sdmmc.c driver to compile. I haven't tested it yet, so I don't know if it actually works... I pushed the code to the branch, I am attaching the config I used. -adam On Thu, Apr 2, 2020 at 3:23 PM Adam Feuer wrote: > Takeyoshi, > > No worries– I had to

Re: SAMA5D27 SDMMC support branch

2020-04-02 Thread Adam Feuer
Takeyoshi, No worries– I had to work on other things too. -adam On Thu, Apr 2, 2020 at 3:22 PM Takeyoshi Kikuchi wrote: > Adam, > > Sorry, I am currently busy working and have no progress. > I want to check tomorrow. > > Takeyoshi Kikuchi > > On 2020/04/02 9:48, Adam Feuer wrote: > > Takeyoshi

Re: SAMA5D27 SDMMC support branch

2020-04-02 Thread Takeyoshi Kikuchi
Adam, Sorry, I am currently busy working and have no progress. I want to check tomorrow. Takeyoshi Kikuchi On 2020/04/02 9:48, Adam Feuer wrote: Takeyoshi, I did some work on the SDMCC driver today, it compiles now and I pushed the code to the branch. I will try it and let you know how it goe

Re: SAMA5D27 SDMMC support branch

2020-04-01 Thread Adam Feuer
Takeyoshi, I did some work on the SDMCC driver today, it compiles now and I pushed the code to the branch. I will try it and let you know how it goes. I am still not sure everything is right, for instance why do I have to specify SDMMC0_SIZE? The sama5d2x_memorymap.c file seems to need it. But it

Re: SAMA5D27 SDMMC support branch

2020-03-16 Thread Adam Feuer
Takeyoshi, I pushed some more files to the SDMMC branch— changing the IMXRT_HSDC to SAMA5_SDMMC throughout. It probably doesn't compile. I'll work on the registers and other problems tomorrow. -adam On Sat, Mar 7, 2020 at 6:19 PM Adam Feuer wrote: > Cool. I'll see if I can work on the imxrt fi

Re: SAMA5D27 SDMMC support branch

2020-03-07 Thread Adam Feuer
Cool. I'll see if I can work on the imxrt file then, in the branch I linked to above. cheers adam On Sat, Mar 7, 2020 at 6:15 PM Takeyoshi Kikuchi wrote: > Adam, > > Since standards are determined by SD assotication, I think that the > number of implementations according to the specifications h

Re: SAMA5D27 SDMMC support branch

2020-03-07 Thread Takeyoshi Kikuchi
Adam, Since standards are determined by SD assotication, I think that the number of implementations according to the specifications has increased recently. https://www.sdcard.org/downloads/pls/index.html Because it includes DMA, I found it by greping the register. Since the implementation of i

Re: SAMA5D27 SDMMC support branch

2020-03-07 Thread Adam Feuer
They do look like the same register sets. Thanks for the pointer to them. By the way, how did you find them...? :) I have to look at both files more closely... the Sony one is about 1400 lines longer, so they seem somewhat different from each other. Have you looked at these files at all? If so whi

Re: SAMA5D27 SDMMC support branch

2020-03-07 Thread Adam Feuer
Thanks. I was on my phone last night and couldn't find the right files... I'll check out the ones you mentioned. cheers adam On Fri, Mar 6, 2020 at 10:33 PM Takeyoshi Kikuchi wrote: > No, > > In addition to the board-specific parts you implemented, we need to port > the code of nuttx/arch/arm/s

Re: SAMA5D27 SDMMC support branch

2020-03-06 Thread Takeyoshi Kikuchi
No, In addition to the board-specific parts you implemented, we need to port the code of nuttx/arch/arm/src/cxd56xx/cxd56_sdhci.c or nuttx/arch/arm/src/imxrt/imxrt_usdhc.c to sama5d2. On 2020/03/07 15:15, Adam Feuer wrote: This one? https://github.com/apache/incubator-nuttx/blob/master/board

Re: SAMA5D27 SDMMC support branch

2020-03-06 Thread Adam Feuer
This one? https://github.com/apache/incubator-nuttx/blob/master/boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c On Fri, Mar 6, 2020 at 21:42 Adam Feuer wrote: > Do those have NuttX implementations? If so will you point me at them? > > -adam > > On Fri, Mar 6, 2020 at 21:40 Takeyoshi Kikuchi >

Re: SAMA5D27 SDMMC support branch

2020-03-06 Thread Adam Feuer
Do those have NuttX implementations? If so will you point me at them? -adam On Fri, Mar 6, 2020 at 21:40 Takeyoshi Kikuchi wrote: > Adam, > > Since the SDMMC controller of the SAMA5D2 series is compatible with the > standard register set, I think it is better to port the implementation > of SON

Re: SAMA5D27 SDMMC support branch

2020-03-06 Thread Takeyoshi Kikuchi
Adam, Since the SDMMC controller of the SAMA5D2 series is compatible with the standard register set, I think it is better to port the implementation of SONY CXD56xx or NXP i.MXRT. Takeyoshi Kikuchi On 2020/03/07 9:29, Adam Feuer wrote: Takeyoshi, I started a branch for SAMA5D27 SDMMC support,