imx8mm linux kernel 4.14.98 ,kernel-4.14.98/drivers/hwmon/sht15.c
log error:
insmod sht15.ko
[ 425.787145] gpio-82 (SHT15 data): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output
[ 425.796987] sht15: probe of p8-ports failed with error -5
dts:
231 pinctrl_p8_ports: p8_ports_grp {
232 fsl,pins = <
233 MX8MM_IOMUXC_NAND_WE_B_GPIO3_IO17 0x19
234 MX8MM_IOMUXC_NAND_WP_B_GPIO3_IO18 0x19
235 >;
236 };
sht15.c:
devm_request_irq(&pdev->dev, gpio_to_irq(data->pdata->gpio_data),
disable_irq_nosync(gpio_to_irq(data->pdata->gpio_data));
gpio_direction_output(data->pdata->gpio_data, 1);
dts change MX8MM_IOMUXC_NAND_WP_B_GPIO3_IO18 0x80000000 is error,imx6 3.14.28 is ok,imx6 4.9.88 is error。
The following is the Chinese translation:
--------------------------------------------------------------------------------
imx8mm 内核4.14.98Linux系统,sht15.c文件里,把GPIO设置成中断,然后失能中断,然后切换到GPIO输出,提示不行,把设备树配置成0x80000000也不行,imx6 3.14.28内核可以,imx6的4.9.88不行。
解決済! 解決策の投稿を見る。
Hi igorpadykov
Thank you for your reply.
Can I change the imX8 pins? I don't think the kernel will be modified, it's just upgraded to solve some configuration problems that don't make sense。
Hi jianfeichang
seems this feature is not supported on last kernels as described on other forums, like:
https://github.com/raspberrypi/linux/issues/808
One can post issue on kernel mail list:
http://vger.kernel.org/vger-lists.html
Best regards
igor
Hi igorpadykov
Thank you for your reply.
Can I change the imX8 pins? I don't think the kernel will be modified, it's just upgraded to solve some configuration problems that don't make sense。