summaryrefslogtreecommitdiff
path: root/drivers/led/issi/is31fl3731.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-11-21 02:48:23 +1100
committerGitHub <noreply@github.com>2023-11-20 15:48:23 +0000
commitdda6e7fb36f20821c60fbd7638c9bd016ef217d6 (patch)
tree0de59c7b2f1683866ccdf929890eed726919f23b /drivers/led/issi/is31fl3731.h
parente279c78ba3054ebc2e294dd91ea98341cc509d1e (diff)
LED drivers: register naming cleanups (#22436)
Diffstat (limited to 'drivers/led/issi/is31fl3731.h')
-rw-r--r--drivers/led/issi/is31fl3731.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3731.h b/drivers/led/issi/is31fl3731.h
index d7b512e4c4..b45cb2b07d 100644
--- a/drivers/led/issi/is31fl3731.h
+++ b/drivers/led/issi/is31fl3731.h
@@ -49,6 +49,30 @@
#define g_is31_leds g_is31fl3731_leds
// ========
+#define IS31FL3731_REG_COMMAND 0xFD
+#define IS31FL3731_COMMAND_FRAME_1 0x00
+#define IS31FL3731_COMMAND_FRAME_2 0x01
+#define IS31FL3731_COMMAND_FRAME_3 0x02
+#define IS31FL3731_COMMAND_FRAME_4 0x03
+#define IS31FL3731_COMMAND_FRAME_5 0x04
+#define IS31FL3731_COMMAND_FRAME_6 0x05
+#define IS31FL3731_COMMAND_FRAME_7 0x06
+#define IS31FL3731_COMMAND_FRAME_8 0x07
+#define IS31FL3731_COMMAND_FUNCTION 0x0B
+
+#define IS31FL3731_FUNCTION_REG_CONFIG 0x00
+#define IS31FL3731_CONFIG_MODE_PICTURE 0x00
+#define IS31FL3731_CONFIG_MODE_AUTO_PLAY 0x08
+#define IS31FL3731_CONFIG_MODE_AUDIO_PLAY 0x18
+
+#define IS31FL3731_FUNCTION_REG_PICTURE_DISPLAY 0x01
+#define IS31FL3731_FUNCTION_REG_AUDIO_SYNC 0x06
+#define IS31FL3731_FUNCTION_REG_SHUTDOWN 0x0A
+
+// Not defined in the datasheet -- See AN for IC
+#define IS31FL3731_FUNCTION_REG_GHOST_IMAGE_PREVENTION 0xC2
+#define IS31FL3731_GHOST_IMAGE_PREVENTION_GEN 0x10
+
#define IS31FL3731_I2C_ADDRESS_GND 0x74
#define IS31FL3731_I2C_ADDRESS_SCL 0x75
#define IS31FL3731_I2C_ADDRESS_SDA 0x76