162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2014 MediaTek Inc.
462306a36Sopenharmony_ci * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_PINCTRL_MT65XX_H
862306a36Sopenharmony_ci#define _DT_BINDINGS_PINCTRL_MT65XX_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#define MTK_PIN_NO(x) ((x) << 8)
1162306a36Sopenharmony_ci#define MTK_GET_PIN_NO(x) ((x) >> 8)
1262306a36Sopenharmony_ci#define MTK_GET_PIN_FUNC(x) ((x) & 0xf)
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#define MTK_PUPD_SET_R1R0_00 100
1562306a36Sopenharmony_ci#define MTK_PUPD_SET_R1R0_01 101
1662306a36Sopenharmony_ci#define MTK_PUPD_SET_R1R0_10 102
1762306a36Sopenharmony_ci#define MTK_PUPD_SET_R1R0_11 103
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_000  200
2062306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_001  201
2162306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_010  202
2262306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_011  203
2362306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_100  204
2462306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_101  205
2562306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_110  206
2662306a36Sopenharmony_ci#define MTK_PULL_SET_RSEL_111  207
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define MTK_DRIVE_2mA  2
2962306a36Sopenharmony_ci#define MTK_DRIVE_4mA  4
3062306a36Sopenharmony_ci#define MTK_DRIVE_6mA  6
3162306a36Sopenharmony_ci#define MTK_DRIVE_8mA  8
3262306a36Sopenharmony_ci#define MTK_DRIVE_10mA 10
3362306a36Sopenharmony_ci#define MTK_DRIVE_12mA 12
3462306a36Sopenharmony_ci#define MTK_DRIVE_14mA 14
3562306a36Sopenharmony_ci#define MTK_DRIVE_16mA 16
3662306a36Sopenharmony_ci#define MTK_DRIVE_20mA 20
3762306a36Sopenharmony_ci#define MTK_DRIVE_24mA 24
3862306a36Sopenharmony_ci#define MTK_DRIVE_28mA 28
3962306a36Sopenharmony_ci#define MTK_DRIVE_32mA 32
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci#endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */
42