1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * This header provides constants for Keystone pinctrl bindings. 4 * 5 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 6 */ 7 8 #ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H 9 #define _DT_BINDINGS_PINCTRL_KEYSTONE_H 10 11 #define MUX_MODE0 0 12 #define MUX_MODE1 1 13 #define MUX_MODE2 2 14 #define MUX_MODE3 3 15 #define MUX_MODE4 4 16 #define MUX_MODE5 5 17 18 #define BUFFER_CLASS_B (0 << 19) 19 #define BUFFER_CLASS_C (1 << 19) 20 #define BUFFER_CLASS_D (2 << 19) 21 #define BUFFER_CLASS_E (3 << 19) 22 23 #define PULL_DISABLE (1 << 16) 24 #define PIN_PULLUP (1 << 17) 25 #define PIN_PULLDOWN (0 << 17) 26 27 #define KEYSTONE_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset)) 28 29 #define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFSET((pa), 0x1000) 30 31 #endif 32