pinctrl-tegra.h revision 1.1.1.1 1 /* $NetBSD: pinctrl-tegra.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $ */
2
3 /*
4 * This header provides constants for Tegra pinctrl bindings.
5 *
6 * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
7 *
8 * Author: Laxman Dewangan <ldewangan (at) nvidia.com>
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU General Public License,
12 * version 2, as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
18 */
19
20 #ifndef _DT_BINDINGS_PINCTRL_TEGRA_H
21 #define _DT_BINDINGS_PINCTRL_TEGRA_H
22
23 /*
24 * Enable/disable for diffeent dt properties. This is applicable for
25 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
26 * nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt.
27 */
28 #define TEGRA_PIN_DISABLE 0
29 #define TEGRA_PIN_ENABLE 1
30
31 #define TEGRA_PIN_PULL_NONE 0
32 #define TEGRA_PIN_PULL_DOWN 1
33 #define TEGRA_PIN_PULL_UP 2
34
35 /* Low power mode driver */
36 #define TEGRA_PIN_LP_DRIVE_DIV_8 0
37 #define TEGRA_PIN_LP_DRIVE_DIV_4 1
38 #define TEGRA_PIN_LP_DRIVE_DIV_2 2
39 #define TEGRA_PIN_LP_DRIVE_DIV_1 3
40
41 /* Rising/Falling slew rate */
42 #define TEGRA_PIN_SLEW_RATE_FASTEST 0
43 #define TEGRA_PIN_SLEW_RATE_FAST 1
44 #define TEGRA_PIN_SLEW_RATE_SLOW 2
45 #define TEGRA_PIN_SLEW_RATE_SLOWEST 3
46
47 #endif
48