1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */ 2c66ec88fSEmmanuel Vadot /* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2014 MediaTek Inc. 4c66ec88fSEmmanuel Vadot * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com> 5c66ec88fSEmmanuel Vadot */ 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_PINCTRL_MT65XX_H 8c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_PINCTRL_MT65XX_H 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot #define MTK_PIN_NO(x) ((x) << 8) 11c66ec88fSEmmanuel Vadot #define MTK_GET_PIN_NO(x) ((x) >> 8) 12c66ec88fSEmmanuel Vadot #define MTK_GET_PIN_FUNC(x) ((x) & 0xf) 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot #define MTK_PUPD_SET_R1R0_00 100 15c66ec88fSEmmanuel Vadot #define MTK_PUPD_SET_R1R0_01 101 16c66ec88fSEmmanuel Vadot #define MTK_PUPD_SET_R1R0_10 102 17c66ec88fSEmmanuel Vadot #define MTK_PUPD_SET_R1R0_11 103 18c66ec88fSEmmanuel Vadot 19*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_000 200 20*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_001 201 21*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_010 202 22*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_011 203 23*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_100 204 24*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_101 205 25*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_110 206 26*8cc087a1SEmmanuel Vadot #define MTK_PULL_SET_RSEL_111 207 27*8cc087a1SEmmanuel Vadot 28c66ec88fSEmmanuel Vadot #define MTK_DRIVE_2mA 2 29c66ec88fSEmmanuel Vadot #define MTK_DRIVE_4mA 4 30c66ec88fSEmmanuel Vadot #define MTK_DRIVE_6mA 6 31c66ec88fSEmmanuel Vadot #define MTK_DRIVE_8mA 8 32c66ec88fSEmmanuel Vadot #define MTK_DRIVE_10mA 10 33c66ec88fSEmmanuel Vadot #define MTK_DRIVE_12mA 12 34c66ec88fSEmmanuel Vadot #define MTK_DRIVE_14mA 14 35c66ec88fSEmmanuel Vadot #define MTK_DRIVE_16mA 16 36c66ec88fSEmmanuel Vadot #define MTK_DRIVE_20mA 20 37c66ec88fSEmmanuel Vadot #define MTK_DRIVE_24mA 24 38c66ec88fSEmmanuel Vadot #define MTK_DRIVE_28mA 28 39c66ec88fSEmmanuel Vadot #define MTK_DRIVE_32mA 32 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */ 42