mygpio {
compatible = "gpio-leds";
sta_led {
label = "psst:sta:led";
gpios = <&pio 4 2 GPIO_ACTIVE_LOW>; // Pe2
};
/*call_led {
label = "psst:call:led";
gpios = <&pio 4 5 GPIO_ACTIVE_LOW>; // Pe5
default-state = "on";
};
reg_led {
label = "psst:reg:led";
gpios = <&pio 4 6 GPIO_ACTIVE_LOW>; // PE6
};
led1 {
label = "psst:led:button1";
gpios = <&pio 4 7 GPIO_ACTIVE_LOW>; // PE7
};*/
};
我用PE2 PE5~7也就是LCD-HSYNC LCD-D3 D4 D5做LED输出,/sys/class/leds 里面没有节点,注释掉就有1个,这几个IO在哪里被占用了吗?日志里没看到错误,怎么排查呢?
离线
mygpio {
compatible = "gpio-leds";sta_led {
label = "psst:sta:led";
gpios = <&pio 4 2 GPIO_ACTIVE_LOW>; // Pe2
};/*call_led {
label = "psst:call:led";
gpios = <&pio 4 5 GPIO_ACTIVE_LOW>; // Pe5
default-state = "on";
};reg_led {
label = "psst:reg:led";
gpios = <&pio 4 6 GPIO_ACTIVE_LOW>; // PE6
};
led1 {
label = "psst:led:button1";
gpios = <&pio 4 7 GPIO_ACTIVE_LOW>; // PE7
};*/
};我用PE2 PE5~7也就是LCD-HSYNC LCD-D3 D4 D5做LED输出,/sys/class/leds 里面没有节点,注释掉就有1个,这几个IO在哪里被占用了吗?日志里没看到错误,怎么排查呢?
注释PE5 PE6 PE7就可以,打开任何一个都不行,没用CSI,设备树里也没有csi相关的信息
离线