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
43 interrupt-controller: true
57 The first cell will be used to define gpio number and the
58 second denotes the flags for this gpio
60 additionalProperties: false
68 - interrupt-controller
73 - $ref: "#/$defs/qcom-pmic-mpp-state"
76 $ref: "#/$defs/qcom-pmic-mpp-state"
77 additionalProperties: false
83 - $ref: "pinmux-node.yaml"
84 - $ref: "pincfg-node.yaml"
88 List of gpio pins affected by the properties specified in
89 this subnode. Valid pins are
90 - mpp1-mpp4 for pm8841
91 - mpp1-mpp4 for pm8916
92 - mpp1-mpp8 for pm8941
93 - mpp1-mpp4 for pm8950
94 - mpp1-mpp4 for pmi8950
95 - mpp1-mpp4 for pma8084
98 pattern: "^mpp([0-9]+)$"
109 bias-high-impedance: true
116 $ref: /schemas/types.yaml#/definitions/uint32
118 Selects the source for analog output. Valued values are defined in
119 <dt-binding/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AOUT_LVL_*
120 enum: [0, 1, 2, 3, 4, 5, 6, 7]
123 $ref: /schemas/types.yaml#/definitions/uint32
125 Selects ATEST rail to route to GPIO when it's
126 configured in analog-pass-through mode.
130 $ref: /schemas/types.yaml#/definitions/uint32
132 Selects DTEST rail to route to GPIO when it's
133 configured as digital input.
137 $ref: /schemas/types.yaml#/definitions/uint32
139 Selects the source for analog input. Valid values are defined in
140 <dt-bindings/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AMUX_ROUTE_CH5,
141 PMIC_MPP_AMUX_ROUTE_CH6...
142 enum: [0, 1, 2, 3, 4, 5, 6, 7]
146 Indicates that the pin should be operating in paired mode.
152 additionalProperties: false
156 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
158 pm8841_mpp: mpps@a000 {
159 compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
163 gpio-ranges = <&pm8841_mpp 0 0 4>;
164 gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL",
165 "BT_LED_CTRL", "GPIO-F";
166 interrupt-controller;
167 #interrupt-cells = <2>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&pm8841_default>;
174 function = "digital";
176 power-source = <PM8841_MPP_S3>;
181 pins = "mpp1", "mpp2", "mpp3", "mpp4";
182 function = "digital";
184 power-source = <PM8841_MPP_S3>;