brcm,pinctrl-ns3.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2020 Broadcom.
  4. */
  5. #ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
  6. #define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
  7. /* Alternate functions available in MUX controller */
  8. #define MODE_NITRO 0
  9. #define MODE_NAND 1
  10. #define MODE_PNOR 2
  11. #define MODE_GPIO 3
  12. /* Pad configuration attribute */
  13. #define PAD_SLEW_RATE_ENA BIT(0)
  14. #define PAD_SLEW_RATE_ENA_MASK BIT(0)
  15. #define PAD_DRIVE_STRENGTH_2_MA (0 << 1)
  16. #define PAD_DRIVE_STRENGTH_4_MA BIT(1)
  17. #define PAD_DRIVE_STRENGTH_6_MA (2 << 1)
  18. #define PAD_DRIVE_STRENGTH_8_MA (3 << 1)
  19. #define PAD_DRIVE_STRENGTH_10_MA (4 << 1)
  20. #define PAD_DRIVE_STRENGTH_12_MA (5 << 1)
  21. #define PAD_DRIVE_STRENGTH_14_MA (6 << 1)
  22. #define PAD_DRIVE_STRENGTH_16_MA (7 << 1)
  23. #define PAD_DRIVE_STRENGTH_MASK (7 << 1)
  24. #define PAD_PULL_UP_ENA BIT(4)
  25. #define PAD_PULL_UP_ENA_MASK BIT(4)
  26. #define PAD_PULL_DOWN_ENA BIT(5)
  27. #define PAD_PULL_DOWN_ENA_MASK BIT(5)
  28. #define PAD_INPUT_PATH_DIS BIT(6)
  29. #define PAD_INPUT_PATH_DIS_MASK BIT(6)
  30. #define PAD_HYSTERESIS_ENA BIT(7)
  31. #define PAD_HYSTERESIS_ENA_MASK BIT(7)
  32. #endif