Home | History | Annotate | Line # | Download | only in gpio
      1      1.1  jmcneill /*	$NetBSD: meson8-gpio.h,v 1.1.1.2 2020/01/03 14:33:02 skrll Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.2     skrll /* SPDX-License-Identifier: GPL-2.0-only */
      4      1.1  jmcneill /*
      5      1.1  jmcneill  * GPIO definitions for Amlogic Meson8 SoCs
      6      1.1  jmcneill  *
      7      1.1  jmcneill  * Copyright (C) 2014 Beniamino Galvani <b.galvani (at) gmail.com>
      8      1.1  jmcneill  */
      9      1.1  jmcneill 
     10      1.1  jmcneill #ifndef _DT_BINDINGS_MESON8_GPIO_H
     11      1.1  jmcneill #define _DT_BINDINGS_MESON8_GPIO_H
     12      1.1  jmcneill 
     13      1.1  jmcneill /* First GPIO chip */
     14      1.1  jmcneill #define GPIOX_0		0
     15      1.1  jmcneill #define GPIOX_1		1
     16      1.1  jmcneill #define GPIOX_2		2
     17      1.1  jmcneill #define GPIOX_3		3
     18      1.1  jmcneill #define GPIOX_4		4
     19      1.1  jmcneill #define GPIOX_5		5
     20      1.1  jmcneill #define GPIOX_6		6
     21      1.1  jmcneill #define GPIOX_7		7
     22      1.1  jmcneill #define GPIOX_8		8
     23      1.1  jmcneill #define GPIOX_9		9
     24      1.1  jmcneill #define GPIOX_10	10
     25      1.1  jmcneill #define GPIOX_11	11
     26      1.1  jmcneill #define GPIOX_12	12
     27      1.1  jmcneill #define GPIOX_13	13
     28      1.1  jmcneill #define GPIOX_14	14
     29      1.1  jmcneill #define GPIOX_15	15
     30      1.1  jmcneill #define GPIOX_16	16
     31      1.1  jmcneill #define GPIOX_17	17
     32      1.1  jmcneill #define GPIOX_18	18
     33      1.1  jmcneill #define GPIOX_19	19
     34      1.1  jmcneill #define GPIOX_20	20
     35      1.1  jmcneill #define GPIOX_21	21
     36      1.1  jmcneill #define GPIOY_0		22
     37      1.1  jmcneill #define GPIOY_1		23
     38      1.1  jmcneill #define GPIOY_2		24
     39      1.1  jmcneill #define GPIOY_3		25
     40      1.1  jmcneill #define GPIOY_4		26
     41      1.1  jmcneill #define GPIOY_5		27
     42      1.1  jmcneill #define GPIOY_6		28
     43      1.1  jmcneill #define GPIOY_7		29
     44      1.1  jmcneill #define GPIOY_8		30
     45      1.1  jmcneill #define GPIOY_9		31
     46      1.1  jmcneill #define GPIOY_10	32
     47      1.1  jmcneill #define GPIOY_11	33
     48      1.1  jmcneill #define GPIOY_12	34
     49      1.1  jmcneill #define GPIOY_13	35
     50      1.1  jmcneill #define GPIOY_14	36
     51      1.1  jmcneill #define GPIOY_15	37
     52      1.1  jmcneill #define GPIOY_16	38
     53      1.1  jmcneill #define GPIODV_0	39
     54      1.1  jmcneill #define GPIODV_1	40
     55      1.1  jmcneill #define GPIODV_2	41
     56      1.1  jmcneill #define GPIODV_3	42
     57      1.1  jmcneill #define GPIODV_4	43
     58      1.1  jmcneill #define GPIODV_5	44
     59      1.1  jmcneill #define GPIODV_6	45
     60      1.1  jmcneill #define GPIODV_7	46
     61      1.1  jmcneill #define GPIODV_8	47
     62      1.1  jmcneill #define GPIODV_9	48
     63      1.1  jmcneill #define GPIODV_10	49
     64      1.1  jmcneill #define GPIODV_11	50
     65      1.1  jmcneill #define GPIODV_12	51
     66      1.1  jmcneill #define GPIODV_13	52
     67      1.1  jmcneill #define GPIODV_14	53
     68      1.1  jmcneill #define GPIODV_15	54
     69      1.1  jmcneill #define GPIODV_16	55
     70      1.1  jmcneill #define GPIODV_17	56
     71      1.1  jmcneill #define GPIODV_18	57
     72      1.1  jmcneill #define GPIODV_19	58
     73      1.1  jmcneill #define GPIODV_20	59
     74      1.1  jmcneill #define GPIODV_21	60
     75      1.1  jmcneill #define GPIODV_22	61
     76      1.1  jmcneill #define GPIODV_23	62
     77      1.1  jmcneill #define GPIODV_24	63
     78      1.1  jmcneill #define GPIODV_25	64
     79      1.1  jmcneill #define GPIODV_26	65
     80      1.1  jmcneill #define GPIODV_27	66
     81      1.1  jmcneill #define GPIODV_28	67
     82      1.1  jmcneill #define GPIODV_29	68
     83      1.1  jmcneill #define GPIOH_0		69
     84      1.1  jmcneill #define GPIOH_1		70
     85      1.1  jmcneill #define GPIOH_2		71
     86      1.1  jmcneill #define GPIOH_3		72
     87      1.1  jmcneill #define GPIOH_4		73
     88      1.1  jmcneill #define GPIOH_5		74
     89      1.1  jmcneill #define GPIOH_6		75
     90      1.1  jmcneill #define GPIOH_7		76
     91      1.1  jmcneill #define GPIOH_8		77
     92      1.1  jmcneill #define GPIOH_9		78
     93      1.1  jmcneill #define GPIOZ_0		79
     94      1.1  jmcneill #define GPIOZ_1		80
     95      1.1  jmcneill #define GPIOZ_2		81
     96      1.1  jmcneill #define GPIOZ_3		82
     97      1.1  jmcneill #define GPIOZ_4		83
     98      1.1  jmcneill #define GPIOZ_5		84
     99      1.1  jmcneill #define GPIOZ_6		85
    100      1.1  jmcneill #define GPIOZ_7		86
    101      1.1  jmcneill #define GPIOZ_8		87
    102      1.1  jmcneill #define GPIOZ_9		88
    103      1.1  jmcneill #define GPIOZ_10	89
    104      1.1  jmcneill #define GPIOZ_11	90
    105      1.1  jmcneill #define GPIOZ_12	91
    106      1.1  jmcneill #define GPIOZ_13	92
    107      1.1  jmcneill #define GPIOZ_14	93
    108      1.1  jmcneill #define CARD_0		94
    109      1.1  jmcneill #define CARD_1		95
    110      1.1  jmcneill #define CARD_2		96
    111      1.1  jmcneill #define CARD_3		97
    112      1.1  jmcneill #define CARD_4		98
    113      1.1  jmcneill #define CARD_5		99
    114      1.1  jmcneill #define CARD_6		100
    115      1.1  jmcneill #define BOOT_0		101
    116      1.1  jmcneill #define BOOT_1		102
    117      1.1  jmcneill #define BOOT_2		103
    118      1.1  jmcneill #define BOOT_3		104
    119      1.1  jmcneill #define BOOT_4		105
    120      1.1  jmcneill #define BOOT_5		106
    121      1.1  jmcneill #define BOOT_6		107
    122      1.1  jmcneill #define BOOT_7		108
    123      1.1  jmcneill #define BOOT_8		109
    124      1.1  jmcneill #define BOOT_9		110
    125      1.1  jmcneill #define BOOT_10		111
    126      1.1  jmcneill #define BOOT_11		112
    127      1.1  jmcneill #define BOOT_12		113
    128      1.1  jmcneill #define BOOT_13		114
    129      1.1  jmcneill #define BOOT_14		115
    130      1.1  jmcneill #define BOOT_15		116
    131      1.1  jmcneill #define BOOT_16		117
    132      1.1  jmcneill #define BOOT_17		118
    133      1.1  jmcneill #define BOOT_18		119
    134      1.1  jmcneill 
    135      1.1  jmcneill /* Second GPIO chip */
    136      1.1  jmcneill #define GPIOAO_0	0
    137      1.1  jmcneill #define GPIOAO_1	1
    138      1.1  jmcneill #define GPIOAO_2	2
    139      1.1  jmcneill #define GPIOAO_3	3
    140      1.1  jmcneill #define GPIOAO_4	4
    141      1.1  jmcneill #define GPIOAO_5	5
    142      1.1  jmcneill #define GPIOAO_6	6
    143      1.1  jmcneill #define GPIOAO_7	7
    144      1.1  jmcneill #define GPIOAO_8	8
    145      1.1  jmcneill #define GPIOAO_9	9
    146      1.1  jmcneill #define GPIOAO_10	10
    147      1.1  jmcneill #define GPIOAO_11	11
    148      1.1  jmcneill #define GPIOAO_12	12
    149      1.1  jmcneill #define GPIOAO_13	13
    150      1.1  jmcneill #define GPIO_BSD_EN	14
    151      1.1  jmcneill #define GPIO_TEST_N	15
    152      1.1  jmcneill 
    153      1.1  jmcneill #endif /* _DT_BINDINGS_MESON8_GPIO_H */
    154