1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pinctrl/qcom,pmic-mpp.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm PMIC Multi-Purpose Pin (MPP) block
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
13 This binding describes the MPP block(s) found in the 8xxx series of
44 interrupt-controller: true
58 The first cell will be used to define gpio number and the
59 second denotes the flags for this gpio
61 additionalProperties: false
69 - interrupt-controller
74 - $ref: "#/$defs/qcom-pmic-mpp-state"
77 $ref: "#/$defs/qcom-pmic-mpp-state"
78 additionalProperties: false
84 - $ref: "pinmux-node.yaml"
85 - $ref: "pincfg-node.yaml"
89 List of gpio pins affected by the properties specified in
90 this subnode. Valid pins are
91 - mpp1-mpp4 for pm8841
92 - mpp1-mpp4 for pm8916
93 - mpp1-mpp8 for pm8941
94 - mpp1-mpp4 for pm8950
95 - mpp1-mpp4 for pmi8950
96 - mpp1-mpp4 for pma8084
99 pattern: "^mpp([0-9]+)$"
110 bias-high-impedance: true
117 $ref: /schemas/types.yaml#/definitions/uint32
119 Selects the source for analog output. Valued values are defined in
120 <dt-binding/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AOUT_LVL_*
121 enum: [0, 1, 2, 3, 4, 5, 6, 7]
124 $ref: /schemas/types.yaml#/definitions/uint32
126 Selects ATEST rail to route to GPIO when it's
127 configured in analog-pass-through mode.
131 $ref: /schemas/types.yaml#/definitions/uint32
133 Selects DTEST rail to route to GPIO when it's
134 configured as digital input.
138 $ref: /schemas/types.yaml#/definitions/uint32
140 Selects the source for analog input. Valid values are defined in
141 <dt-bindings/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AMUX_ROUTE_CH5,
142 PMIC_MPP_AMUX_ROUTE_CH6...
143 enum: [0, 1, 2, 3, 4, 5, 6, 7]
147 Indicates that the pin should be operating in paired mode.
153 additionalProperties: false
157 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
159 pm8841_mpp: mpps@a000 {
160 compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
164 gpio-ranges = <&pm8841_mpp 0 0 4>;
165 gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL",
166 "BT_LED_CTRL", "GPIO-F";
167 interrupt-controller;
168 #interrupt-cells = <2>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pm8841_default>;
175 function = "digital";
177 power-source = <PM8841_MPP_S3>;
182 pins = "mpp1", "mpp2", "mpp3", "mpp4";
183 function = "digital";
185 power-source = <PM8841_MPP_S3>;