PF: set_value: error: gpio PF1 not reserved
离线
gpio_direction_output(SUNXI_GPF(LCD_SCLK),1);
gpio_direction_output(SUNXI_GPF(LCD_CS),1);
sunxi_gpio_set_pull(SUNXI_GPF(LCD_SCLK),SUNXI_GPIO_PULL_UP);
sunxi_gpio_set_pull(SUNXI_GPF(LCD_CS), SUNXI_GPIO_PULL_UP);
gpio_set_value(SUNXI_GPF(LCD_CS), 1);
gpio_set_value(SUNXI_GPF(LCD_SCLK), 1);
我没把这些GPIO添加到DTS里去。现在加一下试试
离线
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42df9000, end 42dff121 ... OK
PF: dir_output: error: gpio PF1 not reserved
PF: dir_output: error: gpio PF5 not reserved
PF: set_value: error: gpio PF5 not reserved
PF: set_value: error: gpio PF1 not reserved
PF: dir_output: error: gpio PF0 not reserved
PF: set_value: error: gpio PF0 not reserved
PF: set_value: error: gpio PF5 not reserved
PF: set_value: error: gpio PF1 not reserved
不单是这个原因呢
离线