ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
hanetzer has quit [Ping timeout: 252 seconds]
apritzel has quit [Ping timeout: 252 seconds]
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #armlinux
heat has quit [Ping timeout: 260 seconds]
hanetzer has joined #armlinux
LeSpocky has quit [Ping timeout: 272 seconds]
LeSpocky has joined #armlinux
Fridtjof has quit [Ping timeout: 252 seconds]
Stary has quit [Ping timeout: 245 seconds]
CounterPillow has quit [Ping timeout: 245 seconds]
CounterPillow has joined #armlinux
Stary has joined #armlinux
Fridtjof has joined #armlinux
mvaittin has joined #armlinux
nsaenz has joined #armlinux
Xogium has quit [Ping timeout: 246 seconds]
Xogium has joined #armlinux
rgallaispou has quit [Ping timeout: 245 seconds]
monstr has joined #armlinux
fancer has joined #armlinux
monstr has quit [Read error: Connection reset by peer]
gclement has joined #armlinux
gclement has quit [Client Quit]
gclement has joined #armlinux
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 260 seconds]
monstr has joined #armlinux
headless has joined #armlinux
cbeznea has joined #armlinux
heat has joined #armlinux
mvaittin has quit [Ping timeout: 260 seconds]
mvaittin has joined #armlinux
sszy has joined #armlinux
headless has quit [Quit: Konversation terminated!]
heat_ has joined #armlinux
heat has quit [Ping timeout: 248 seconds]
luispm has joined #armlinux
heat_ has quit [Read error: Connection reset by peer]
heat has joined #armlinux
psydroid has joined #armlinux
<geertu> broonie: Are you doing linux-next this week?
heat_ has joined #armlinux
heat has quit [Read error: Connection reset by peer]
nsaenz has quit [Ping timeout: 248 seconds]
apritzel has joined #armlinux
fancer has quit [Ping timeout: 260 seconds]
heat has joined #armlinux
heat_ has quit [Ping timeout: 272 seconds]
psydroid has quit [Remote host closed the connection]
gclement has quit [Ping timeout: 252 seconds]
gclement has joined #armlinux
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #armlinux
rvalue has quit [Remote host closed the connection]
rvalue has joined #armlinux
luispm has quit [Ping timeout: 272 seconds]
<phh> Hello. My company is trying to do a kinda rpi-compatible board (fwiw based on refurbed apq8098 board). What are the mechanisms used to match the GPIOs/pinctrls? Like my instinct is to create a fake /dev/gpiochip0 that would map to real GPIOs to have a gpiochip0 that has the same pinout as rpi. That sounds rather sad. GPIO can be given a name, but the userspace codes I've seen doesn't seem to care about those. And then there is the question of HAT dtbos where i
<phh> just can't see how they can work cross-boards.
<geertu> phh: The fake gpiochip is called "gpio-aggregator" upstream
<geertu> Making dtbos match is something different...
<jn> as long as the DTBOs only use GPIO and perhaps a few I2C/SPI/serial buses, it should be possible
<LeSpocky> phh: my userspace code usually uses "gpiod_line_find()" from libgpiod 1.x so I don't need to care about gpio chip at all, but it requires reasonable line names … however rpi folks tend to avoid libgpiod anyways, and came up with all kinds of incompatible new gpio libraries in the past, so probably you can not make it compatible anyways
luispm has joined #armlinux
headless has joined #armlinux
rockosov has quit [Quit: WeeChat 3.4-dev]
rockosov has joined #armlinux
<phh> geertu: oh cool thanks! Just to confirm what i'm reading from https://docs.kernel.org/admin-guide/gpio/gpio-aggregator.html, it can't be done from dts, it has to be done from userspace? (I don't exactly have a hard opinion on which side this compat should go anyway)
<phh> jn: I'll read those dtbos to check, but dont't dtbos usually refers like gpios = <&gpiochip1 13>; so you need to have a gpiochip with same pinout?
<phh> LeSpocky: thanks. just to be perfectly sure, you do gpiod_line_find("GPIO14") which is pin 8 of the connector, right? and they are all just called GPIOx, not SPI_MOSI or something?
<geertu> phh: It can be done from DTS, cfr. the "Generic GPIO Driver" section. You do have to add #gpio-cells = <...>
<phh> well it still mentions there is a userpace part required with the driver_override, unless we declare a "gpio-delay", which err
<LeSpocky> phh: I don't do it on rpi but other arm boards, but yes sth. like gpiod_line_find("GPIO14")
<phh> ok thanks
mvaittin has quit [Ping timeout: 265 seconds]
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #armlinux
<broonie> geertu: I've got a build running now
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #armlinux
<geertu> phh: Come up with a good compatible value, document it, and add it to gpio_aggregator_dt_ids[]? Then no driver_override is needed.
<phh> geertu: my instinct says that someone would have tried, but yeah ok, i guess it's worth a try. I'm just surprised, there is no reason we would be the first one to wonder about that
sudeepholla has joined #armlinux
FaRiD has joined #armlinux
FaRiD has left #armlinux [#armlinux]
headless has quit [Ping timeout: 264 seconds]
MyNetAz has joined #armlinux
headless has joined #armlinux
gclement has quit [Ping timeout: 265 seconds]
<robmur01> phh: if it's just a case of mapping SoC pins to a "standard" connector, isn't this what you want - https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#nexus-nodes-and-specifier-mapping
<phh> robmur01: looks good thanks. But that doesn't create a gpiochip for it, does it? So the mapping only works for kernel and not for user space?
<cambrian_invader> huh, that's pretty neat
<cambrian_invader> when did that get added
<cambrian_invader> 2018 apparently (!)
<jn> phh: yes, you'll need the same pinout, which is the point of the GPIO aggregator
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
apritzel has quit [Ping timeout: 255 seconds]
psydroid has joined #armlinux
luispm has quit [Ping timeout: 255 seconds]
monstr has quit [Remote host closed the connection]
apritzel has joined #armlinux
luispm has joined #armlinux
apritzel has quit [Ping timeout: 264 seconds]
mvaittin has joined #armlinux
mvaittin has quit [Ping timeout: 252 seconds]
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #armlinux
headless has quit [Quit: Konversation terminated!]
pikapika_lunar has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
pikapika_lunar has joined #armlinux
cbeznea has quit [Ping timeout: 245 seconds]
apritzel has joined #armlinux
pikapika_lunar has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
pikapika_lunar has joined #armlinux
pikapika_lunar has quit [Client Quit]
pikapika_lunar has joined #armlinux
psydroid has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #armlinux
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
sihloo has joined #armlinux
sihloo has quit [Changing host]
sihloo has joined #armlinux