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
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
naoki has joined #linux-amlogic
naoki has quit [Quit: naoki]
camus has quit [Remote host closed the connection]
naoki has joined #linux-amlogic
camus has joined #linux-amlogic
elastic_dog has quit [Ping timeout: 264 seconds]
elastic_dog has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
naoki has quit [Quit: naoki]
vagrantc has quit [Quit: leaving]
buzzmarshall has quit [Quit: Konversation terminated!]
jacobk has quit [Ping timeout: 248 seconds]
jacobk has joined #linux-amlogic
Daanct12 has quit [Ping timeout: 240 seconds]
Daanct12 has joined #linux-amlogic
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 255 seconds]
camus1 is now known as camus
Daanct12 has quit [Ping timeout: 264 seconds]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Ping timeout: 255 seconds]
Daanct12 has joined #linux-amlogic
ldevulder has joined #linux-amlogic
jacobk has quit [Ping timeout: 248 seconds]
Daanct12 has quit [Ping timeout: 240 seconds]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Ping timeout: 250 seconds]
Daanct12 has joined #linux-amlogic
emanuel72 has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
rockosov has joined #linux-amlogic
rockosov has quit [Client Quit]
rockosov has joined #linux-amlogic
rockosov has quit [Client Quit]
rockosov has joined #linux-amlogic
f_ has joined #linux-amlogic
elastic_dog has quit [Ping timeout: 252 seconds]
elastic_dog has joined #linux-amlogic
Daanct12 has quit [Quit: WeeChat 3.8]
chewitt has joined #linux-amlogic
emanuel72 has quit [Quit: Client closed]
<chewitt> hays petitboot doesn't support extlinux.conf boot
<chewitt> but n2+ has a hardware switch that allows you to ignore that
<chewitt> flick the switch to the right and use u-boot on your choice of boot media and should be well
<chewitt> and 'all' should be well
<chewitt> last time I asked .. tobetter had zero interest in adding support for extlinux.conf
<hays> hmm ok thanks.
f_ has quit [Quit: Lost terminal]
f_ has joined #linux-amlogic
f_ has quit [Ping timeout: 255 seconds]
f__ has joined #linux-amlogic
f__ is now known as f_
jacobk has joined #linux-amlogic
Guest88 has joined #linux-amlogic
Guest88 has quit [Client Quit]
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 240 seconds]
jacobk has quit [Ping timeout: 250 seconds]
jacobk has joined #linux-amlogic
GNUtoo has quit [Ping timeout: 255 seconds]
f_ has quit [Quit: Lost terminal]
JohnnyonF has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 255 seconds]
GNUtoo has joined #linux-amlogic
<aeroraptor> can anyone here speak to this issue?
<aeroraptor> specifically the error: pps-gpio pps@0: failed to map GPIO to IRQ: -6
<xdarklight> aeroraptor: I've no experience with pps-gpio but I suspect it's due to the fact that it's calling gpiod_to_irq() internally which is not supported by the meson GPIO driver
<aeroraptor> oh wow, so GPIOs on amlogic chips just... cannot use interrupts?
<aeroraptor> I don't know if the odroid-c2 uses (used?) a different GPIO driver, but apparently they ended up writing a kernel module
<aeroraptor> but I don't know how applicable that is to current stuff
<xdarklight> GPIOs can use interrupts, but the gpiod_to_irq() API is not supported
<xdarklight> I don't know if pps-gpio can take an interrupt directly -> that's what we use for other IRQ consumers
<xdarklight> to give an example, here's how we link the Ethernet PHY's interrupt line (which is routed to GPIOZ_15): https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts#L240-L241
<aeroraptor> ahh interesting
<aeroraptor> I think the odroid example using a kernel module is prooooobably the right way to go here
<xdarklight> looking at the odroid driver: it simply uses gpio_to_irq() instead of gpiod_to_irq() which is basically the same API just with a GPIO number (deprecated) instead of GPIO descriptor. most likely the Amlogic vendor GPIO driver support the GPIO to IRQ translation which is not supported with the mainline driver (yet)
<xdarklight> there's been a lengthy discussion on the mailing list about supporting the GPIO to IRQ translation upstream as well, both Jerome Brunet and Heiner Kallweit worked on it but there were some issues that they could not resolve
<narmstrong> There’s not a 1-to-1 or many-to-1 mapping from gpios to an interrupt line, this makes supporting gpiod_to_irq harder since this api has been very badly designed a long time ago, using a DT interrupt property is not the right API to use, the PPS gpio code should be modernized
jacobk has quit [Ping timeout: 252 seconds]
elastic_dog has quit [Ping timeout: 240 seconds]
elastic_dog has joined #linux-amlogic
ldevulder_ has quit [Quit: Leaving]
<aeroraptor> interesting
<aeroraptor> I know this sort of thing tends to fall by the wayside, since not a whole lot of folks use PPS inputs on SoCs like these (just like not many folks are using the GPIOCLK outputs)
vagrantc has joined #linux-amlogic
leadf00t has quit [Quit: WeeChat 3.5]