Line data Source code
1 0 : /* 2 : * Copyright (c) 2024 TOKITA Hiroshi 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_AW9523B_H_ 8 : #define ZEPHYR_INCLUDE_DRIVERS_MFD_AW9523B_H_ 9 : 10 : struct k_sem; 11 : struct device; 12 : 13 0 : #define AW9523B_REG_INPUT0 0x00 14 0 : #define AW9523B_REG_INPUT1 0x01 15 0 : #define AW9523B_REG_OUTPUT0 0x02 16 0 : #define AW9523B_REG_OUTPUT1 0x03 17 0 : #define AW9523B_REG_CONFIG0 0x04 18 0 : #define AW9523B_REG_CONFIG1 0x05 19 0 : #define AW9523B_REG_INT0 0x06 20 0 : #define AW9523B_REG_INT1 0x07 21 0 : #define AW9523B_REG_ID 0x10 22 0 : #define AW9523B_REG_CTL 0x11 23 0 : #define AW9523B_REG_MODE0 0x12 24 0 : #define AW9523B_REG_MODE1 0x13 25 0 : #define AW9523B_REG_DIM0 0x20 26 0 : #define AW9523B_REG_DIM1 0x21 27 0 : #define AW9523B_REG_DIM2 0x22 28 0 : #define AW9523B_REG_DIM3 0x23 29 0 : #define AW9523B_REG_DIM4 0x24 30 0 : #define AW9523B_REG_DIM5 0x25 31 0 : #define AW9523B_REG_DIM6 0x26 32 0 : #define AW9523B_REG_DIM7 0x27 33 0 : #define AW9523B_REG_DIM8 0x28 34 0 : #define AW9523B_REG_DIM9 0x29 35 0 : #define AW9523B_REG_DIM10 0x2A 36 0 : #define AW9523B_REG_DIM11 0x2B 37 0 : #define AW9523B_REG_DIM12 0x2C 38 0 : #define AW9523B_REG_DIM13 0x2D 39 0 : #define AW9523B_REG_DIM14 0x2E 40 0 : #define AW9523B_REG_DIM15 0x2F 41 0 : #define AW9523B_REG_SW_RSTN 0x7F 42 : 43 0 : struct k_sem *aw9523b_get_lock(const struct device *dev); 44 : 45 : #endif /* ZEPHYR_INCLUDE_DRIVERS_MFD_AW9523B_H_ */