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
31 - const: qcom,spmi-mpp
40 - const: qcom,ssbi-mpp
45 interrupt-controller: true
59 The first cell will be used to define gpio number and the
60 second denotes the flags for this gpio
62 additionalProperties: false
70 - interrupt-controller
75 - $ref: "#/$defs/qcom-pmic-mpp-state"
78 $ref: "#/$defs/qcom-pmic-mpp-state"
79 additionalProperties: false
85 - $ref: pinmux-node.yaml
86 - $ref: pincfg-node.yaml
90 List of gpio pins affected by the properties specified in
91 this subnode. Valid pins are
92 - mpp1-mpp4 for pm8841
93 - mpp1-mpp4 for pm8916
94 - mpp1-mpp8 for pm8941
95 - mpp1-mpp4 for pm8950
96 - mpp1-mpp4 for pmi8950
97 - mpp1-mpp4 for pma8084
100 pattern: "^mpp([0-9]+)$"
111 bias-high-impedance: true
118 $ref: /schemas/types.yaml#/definitions/uint32
120 Selects the source for analog output. Valued values are defined in
121 <dt-binding/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AOUT_LVL_*
122 enum: [0, 1, 2, 3, 4, 5, 6, 7]
125 $ref: /schemas/types.yaml#/definitions/uint32
127 Selects ATEST rail to route to GPIO when it's
128 configured in analog-pass-through mode.
132 $ref: /schemas/types.yaml#/definitions/uint32
134 Selects DTEST rail to route to GPIO when it's
135 configured as digital input.
139 $ref: /schemas/types.yaml#/definitions/uint32
141 Selects the source for analog input. Valid values are defined in
142 <dt-bindings/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AMUX_ROUTE_CH5,
143 PMIC_MPP_AMUX_ROUTE_CH6...
144 enum: [0, 1, 2, 3, 4, 5, 6, 7]
149 Indicates that the pin should be operating in paired mode.
155 additionalProperties: false
159 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
162 #address-cells = <1>;
165 pm8841_mpp: mpps@a000 {
166 compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
171 gpio-ranges = <&pm8841_mpp 0 0 4>;
172 gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL",
173 "BT_LED_CTRL", "GPIO-F";
174 interrupt-controller;
175 #interrupt-cells = <2>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pm8841_default>;
182 function = "digital";
184 power-source = <PM8841_MPP_S3>;
189 pins = "mpp1", "mpp2", "mpp3", "mpp4";
190 function = "digital";
192 power-source = <PM8841_MPP_S3>;