162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This header provides macros for ams AS3722 device bindings.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2013, NVIDIA Corporation.
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Author: Laxman Dewangan <ldewangan@nvidia.com>
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef __DT_BINDINGS_AS3722_H__
1262306a36Sopenharmony_ci#define __DT_BINDINGS_AS3722_H__
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/* External control pins */
1562306a36Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE1 1
1662306a36Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE2 2
1762306a36Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE3 3
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci/* Interrupt numbers for AS3722 */
2062306a36Sopenharmony_ci#define AS3722_IRQ_LID			0
2162306a36Sopenharmony_ci#define AS3722_IRQ_ACOK			1
2262306a36Sopenharmony_ci#define AS3722_IRQ_ENABLE1		2
2362306a36Sopenharmony_ci#define AS3722_IRQ_OCCUR_ALARM_SD0	3
2462306a36Sopenharmony_ci#define AS3722_IRQ_ONKEY_LONG_PRESS	4
2562306a36Sopenharmony_ci#define AS3722_IRQ_ONKEY		5
2662306a36Sopenharmony_ci#define AS3722_IRQ_OVTMP		6
2762306a36Sopenharmony_ci#define AS3722_IRQ_LOWBAT		7
2862306a36Sopenharmony_ci#define AS3722_IRQ_SD0_LV		8
2962306a36Sopenharmony_ci#define AS3722_IRQ_SD1_LV		9
3062306a36Sopenharmony_ci#define AS3722_IRQ_SD2_LV		10
3162306a36Sopenharmony_ci#define AS3722_IRQ_PWM1_OV_PROT		11
3262306a36Sopenharmony_ci#define AS3722_IRQ_PWM2_OV_PROT		12
3362306a36Sopenharmony_ci#define AS3722_IRQ_ENABLE2		13
3462306a36Sopenharmony_ci#define AS3722_IRQ_SD6_LV		14
3562306a36Sopenharmony_ci#define AS3722_IRQ_RTC_REP		15
3662306a36Sopenharmony_ci#define AS3722_IRQ_RTC_ALARM		16
3762306a36Sopenharmony_ci#define AS3722_IRQ_GPIO1		17
3862306a36Sopenharmony_ci#define AS3722_IRQ_GPIO2		18
3962306a36Sopenharmony_ci#define AS3722_IRQ_GPIO3		19
4062306a36Sopenharmony_ci#define AS3722_IRQ_GPIO4		20
4162306a36Sopenharmony_ci#define AS3722_IRQ_GPIO5		21
4262306a36Sopenharmony_ci#define AS3722_IRQ_WATCHDOG		22
4362306a36Sopenharmony_ci#define AS3722_IRQ_ENABLE3		23
4462306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD0_SHUTDOWN	24
4562306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD1_SHUTDOWN	25
4662306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD2_SHUTDOWN	26
4762306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD0_ALARM	27
4862306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD1_ALARM	28
4962306a36Sopenharmony_ci#define AS3722_IRQ_TEMP_SD6_ALARM	29
5062306a36Sopenharmony_ci#define AS3722_IRQ_OCCUR_ALARM_SD6	30
5162306a36Sopenharmony_ci#define AS3722_IRQ_ADC			31
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#endif /* __DT_BINDINGS_AS3722_H__ */
54