LED Driver Based on GPIO subsystem
1, Writing ideas
GPIO is like I2C and UART. To use a pin, you need to configure the pin as GPIO function. This requires the Pinctrl subsystem, which only needs to be specified in the device tree.
You don't need to do anything on the driver code. GPIO itself needs to determine the pin, which also needs to be specified in the device tree.The de ...
Added by Afser on Sun, 09 Jan 2022 05:04:35 +0200