leds: pca963x: Add bindings to invert polarity
Add a new DT property, nxp,inverted-out, to invert the polarity of the output. Tested on PCA9634. Signed-off-by: Anders Darander <anders@chargestorm.se> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
parent
2ea659a9ef
commit
bb29b9cccd
3 changed files with 22 additions and 2 deletions
|
|
@ -33,10 +33,16 @@ enum pca963x_blink_type {
|
|||
PCA963X_HW_BLINK,
|
||||
};
|
||||
|
||||
enum pca963x_direction {
|
||||
PCA963X_NORMAL,
|
||||
PCA963X_INVERTED,
|
||||
};
|
||||
|
||||
struct pca963x_platform_data {
|
||||
struct led_platform_data leds;
|
||||
enum pca963x_outdrv outdrv;
|
||||
enum pca963x_blink_type blink_type;
|
||||
enum pca963x_direction dir;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_PCA963X_H*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue