Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<tokyovigilante>
apritzel: we do but I wasn't sure whether it was best to do that separately. I have patches for the RG35XX but because there is only a single line-out there is a separate mux, headphone detect and speaker amp GPIO to manage, and the other boards may have bespoke hw. Otherwise only a simple codec { status = "okay"; } is required.
<tokyovigilante>
Sorry about the timing but I only have so much free time to work on these so have to take advantage of when I can spend some time.
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
colinsane has joined #linux-sunxi
colinsane has quit []
colinsane has joined #linux-sunxi
zoenggit has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
mripard has joined #linux-sunxi
warpme has quit []
apritzel has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<apritzel>
tokyovigilante: no worries, I think it's fine here, it was just a heads up: I heard of maintainers ignoring new patches sent during the merge window
<loki666>
apritzel, testing tokyovigilante DE33 patches on 6.12-rc1, but kernel doesn't boot
<loki666>
are all AXP717 merged ?
<loki666>
kernels logs ends with
<loki666>
[ 3.056939] sun50i-h616-r-pinctrl 7022000.pinctrl: supply vcc-pl not found, using dummy regulator
<loki666>
[ 3.074886] axp20x-i2c 0-0034: Failed to set masks in 0x40: -6
<loki666>
[ 3.067679] axp20x-i2c 0-0034: AXP20x variant AXP717 found
<iscle>
I have a doubt with something about dts. (I'm writing the DMA driver for USB for those that did not follow the conversation 2-3 days ago).
juri_ has quit [Ping timeout: 480 seconds]
<iscle>
The current DTS for Allwinner D1 uses the following nomenclature to declare DMA channels
<iscle>
dmas = <&dma 25>, <&dma 25>;
<iscle>
dma-names = "rx", "tx";
<iscle>
The DMA controller seems to always have the same channel for TX and RX, but the dts specifies both instead of just 1.
<iscle>
For USB, there are 5 RX and 5 TX channels, one for each endpoint. Should I also implement the driver to read the repeated RX and TX values, or should I just declare it 1 time for each endpoint like in the following example?
<iscle>
To be clear, right now the DTS is not specifying any DMA channels for USB, I have to write it by myself
<iscle>
So I'd like feedback for any of the two options (to repeat channels or not to do so)
<apritzel>
iscle: are there other users of the MUSB DMA feature? I'd check how they solve this.
<apritzel>
I think the rx/tx differentation comes from different code paths involved in sending and receiving, so having them separately makes sense. Not sure how this works in your code
<apritzel>
My gut feeling is that just per-endpoint elements would be fine, as you sketched above
<iscle>
There are other MUSB drivers implementing DMA for other SOCs but each of them handle in their own code. One of them is, for example, "stericsson,db8500-musb" which does repeat each channel ("iep_1_9", "oep_1_9", "iep_2_10", "oep_2_10", ...)
juri_ has joined #linux-sunxi
<apritzel>
do you have the code finished and working? Often those things become clearer if you look how the code would need to handle this
<iscle>
At least two drivers for musb dma use separate tx and rx channels, even if they are the same
<apritzel>
in general I wouldn't sweat it, reviewers on the list will complain early enough. Maybe just think about how the other way would be implemented already, just in case.
<iscle>
apritzel: not yet finished nor working, it compiles at least. I will implement it by repeating the channels and then upload the code so you (or somebody else) can take a second look and lmk their opinion
<iscle>
I just wanted to know if there was a general convention or not
<apritzel>
I think this question is more MUSB/USB/Linux specific, probably not the right audience in here. If you really need to know before sending, ask on the list
<apritzel>
was there anyone in here having trouble with audio on the D1/T113s? Just found what looks like a bug in the PLL_AUDIO0 setup, which would mean its frequency would always be halved. Does that ring a bell with someone?