ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
return0e has joined #linux-rockchip
return0e has quit [Ping timeout: 255 seconds]
field^Mop has quit [Ping timeout: 245 seconds]
stikonas has quit [Remote host closed the connection]
vstehle has quit [Ping timeout: 246 seconds]
kever has joined #linux-rockchip
ganbold has quit [Quit: Leaving]
JohnDoe_71Rus has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
vstehle has joined #linux-rockchip
tomeu has joined #linux-rockchip
xming has joined #linux-rockchip
<xming> hi is ap6335 supported on firefly rk3288 with mainline kernel? With 5.1.0 I don't see ant reference in the firefly's dtsi
ldevulder_ is now known as ldevulder
yann has quit [Read error: No route to host]
warpme_ has joined #linux-rockchip
<mmind00> xming: sdio devices normally get probed automatically and the dt _can_ provide additional info but doesn't have to ... so essetially, as long as the &sdio-node is enabled it should already find the wifi module, if the driver itself is actually built
stikonas has joined #linux-rockchip
wwilly has joined #linux-rockchip
<xming> mmind00: is this the correct driver? CONFIG_B43 if so multi_v7_defconfig doesn't enble it by default
stikonas has quit [Remote host closed the connection]
warpme_ has quit [Quit: warpme_]
<mmind00> xming: I don't know ... never really needed the wifi on my test-boards ... but you should be able to compare sdio device-ids ... the mmc subsystem should print these when it finds a mmc device (or in /sys) ... and compare that with the device-ids in the driver
BenG83 has joined #linux-rockchip
return0e has joined #linux-rockchip
<xming> mmind00: sorry I am a bit lost here
<xming> ther are not entries under /sys/bus/sdio/devices
<xming> and isn't mmc for the internal flash/sd
<xming> also I can't find anyting realated to wifi in dmesg
<mmind00> xming: let me check ... in any case, according to https://wikidevi.com/wiki/AMPAK, the AP6335 is in fact based on the BCM4339, so that driver could be the right one
<mmind00> xming: checking rk3288-firefly.dtsi I see that sdio0 gets enabled ... so at least it should detect the card ... the flow is: mmc-host gets probed, host detects sdio-card (grep for mmc in dmesg), host checks sdio-id and binds to a matching driver (this b43 maybe)
<xming> og mmc is a kind of bus?
wwilly_ has joined #linux-rockchip
return0e has quit [Remote host closed the connection]
wwilly has quit [Ping timeout: 268 seconds]
<mmind00> xming: yep ... and even hotplug-capable ;-)
<xming> ok going to compile b43 and see if it helps
<mmind00> xming: hmm, you can see that mmc1 there is the host that should have the wifi card (non-removable and the others have mmc + sd card)
<mmind00> xming: as for sys ... try somewhere under the host controller itself (bus/mmc or so)... I think the bus/sdio/devices might only get filled after it bound to the driver
* xming needs something like lspci
<xming> only mmc0:1234 mmc2:0001 under :/sys/bus/mmc/devices/
<xming> mmc0 is the uSD and mmc2 is the internal flash
<xming> oh it needs a fw
return0e has joined #linux-rockchip
field^Mop has joined #linux-rockchip
warpme_ has joined #linux-rockchip
<xming> still no dice
BenG83 has quit [Remote host closed the connection]
BenG83 has joined #linux-rockchip
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
mrjay has joined #linux-rockchip
<mrjay> xming: try brcmfmac driver
<mrjay> xming: you will also need firmware binary and txt
mrjay has quit [Client Quit]
nsaenz has quit [Remote host closed the connection]
kever has quit [Ping timeout: 248 seconds]
nsaenz has joined #linux-rockchip
ldevulder has quit [Ping timeout: 246 seconds]
<xming> mmind00: nvram_AP6335.txt isn't a blob, do I need a fw_bcm43xxx.bin
ldevulder has joined #linux-rockchip
warpme_ has quit [Quit: warpme_]
BenG83 has quit [Quit: Leaving]
inode has quit [Ping timeout: 258 seconds]
JohnDoe_71Rus has quit [Ping timeout: 252 seconds]
<xming> I really don't see any attempt to load any fw
<xming> tried b43, b43legacy and brcmfmac
<xming> modinfo says that brcmfmac looks for brcm/brcmfmac?????-sdio.bin and not nvram_AP6335.txt
mrjay has joined #linux-rockchip
<mrjay> xming: you need both firmware binary and txt
<mrjay> xming: what linux do you use? debian, archlinux other?
<xming> alpine
<mrjay> xming: try to install firmware package of your distribution
<xming> I did
<mrjay> i.e. in debian it is named linux-firmware
<xming> I have bunch of files in /lib/firmware/brcm/bcm*
<xming> AFAIK, if the hw is present and fw is missing, it will be printed in dmesg
<xming> and it did that for regulatory.db
<mrjay> could you paste output of the "dmesg -k | grep -i brcmfmac"
<xming> it's empty
<xming> FWIW it's a self compiled kernel (mainline 5.1) with multi_v7_defconfig
<mrjay> without any changes? you need to enable CONFIG_BRCMFMAC=m CONFIG_BRCMFMAC_PROTO_BCDC=y CONFIG_BRCMFMAC_SDIO=y and not enable: CONFIG_BRCMFMAC_USB is not set # CONFIG_BRCMFMAC_PCIE is not set
<xming> after some googling isn't nvram_AP6335.txt for bcmhd?
<mrjay> it's for both
<xming> BTW I am using mainline uboot and kernel
<mrjay> brcmfmac and bcmdhd
<xming> I think the kernel just doesn't seem to see the hw
<mrjay> you said that modinfo outputs"brcm/brcmfmac?????-sdio.bin"
<mrjay> what ???? mean
<mrjay> ... 4339, 4335
<mrjay> sorrry ... forget the last one
<mrjay> weird ... i'm out of ideas
<xming> mmind00 said I should see the devs in /sys/bus/mmc* but I don't
<mmind00> xming: not should ... more like guessing
<xming> oh
<mrjay> do you have enabled in .config: CONFIG_MMC_DW=y CONFIG_MMC_DW_PLTFM=y CONFIG_MMC_DW_ROCKCHIP=y ?
<xming> yes
<mrjay> than paste a dmesg -k i will take a look
<xming> ls /sys/bus/*/devices/ https://bpaste.net/show/f8f6551f7c59
<mrjay> ok is that log with modprobe brcmfmac?
<xming> yes
<mrjay> brcmfmac: unknown parameter 'debug:10' ignored
<xming> only entries are when I added wrong param
<mrjay> ah ok
<xming> but when successful it didn't even print anything
<mrjay> could you add "clock-frequency = <25000000>;" to mmc1 (might be named sdio) dts node, recompile kernel and reboot and try brcmfmac again
<xming> mrjay: do you mean arch/arm/boot/dts/rk3288-firefly.dts ?
<xming> or arch/arm/boot/dts/rk3288-firefly.dtsi?
mrjay_ has joined #linux-rockchip
<mrjay_> yep ... sorry :)
<mrjay_> maybe your wifi is fried or something
<xming> mrjay: like this? https://bpaste.net/show/16e3989a8166
<mrjay_> xming: yep :)
<xming> mrjay: ok I will try to reboot in vendor's ubuntu and see if the hw is working
mrjay has quit [Ping timeout: 256 seconds]
<xming> hw is working
<xming> [ 3.557203] dhd_conf_set_conf_path_by_nv_path: config_path=/system/etc/firmware/config.txt
<xming> [ 9.619980] dhd_conf_set_fw_name_by_chip: firmware_path=/system/etc/firmware/fw_bcm4339a0_ag.bin
<xming> those are used with rK's kernel
<xming> mrjay_: do I *have* to recompile afet adding "clock-frequency = <25000000>;"
<xming> ah it just comples arch/arm/boot/dts/rk3288-firefly.dtb
vicencb has joined #linux-rockchip
<mrjay_> xming: yes ... also you need to update your old devicetree blob with a new one: arch/arm/boot/dts/rk3288-firefly.dtb
<xming> right but I don't need to cp the zImage, right?
<mrjay_> nope
* xming waits for it to boot
<xming> I don't see brcm in dmesg
<mrjay_> ok ... now i'm really out of ideas
<xming> :( sorry about taking up your time
<xming> [ 2.600510] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
<xming> shouldn't that be 25000000
<xming> mrjay_: do you happen to have a working .config for firefly rk3288 with wifi enabled?
<mrjay_> nope ... only wip for pipo p10 rk3399 tablet
<mrjay_> but with working brcmfmac wifi
mrjay_ has quit [Quit: Page closed]
<xming> thanks I will try yours
mani_s has joined #linux-rockchip
<mani_s> mmind00, have you tested i2c2 on rk3399 w/ mainline?
<mani_s> it is not working on couple of our boards but with the vendor kernel it works fine
<mmind00> mani_s: on rk3399-scarlet the digitzer-pen is connected to i2c2 and that worked in a test just now
<mmind00> mani_s: I guess double check pinctrl settings or take a look at the i2c-scl-*-time-ns properties in rk3399-gru-scarlet.dtsi to see if something helps
<mani_s> mmind00, okay, thanks for testing!
<mani_s> sure, will check it out!
mrjay has joined #linux-rockchip
kever has joined #linux-rockchip
<mrjay> xming: to make wifi work you need to add some things to dts:
ayaka has quit [Read error: Connection reset by peer]
<mrjay> xming: it is possible that reset gpio is in low state and constantly resets a board
<xming> mrjay: ty, will try
<mrjay> xming: that is why wifi not being detected
ayaka has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
mrjay has quit [Quit: Page closed]
warpme_ has joined #linux-rockchip
buZz has joined #linux-rockchip
<buZz> is RK3399 support in mainline yet?
MoeIcenowy has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
MoeIcenowy has joined #linux-rockchip
<phh> buZz: well gpu and vpu are still missing, but except for that, yes?
<buZz> oh cool
<buZz> and gpu is a mali supported by panfrost, right?
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
kever has quit [Ping timeout: 245 seconds]
<sphalerite> buZz: yes, to the extent that panfrost supports stuff :)
<buZz> :D
<buZz> would that driver also offer Vulkan support? or would it have to wait on Mesa to adopt it?
<sphalerite> it's already developed within mesa (though not merged upstream), so yes, it should AFAIU
<buZz> oooo, sweet
BenG83 has joined #linux-rockchip
chewitt has joined #linux-rockchip
warpme_ has quit [Quit: warpme_]
aalm has quit [Ping timeout: 255 seconds]
aalm has joined #linux-rockchip
vagrantc has joined #linux-rockchip
warpme_ has joined #linux-rockchip
xming has quit [Ping timeout: 245 seconds]
stikonas has joined #linux-rockchip
warpme_ has quit [Quit: warpme_]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
stikonas_ has joined #linux-rockchip
warpme_ has joined #linux-rockchip
stikonas has quit [Ping timeout: 246 seconds]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
stikonas_ has quit [Read error: Connection reset by peer]
rich0 has quit [Quit: rich0]
stikonas_ has joined #linux-rockchip
rich0 has joined #linux-rockchip
BenG83 has quit [Quit: Leaving]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
tlwoerner_ has joined #linux-rockchip
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-rockchip
warpme_ has quit [Client Quit]
warpme_ has joined #linux-rockchip
warpme_ has quit [Client Quit]
warpme_ has joined #linux-rockchip
warpme_ has quit [Client Quit]
warpme_ has joined #linux-rockchip
warpme_ has quit [Client Quit]
warpme_ has joined #linux-rockchip
warpme_ has quit [Client Quit]
wwilly_ has quit [Ping timeout: 252 seconds]
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-rockchip
tlwoerner_ has quit [Read error: Connection reset by peer]
tlwoerner_ has joined #linux-rockchip
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner_ has joined #linux-rockchip
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner_ has joined #linux-rockchip
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner_ has joined #linux-rockchip
gnufan_home has joined #linux-rockchip
tlwoerner_ has quit [Quit: Leaving]
chewitt has quit [Remote host closed the connection]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
arnd has quit [Ping timeout: 258 seconds]
arnd has joined #linux-rockchip
mateo` has quit [Ping timeout: 246 seconds]
mateo` has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
gnufan_home has quit [Quit: Leaving.]
field^Mop has quit [Ping timeout: 245 seconds]