The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/include/dt-bindings/pinctrl/k3.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: GPL-2.0 */
    2 /*
    3  * This header provides constants for pinctrl bindings for TI's K3 SoC
    4  * family.
    5  *
    6  * Copyright (C) 2018-2021 Texas Instruments Incorporated - https://www.ti.com/
    7  */
    8 #ifndef _DT_BINDINGS_PINCTRL_TI_K3_H
    9 #define _DT_BINDINGS_PINCTRL_TI_K3_H
   10 
   11 #define PULLUDEN_SHIFT          (16)
   12 #define PULLTYPESEL_SHIFT       (17)
   13 #define RXACTIVE_SHIFT          (18)
   14 
   15 #define PULL_DISABLE            (1 << PULLUDEN_SHIFT)
   16 #define PULL_ENABLE             (0 << PULLUDEN_SHIFT)
   17 
   18 #define PULL_UP                 (1 << PULLTYPESEL_SHIFT | PULL_ENABLE)
   19 #define PULL_DOWN               (0 << PULLTYPESEL_SHIFT | PULL_ENABLE)
   20 
   21 #define INPUT_EN                (1 << RXACTIVE_SHIFT)
   22 #define INPUT_DISABLE           (0 << RXACTIVE_SHIFT)
   23 
   24 /* Only these macros are expected be used directly in device tree files */
   25 #define PIN_OUTPUT              (INPUT_DISABLE | PULL_DISABLE)
   26 #define PIN_OUTPUT_PULLUP       (INPUT_DISABLE | PULL_UP)
   27 #define PIN_OUTPUT_PULLDOWN     (INPUT_DISABLE | PULL_DOWN)
   28 #define PIN_INPUT               (INPUT_EN | PULL_DISABLE)
   29 #define PIN_INPUT_PULLUP        (INPUT_EN | PULL_UP)
   30 #define PIN_INPUT_PULLDOWN      (INPUT_EN | PULL_DOWN)
   31 
   32 #define AM65X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
   33 #define AM65X_WKUP_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
   34 
   35 #define J721E_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
   36 #define J721E_WKUP_IOPAD(pa, val, muxmode)      (((pa) & 0x1fff)) ((val) | (muxmode))
   37 
   38 #define AM64X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
   39 #define AM64X_MCU_IOPAD(pa, val, muxmode)       (((pa) & 0x1fff)) ((val) | (muxmode))
   40 
   41 #define J721S2_IOPAD(pa, val, muxmode)          (((pa) & 0x1fff)) ((val) | (muxmode))
   42 #define J721S2_WKUP_IOPAD(pa, val, muxmode)     (((pa) & 0x1fff)) ((val) | (muxmode))
   43 
   44 #define AM62X_IOPAD(pa, val, muxmode)           (((pa) & 0x1fff)) ((val) | (muxmode))
   45 #define AM62X_MCU_IOPAD(pa, val, muxmode)       (((pa) & 0x1fff)) ((val) | (muxmode))
   46 
   47 #endif

Cache object: 4a000fc53116239d21293b0fa9955c57


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.