|
| 1 | +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/regulator/qcom,qca6390-pmu.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: Qualcomm Technologies, Inc. QCA6390 PMU Regulators |
| 8 | + |
| 9 | +maintainers: |
| 10 | + - Bartosz Golaszewski <bartosz.golaszewski@linaro.org> |
| 11 | + |
| 12 | +description: |
| 13 | + The QCA6390 package contains discrete modules for WLAN and Bluetooth. They |
| 14 | + are powered by the Power Management Unit (PMU) that takes inputs from the |
| 15 | + host and provides LDO outputs. This document describes this module. |
| 16 | + |
| 17 | +properties: |
| 18 | + compatible: |
| 19 | + const: qcom,qca6390-pmu |
| 20 | + |
| 21 | + vddaon-supply: |
| 22 | + description: VDD_AON supply regulator handle |
| 23 | + |
| 24 | + vddpmu-supply: |
| 25 | + description: VDD_PMU supply regulator handle |
| 26 | + |
| 27 | + vddrfa0p95-supply: |
| 28 | + description: VDD_RFA_0P95 supply regulator handle |
| 29 | + |
| 30 | + vddrfa1p3-supply: |
| 31 | + description: VDD_RFA_1P3 supply regulator handle |
| 32 | + |
| 33 | + vddrfa1p9-supply: |
| 34 | + description: VDD_RFA_1P9 supply regulator handle |
| 35 | + |
| 36 | + vddpcie1p3-supply: |
| 37 | + description: VDD_PCIE_1P3 supply regulator handle |
| 38 | + |
| 39 | + vddpcie1p9-supply: |
| 40 | + description: VDD_PCIE_1P9 supply regulator handle |
| 41 | + |
| 42 | + vddio-supply: |
| 43 | + description: VDD_IO supply regulator handle |
| 44 | + |
| 45 | + wlan-enable-gpios: |
| 46 | + maxItems: 1 |
| 47 | + description: GPIO line enabling the ATH11K WLAN module supplied by the PMU |
| 48 | + |
| 49 | + bt-enable-gpios: |
| 50 | + maxItems: 1 |
| 51 | + description: GPIO line enabling the ATH11K Bluetooth module supplied by the PMU |
| 52 | + |
| 53 | + regulators: |
| 54 | + type: object |
| 55 | + description: |
| 56 | + LDO outputs of the PMU |
| 57 | + |
| 58 | + patternProperties: |
| 59 | + "^ldo[0-9]$": |
| 60 | + $ref: regulator.yaml# |
| 61 | + type: object |
| 62 | + unevaluatedProperties: false |
| 63 | + |
| 64 | + additionalProperties: false |
| 65 | + |
| 66 | +required: |
| 67 | + - compatible |
| 68 | + - regulators |
| 69 | + |
| 70 | +allOf: |
| 71 | + - if: |
| 72 | + properties: |
| 73 | + compatible: |
| 74 | + contains: |
| 75 | + const: qcom,qca6390-pmu |
| 76 | + then: |
| 77 | + required: |
| 78 | + - vddaon-supply |
| 79 | + - vddpmu-supply |
| 80 | + - vddrfa0p95-supply |
| 81 | + - vddrfa1p3-supply |
| 82 | + - vddrfa1p9-supply |
| 83 | + - vddpcie1p3-supply |
| 84 | + - vddpcie1p9-supply |
| 85 | + - vddio-supply |
| 86 | + |
| 87 | +additionalProperties: false |
| 88 | + |
| 89 | +examples: |
| 90 | + - | |
| 91 | + #include <dt-bindings/gpio/gpio.h> |
| 92 | + pmu { |
| 93 | + compatible = "qcom,qca6390-pmu"; |
| 94 | +
|
| 95 | + pinctrl-names = "default"; |
| 96 | + pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; |
| 97 | +
|
| 98 | + vddaon-supply = <&vreg_s6a_0p95>; |
| 99 | + vddpmu-supply = <&vreg_s2f_0p95>; |
| 100 | + vddrfa0p95-supply = <&vreg_s2f_0p95>; |
| 101 | + vddrfa1p3-supply = <&vreg_s8c_1p3>; |
| 102 | + vddrfa1p9-supply = <&vreg_s5a_1p9>; |
| 103 | + vddpcie1p3-supply = <&vreg_s8c_1p3>; |
| 104 | + vddpcie1p9-supply = <&vreg_s5a_1p9>; |
| 105 | + vddio-supply = <&vreg_s4a_1p8>; |
| 106 | +
|
| 107 | + wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; |
| 108 | + bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; |
| 109 | +
|
| 110 | + regulators { |
| 111 | + vreg_pmu_rfa_cmn: ldo0 { |
| 112 | + regulator-name = "vreg_pmu_rfa_cmn"; |
| 113 | + }; |
| 114 | +
|
| 115 | + vreg_pmu_aon_0p59: ldo1 { |
| 116 | + regulator-name = "vreg_pmu_aon_0p59"; |
| 117 | + }; |
| 118 | +
|
| 119 | + vreg_pmu_wlcx_0p8: ldo2 { |
| 120 | + regulator-name = "vreg_pmu_wlcx_0p8"; |
| 121 | + }; |
| 122 | +
|
| 123 | + vreg_pmu_wlmx_0p85: ldo3 { |
| 124 | + regulator-name = "vreg_pmu_wlmx_0p85"; |
| 125 | + }; |
| 126 | +
|
| 127 | + vreg_pmu_btcmx_0p85: ldo4 { |
| 128 | + regulator-name = "vreg_pmu_btcmx_0p85"; |
| 129 | + }; |
| 130 | +
|
| 131 | + vreg_pmu_rfa_0p8: ldo5 { |
| 132 | + regulator-name = "vreg_pmu_rfa_0p8"; |
| 133 | + }; |
| 134 | +
|
| 135 | + vreg_pmu_rfa_1p2: ldo6 { |
| 136 | + regulator-name = "vreg_pmu_rfa_1p2"; |
| 137 | + }; |
| 138 | +
|
| 139 | + vreg_pmu_rfa_1p7: ldo7 { |
| 140 | + regulator-name = "vreg_pmu_rfa_1p7"; |
| 141 | + }; |
| 142 | +
|
| 143 | + vreg_pmu_pcie_0p9: ldo8 { |
| 144 | + regulator-name = "vreg_pmu_pcie_0p9"; |
| 145 | + }; |
| 146 | +
|
| 147 | + vreg_pmu_pcie_1p8: ldo9 { |
| 148 | + regulator-name = "vreg_pmu_pcie_1p8"; |
| 149 | + }; |
| 150 | + }; |
| 151 | + }; |
0 commit comments