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:
26 And must contain either "qcom,spmi-mpp" or "qcom,ssbi-mpp"
27 if the device is on an spmi bus or an ssbi bus respectively.
31 Value type: <prop-encoded-array>
32 Definition: Register base of the MPP block and length.
36 Value type: <prop-encoded-array>
37 Definition: Must contain an array of encoded interrupt specifiers for
43 Definition: Mark the device node as a GPIO controller
48 Definition: Must be 2;
49 the first cell will be used to define MPP number and the
50 second denotes the flags for this MPP
52 Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
53 a general description of GPIO and interrupt bindings.
55 Please refer to pinctrl-bindings.txt in this directory for details of the
56 common pinctrl bindings used by client devices, including the meaning of the
57 phrase "pin configuration node".
59 The pin configuration nodes act as a container for an arbitrary number of
60 subnodes. Each of these subnodes represents some desired configuration for a
61 pin or a list of pins. This configuration can include the
62 mux function to select on those pin(s), and various pin configuration
63 parameters, as listed below.
67 The name of each subnode is not important; all subnodes should be enumerated
68 and processed purely based on their content.
70 Each subnode only affects those parameters that are explicitly listed. In
71 other words, a subnode that lists a mux function but no pin configuration
72 parameters implies no information about any pin configuration parameters.
73 Similarly, a pin subnode that describes a pullup parameter implies no
74 information about e.g. the mux function.
76 The following generic properties as defined in pinctrl-bindings.txt are valid
77 to specify in a pin configuration subnode:
81 Value type: <string-array>
82 Definition: List of MPP pins affected by the properties specified in
83 this subnode. Valid pins are:
94 Definition: Specify the alternative function to be configured for the
95 specified pins. Valid values are:
103 Definition: The specified pins should be configured as no pull.
108 Definition: The specified pins should be configured as pull up.
109 Valid values are 600, 10000 and 30000 in bidirectional mode
110 only, i.e. when operating in qcom,analog-mode and input and
111 outputs are enabled. The hardware ignores the configuration
112 when operating in other modes.
114 - bias-high-impedance:
117 Definition: The specified pins will put in high-Z mode and disabled.
122 Definition: The specified pins are put in input mode, i.e. their input
128 Definition: The specified pins are configured in output mode, driven
134 Definition: The specified pins are configured in output mode, driven
140 Definition: Selects the power source for the specified pins. Valid power
141 sources are defined in <dt-bindings/pinctrl/qcom,pmic-mpp.h>
146 Definition: Selects the source for analog output. Valued values are
147 defined in <dt-binding/pinctrl/qcom,pmic-mpp.h>
153 Definition: Selects which dtest rail to be routed in the various functions.
159 Definition: Selects the source for analog input. Valid values are
160 defined in <dt-bindings/pinctrl/qcom,pmic-mpp.h>
161 PMIC_MPP_AMUX_ROUTE_CH5, PMIC_MPP_AMUX_ROUTE_CH6...
165 Definition: Indicates that the pin should be operating in paired mode.
170 compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
174 interrupts = <4 0xa0 0 0>, <4 0xa1 0 0>, <4 0xa2 0 0>, <4 0xa3 0 0>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&pm8841_default>;
179 pm8841_default: default {
181 pins = "mpp1", "mpp2", "mpp3", "mpp4";
182 function = "digital";
184 power-source = <PM8841_MPP_S3>;