Openwrt开发之mt7688pinctrl设置小知识

state_default: pinctrl0 {

    gpio {
        ralink,group = "gpio";          //gpio11
        ralink,function = "gpio";
    };

    perst {
        ralink,group = "perst";       //gpio36
        ralink,function = "gpio";
    };

    refclk {
        ralink,group = "refclk";     //gpio3
        ralink,function = "gpio";
    };

    i2s {
        ralink,group = "i2s";            //gpio0, 1, 2, 3
        ralink,function = "gpio";
    };

    spis {
        ralink,group = "spis";         //gpio 14, 15, 16, 17
        ralink,function = "gpio";
    };

    wled_kn {
        ralink,group = "wled_kn";    
        ralink,function = "gpio";
    };

    wled_an {
        ralink,group = "wled_an";      
        ralink,function = "wled_an";
    };

    wdt {
        ralink,group = "wdt";           //gpio38
        ralink,function = "gpio";
    };
};

以上pinctrl设置主要设置管脚复用功能,参考MT7688 datasheet page25, GPIO pin share scheme,如下图

Openwrt开发之mt7688pinctrl设置小知识

Openwrt开发之mt7688pinctrl设置小知识

 

上一篇:mt7688 openwrt 配置笔记


下一篇:Linux:提取文件的第一行