Home | History | Annotate | Line # | Download | only in pinctrl
      1 /*	$NetBSD: pinctrl-tegra.h,v 1.1.1.2 2020/01/03 14:33:03 skrll Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0-only */
      4 /*
      5  * This header provides constants for Tegra pinctrl bindings.
      6  *
      7  * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
      8  *
      9  * Author: Laxman Dewangan <ldewangan (at) nvidia.com>
     10  */
     11 
     12 #ifndef _DT_BINDINGS_PINCTRL_TEGRA_H
     13 #define _DT_BINDINGS_PINCTRL_TEGRA_H
     14 
     15 /*
     16  * Enable/disable for diffeent dt properties. This is applicable for
     17  * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
     18  * nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt.
     19  */
     20 #define TEGRA_PIN_DISABLE				0
     21 #define TEGRA_PIN_ENABLE				1
     22 
     23 #define TEGRA_PIN_PULL_NONE				0
     24 #define TEGRA_PIN_PULL_DOWN				1
     25 #define TEGRA_PIN_PULL_UP				2
     26 
     27 /* Low power mode driver */
     28 #define TEGRA_PIN_LP_DRIVE_DIV_8			0
     29 #define TEGRA_PIN_LP_DRIVE_DIV_4			1
     30 #define TEGRA_PIN_LP_DRIVE_DIV_2			2
     31 #define TEGRA_PIN_LP_DRIVE_DIV_1			3
     32 
     33 /* Rising/Falling slew rate */
     34 #define TEGRA_PIN_SLEW_RATE_FASTEST			0
     35 #define TEGRA_PIN_SLEW_RATE_FAST			1
     36 #define TEGRA_PIN_SLEW_RATE_SLOW			2
     37 #define TEGRA_PIN_SLEW_RATE_SLOWEST			3
     38 
     39 #endif
     40