Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
*NXP - pca9532 PWM LED Driver
|
|
|
|
The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
|
|
The PWM support 256 steps.
|
|
|
|
Required properties:
|
|
- compatible:
|
|
"nxp,pca9530"
|
|
"nxp,pca9531"
|
|
"nxp,pca9532"
|
|
"nxp,pca9533"
|
|
- reg - I2C slave address
|
|
|
|
Each led is represented as a sub-node of the nxp,pca9530.
|
|
|
|
Optional sub-node properties:
|
|
- label: see Documentation/devicetree/bindings/leds/common.txt
|
|
- type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
|
|
- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
|
|
- default-state: see Documentation/devicetree/bindings/leds/common.txt
|
|
This property is only valid for sub-nodes of type <PCA9532_TYPE_LED>.
|
|
|
|
Example:
|
|
#include <dt-bindings/leds/leds-pca9532.h>
|
|
|
|
leds: pca9530@60 {
|
|
compatible = "nxp,pca9530";
|
|
reg = <0x60>;
|
|
|
|
red-power {
|
|
label = "pca:red:power";
|
|
type = <PCA9532_TYPE_LED>;
|
|
};
|
|
green-power {
|
|
label = "pca:green:power";
|
|
type = <PCA9532_TYPE_LED>;
|
|
};
|
|
kernel-booting {
|
|
type = <PCA9532_TYPE_LED>;
|
|
default-state = "on";
|
|
};
|
|
sys-stat {
|
|
type = <PCA9532_TYPE_LED>;
|
|
default-state = "keep"; // don't touch, was set by U-Boot
|
|
};
|
|
};
|
|
|
|
For more product information please see the link below:
|
|
http://nxp.com/documents/data_sheet/PCA9532.pdf
|