• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0
2
3#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
4&pm8994_gpios {
5
6	pinctrl-names = "default";
7	pinctrl-0 = <&ls_exp_gpio_f &bt_en_gpios>;
8
9	ls_exp_gpio_f: pm8994_gpio5 {
10		pinconf {
11			pins = "gpio5";
12			output-low;
13			power-source = <2>; // PM8994_GPIO_S4, 1.8V
14		};
15	};
16
17	bt_en_gpios: bt_en_gpios {
18		pinconf {
19			pins = "gpio19";
20			function = PMIC_GPIO_FUNC_NORMAL;
21			output-low;
22			power-source = <PM8994_GPIO_S4>; // 1.8V
23			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
24			bias-pull-down;
25		};
26	};
27
28	wlan_en_gpios: wlan_en_gpios {
29		pinconf {
30			pins = "gpio8";
31			function = PMIC_GPIO_FUNC_NORMAL;
32			output-low;
33			power-source = <PM8994_GPIO_S4>; // 1.8V
34			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
35			bias-pull-down;
36		};
37	};
38
39	audio_mclk: clk_div1 {
40		pinconf {
41			pins = "gpio15";
42			function = "func1";
43			power-source = <PM8994_GPIO_S4>; // 1.8V
44		};
45	};
46
47	volume_up_gpio: pm8996_gpio2 {
48		pinconf {
49			pins = "gpio2";
50			function = "normal";
51			input-enable;
52			drive-push-pull;
53			bias-pull-up;
54			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
55			power-source = <PM8994_GPIO_S4>; // 1.8V
56		};
57	};
58
59	divclk4_pin_a: divclk4 {
60		pinconf {
61			pins = "gpio18";
62			function = PMIC_GPIO_FUNC_FUNC2;
63
64			bias-disable;
65			power-source = <PM8994_GPIO_S4>;
66		};
67	};
68
69	usb3_vbus_det_gpio: pm8996_gpio22 {
70		pinconf {
71			pins = "gpio22";
72			function = PMIC_GPIO_FUNC_NORMAL;
73			input-enable;
74			bias-pull-down;
75			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
76			power-source = <PM8994_GPIO_S4>; // 1.8V
77		};
78	};
79};
80
81&pmi8994_gpios {
82	usb2_vbus_det_gpio: pmi8996_gpio6 {
83		pinconf {
84			pins = "gpio6";
85			function = PMIC_GPIO_FUNC_NORMAL;
86			input-enable;
87			bias-pull-down;
88			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
89			power-source = <PM8994_GPIO_S4>; // 1.8V
90		};
91	};
92};
93