Changes
1. Make sure that the kernel you use supports the necessary driver.
<br>Check the following entries in the kernel config:
<pre> CONFIG_GPIO_PCA953X=[y] CONFIG_I2C=y CONFIG_I2C_CHARDEV=y</pre>
2. Make sure that the appropriate I2C bus is enabled in BIOS settings: <br>
Chipset -> South Cluster Configuration -> LPSS Configuration LPSS I2C #[1-8] Support is set to ACPI mode or PCI mode Set LPSS I2C #[1-8] Speed is set to Standard Mode of Fast Mode
3.Find the GPIO extender on an I2C bus:
'''Note:''' PCA9335 chip should be found at address 0x27, whereas XRA1201 chip at 0x4e
4. Bind the above found device to driver (superuser privileges are necessary)
Then check the kernel debug messages for a line like the following:
5. To find the appropriate GPIO, issue the command:
Then look the output for a line like:
And then issue the command:
Afterwards, look at the output for a line like the following:
The bus number and address has to be the same in both cases (7 and 27 in the example).
6. The GPIO found may be operated over sysfs interface in the following way:
issue the commands:
[[category: fitlet2]]