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:

committed by
Jacek Anaszewski

parent
2ea659a9ef
commit
bb29b9cccd
@@ -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*/
|
||||
|
Reference in New Issue
Block a user