ChanServ changed the topic of #glasgow to: glasgow interface explorer · code https://github.com/GlasgowEmbedded/glasgow · logs https://freenode.irclog.whitequark.org/glasgow · discord https://1bitsquared.com/pages/chat · production https://www.crowdsupply.com/1bitsquared/glasgow · CrowdSupply campaign is LIVE!
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
svenpeter has quit [Ping timeout: 246 seconds]
fridtjof[m] has quit [Ping timeout: 246 seconds]
svenpeter has joined #glasgow
fridtjof[m] has joined #glasgow
bgamari_ has joined #glasgow
bgamari has quit [Ping timeout: 260 seconds]
thaytan has quit [Ping timeout: 244 seconds]
thaytan has joined #glasgow
sorear has quit [Ping timeout: 265 seconds]
sorear has joined #glasgow
ali_as has quit [Remote host closed the connection]
englishm_ has quit [*.net *.split]
_alice has quit [*.net *.split]
marble has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
karlyeurl has quit [*.net *.split]
hell__ has quit [*.net *.split]
gruetzkopf has joined #glasgow
_alice has joined #glasgow
englishm_ has joined #glasgow
karlyeurl has joined #glasgow
marble has joined #glasgow
hell__ has joined #glasgow
carlomaragno has quit [Ping timeout: 264 seconds]
randomplum has quit [Ping timeout: 240 seconds]
_alice has quit [Ping timeout: 240 seconds]
gillesmauve has quit [Ping timeout: 244 seconds]
svenpeter has quit [Ping timeout: 260 seconds]
disasm[m] has quit [Ping timeout: 258 seconds]
blazra has quit [Ping timeout: 258 seconds]
whitequark[m] has quit [Ping timeout: 260 seconds]
emily has quit [Ping timeout: 260 seconds]
eddyb has quit [Ping timeout: 260 seconds]
promach3 has quit [Ping timeout: 268 seconds]
jacob| has quit [Ping timeout: 264 seconds]
fibmod has quit [Ping timeout: 264 seconds]
fibmod has joined #glasgow
carlomaragno has joined #glasgow
jacob| has joined #glasgow
fridtjof[m] has quit [Ping timeout: 244 seconds]
jschievink has quit [Ping timeout: 258 seconds]
disasm[m] has joined #glasgow
futarisIRCcloud has joined #glasgow
emily has joined #glasgow
blazra has joined #glasgow
svenpeter has joined #glasgow
whitequark[m] has joined #glasgow
randomplum has joined #glasgow
gillesmauve has joined #glasgow
_alice has joined #glasgow
bgamari has joined #glasgow
bgamari_ has quit [Ping timeout: 240 seconds]
fridtjof[m] has joined #glasgow
jschievink has joined #glasgow
bgamari_ has joined #glasgow
bgamari has quit [Ping timeout: 258 seconds]
randomplum has quit [Ping timeout: 244 seconds]
disasm[m] has quit [Ping timeout: 240 seconds]
_alice has quit [Ping timeout: 258 seconds]
emily has quit [Ping timeout: 265 seconds]
svenpeter has quit [Ping timeout: 240 seconds]
whitequark[m] has quit [Ping timeout: 258 seconds]
blazra has quit [Ping timeout: 258 seconds]
gillesmauve has quit [Ping timeout: 260 seconds]
bgamari_ has quit [Ping timeout: 240 seconds]
bgamari has joined #glasgow
fridtjof[m] has quit [Ping timeout: 240 seconds]
jschievink has quit [Ping timeout: 258 seconds]
egg|laptop|egg has joined #glasgow
eddyb has joined #glasgow
emily has joined #glasgow
disasm[m] has joined #glasgow
gillesmauve has joined #glasgow
promach3 has joined #glasgow
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl9D
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl99
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl9Q
randomplum has joined #glasgow
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl9F
_alice has joined #glasgow
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl9N
svenpeter has joined #glasgow
blazra has joined #glasgow
<_whitenotifier> [glasgow] whitequark reviewed pull request #265 commit - https://git.io/Jtl9j
egg|laptop|egg_ has quit [Remote host closed the connection]
egg|laptop|egg has quit [Remote host closed the connection]
whitequark[m] has joined #glasgow
ali_as has joined #glasgow
fridtjof[m] has joined #glasgow
jschievink has joined #glasgow
Stephanie has joined #glasgow
aquijoule_ has joined #glasgow
Eli2_ has joined #glasgow
bgamari_ has joined #glasgow
mwk_ has joined #glasgow
Ekho- has joined #glasgow
bgamari has quit [*.net *.split]
richbridger has quit [*.net *.split]
mwk has quit [*.net *.split]
Stephie has quit [*.net *.split]
Lofty has quit [*.net *.split]
danilonc has quit [*.net *.split]
Eli2 has quit [*.net *.split]
Ekho has quit [*.net *.split]
emily has quit [Ping timeout: 246 seconds]
disasm[m] has quit [Ping timeout: 240 seconds]
lukego has quit [Ping timeout: 246 seconds]
electronic_eel_ has joined #glasgow
electronic_eel has quit [Ping timeout: 264 seconds]
Lofty has joined #glasgow
danilonc has joined #glasgow
lukego has joined #glasgow
emily has joined #glasgow
disasm[m] has joined #glasgow
Ekho- is now known as Ekho
ali_as has quit [Remote host closed the connection]
PyroPeter_ has joined #glasgow
PyroPeter has quit [Ping timeout: 264 seconds]
PyroPeter_ is now known as PyroPeter
trh has quit [Ping timeout: 256 seconds]
G33KatWork has quit [Ping timeout: 256 seconds]
trh has joined #glasgow
G33KatWork has joined #glasgow
GNUmoon2 has quit [Ping timeout: 268 seconds]
d_olex has quit [Read error: Connection reset by peer]
d_olex has joined #glasgow
GNUmoon2 has joined #glasgow
mndza has joined #glasgow
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon2 has joined #glasgow
Stormwind_mobile has quit [Remote host closed the connection]
Stormwind_mobile has joined #glasgow
Emantor has joined #glasgow
whitequark has quit [Ping timeout: 272 seconds]
whitequark has joined #glasgow
smkz has quit [Quit: smkz]
smkz has joined #glasgow
electronic_eel_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
electronic_eel has joined #glasgow
egg|laptop|egg has joined #glasgow
GNUmoon has joined #glasgow
GNUmoon2 has quit [Ping timeout: 268 seconds]
jschievink has quit [*.net *.split]
FFY00 has quit [*.net *.split]
midnight has quit [*.net *.split]
ptr_0x0001 has quit [*.net *.split]
russell-- has quit [*.net *.split]
pepijndevos has quit [*.net *.split]
fridtjof[m] has quit [*.net *.split]
randomplum has quit [*.net *.split]
gillesmauve has quit [*.net *.split]
sorear has quit [*.net *.split]
key2 has quit [*.net *.split]
Emantor has quit [*.net *.split]
FFY00 has joined #glasgow
ptr_0x0001 has joined #glasgow
russell-- has joined #glasgow
midnight has joined #glasgow
pepijndevos has joined #glasgow
jschievink has joined #glasgow
midnight has quit [Max SendQ exceeded]
fridtjof[m] has joined #glasgow
randomplum has joined #glasgow
sorear has joined #glasgow
Emantor has joined #glasgow
key2 has joined #glasgow
gillesmauve has joined #glasgow
gillesmauve has quit [Max SendQ exceeded]
futarisIRCcloud has quit [*.net *.split]
midnight has joined #glasgow
futarisIRCcloud has joined #glasgow
fridtjof[m] has quit [Ping timeout: 265 seconds]
randomplum has quit [Ping timeout: 265 seconds]
whitequark[m] has quit [Ping timeout: 268 seconds]
futarisIRCcloud has quit [Max SendQ exceeded]
_alice has quit [Ping timeout: 246 seconds]
eddyb has quit [Ping timeout: 260 seconds]
jschievink has quit [Ping timeout: 244 seconds]
disasm[m] has quit [Ping timeout: 260 seconds]
futarisIRCcloud has joined #glasgow
DarthCloud has quit [Ping timeout: 268 seconds]
emily has quit [Ping timeout: 240 seconds]
promach3 has quit [Ping timeout: 240 seconds]
svenpeter has quit [Ping timeout: 268 seconds]
blazra has quit [Ping timeout: 260 seconds]
DarthCloud has joined #glasgow
FFY00 has quit [Ping timeout: 244 seconds]
whitequark[m] has joined #glasgow
eddyb has joined #glasgow
cyrillu[m] has joined #glasgow
randomplum has joined #glasgow
cyrillu[m] has quit [Ping timeout: 240 seconds]
whitequark[m] has quit [Ping timeout: 265 seconds]
randomplum has quit [Ping timeout: 268 seconds]
eddyb has quit [Ping timeout: 265 seconds]
<d1b2> <davoid> what would be a good starting point (project/examples) to look at for interfacing with an external SPI peripherla?
<d1b2> <davoid> want to stream data from one of these 8ch ADCs LTC2348-18
FFY00 has joined #glasgow
emily has joined #glasgow
disasm[m] has joined #glasgow
blazra has joined #glasgow
gillesmauve has joined #glasgow
eddyb has joined #glasgow
fridtjof[m] has joined #glasgow
cyrillu[m] has joined #glasgow
_alice has joined #glasgow
jschievink has joined #glasgow
promach3 has joined #glasgow
svenpeter has joined #glasgow
randomplum has joined #glasgow
whitequark[m] has joined #glasgow
aquijoule_ has quit [Read error: Connection reset by peer]
<d1b2> <Attie> @davoid there's an example using I2C here - https://github.com/GlasgowEmbedded/glasgow/blob/master/examples/i2c-pcf8574.py
<d1b2> <Attie> for SPI it's very similar - you have the read/write functions, see:
<d1b2> <Attie> it looks like that ADC is 8-channels to 8x SDO pins, so that's not directly SPI compatible...
<d1b2> <Attie> if you're okay with only using a single channel, then you can take the spi-controller applet and run with it as it stands, otherwise you'll need to make an oct-SPI type applet
egg|laptop|egg has quit [Remote host closed the connection]
<whitequark> daveshah: remember we talked about non bonded out ice40 jtag? suppose i could bond it out, is there any specific die i have to look for?
<d1b2> <daveshah> it is bonded out on some earlier parts
<whitequark> do you know which?
<d1b2> <daveshah> you can find the pinout on some early schematics (TRST becomes NC in newer pinouts, the other pins are just regular IO)
<d1b2> <daveshah> I think all of the larger LP/HX packages
<modwizcode> Wait the ice40 has non-bonded out jtag?
<whitequark> daveshah: would SiliconBlue marked parts all have bonded out JTAG, or did they change that back in SB days?
<d1b2> <daveshah> I wouldn't be surprised if it was still being bonded out on those packages
<sorear> don't we have high res die photos? could any useful information about JTAG be mined from those?
<whitequark> oh I might just have some
<_whitenotifier> [glasgow] mndza reviewed pull request #265 commit - https://git.io/Jt86A
FFY00 has quit [Read error: Connection reset by peer]
FFY00 has joined #glasgow
egg|laptop|egg has joined #glasgow
jstein has joined #glasgow
nicoo has quit [Remote host closed the connection]
nicoo has joined #glasgow
<d1b2> <bburky> It should be possible to write a Python FUSE driver that makes fake /dev/spidev* and /dev/i2c* devices which map to glasgow i2c/spi right? Possibly as a glasgow script? Use FUSE to translate the linux read/write/ioctl/whatever into the appropriate glasgow interface command.
<d1b2> <bburky> Would be neat if that actually works. Might allow using standard linux tools with glasgow.
<electronic_eel> @bburky are you sure that you can create a userspace i2c host driver with FUSE? I'm a bit in doubt if FUSE provides the necessary ioctl and similar for that
<electronic_eel> for i2c I think you could use something like this https://lwn.net/Articles/820320/
<d1b2> <bburky> I'm pretty sure FUSE lets you receive ioctls and let you handle them. I thin this is an example https://github.com/fusepy/fusepy/blob/master/examples/ioctl.py
<d1b2> <bburky> But yeah, if there's a native /dev/i2c-pseudo-controller or something that looks much less like a hack.
<d1b2> <Attie> @bburky - you won't be able to access the nodes as /dev/*, but if you're happy with /path/to/my/mountpoint/i2c or similar, then it hink it should work
<d1b2> <Attie> but there are likely other / better options, like what electronic_eel linked
<d1b2> <bburky> Yeah. Though I think you could bind mount it into /dev if your really wanted to. The OS still wouldn't know about it, but it might help convince some command line tools that expect the device to be there.
<d1b2> <Attie> probably a bad idea to do that, but a symlink might do the job for existing tools
<d1b2> <bburky> Yes, if the tools respect symlinks that would be better.
<electronic_eel> @bburky what is your goal in the end? use device drivers that are already in the linux kernel with devices connected to glasgow? or call linux commandline tools that implement some i2c communication themselves and you just want an i2c interface for them?
<d1b2> <bburky> No specific use case. But it might be a way to reuse existing tools with glasgow. Like for example avrdude supports a linuxspi programmer.
<electronic_eel> with a commandline tool that implements the protocol itself it may work
<electronic_eel> (with fuse)
<electronic_eel> but when you want to use an in-kernel driver then you'll need a host driver that hooks into the respective kernel framework. you can't do that with FUSE
<d1b2> <bburky> Ah, yeah, you're right. There are a lot of in kernel i2c and spi device drivers I think. You wouldn't be able to use those. You'd need something like the i2c-pseudo-controller you linked that lets the kernel know about the adapter.
FFY00 has quit [Ping timeout: 258 seconds]
<sorear> > 1500 boards
<modwizcode> It would be nice to have an actual spi and i2c pseduo driver in the kernel for that situation. I have a hacky module that implements bare minimum but even that was hard since to make a device you need to find a real device reference of some sort to be the parent of the fake module.
bgamari has joined #glasgow
bgamari_ has quit [Ping timeout: 256 seconds]
<d1b2> <icb> Fewer than 25 boards away from 1000% funded too
FFY00 has joined #glasgow