Merge tag 'xilinx-for-v2022.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / include / dt-bindings / pinctrl / brcm,pinctrl-ns3.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2020 Broadcom.
4  */
5
6 #ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
7 #define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
8
9 /* Alternate functions available in MUX controller */
10 #define MODE_NITRO                              0
11 #define MODE_NAND                               1
12 #define MODE_PNOR                               2
13 #define MODE_GPIO                               3
14
15 /* Pad configuration attribute */
16 #define PAD_SLEW_RATE_ENA                       BIT(0)
17 #define PAD_SLEW_RATE_ENA_MASK                  BIT(0)
18
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)
28
29 #define PAD_PULL_UP_ENA                         BIT(4)
30 #define PAD_PULL_UP_ENA_MASK                    BIT(4)
31
32 #define PAD_PULL_DOWN_ENA                       BIT(5)
33 #define PAD_PULL_DOWN_ENA_MASK                  BIT(5)
34
35 #define PAD_INPUT_PATH_DIS                      BIT(6)
36 #define PAD_INPUT_PATH_DIS_MASK                 BIT(6)
37
38 #define PAD_HYSTERESIS_ENA                      BIT(7)
39 #define PAD_HYSTERESIS_ENA_MASK                 BIT(7)
40
41 #endif