Path: blob/master/include/dt-bindings/pinctrl/brcm,pinctrl-stingray.h
26292 views
/*1* BSD LICENSE2*3* Copyright(c) 2017 Broadcom Corporation. All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* * Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* * Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in13* the documentation and/or other materials provided with the14* distribution.15* * Neither the name of Broadcom Corporation nor the names of its16* contributors may be used to endorse or promote products derived17* from this software without specific prior written permission.18*19* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS20* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT21* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR22* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT23* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,24* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT25* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,26* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY27* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT28* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE29* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.30*/3132#ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__33#define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__3435/* Alternate functions available in MUX controller */36#define MODE_NITRO 037#define MODE_NAND 138#define MODE_PNOR 239#define MODE_GPIO 34041/* Pad configuration attribute */42#define PAD_SLEW_RATE_ENA (1 << 0)43#define PAD_SLEW_RATE_ENA_MASK (1 << 0)4445#define PAD_DRIVE_STRENGTH_2_MA (0 << 1)46#define PAD_DRIVE_STRENGTH_4_MA (1 << 1)47#define PAD_DRIVE_STRENGTH_6_MA (2 << 1)48#define PAD_DRIVE_STRENGTH_8_MA (3 << 1)49#define PAD_DRIVE_STRENGTH_10_MA (4 << 1)50#define PAD_DRIVE_STRENGTH_12_MA (5 << 1)51#define PAD_DRIVE_STRENGTH_14_MA (6 << 1)52#define PAD_DRIVE_STRENGTH_16_MA (7 << 1)53#define PAD_DRIVE_STRENGTH_MASK (7 << 1)5455#define PAD_PULL_UP_ENA (1 << 4)56#define PAD_PULL_UP_ENA_MASK (1 << 4)5758#define PAD_PULL_DOWN_ENA (1 << 5)59#define PAD_PULL_DOWN_ENA_MASK (1 << 5)6061#define PAD_INPUT_PATH_DIS (1 << 6)62#define PAD_INPUT_PATH_DIS_MASK (1 << 6)6364#define PAD_HYSTERESIS_ENA (1 << 7)65#define PAD_HYSTERESIS_ENA_MASK (1 << 7)6667#endif686970