1*c66ec88fSEmmanuel Vadot /* 2*c66ec88fSEmmanuel Vadot * Copyright (c) 2017 Amlogic, Inc. All rights reserved. 3*c66ec88fSEmmanuel Vadot * Author: Xingyu Chen <xingyu.chen@amlogic.com> 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * SPDX-License-Identifier: GPL-2.0+ 6*c66ec88fSEmmanuel Vadot */ 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_MESON_AXG_GPIO_H 9*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_MESON_AXG_GPIO_H 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel Vadot /* First GPIO chip */ 12*c66ec88fSEmmanuel Vadot #define GPIOAO_0 0 13*c66ec88fSEmmanuel Vadot #define GPIOAO_1 1 14*c66ec88fSEmmanuel Vadot #define GPIOAO_2 2 15*c66ec88fSEmmanuel Vadot #define GPIOAO_3 3 16*c66ec88fSEmmanuel Vadot #define GPIOAO_4 4 17*c66ec88fSEmmanuel Vadot #define GPIOAO_5 5 18*c66ec88fSEmmanuel Vadot #define GPIOAO_6 6 19*c66ec88fSEmmanuel Vadot #define GPIOAO_7 7 20*c66ec88fSEmmanuel Vadot #define GPIOAO_8 8 21*c66ec88fSEmmanuel Vadot #define GPIOAO_9 9 22*c66ec88fSEmmanuel Vadot #define GPIOAO_10 10 23*c66ec88fSEmmanuel Vadot #define GPIOAO_11 11 24*c66ec88fSEmmanuel Vadot #define GPIOAO_12 12 25*c66ec88fSEmmanuel Vadot #define GPIOAO_13 13 26*c66ec88fSEmmanuel Vadot #define GPIO_TEST_N 14 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadot /* Second GPIO chip */ 29*c66ec88fSEmmanuel Vadot #define GPIOZ_0 0 30*c66ec88fSEmmanuel Vadot #define GPIOZ_1 1 31*c66ec88fSEmmanuel Vadot #define GPIOZ_2 2 32*c66ec88fSEmmanuel Vadot #define GPIOZ_3 3 33*c66ec88fSEmmanuel Vadot #define GPIOZ_4 4 34*c66ec88fSEmmanuel Vadot #define GPIOZ_5 5 35*c66ec88fSEmmanuel Vadot #define GPIOZ_6 6 36*c66ec88fSEmmanuel Vadot #define GPIOZ_7 7 37*c66ec88fSEmmanuel Vadot #define GPIOZ_8 8 38*c66ec88fSEmmanuel Vadot #define GPIOZ_9 9 39*c66ec88fSEmmanuel Vadot #define GPIOZ_10 10 40*c66ec88fSEmmanuel Vadot #define BOOT_0 11 41*c66ec88fSEmmanuel Vadot #define BOOT_1 12 42*c66ec88fSEmmanuel Vadot #define BOOT_2 13 43*c66ec88fSEmmanuel Vadot #define BOOT_3 14 44*c66ec88fSEmmanuel Vadot #define BOOT_4 15 45*c66ec88fSEmmanuel Vadot #define BOOT_5 16 46*c66ec88fSEmmanuel Vadot #define BOOT_6 17 47*c66ec88fSEmmanuel Vadot #define BOOT_7 18 48*c66ec88fSEmmanuel Vadot #define BOOT_8 19 49*c66ec88fSEmmanuel Vadot #define BOOT_9 20 50*c66ec88fSEmmanuel Vadot #define BOOT_10 21 51*c66ec88fSEmmanuel Vadot #define BOOT_11 22 52*c66ec88fSEmmanuel Vadot #define BOOT_12 23 53*c66ec88fSEmmanuel Vadot #define BOOT_13 24 54*c66ec88fSEmmanuel Vadot #define BOOT_14 25 55*c66ec88fSEmmanuel Vadot #define GPIOA_0 26 56*c66ec88fSEmmanuel Vadot #define GPIOA_1 27 57*c66ec88fSEmmanuel Vadot #define GPIOA_2 28 58*c66ec88fSEmmanuel Vadot #define GPIOA_3 29 59*c66ec88fSEmmanuel Vadot #define GPIOA_4 30 60*c66ec88fSEmmanuel Vadot #define GPIOA_5 31 61*c66ec88fSEmmanuel Vadot #define GPIOA_6 32 62*c66ec88fSEmmanuel Vadot #define GPIOA_7 33 63*c66ec88fSEmmanuel Vadot #define GPIOA_8 34 64*c66ec88fSEmmanuel Vadot #define GPIOA_9 35 65*c66ec88fSEmmanuel Vadot #define GPIOA_10 36 66*c66ec88fSEmmanuel Vadot #define GPIOA_11 37 67*c66ec88fSEmmanuel Vadot #define GPIOA_12 38 68*c66ec88fSEmmanuel Vadot #define GPIOA_13 39 69*c66ec88fSEmmanuel Vadot #define GPIOA_14 40 70*c66ec88fSEmmanuel Vadot #define GPIOA_15 41 71*c66ec88fSEmmanuel Vadot #define GPIOA_16 42 72*c66ec88fSEmmanuel Vadot #define GPIOA_17 43 73*c66ec88fSEmmanuel Vadot #define GPIOA_18 44 74*c66ec88fSEmmanuel Vadot #define GPIOA_19 45 75*c66ec88fSEmmanuel Vadot #define GPIOA_20 46 76*c66ec88fSEmmanuel Vadot #define GPIOX_0 47 77*c66ec88fSEmmanuel Vadot #define GPIOX_1 48 78*c66ec88fSEmmanuel Vadot #define GPIOX_2 49 79*c66ec88fSEmmanuel Vadot #define GPIOX_3 50 80*c66ec88fSEmmanuel Vadot #define GPIOX_4 51 81*c66ec88fSEmmanuel Vadot #define GPIOX_5 52 82*c66ec88fSEmmanuel Vadot #define GPIOX_6 53 83*c66ec88fSEmmanuel Vadot #define GPIOX_7 54 84*c66ec88fSEmmanuel Vadot #define GPIOX_8 55 85*c66ec88fSEmmanuel Vadot #define GPIOX_9 56 86*c66ec88fSEmmanuel Vadot #define GPIOX_10 57 87*c66ec88fSEmmanuel Vadot #define GPIOX_11 58 88*c66ec88fSEmmanuel Vadot #define GPIOX_12 59 89*c66ec88fSEmmanuel Vadot #define GPIOX_13 60 90*c66ec88fSEmmanuel Vadot #define GPIOX_14 61 91*c66ec88fSEmmanuel Vadot #define GPIOX_15 62 92*c66ec88fSEmmanuel Vadot #define GPIOX_16 63 93*c66ec88fSEmmanuel Vadot #define GPIOX_17 64 94*c66ec88fSEmmanuel Vadot #define GPIOX_18 65 95*c66ec88fSEmmanuel Vadot #define GPIOX_19 66 96*c66ec88fSEmmanuel Vadot #define GPIOX_20 67 97*c66ec88fSEmmanuel Vadot #define GPIOX_21 68 98*c66ec88fSEmmanuel Vadot #define GPIOX_22 69 99*c66ec88fSEmmanuel Vadot #define GPIOY_0 70 100*c66ec88fSEmmanuel Vadot #define GPIOY_1 71 101*c66ec88fSEmmanuel Vadot #define GPIOY_2 72 102*c66ec88fSEmmanuel Vadot #define GPIOY_3 73 103*c66ec88fSEmmanuel Vadot #define GPIOY_4 74 104*c66ec88fSEmmanuel Vadot #define GPIOY_5 75 105*c66ec88fSEmmanuel Vadot #define GPIOY_6 76 106*c66ec88fSEmmanuel Vadot #define GPIOY_7 77 107*c66ec88fSEmmanuel Vadot #define GPIOY_8 78 108*c66ec88fSEmmanuel Vadot #define GPIOY_9 79 109*c66ec88fSEmmanuel Vadot #define GPIOY_10 80 110*c66ec88fSEmmanuel Vadot #define GPIOY_11 81 111*c66ec88fSEmmanuel Vadot #define GPIOY_12 82 112*c66ec88fSEmmanuel Vadot #define GPIOY_13 83 113*c66ec88fSEmmanuel Vadot #define GPIOY_14 84 114*c66ec88fSEmmanuel Vadot #define GPIOY_15 85 115*c66ec88fSEmmanuel Vadot 116*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_MESON_AXG_GPIO_H */ 117