On 2/4/20 2:01 AM, Geert Uytterhoeven wrote: > Hi Peter, > > On Tue, Feb 4, 2020 at 7:52 AM Peter Ujfalusi <peter.ujfalusi@xxxxxx> wrote: >> On 03/02/2020 22.34, Geert Uytterhoeven wrote: >>> On Mon, Feb 3, 2020 at 9:21 PM John Paul Adrian Glaubitz >>> <glaubitz@xxxxxxxxxxxxxxxxxxx> wrote: >>>> On 2/3/20 2:32 PM, Geert Uytterhoeven wrote: >>>>> Both rspi and sh-msiof have users on legacy SH (i.e. without DT): >>>> >>>> FWIW, there is a patch set by Yoshinori Sato to add device tree support >>>> for classical SuperH hardware. It was never merged, unfortunately :(. >>> >>> True. >>> >>>>> Anyone who cares for DMA on SuperH? >>>> >>>> What is DMA used for on SuperH? Wouldn't dropping it cut support for >>>> essential hardware features? >>> >>> It may make a few things slower. The j-core stuff has DMA but we haven't hooked it up to dmaengine yet. (It's on the todo list but pretty far down.) I fought with dmaengine in a 7760 board in 2018, and got it to run its tests but the ship deadline arrived before I got the ethernet working with it. I found the documentation fairly impenetrable, is there a good primer on what's _current_ for new implementations? (I had similar questions for gpio. It's easy to google for "here's how you did it in 2010"...) >> I would not drop DMA support but I would suggest to add dma_slave_map >> for non DT boot so the _compat() can be dropped. > > Which is similar in spirit to gpiod_lookup and clk_register_clkdev(), > right? > >> Imho on lower spec SoC (and I believe SuperH is) the DMA makes big >> difference offloading data movement from the CPU. > > Assumed it is actually used... The turtle boards need it USB, ethernet, and sdcard, but Rich Felker hasn't finished the j32 port yet (we just got him the updated docs last month) and the existing implementation is nommu so the things that are using it are reaching around behind the OS's back... Rob