您尚未登录。

#1 全志 SOC » F1C100S下的红外解码IR_RX驱动,出现unsupported function ir on pin PF0的问题 » 2024-10-12 17:31:34

youngster
回复: 0

各位大佬,有个问题想请各位帮帮忙,目前用全志的F1C100S做红外解码IR_RX,嵌入式Linux的版本是5.4.77,参考资料是这个链接:https://blog.csdn.net/lzj85/article/details/124220756
目前IR_RX已经可以启动:
# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-ir"
P: Phys=sunxi-ir/input0
S: Sysfs=/devices/platform/soc/1c22c00.cir/rc/rc0/input2
U: Uniq=
H: Handlers=kbd event1
B: PROP=20
B: EV=100017
B: KEY=1000000 0 0 0 0
B: REL=3
B: MSC=10
//这是设备树里的IR_RX的相关配置:
cir: cir@1c22c00 {
            compatible = "allwinner,sun6i-a31-ir";
            //compatible = "allwinner,sun4i-a10-ir";
            //compatible = "allwinner,suniv-f1c100s-ir";
            clocks = <&ccu CLK_BUS_IR>, <&ccu CLK_CIR>;
            clock-names = "apb", "ir";
            resets = <&ccu RST_BUS_IR>;
            interrupts = <6>;
            reg = <0x01c22c00 0x400>;
            pinctrl-names = "default";
            pinctrl-0 = <&cir_pins_f>;
            status = "okay";
        };
cir_pins_f: cir_pins_f {
                pins = "PF0";
                function = "ir";
                allwinner,muxsel = <4>;
                allwinner,drive = <1>;
                allwinner,pull = <0>;
            };
//这是内核启动的过程:
[    1.218393] IR NEC protocol handler initialized
[    1.223066] IR RC5(x/sz) protocol handler initialized
[    1.228122] IR RC6 protocol handler initialized
[    1.232696] IR JVC protocol handler initialized
[    1.237226] IR Sony protocol handler initialized
[    1.241871] IR SANYO protocol handler initialized
[    1.246572] IR Sharp protocol handler initialized
[    1.251301] IR MCE Keyboard/mouse protocol handler initialized
[    1.257124] IR XMP protocol handler initialized
[    1.261679] ir_imon_decoder: IR iMON protocol handler initialized
[    1.267761] IR RCMM protocol handler initialized
[    1.272883] suniv-f1c100s-pinctrl 1c20800.pinctrl: unsupported function ir on pin PF0
[    1.281416] Registered IR keymap rc-empty
[    1.285800] rc rc0: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0
[    1.293094] input: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0/input2
[    1.302046] sunxi-ir 1c22c00.cir: initialized sunXi IR driver
问题是在内核启动的时候出现了[ 1.272883] suniv-f1c100s-pinctrl 1c20800.pinctrl: unsupported function ir on pin PF0,接上红外接收模块到PF0管脚,然后evtest /dev/input/event1,就会停在Testing ...不动,请问是怎么回事?
附上设备树的文件设备树文件.zip设备树文件.zip设备树文件.zip设备树文件.zip

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn