18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides macros for ams AS3722 device bindings. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2013, NVIDIA Corporation. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Author: Laxman Dewangan <ldewangan@nvidia.com> 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_AS3722_H__ 128c2ecf20Sopenharmony_ci#define __DT_BINDINGS_AS3722_H__ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* External control pins */ 158c2ecf20Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE1 1 168c2ecf20Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE2 2 178c2ecf20Sopenharmony_ci#define AS3722_EXT_CONTROL_PIN_ENABLE3 3 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* Interrupt numbers for AS3722 */ 208c2ecf20Sopenharmony_ci#define AS3722_IRQ_LID 0 218c2ecf20Sopenharmony_ci#define AS3722_IRQ_ACOK 1 228c2ecf20Sopenharmony_ci#define AS3722_IRQ_ENABLE1 2 238c2ecf20Sopenharmony_ci#define AS3722_IRQ_OCCUR_ALARM_SD0 3 248c2ecf20Sopenharmony_ci#define AS3722_IRQ_ONKEY_LONG_PRESS 4 258c2ecf20Sopenharmony_ci#define AS3722_IRQ_ONKEY 5 268c2ecf20Sopenharmony_ci#define AS3722_IRQ_OVTMP 6 278c2ecf20Sopenharmony_ci#define AS3722_IRQ_LOWBAT 7 288c2ecf20Sopenharmony_ci#define AS3722_IRQ_SD0_LV 8 298c2ecf20Sopenharmony_ci#define AS3722_IRQ_SD1_LV 9 308c2ecf20Sopenharmony_ci#define AS3722_IRQ_SD2_LV 10 318c2ecf20Sopenharmony_ci#define AS3722_IRQ_PWM1_OV_PROT 11 328c2ecf20Sopenharmony_ci#define AS3722_IRQ_PWM2_OV_PROT 12 338c2ecf20Sopenharmony_ci#define AS3722_IRQ_ENABLE2 13 348c2ecf20Sopenharmony_ci#define AS3722_IRQ_SD6_LV 14 358c2ecf20Sopenharmony_ci#define AS3722_IRQ_RTC_REP 15 368c2ecf20Sopenharmony_ci#define AS3722_IRQ_RTC_ALARM 16 378c2ecf20Sopenharmony_ci#define AS3722_IRQ_GPIO1 17 388c2ecf20Sopenharmony_ci#define AS3722_IRQ_GPIO2 18 398c2ecf20Sopenharmony_ci#define AS3722_IRQ_GPIO3 19 408c2ecf20Sopenharmony_ci#define AS3722_IRQ_GPIO4 20 418c2ecf20Sopenharmony_ci#define AS3722_IRQ_GPIO5 21 428c2ecf20Sopenharmony_ci#define AS3722_IRQ_WATCHDOG 22 438c2ecf20Sopenharmony_ci#define AS3722_IRQ_ENABLE3 23 448c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD0_SHUTDOWN 24 458c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD1_SHUTDOWN 25 468c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD2_SHUTDOWN 26 478c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD0_ALARM 27 488c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD1_ALARM 28 498c2ecf20Sopenharmony_ci#define AS3722_IRQ_TEMP_SD6_ALARM 29 508c2ecf20Sopenharmony_ci#define AS3722_IRQ_OCCUR_ALARM_SD6 30 518c2ecf20Sopenharmony_ci#define AS3722_IRQ_ADC 31 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_AS3722_H__ */ 54