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