18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * GPIO definitions for Amlogic Meson8b SoCs
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2015 Endless Mobile, Inc.
68c2ecf20Sopenharmony_ci * Author: Carlo Caione <carlo@endlessm.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_MESON8B_GPIO_H
108c2ecf20Sopenharmony_ci#define _DT_BINDINGS_MESON8B_GPIO_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* EE (CBUS) GPIO chip */
138c2ecf20Sopenharmony_ci#define GPIOX_0		0
148c2ecf20Sopenharmony_ci#define GPIOX_1		1
158c2ecf20Sopenharmony_ci#define GPIOX_2		2
168c2ecf20Sopenharmony_ci#define GPIOX_3		3
178c2ecf20Sopenharmony_ci#define GPIOX_4		4
188c2ecf20Sopenharmony_ci#define GPIOX_5		5
198c2ecf20Sopenharmony_ci#define GPIOX_6		6
208c2ecf20Sopenharmony_ci#define GPIOX_7		7
218c2ecf20Sopenharmony_ci#define GPIOX_8		8
228c2ecf20Sopenharmony_ci#define GPIOX_9		9
238c2ecf20Sopenharmony_ci#define GPIOX_10	10
248c2ecf20Sopenharmony_ci#define GPIOX_11	11
258c2ecf20Sopenharmony_ci#define GPIOX_16	12
268c2ecf20Sopenharmony_ci#define GPIOX_17	13
278c2ecf20Sopenharmony_ci#define GPIOX_18	14
288c2ecf20Sopenharmony_ci#define GPIOX_19	15
298c2ecf20Sopenharmony_ci#define GPIOX_20	16
308c2ecf20Sopenharmony_ci#define GPIOX_21	17
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define GPIOY_0		18
338c2ecf20Sopenharmony_ci#define GPIOY_1		19
348c2ecf20Sopenharmony_ci#define GPIOY_3		20
358c2ecf20Sopenharmony_ci#define GPIOY_6		21
368c2ecf20Sopenharmony_ci#define GPIOY_7		22
378c2ecf20Sopenharmony_ci#define GPIOY_8		23
388c2ecf20Sopenharmony_ci#define GPIOY_9		24
398c2ecf20Sopenharmony_ci#define GPIOY_10	25
408c2ecf20Sopenharmony_ci#define GPIOY_11	26
418c2ecf20Sopenharmony_ci#define GPIOY_12	27
428c2ecf20Sopenharmony_ci#define GPIOY_13	28
438c2ecf20Sopenharmony_ci#define GPIOY_14	29
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define GPIODV_9	30
468c2ecf20Sopenharmony_ci#define GPIODV_24	31
478c2ecf20Sopenharmony_ci#define GPIODV_25	32
488c2ecf20Sopenharmony_ci#define GPIODV_26	33
498c2ecf20Sopenharmony_ci#define GPIODV_27	34
508c2ecf20Sopenharmony_ci#define GPIODV_28	35
518c2ecf20Sopenharmony_ci#define GPIODV_29	36
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define GPIOH_0		37
548c2ecf20Sopenharmony_ci#define GPIOH_1		38
558c2ecf20Sopenharmony_ci#define GPIOH_2		39
568c2ecf20Sopenharmony_ci#define GPIOH_3		40
578c2ecf20Sopenharmony_ci#define GPIOH_4		41
588c2ecf20Sopenharmony_ci#define GPIOH_5		42
598c2ecf20Sopenharmony_ci#define GPIOH_6		43
608c2ecf20Sopenharmony_ci#define GPIOH_7		44
618c2ecf20Sopenharmony_ci#define GPIOH_8		45
628c2ecf20Sopenharmony_ci#define GPIOH_9		46
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#define CARD_0		47
658c2ecf20Sopenharmony_ci#define CARD_1		48
668c2ecf20Sopenharmony_ci#define CARD_2		49
678c2ecf20Sopenharmony_ci#define CARD_3		50
688c2ecf20Sopenharmony_ci#define CARD_4		51
698c2ecf20Sopenharmony_ci#define CARD_5		52
708c2ecf20Sopenharmony_ci#define CARD_6		53
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci#define BOOT_0		54
738c2ecf20Sopenharmony_ci#define BOOT_1		55
748c2ecf20Sopenharmony_ci#define BOOT_2		56
758c2ecf20Sopenharmony_ci#define BOOT_3		57
768c2ecf20Sopenharmony_ci#define BOOT_4		58
778c2ecf20Sopenharmony_ci#define BOOT_5		59
788c2ecf20Sopenharmony_ci#define BOOT_6		60
798c2ecf20Sopenharmony_ci#define BOOT_7		61
808c2ecf20Sopenharmony_ci#define BOOT_8		62
818c2ecf20Sopenharmony_ci#define BOOT_9		63
828c2ecf20Sopenharmony_ci#define BOOT_10		64
838c2ecf20Sopenharmony_ci#define BOOT_11		65
848c2ecf20Sopenharmony_ci#define BOOT_12		66
858c2ecf20Sopenharmony_ci#define BOOT_13		67
868c2ecf20Sopenharmony_ci#define BOOT_14		68
878c2ecf20Sopenharmony_ci#define BOOT_15		69
888c2ecf20Sopenharmony_ci#define BOOT_16		70
898c2ecf20Sopenharmony_ci#define BOOT_17		71
908c2ecf20Sopenharmony_ci#define BOOT_18		72
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci#define DIF_0_P		73
938c2ecf20Sopenharmony_ci#define DIF_0_N		74
948c2ecf20Sopenharmony_ci#define DIF_1_P		75
958c2ecf20Sopenharmony_ci#define DIF_1_N		76
968c2ecf20Sopenharmony_ci#define DIF_2_P		77
978c2ecf20Sopenharmony_ci#define DIF_2_N		78
988c2ecf20Sopenharmony_ci#define DIF_3_P		79
998c2ecf20Sopenharmony_ci#define DIF_3_N		80
1008c2ecf20Sopenharmony_ci#define DIF_4_P		81
1018c2ecf20Sopenharmony_ci#define DIF_4_N		82
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci/* AO GPIO chip */
1048c2ecf20Sopenharmony_ci#define GPIOAO_0	0
1058c2ecf20Sopenharmony_ci#define GPIOAO_1	1
1068c2ecf20Sopenharmony_ci#define GPIOAO_2	2
1078c2ecf20Sopenharmony_ci#define GPIOAO_3	3
1088c2ecf20Sopenharmony_ci#define GPIOAO_4	4
1098c2ecf20Sopenharmony_ci#define GPIOAO_5	5
1108c2ecf20Sopenharmony_ci#define GPIOAO_6	6
1118c2ecf20Sopenharmony_ci#define GPIOAO_7	7
1128c2ecf20Sopenharmony_ci#define GPIOAO_8	8
1138c2ecf20Sopenharmony_ci#define GPIOAO_9	9
1148c2ecf20Sopenharmony_ci#define GPIOAO_10	10
1158c2ecf20Sopenharmony_ci#define GPIOAO_11	11
1168c2ecf20Sopenharmony_ci#define GPIOAO_12	12
1178c2ecf20Sopenharmony_ci#define GPIOAO_13	13
1188c2ecf20Sopenharmony_ci#define GPIO_BSD_EN	14
1198c2ecf20Sopenharmony_ci#define GPIO_TEST_N	15
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_MESON8B_GPIO_H */
122