summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
blob: aff218c1b7b6b7af82e574d6b9637e6fe6462ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>

&pm8916_gpios {

	usb_hub_reset_pm: usb_hub_reset_pm {
		pinconf {
			pins = "gpio3";
			function = PMIC_GPIO_FUNC_NORMAL;
			input-disable;
			output-high;
		};
	};

	usb_hub_reset_pm_device: usb_hub_reset_pm_device {
		pinconf {
			pins = "gpio3";
			function = PMIC_GPIO_FUNC_NORMAL;
			output-low;
		};
	};

	usb_sw_sel_pm: usb_sw_sel_pm {
		pinconf {
			pins = "gpio4";
			function = PMIC_GPIO_FUNC_NORMAL;
			power-source = <PM8916_GPIO_VPH>;
			input-disable;
			output-high;
		};
	};

	usb_sw_sel_pm_device: usb_sw_sel_pm_device {
		pinconf {
			pins = "gpio4";
			function = PMIC_GPIO_FUNC_NORMAL;
			power-source = <PM8916_GPIO_VPH>;
			input-disable;
			output-low;
		};
	};

	pm8916_gpios_leds: pm8916_gpios_leds {
		pinconf {
			pins = "gpio1", "gpio2";
			function = PMIC_GPIO_FUNC_NORMAL;
			output-low;
		};
	};
};

&pm8916_mpps {

	pinctrl-names = "default";
	pinctrl-0 = <&ls_exp_gpio_f>;

	ls_exp_gpio_f: pm8916_mpp4 {
		pinconf {
			pins = "mpp4";
			function = "digital";
			output-low;
			power-source = <PM8916_MPP_L5>;	// 1.8V
		};
	};

	pm8916_mpps_leds: pm8916_mpps_leds {
		pinconf {
			pins = "mpp2", "mpp3";
			function = "digital";
			output-low;
		};
	};
};