narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
dlan_ is now known as dlan
camus has quit [Quit: camus]
camus has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
JohnnyonF has quit [Ping timeout: 256 seconds]
naoki has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
<lvrp16> nice, someone working on a311d2
xdarklight has quit [Quit: ZNC - https://znc.in]
xdarklight has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 240 seconds]
ldevulder has joined #linux-amlogic
naoki has quit [Quit: naoki]
<narmstrong> minute: can you share the changes you added to the bpi-cm4 dt ? If you're ok I'd like to send a proper DT for your cm4 adapter with the next DSI patchset revision
LucasTanure has joined #linux-amlogic
LucasTanure has quit [Client Quit]
LucasTanure has joined #linux-amlogic
LucasTanure has quit [Quit: Leaving]
LucasTanure has joined #linux-amlogic
tomeu has quit [Remote host closed the connection]
camus has quit [Read error: Connection reset by peer]
camus1 has joined #linux-amlogic
gabes has quit [Quit: The Lounge - https://thelounge.chat]
gabes has joined #linux-amlogic
camus1 is now known as camus
rockosov has quit [Ping timeout: 240 seconds]
rockosov has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
<minute> narmstrong: more than ok!
buzzmarshall has joined #linux-amlogic
camus has quit [Remote host closed the connection]
LucasTanure has quit [Quit: Leaving]
vagrantc has joined #linux-amlogic
<minute> narmstrong: so here is the current WIP dts https://gist.github.com/mntmn/cf144ea470e1293c39c1e19764f26f5f
<narmstrong> minute: can I use "Co-developed-by: Lukas F. Hartmann <lukas@mntre.com>" like for the imx8mq dt ?
<minute> narmstrong: yes, that's me
<minute> i'm documenting all other changes/notes now that i needed to make stuff work
<narmstrong> I think the compatible should be `"mntre,reform2-cm4", "bananapi,bpi-cm4", "amlogic,a311d", "amlogic,g12b";` since it's a generic CM4 adapter board right whe you put a BPI-CM4 module right ?
<minute> narmstrong: yes, but it wouldn't work with raspberry pi cm4 as the GPIOs and display and audio would be different
<minute> narmstrong: so it is specific to bpi cm4
<minute> narmstrong: but if compatibles can be combined in this way then you're right
<narmstrong> Yep it’s definitely specific to bpi-cm4 with such compatibles
<minute> ok cool
<minute> narmstrong: ok so here is the TODO to smooth everything out https://gist.github.com/mntmn/4353abca64a479fc2c54e63904c6c330
<narmstrong> minute: nice todo doc!!
<minute> thanks!
<minute> just ordered two more bpis for testing/demoing
<narmstrong> minute: nice
<narmstrong> minute: did you make analog audio work ?
<narmstrong> oh just saw on the todo list
<narmstrong> I'm adding the missing DT bits
<minute> narmstrong: we don't have a path for analog audio... we have a I2S doc on the motherboard
<narmstrong> minute: which CM4 audio lines are you using ?
<minute> narmstrong: GPIO18 (DAC BCLK), GPIO19 (DAC TXFS), GPIO20 (DAC DIN), GPIO21 (DAC DOUT)
GNUtoo has quit [Ping timeout: 240 seconds]
<minute> narmstrong: in the rpi CM4 doc they are called PCM_CLK, PCM_FS, PCM_DIN, PCM_DOUT
<narmstrong> setup for the audio is a pain, but at first if you get an alsa card with this setup, it's a first step
<narmstrong> then after I'll guide you in the alsa mixer setup to have hdmi & analog
<minute> narmstrong: amazing, thank you!
<minute> narmstrong: i didn't solder the 12.288mhz oscillator for mclk yet, so i can do the real test next week
<narmstrong> minute: this tree doesn't include the various small fixes you need (GP0 min freq, timings fixes...) but it's a first step!
<minute> totally!
GNUtoo has joined #linux-amlogic
<minute> narmstrong: btw i gave your new dts a spin now, laptop works but wm8960 doesn't seem to probe... and i get a bunch of "axg-sound-card sound: ASoC: Failed to add route"
<minute> narmstrong: full dmesg http://dump.mntmn.com/dmesg-a311d-20230526.txt
f_ has joined #linux-amlogic
f_[xmpp] has joined #linux-amlogic
<narmstrong> Hmmm
<f_> \o
<f_> It's been a while!
<narmstrong> o/
<narmstrong> minute: weird, those are correct dapm widgets, did you build the driver ?
<narmstrong> The wm8960 codec driver
<minute> let me double check
<minute> yep, did... i will add some printks to its probing
<f_> printk()s everywhere!
<f_> :D
<minute> narmstrong: confirmed that wm8960 goes through all probes successfully
<minute> weird
<narmstrong> Weird
<narmstrong> Perhaps adding a prefix could help here
<minute> hmm, are you sure that simple-audio-card,widgets is correct, not audio-widgets?
<minute> narmstrong: replacing with audio-widgets makes the sound card appear
<narmstrong> Oh yeah my fault, bad copy paste
<minute> now i get a ton of: [ 19.882749] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
<minute> [ 19.897175] fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
<minute> but it stops after 19.89
<narmstrong> Yep you need some alsa mixer to be set
<narmstrong> Let me grab a real keyboard, to hard to explain from a phone
<minute> ok
<narmstrong> so I think need to set:
<narmstrong> FRDDR_A SRC 2 EN to enable
<narmstrong> FRDDR A SINK 1 SEL to OUT 1
<narmstrong> TDMOUT B SRC SEL to IN 0
<narmstrong> and set the wm8960 controls aswell
<narmstrong> and you my need to set all the volumes up
<minute> ah, these are alsamixer controls, yeah?
<narmstrong> yep
<narmstrong> 'FRDDR_A SRC 1 EN' 'on'
<narmstrong> not SRC 2
<narmstrong> hmm no
<narmstrong> set 'FRDDR_A SINK 1 SEL' 'OUT 1'
<narmstrong> set 'FRDDR_A SRC 1 EN' 'on'
<narmstrong> set 'TDMOUT_B SRC SEL' 'IN 0'
<narmstrong> for input it should be:
<narmstrong> TDMIN B SRC SEL -> IN 1
<narmstrong> TODDR A SRC SEL -> IN 1
<minute> thank you, i've set this up!
<minute> after replacing pulseaudio with pipewire i can also control things in pavucontrol
<minute> but to have actual sound i need to solder in the mclk beginning of next week
<narmstrong> at least it's probing, which is great, I'll fix the DT
<minute> yes, thanks a ton!
BlueMatt has quit [Quit: Quit]
BlueMatt has joined #linux-amlogic
LucasTanure has joined #linux-amlogic
LucasTanure has quit [Quit: Leaving]
vagrantc has quit [Quit: leaving]
Lyude has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
f_ has quit [Quit: disconnecting..]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic