1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2020 Broadcom.
6 #ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
7 #define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
9 /* Alternate functions available in MUX controller */
15 /* Pad configuration attribute */
16 #define PAD_SLEW_RATE_ENA BIT(0)
17 #define PAD_SLEW_RATE_ENA_MASK BIT(0)
19 #define PAD_DRIVE_STRENGTH_2_MA (0 << 1)
20 #define PAD_DRIVE_STRENGTH_4_MA BIT(1)
21 #define PAD_DRIVE_STRENGTH_6_MA (2 << 1)
22 #define PAD_DRIVE_STRENGTH_8_MA (3 << 1)
23 #define PAD_DRIVE_STRENGTH_10_MA (4 << 1)
24 #define PAD_DRIVE_STRENGTH_12_MA (5 << 1)
25 #define PAD_DRIVE_STRENGTH_14_MA (6 << 1)
26 #define PAD_DRIVE_STRENGTH_16_MA (7 << 1)
27 #define PAD_DRIVE_STRENGTH_MASK (7 << 1)
29 #define PAD_PULL_UP_ENA BIT(4)
30 #define PAD_PULL_UP_ENA_MASK BIT(4)
32 #define PAD_PULL_DOWN_ENA BIT(5)
33 #define PAD_PULL_DOWN_ENA_MASK BIT(5)
35 #define PAD_INPUT_PATH_DIS BIT(6)
36 #define PAD_INPUT_PATH_DIS_MASK BIT(6)
38 #define PAD_HYSTERESIS_ENA BIT(7)
39 #define PAD_HYSTERESIS_ENA_MASK BIT(7)