• gpio on x86

    From Gerrit Kuehn@2:240/12 to * on Thu May 12 18:33:52 2022
    Hello *!

    I have an Intel-based mainboard with build-in gpios that I'd like to use. However, I cannot get the kernel (5.16) to recognise the chip (NXP PCA9554). To my understanding, this should be supported with the gpio_pca953x kernel module. Upon loading this, the kernel reports no device or chip found, so all further actions via /sys/class/gpio/ or gpioinfo return nothing.

    Any ideas what I might be missing here?


    Regards,
    Gerrit

    ... 6:34PM up 50 days, 23:40, 8 users, load averages: 0.52, 0.52, 0.45

    --- msged/fbsd 6.3 2021-12-02
    * Origin: We are the second generation (2:240/12)
  • From Maurice Kinal@1:153/7001 to Gerrit Kuehn on Thu May 12 20:49:22 2022
    Hey Gerrit!

    Any ideas what I might be missing here?

    $ zgrep PCA953 /proc/config.gz
    CONFIG_GPIO_PCA953X=m
    # CONFIG_GPIO_PCA953X_IRQ is not set
    CONFIG_LEDS_PCA9532=m
    # CONFIG_LEDS_PCA9532_GPIO is not set

    Note that in my case they are turned off and therefore the kernel reports no device or chip found especially considering I don't have said chipset. However even if I did it should still report no device or chip found.

    Turning on the PCA953X (modular or builtin) should help your cause and is the only idea I can come up with not knowing if your kernel is actually PCA953X capable.

    Life is good,
    Maurice

    ... Meotud ana wat hwær se cwealm cymeþ, þe heonon of cyþþe gewiteþ.
    Only God knows where plague goes when it departs from a place.
    --- GNU bash, version 5.1.16(1)-release (x86_64-lilmikii-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Maurice Kinal@2:280/464.113 to Maurice Kinal on Thu May 12 21:05:57 2022
    Hey Maurice!

    $ zgrep PCA953 /proc/config.gz
    CONFIG_GPIO_PCA953X=m
    # CONFIG_GPIO_PCA953X_IRQ is not set
    CONFIG_LEDS_PCA9532=m
    # CONFIG_LEDS_PCA9532_GPIO is not set

    Note that in my case they are turned off

    Errrr ... only CONFIG_GPIO_PCA953X_IRQ and CONFIG_LEDS_PCA9532_GPIO are not enabled. The chipset itself is modular along with CONFIG_LEDS_PCA9532.

    Getting old buddy. Mind you we got uefi boots working ... again. Not sure that is anything worth bragging about since we'd still be using legacy boots if that had been an option. :-/

    Life is good,
    Maurice

    ... Hwær cwom mearg? Hwær cwom mago? Hwær cwom maþþumgyfa?
    Where is now the horse? Where the young prince? Where the treasure-giver? --- GNU bash, version 5.1.16(1)-release (x86_64-znver1-linux-gnu)
    * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
  • From Kai Richter@2:240/77 to Gerrit Kuehn on Fri May 13 00:28:42 2022
    Hello Gerrit!

    12 May 22, Gerrit Kuehn wrote to *:

    I have an Intel-based mainboard with build-in gpios

    Any ideas what I might be missing here?

    No.

    But some functions of some boards can be disabled in the bios or by jumper settings. If you're sure that the gpio are active on the hardware side then continue with software troubleshooting.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)