Question
How to use boot pin as gpio
Hi, I use boot1 pin as gpio key function. The boot1 is PI5, and I configure it in kernel dts code. When the system boot up, the input event0 device is shows, but I use hexdump can not get any key code data. Currently, my board is boot from sdcard.
gpio-keys {
compatible = "gpio-keys";
#size-cells = <0>;
user {
label = "user";
linux,code = <BTN_1>;
gpios = <&gpioi 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};