~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/ti/k3-pinctrl.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
  2 /*
  3  * This header provides constants for pinctrl bindings for TI's K3 SoC
  4  * family.
  5  *
  6  * Copyright (C) 2018-2024 Texas Instruments Incorporated - https://www.ti.com/
  7  */
  8 #ifndef DTS_ARM64_TI_K3_PINCTRL_H
  9 #define DTS_ARM64_TI_K3_PINCTRL_H
 10 
 11 #define PULLUDEN_SHIFT          (16)
 12 #define PULLTYPESEL_SHIFT       (17)
 13 #define RXACTIVE_SHIFT          (18)
 14 #define DEBOUNCE_SHIFT          (11)
 15 
 16 #define PULL_DISABLE            (1 << PULLUDEN_SHIFT)
 17 #define PULL_ENABLE             (0 << PULLUDEN_SHIFT)
 18 
 19 #define PULL_UP                 (1 << PULLTYPESEL_SHIFT | PULL_ENABLE)
 20 #define PULL_DOWN               (0 << PULLTYPESEL_SHIFT | PULL_ENABLE)
 21 
 22 #define INPUT_EN                (1 << RXACTIVE_SHIFT)
 23 #define INPUT_DISABLE           (0 << RXACTIVE_SHIFT)
 24 
 25 /* Only these macros are expected be used directly in device tree files */
 26 #define PIN_OUTPUT              (INPUT_DISABLE | PULL_DISABLE)
 27 #define PIN_OUTPUT_PULLUP       (INPUT_DISABLE | PULL_UP)
 28 #define PIN_OUTPUT_PULLDOWN     (INPUT_DISABLE | PULL_DOWN)
 29 #define PIN_INPUT               (INPUT_EN | PULL_DISABLE)
 30 #define PIN_INPUT_PULLUP        (INPUT_EN | PULL_UP)
 31 #define PIN_INPUT_PULLDOWN      (INPUT_EN | PULL_DOWN)
 32 
 33 #define PIN_DEBOUNCE_DISABLE    (0 << DEBOUNCE_SHIFT)
 34 #define PIN_DEBOUNCE_CONF1      (1 << DEBOUNCE_SHIFT)
 35 #define PIN_DEBOUNCE_CONF2      (2 << DEBOUNCE_SHIFT)
 36 #define PIN_DEBOUNCE_CONF3      (3 << DEBOUNCE_SHIFT)
 37 #define PIN_DEBOUNCE_CONF4      (4 << DEBOUNCE_SHIFT)
 38 #define PIN_DEBOUNCE_CONF5      (5 << DEBOUNCE_SHIFT)
 39 #define PIN_DEBOUNCE_CONF6      (6 << DEBOUNCE_SHIFT)
 40 
 41 /* Default mux configuration for gpio-ranges to use with pinctrl */
 42 #define PIN_GPIO_RANGE_IOPAD    (PIN_INPUT | 7)
 43 
 44 #define AM62AX_IOPAD(pa, val, muxmode)          (((pa) & 0x1fff)) ((val) | (muxmode))
 45 #define AM62AX_MCU_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
 46 
 47 #define AM62PX_IOPAD(pa, val, muxmode)          (((pa) & 0x1fff)) ((val) | (muxmode))
 48 #define AM62PX_MCU_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
 49 
 50 #define AM62X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
 51 #define AM62X_MCU_IOPAD(pa, val, muxmode)       (((pa) & 0x1fff)) ((val) | (muxmode))
 52 
 53 #define AM64X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
 54 #define AM64X_MCU_IOPAD(pa, val, muxmode)       (((pa) & 0x1fff)) ((val) | (muxmode))
 55 
 56 #define AM65X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
 57 #define AM65X_WKUP_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
 58 
 59 #define J721E_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
 60 #define J721E_WKUP_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
 61 
 62 #define J721S2_IOPAD(pa, val, muxmode)          (((pa) & 0x1fff)) ((val) | (muxmode))
 63 #define J721S2_WKUP_IOPAD(pa, val, muxmode)     (((pa) & 0x1fff)) ((val) | (muxmode))
 64 
 65 #define J722S_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
 66 #define J722S_MCU_IOPAD(pa, val, muxmode)       (((pa) & 0x1fff)) ((val) | (muxmode))
 67 
 68 #define J784S4_IOPAD(pa, val, muxmode)          (((pa) & 0x1fff)) ((val) | (muxmode))
 69 #define J784S4_WKUP_IOPAD(pa, val, muxmode)     (((pa) & 0x1fff)) ((val) | (muxmode))
 70 
 71 #endif
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php