Lines Matching full:gpios
39 unsigned int avail_gpios; /* The number of GPIOs we support */ in qdf2xxx_pinctrl_probe()
40 u8 gpios[MAX_GPIOS]; /* An array of supported GPIOs */ in qdf2xxx_pinctrl_probe() local
43 /* Query the number of GPIOs from ACPI */ in qdf2xxx_pinctrl_probe()
44 ret = device_property_read_u32(&pdev->dev, "num-gpios", &num_gpios); in qdf2xxx_pinctrl_probe()
46 dev_err(&pdev->dev, "missing 'num-gpios' property\n"); in qdf2xxx_pinctrl_probe()
50 dev_err(&pdev->dev, "invalid 'num-gpios' property\n"); in qdf2xxx_pinctrl_probe()
54 /* The number of GPIOs in the approved list */ in qdf2xxx_pinctrl_probe()
55 ret = device_property_count_u8(&pdev->dev, "gpios"); in qdf2xxx_pinctrl_probe()
57 dev_err(&pdev->dev, "missing 'gpios' property\n"); in qdf2xxx_pinctrl_probe()
61 * The number of available GPIOs should be non-zero, and no in qdf2xxx_pinctrl_probe()
62 * more than the total number of GPIOS. in qdf2xxx_pinctrl_probe()
65 dev_err(&pdev->dev, "invalid 'gpios' property\n"); in qdf2xxx_pinctrl_probe()
70 ret = device_property_read_u8_array(&pdev->dev, "gpios", gpios, in qdf2xxx_pinctrl_probe()
73 dev_err(&pdev->dev, "could not read list of GPIOs\n"); in qdf2xxx_pinctrl_probe()
88 * Initialize the array. GPIOs not listed in the 'gpios' array in qdf2xxx_pinctrl_probe()
96 /* Populate the entries that are meant to be exposed as GPIOs. */ in qdf2xxx_pinctrl_probe()
98 unsigned int gpio = gpios[i]; in qdf2xxx_pinctrl_probe()