Lines Matching +full:qca6390 +full:- +full:pmu
1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/pci-pwrctl.h>
24 * Called before doing anything else to perform device-specific
37 * These nodes don't consume the regulator outputs from the PMU, and in pci_pwrctl_pwrseq_qcm_wcn_validate_device()
44 if (!device_property_present(dev, "vddaon-supply")) in pci_pwrctl_pwrseq_qcm_wcn_validate_device()
45 return -ENODEV; in pci_pwrctl_pwrseq_qcm_wcn_validate_device()
66 struct device *dev = &pdev->dev; in pci_pwrctl_pwrseq_probe()
70 if (!pdata || !pdata->target) in pci_pwrctl_pwrseq_probe()
71 return -EINVAL; in pci_pwrctl_pwrseq_probe()
73 if (pdata->validate_device) { in pci_pwrctl_pwrseq_probe()
74 ret = pdata->validate_device(dev); in pci_pwrctl_pwrseq_probe()
81 return -ENOMEM; in pci_pwrctl_pwrseq_probe()
83 data->pwrseq = devm_pwrseq_get(dev, pdata->target); in pci_pwrctl_pwrseq_probe()
84 if (IS_ERR(data->pwrseq)) in pci_pwrctl_pwrseq_probe()
85 return dev_err_probe(dev, PTR_ERR(data->pwrseq), in pci_pwrctl_pwrseq_probe()
88 ret = pwrseq_power_on(data->pwrseq); in pci_pwrctl_pwrseq_probe()
91 "Failed to power-on the device\n"); in pci_pwrctl_pwrseq_probe()
94 data->pwrseq); in pci_pwrctl_pwrseq_probe()
98 pci_pwrctl_init(&data->ctx, dev); in pci_pwrctl_pwrseq_probe()
100 ret = devm_pci_pwrctl_device_set_ready(dev, &data->ctx); in pci_pwrctl_pwrseq_probe()
110 /* ATH11K in QCA6390 package. */
130 .name = "pci-pwrctl-pwrseq",