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