GNU Linux-libre 4.19.245-gnu1
[releases.git] / arch / arm64 / boot / dts / qcom / msm8992-pins.dtsi
1 /*
2  * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 and
6  * only version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13
14 &msmgpio {
15         blsp1_uart2_default: blsp1_uart2_default {
16                 pinmux {
17                         function = "blsp_uart2";
18                         pins = "gpio4", "gpio5";
19                 };
20                 pinconf {
21                         pins = "gpio4", "gpio5";
22                         drive-strength = <16>;
23                         bias-disable;
24                 };
25         };
26
27         blsp1_uart2_sleep: blsp1_uart2_sleep {
28                 pinmux {
29                         function = "gpio";
30                         pins = "gpio4", "gpio5";
31                 };
32                 pinconf {
33                         pins = "gpio4", "gpio5";
34                         drive-strength = <2>;
35                         bias-pull-down;
36                 };
37         };
38
39         /* 0-3 for sdc1 4-6 for sdc2 */
40         /* Order of pins */
41         /* SDC1: CLK -> 0, CMD -> 1, DATA -> 2, RCLK -> 3 */
42         /* SDC2: CLK -> 4, CMD -> 5, DATA -> 6 */
43         sdc1_clk_on: clk-on {
44                 pinconf {
45                         pins = "sdc1_clk";
46                         bias-disable = <0>; /* No pull */
47                         drive-strength = <16>; /* 16mA */
48                 };
49         };
50
51         sdc1_clk_off: clk-off {
52                 pinconf {
53                         pins = "sdc1_clk";
54                         bias-disable = <0>; /* No pull */
55                         drive-strength = <2>; /* 2mA */
56                 };
57         };
58
59         sdc1_cmd_on: cmd-on {
60                 pinconf {
61                         pins = "sdc1_cmd";
62                         bias-pull-up;
63                         drive-strength = <8>;
64                 };
65         };
66
67         sdc1_cmd_off: cmd-off {
68                 pinconf {
69                         pins = "sdc1_cmd";
70                         bias-pull-up = <0x3>; /* same as 3.10 ?? */
71                         drive-strength = <2>; /* 2mA */
72                 };
73         };
74
75         sdc1_data_on: data-on {
76                 pinconf {
77                         pins = "sdc1_data";
78                         bias-pull-up;
79                         drive-strength = <8>; /* 8mA */
80                 };
81         };
82
83         sdc1_data_off: data-off {
84                 pinconf {
85                         pins = "sdc1_data";
86                         bias-pull-up;
87                         drive-strength = <2>;
88                 };
89         };
90
91         sdc1_rclk_on: rclk-on {
92                 bias-pull-down; /* pull down */
93         };
94
95         sdc1_rclk_off: rclk-off {
96                 bias-pull-down; /* pull down */
97         };
98 };