1 1.1 jmcneill /* $NetBSD: meson-g12a-gpio.h,v 1.1.1.1 2019/01/22 14:57:01 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Copyright (c) 2018 Amlogic, Inc. All rights reserved. 6 1.1 jmcneill * Author: Xingyu Chen <xingyu.chen (at) amlogic.com> 7 1.1 jmcneill */ 8 1.1 jmcneill 9 1.1 jmcneill #ifndef _DT_BINDINGS_MESON_G12A_GPIO_H 10 1.1 jmcneill #define _DT_BINDINGS_MESON_G12A_GPIO_H 11 1.1 jmcneill 12 1.1 jmcneill /* First GPIO chip */ 13 1.1 jmcneill #define GPIOAO_0 0 14 1.1 jmcneill #define GPIOAO_1 1 15 1.1 jmcneill #define GPIOAO_2 2 16 1.1 jmcneill #define GPIOAO_3 3 17 1.1 jmcneill #define GPIOAO_4 4 18 1.1 jmcneill #define GPIOAO_5 5 19 1.1 jmcneill #define GPIOAO_6 6 20 1.1 jmcneill #define GPIOAO_7 7 21 1.1 jmcneill #define GPIOAO_8 8 22 1.1 jmcneill #define GPIOAO_9 9 23 1.1 jmcneill #define GPIOAO_10 10 24 1.1 jmcneill #define GPIOAO_11 11 25 1.1 jmcneill #define GPIOE_0 12 26 1.1 jmcneill #define GPIOE_1 13 27 1.1 jmcneill #define GPIOE_2 14 28 1.1 jmcneill 29 1.1 jmcneill /* Second GPIO chip */ 30 1.1 jmcneill #define GPIOZ_0 0 31 1.1 jmcneill #define GPIOZ_1 1 32 1.1 jmcneill #define GPIOZ_2 2 33 1.1 jmcneill #define GPIOZ_3 3 34 1.1 jmcneill #define GPIOZ_4 4 35 1.1 jmcneill #define GPIOZ_5 5 36 1.1 jmcneill #define GPIOZ_6 6 37 1.1 jmcneill #define GPIOZ_7 7 38 1.1 jmcneill #define GPIOZ_8 8 39 1.1 jmcneill #define GPIOZ_9 9 40 1.1 jmcneill #define GPIOZ_10 10 41 1.1 jmcneill #define GPIOZ_11 11 42 1.1 jmcneill #define GPIOZ_12 12 43 1.1 jmcneill #define GPIOZ_13 13 44 1.1 jmcneill #define GPIOZ_14 14 45 1.1 jmcneill #define GPIOZ_15 15 46 1.1 jmcneill #define GPIOH_0 16 47 1.1 jmcneill #define GPIOH_1 17 48 1.1 jmcneill #define GPIOH_2 18 49 1.1 jmcneill #define GPIOH_3 19 50 1.1 jmcneill #define GPIOH_4 20 51 1.1 jmcneill #define GPIOH_5 21 52 1.1 jmcneill #define GPIOH_6 22 53 1.1 jmcneill #define GPIOH_7 23 54 1.1 jmcneill #define GPIOH_8 24 55 1.1 jmcneill #define BOOT_0 25 56 1.1 jmcneill #define BOOT_1 26 57 1.1 jmcneill #define BOOT_2 27 58 1.1 jmcneill #define BOOT_3 28 59 1.1 jmcneill #define BOOT_4 29 60 1.1 jmcneill #define BOOT_5 30 61 1.1 jmcneill #define BOOT_6 31 62 1.1 jmcneill #define BOOT_7 32 63 1.1 jmcneill #define BOOT_8 33 64 1.1 jmcneill #define BOOT_9 34 65 1.1 jmcneill #define BOOT_10 35 66 1.1 jmcneill #define BOOT_11 36 67 1.1 jmcneill #define BOOT_12 37 68 1.1 jmcneill #define BOOT_13 38 69 1.1 jmcneill #define BOOT_14 39 70 1.1 jmcneill #define BOOT_15 40 71 1.1 jmcneill #define GPIOC_0 41 72 1.1 jmcneill #define GPIOC_1 42 73 1.1 jmcneill #define GPIOC_2 43 74 1.1 jmcneill #define GPIOC_3 44 75 1.1 jmcneill #define GPIOC_4 45 76 1.1 jmcneill #define GPIOC_5 46 77 1.1 jmcneill #define GPIOC_6 47 78 1.1 jmcneill #define GPIOC_7 48 79 1.1 jmcneill #define GPIOA_0 49 80 1.1 jmcneill #define GPIOA_1 50 81 1.1 jmcneill #define GPIOA_2 51 82 1.1 jmcneill #define GPIOA_3 52 83 1.1 jmcneill #define GPIOA_4 53 84 1.1 jmcneill #define GPIOA_5 54 85 1.1 jmcneill #define GPIOA_6 55 86 1.1 jmcneill #define GPIOA_7 56 87 1.1 jmcneill #define GPIOA_8 57 88 1.1 jmcneill #define GPIOA_9 58 89 1.1 jmcneill #define GPIOA_10 59 90 1.1 jmcneill #define GPIOA_11 60 91 1.1 jmcneill #define GPIOA_12 61 92 1.1 jmcneill #define GPIOA_13 62 93 1.1 jmcneill #define GPIOA_14 63 94 1.1 jmcneill #define GPIOA_15 64 95 1.1 jmcneill #define GPIOX_0 65 96 1.1 jmcneill #define GPIOX_1 66 97 1.1 jmcneill #define GPIOX_2 67 98 1.1 jmcneill #define GPIOX_3 68 99 1.1 jmcneill #define GPIOX_4 69 100 1.1 jmcneill #define GPIOX_5 70 101 1.1 jmcneill #define GPIOX_6 71 102 1.1 jmcneill #define GPIOX_7 72 103 1.1 jmcneill #define GPIOX_8 73 104 1.1 jmcneill #define GPIOX_9 74 105 1.1 jmcneill #define GPIOX_10 75 106 1.1 jmcneill #define GPIOX_11 76 107 1.1 jmcneill #define GPIOX_12 77 108 1.1 jmcneill #define GPIOX_13 78 109 1.1 jmcneill #define GPIOX_14 79 110 1.1 jmcneill #define GPIOX_15 80 111 1.1 jmcneill #define GPIOX_16 81 112 1.1 jmcneill #define GPIOX_17 82 113 1.1 jmcneill #define GPIOX_18 83 114 1.1 jmcneill #define GPIOX_19 84 115 1.1 jmcneill 116 1.1 jmcneill #endif /* _DT_BINDINGS_MESON_G12A_GPIO_H */ 117