1 Qualcomm PMIC Multi-Purpose Pin (MPP) block
3 This binding describes the MPP block(s) found in the 8xxx series
4 of PMIC's from Qualcomm.
9 Definition: Should contain one of:
22 And must contain either "qcom,spmi-mpp" or "qcom,ssbi-mpp"
23 if the device is on an spmi bus or an ssbi bus respectively.
27 Value type: <prop-encoded-array>
28 Definition: Register base of the MPP block and length.
32 Value type: <prop-encoded-array>
33 Definition: Must contain an array of encoded interrupt specifiers for
39 Definition: Mark the device node as a GPIO controller
44 Definition: Must be 2;
45 the first cell will be used to define MPP number and the
46 second denotes the flags for this MPP
48 Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
49 a general description of GPIO and interrupt bindings.
51 Please refer to pinctrl-bindings.txt in this directory for details of the
52 common pinctrl bindings used by client devices, including the meaning of the
53 phrase "pin configuration node".
55 The pin configuration nodes act as a container for an arbitrary number of
56 subnodes. Each of these subnodes represents some desired configuration for a
57 pin or a list of pins. This configuration can include the
58 mux function to select on those pin(s), and various pin configuration
59 parameters, as listed below.
63 The name of each subnode is not important; all subnodes should be enumerated
64 and processed purely based on their content.
66 Each subnode only affects those parameters that are explicitly listed. In
67 other words, a subnode that lists a mux function but no pin configuration
68 parameters implies no information about any pin configuration parameters.
69 Similarly, a pin subnode that describes a pullup parameter implies no
70 information about e.g. the mux function.
72 The following generic properties as defined in pinctrl-bindings.txt are valid
73 to specify in a pin configuration subnode:
77 Value type: <string-array>
78 Definition: List of MPP pins affected by the properties specified in
79 this subnode. Valid pins are:
88 Definition: Specify the alternative function to be configured for the
89 specified pins. Valid values are:
97 Definition: The specified pins should be configured as no pull.
102 Definition: The specified pins should be configured as pull up.
103 Valid values are 600, 10000 and 30000 in bidirectional mode
104 only, i.e. when operating in qcom,analog-mode and input and
105 outputs are enabled. The hardware ignores the configuration
106 when operating in other modes.
108 - bias-high-impedance:
111 Definition: The specified pins will put in high-Z mode and disabled.
116 Definition: The specified pins are put in input mode, i.e. their input
122 Definition: The specified pins are configured in output mode, driven
128 Definition: The specified pins are configured in output mode, driven
134 Definition: Selects the power source for the specified pins. Valid power
135 sources are defined in <dt-bindings/pinctrl/qcom,pmic-mpp.h>
140 Definition: Selects the source for analog output. Valued values are
141 defined in <dt-binding/pinctrl/qcom,pmic-mpp.h>
147 Definition: Selects which dtest rail to be routed in the various functions.
153 Definition: Selects the source for analog input. Valid values are
154 defined in <dt-bindings/pinctrl/qcom,pmic-mpp.h>
155 PMIC_MPP_AMUX_ROUTE_CH5, PMIC_MPP_AMUX_ROUTE_CH6...
159 Definition: Indicates that the pin should be operating in paired mode.
164 compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
168 interrupts = <4 0xa0 0 0>, <4 0xa1 0 0>, <4 0xa2 0 0>, <4 0xa3 0 0>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pm8841_default>;
173 pm8841_default: default {
175 pins = "mpp1", "mpp2", "mpp3", "mpp4";
176 function = "digital";
178 power-source = <PM8841_MPP_S3>;