<xdarklight>
(on GXL and GXM the dwc3 registers default to 0x20 for that value, so we don't have it there)
<narmstrong>
let's check !
<xdarklight>
narmstrong: also do you have the reset line hooked up?
<narmstrong>
xdarklight: yep, each usb2 phy also have separate reset lines aswell
<xdarklight>
finally!
<narmstrong>
ok, this does not help, thanks for helping...
Elpaulo has joined #linux-amlogic
Elpaulo1 has joined #linux-amlogic
Elpaulo has quit [Read error: No route to host]
Elpaulo1 is now known as Elpaulo
garstyciuks has joined #linux-amlogic
<garstyciuks>
hey guys, I'm working on porting a kernel module to run on odroid C2, and hit an issue - I can't get GPIO interrupts to work at all
<garstyciuks>
there's even no "edge" in /sys/class/gpio/.../ appearing after GPIOs are exported to user space
<garstyciuks>
I have verified that running the 3.16 kernel that odroid officially supports, the 'edge' appears to be usable
<garstyciuks>
I'm using 4.19.14 kernel version on armbian
<garstyciuks>
the actual issue the kernel module I'm working on has is the gpiod_to_irq returns -6 (ENXIO 6 No such device or address), the GPIO itself is usable as input
<garstyciuks>
so I just can't figure out how to attach a rising edge interrupt to the pin...
garstyciuks has quit [Ping timeout: 256 seconds]
drieschel has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
garstyciuks has joined #linux-amlogic
<xdarklight>
garstyciuks: the mainline GPIO driver doesn't have GPIO IRQ support yet
<xdarklight>
most of the code is there, but the final .to_irq call is missing because there was a discussion (for which I believe there was never a conclusion) how to model the IRQ domain inside the GPIO controller
chewitt has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
<garstyciuks>
hey, yeah, I think I found the discussion
<garstyciuks>
I saw 'platform_get_irq' mentioned as an alternative way to get the interrupt to use for request_irq call
<garstyciuks>
in my dt overlay, I have: interrupt-parent = <&gpio_intc>; interrupts = <109 0>;
<garstyciuks>
platform_get_irq(pdev, 0) in the module probe then gives me some valid value, I haven't yet been able to test it, don't have access to the hardware at this time :)
<garstyciuks>
but anyway, would this be the correct way to hook up a GPIO interrupt while gpio_to_irq is not implemented ?