brintos

brintos / linux-shallow public Read only

0
0
Text · 4.9 KiB · 11ed04c Raw
206 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/regulator/qcom,qca6390-pmu.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Qualcomm Technologies, Inc. QCA6390 PMU Regulators8 9maintainers:10  - Bartosz Golaszewski <bartosz.golaszewski@linaro.org>11 12description:13  The QCA6390 package contains discrete modules for WLAN and Bluetooth. They14  are powered by the Power Management Unit (PMU) that takes inputs from the15  host and provides LDO outputs. This document describes this module.16 17properties:18  compatible:19    enum:20      - qcom,qca6390-pmu21      - qcom,wcn6855-pmu22      - qcom,wcn7850-pmu23 24  vdd-supply:25    description: VDD supply regulator handle26 27  vddaon-supply:28    description: VDD_AON supply regulator handle29 30  vdddig-supply:31    description: VDD_DIG supply regulator handle32 33  vddpmu-supply:34    description: VDD_PMU supply regulator handle35 36  vddio1p2-supply:37    description: VDD_IO_1P2 supply regulator handle38 39  vddrfa0p95-supply:40    description: VDD_RFA_0P95 supply regulator handle41 42  vddrfa1p2-supply:43    description: VDD_RFA_1P2 supply regulator handle44 45  vddrfa1p3-supply:46    description: VDD_RFA_1P3 supply regulator handle47 48  vddrfa1p8-supply:49    description: VDD_RFA_1P8 supply regulator handle50 51  vddrfa1p9-supply:52    description: VDD_RFA_1P9 supply regulator handle53 54  vddpcie1p3-supply:55    description: VDD_PCIE_1P3 supply regulator handle56 57  vddpcie1p9-supply:58    description: VDD_PCIE_1P9 supply regulator handle59 60  vddio-supply:61    description: VDD_IO supply regulator handle62 63  wlan-enable-gpios:64    maxItems: 165    description: GPIO line enabling the ATH11K WLAN module supplied by the PMU66 67  bt-enable-gpios:68    maxItems: 169    description: GPIO line enabling the Bluetooth module supplied by the PMU70 71  swctrl-gpios:72    maxItems: 173    description: GPIO line indicating the state of the clock supply to the BT module74 75  clocks:76    maxItems: 177    description: Reference clock handle78 79  regulators:80    type: object81    description:82      LDO outputs of the PMU83 84    patternProperties:85      "^ldo[0-9]$":86        $ref: regulator.yaml#87        type: object88        unevaluatedProperties: false89 90    additionalProperties: false91 92required:93  - compatible94  - regulators95 96allOf:97  - if:98      properties:99        compatible:100          contains:101            const: qcom,qca6390-pmu102    then:103      required:104        - vddaon-supply105        - vddpmu-supply106        - vddrfa0p95-supply107        - vddrfa1p3-supply108        - vddrfa1p9-supply109        - vddpcie1p3-supply110        - vddpcie1p9-supply111        - vddio-supply112  - if:113      properties:114        compatible:115          contains:116            const: qcom,wcn6855-pmu117    then:118      required:119        - vddio-supply120        - vddaon-supply121        - vddpmu-supply122        - vddrfa0p95-supply123        - vddrfa1p3-supply124        - vddrfa1p9-supply125        - vddpcie1p3-supply126        - vddpcie1p9-supply127  - if:128      properties:129        compatible:130          contains:131            const: qcom,wcn7850-pmu132    then:133      required:134        - vdd-supply135        - vddio-supply136        - vddaon-supply137        - vdddig-supply138        - vddrfa1p2-supply139        - vddrfa1p8-supply140 141additionalProperties: false142 143examples:144  - |145    #include <dt-bindings/gpio/gpio.h>146    pmu {147        compatible = "qcom,qca6390-pmu";148 149        pinctrl-names = "default";150        pinctrl-0 = <&bt_en_state>, <&wlan_en_state>;151 152        vddaon-supply = <&vreg_s6a_0p95>;153        vddpmu-supply = <&vreg_s2f_0p95>;154        vddrfa0p95-supply = <&vreg_s2f_0p95>;155        vddrfa1p3-supply = <&vreg_s8c_1p3>;156        vddrfa1p9-supply = <&vreg_s5a_1p9>;157        vddpcie1p3-supply = <&vreg_s8c_1p3>;158        vddpcie1p9-supply = <&vreg_s5a_1p9>;159        vddio-supply = <&vreg_s4a_1p8>;160 161        wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;162        bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;163 164        regulators {165            vreg_pmu_rfa_cmn: ldo0 {166                regulator-name = "vreg_pmu_rfa_cmn";167            };168 169            vreg_pmu_aon_0p59: ldo1 {170                regulator-name = "vreg_pmu_aon_0p59";171            };172 173            vreg_pmu_wlcx_0p8: ldo2 {174                regulator-name = "vreg_pmu_wlcx_0p8";175            };176 177            vreg_pmu_wlmx_0p85: ldo3 {178                regulator-name = "vreg_pmu_wlmx_0p85";179            };180 181            vreg_pmu_btcmx_0p85: ldo4 {182                regulator-name = "vreg_pmu_btcmx_0p85";183            };184 185            vreg_pmu_rfa_0p8: ldo5 {186                regulator-name = "vreg_pmu_rfa_0p8";187            };188 189            vreg_pmu_rfa_1p2: ldo6 {190                regulator-name = "vreg_pmu_rfa_1p2";191            };192 193            vreg_pmu_rfa_1p7: ldo7 {194                regulator-name = "vreg_pmu_rfa_1p7";195            };196 197            vreg_pmu_pcie_0p9: ldo8 {198                regulator-name = "vreg_pmu_pcie_0p9";199            };200 201            vreg_pmu_pcie_1p8: ldo9 {202                regulator-name = "vreg_pmu_pcie_1p8";203            };204        };205    };206