voidI2C1_GPIO_AF_Config(void)//I2C1 : SCL->B8 SDA->B9{//GPIO端口设置GPIO_InitTypeDef GPIO_InitStructure; RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB| RCC_APB2Periph_AFIO, ENABLE);//使GPIOB时钟以及复用功能时钟GPIO_PinRemapConfig(GPIO...
gpios = <6 GPIO_ACTIVE_HIGH>; default-state = "on"; }; };}; It shows error: [ 0.071647] OF: /soc@0/bus@30800000/i2c@30a40000/pcal6408@20/led@4: could not get #gpio-cells for /soc@0/bus@30000000/efuse@30350000/speed-grade@10[ 0.071700...
pinctrl-0 = <&pinctrl_i2c3>; status = "okay" pcal6408: pcal6408@20 { compatible = "nxp,pcal6408"; reg = <0x20>; gpio-controller; #gpio-cells = <2>;}; We connect one gpio to led and wish to config the gpio as led. Is it possible? I try to config like...
pinctrl-0 = <&pinctrl_i2c3>; status = "okay" pcal6408: pcal6408@20 { compatible = "nxp,pcal6408"; reg = <0x20>; gpio-controller; #gpio-cells = <2>;}; We connect one gpio to led and wish to config the gpio as led. Is it possible? I try to...