|
Posted at 9/7/2023 17:39:49
2#
After the pin is applied by the driver, you cannot directly control it at the system layer, and the driver needs to provide a control interface.
According to the specifications and functions of the LP855X chip, add the corresponding attributes to dts. These properties can include register addresses, power controls, brightness controls, etc.
You can find some examples online.
- lp8551@60 {
- compatible = "ti,lp8551";
- reg = <0x60>;
- reg-names = "lp8551";
- enable-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
- brightness-levels = <0 64 128 192 255>;
- default-brightness-level = <255>;
- ...
- };
Copy the code
https://gitlab.com/firefly-linux ... .txt?ref_type=heads |
|