Subj : gpio on x86
To : Alexey Vissarionov
From : Gerrit Kuehn
Date : Fri May 13 2022 10:21 am
Hello Alexey!
13 May 22 10:28, Alexey Vissarionov wrote to Gerrit Kuehn:
GK>> I have an Intel-based mainboard with build-in gpios that I'd like
GK>> to use. However, I cannot get the kernel (5.16) to recognise the
GK>> chip (NXP PCA9554). To my understanding, this should be supported
GK>> with the gpio_pca953x kernel module.
AV> Or not supported.
https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-pca953x.c
{ .compatible = "nxp,pca9554", .data = OF_953X( 8, PCA_INT), },
From looking at the source, I think it should be supported by the existing module. kernelconfig has the same info:
-> PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports
8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
pca9556, pca9557, pca9574, tca6408, tca9554, xra1202
AV>
https://www.ti.com/lit/gpn/pca9554
AV>
https://www.onsemi.com/pdf/datasheet/pca9554-d.pdf
AV>
https://www.nxp.com/docs/en/data-sheet/PCA9554_9554A.pdf
AV> Quite enough to write your own kernel module.
Yeah, sure, but why bother if the driver is already there?
Regards,
Gerrit
... 10:21AM up 51 days, 15:27, 8 users, load averages: 0.36, 0.44, 0.40
--- msged/fbsd 6.3 2021-12-02
* Origin: And the pastiche we've invented (2:240/12)