2019-05-30 06:57:50 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-09-24 13:53:49 +07:00
|
|
|
/*
|
2013-08-15 04:23:50 +07:00
|
|
|
* PCA963X LED chip driver.
|
2012-09-24 13:53:49 +07:00
|
|
|
*
|
|
|
|
* Copyright 2012 bct electronic GmbH
|
2013-08-15 04:23:50 +07:00
|
|
|
* Copyright 2013 Qtechnology A/S
|
2012-09-24 13:53:49 +07:00
|
|
|
*/
|
|
|
|
|
2013-08-15 04:23:50 +07:00
|
|
|
#ifndef __LINUX_PCA963X_H
|
|
|
|
#define __LINUX_PCA963X_H
|
2012-09-24 13:53:49 +07:00
|
|
|
#include <linux/leds.h>
|
|
|
|
|
2013-08-15 04:23:50 +07:00
|
|
|
enum pca963x_outdrv {
|
|
|
|
PCA963X_OPEN_DRAIN,
|
|
|
|
PCA963X_TOTEM_POLE, /* aka push-pull */
|
2012-09-24 13:53:49 +07:00
|
|
|
};
|
|
|
|
|
2013-08-15 04:23:50 +07:00
|
|
|
enum pca963x_blink_type {
|
|
|
|
PCA963X_SW_BLINK,
|
|
|
|
PCA963X_HW_BLINK,
|
2013-07-26 00:16:41 +07:00
|
|
|
};
|
|
|
|
|
2017-04-27 13:37:33 +07:00
|
|
|
enum pca963x_direction {
|
|
|
|
PCA963X_NORMAL,
|
|
|
|
PCA963X_INVERTED,
|
|
|
|
};
|
|
|
|
|
2013-08-15 04:23:50 +07:00
|
|
|
struct pca963x_platform_data {
|
2012-09-24 13:53:49 +07:00
|
|
|
struct led_platform_data leds;
|
2013-08-15 04:23:50 +07:00
|
|
|
enum pca963x_outdrv outdrv;
|
|
|
|
enum pca963x_blink_type blink_type;
|
2017-04-27 13:37:33 +07:00
|
|
|
enum pca963x_direction dir;
|
2012-09-24 13:53:49 +07:00
|
|
|
};
|
|
|
|
|
2013-08-15 04:23:50 +07:00
|
|
|
#endif /* __LINUX_PCA963X_H*/
|