ikarso has quit [Quit: Connection closed for inactivity]
thinkfat_ has joined #beagle
thinkfat has quit [Ping timeout: 260 seconds]
buzzmarshall has quit [Quit: Konversation terminated!]
xet7 has joined #beagle
otisolsen70 has joined #beagle
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #beagle
jiande2022 has joined #beagle
rob_w has joined #beagle
RMoll has quit [Ping timeout: 252 seconds]
jiande2022 has quit [Quit: Connection closed for inactivity]
zjason has quit [Ping timeout: 272 seconds]
zjason has joined #beagle
ikarso has joined #beagle
florian has joined #beagle
Shadyman has joined #beagle
nslu2-log has quit [Remote host closed the connection]
nslu2-log has joined #beagle
Shadyman has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
ikarso has joined #beagle
akaWolf has quit [Ping timeout: 276 seconds]
wonko-the-sane has quit [Remote host closed the connection]
wonko-the-sane has joined #beagle
akaWolf has joined #beagle
rob_w has quit [Remote host closed the connection]
buckket has quit [Remote host closed the connection]
wonko-the-sane has quit [Remote host closed the connection]
wonko-the-sane has joined #beagle
buckket has joined #beagle
zjason has quit [Remote host closed the connection]
argonautx has joined #beagle
zjason has joined #beagle
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #beagle
RMoll has joined #beagle
zjason has quit [Ping timeout: 272 seconds]
zjason has joined #beagle
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #beagle
vagrantc has joined #beagle
<vvn> The mini usb port on the bbb is configured by default to gadget. Is it possible to configure it as usb host, via the devicetree I imagine?
<zmatt> vvn: it can't act as host since it can't output 5v
<zmatt> but other than that I *think* it's possible to force it into host mode via DT, assuming the driver can force the hardware to ignore the ID pin
<zmatt> I also vaguely remember the usb controller being very fussy about being able to actively control the 5v supply output, but iirc that has been fixed / worked around in the driver
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 272 seconds]
<vvn> zmatt: I just confirmed that our custom daughter (which provides to power to the bbb in fact) also provides power for this port, used as host on our systems
<vvn> daughter board*
<vvn> the* power
* vvn sighs
<zmatt> be sure to also provide power to the bbb via that usb port since the controller will take to observe that 5v is present
<zmatt> *will want to observe
<zmatt> but anyway, try &usb0 { dr_mode = "host"; };
<vvn> zmatt: this product is a few years old and I'm just writing a fresh device tree and kernel support for it, so I assume this works as expected on the hardware level. I can confirm some aspects of it if there's any risks
<zmatt> ok
<zmatt> I mean, if it works it works
<vvn> that's what I wanted to say ^^
<vvn> I'll try dr_mode right away
florian has quit [Quit: Ex-Chat]
<vvn> zmatt: how do I know the usb mode from userspace?
<zmatt> if usb0 is in host mode it will show up in /sys/bus/usb/devices/
<zmatt> if it's in device mode it'll show up in /sys/class/udc as "musb-hdrc.0"
<zmatt> you can also check its state using: cat /sys/bus/platform/devices/musb-hdrc.0/mode
<vvn> currently b_idle
<zmatt> that's device mode
<zmatt> not host
<vvn> is the usbgadget thing a feature of the SoC itself or a feature of the board?
<zmatt> the SoC
<vvn> ok
<vvn> that's a capability of the usb IP in the SoC I imagine
<zmatt> it has two dual-role usb controllers
<zmatt> specifically Mentor Graphics USB 2.0 Multi-Point Dual-Role Controller, commonly abbreviated musbmhdrc or musb
Shadyman has joined #beagle
<zmatt> /sys/bus/platform/devices/musb-hdrc.0/mode shows the current state of the controller, with states for host mode having the a_ prefix and states for peripheral/gadget mode having the b_ prefix
<zmatt> e.g. b_idle for peripheral mode when not connected to a host, and a_wait_bcon for host mode with no peripheral connected to it
<vvn> ok I see
<vvn> does this SoC have ALSA audio drivers?
<zmatt> yes
<zmatt> the SoC has two mcasp controllers supporting i2s and other digital audio serial protocols, and its driver is called davinci-mcasp (CONFIG_SND_SOC_DAVINCI_MCASP)
<zmatt> (davinci is a marketing term used by TI for various, fairly unrelated, SoC families. mcasp has nothing in particular to do with this, and the AM335x used on the BBB is not part of any davinci family, but I guess the driver was first introduced to support some davinci soc and the name has stuck)
RMoll has quit [Quit: Client closed]
<vvn> funny
<vvn> ok recompile the whole thing with the host usb mode and the soc / ext RTCs switched!
<vvn> zmatt: I used to get the same headache while working on the davinci da850 omap socl
<vvn> soc*
<zmatt> da850 ... that's the "freon" SoC I think? (omap-L138 / AM18xx)
<zmatt> or maybe primus (omap-L137 / AM17xx)
<zmatt> nah, definitely freon
<vvn> those codenames ring a bell yeah
<zmatt> omap-L138, omap-L132, AM18xx, (tms320)c6748, (tms320)da850 ... all the same die afaik
<zmatt> TI is great at giving the same die (with slightly different efuse programming) several completely different part numbers while giving completely different dies very similar part numbers
<vvn> indeed
<vvn> I'm wondering if that is just clumsiness or if there's a strategy behind such naming mess
<zmatt> Marketing™
otisolsen70_ has quit [Quit: Leaving]
Shadyman has quit [Remote host closed the connection]
argonautx has quit [Quit: Leaving]
Posterdati has quit [Ping timeout: 256 seconds]
Posterdati has joined #beagle
nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
shoragan[m] has quit [Ping timeout: 240 seconds]
shoragan[m] has joined #beagle