Lines Matching defs:gpios

50  *   Number of gpios defined in property,
51 * -EINVAL for an incorrectly formed gpios property, or
52 * -ENOENT for a missing gpios property
55 * gpios = <0
76 * established "cs-gpios" for chip selects but instead rely on
77 * "gpios" for the chip select lines. If we detect this, we redirect
78 * the counting of "cs-gpios" to count "gpios" transparent to the
93 return of_gpio_named_count(np, "gpios");
186 } gpios[] = {
190 * "gpios-reset" property and also specified wrong
193 { "himax,hx8357", "gpios-reset", false },
194 { "himax,hx8369", "gpios-reset", false },
199 for (i = 0; i < ARRAY_SIZE(gpios); i++) {
200 if (of_device_is_compatible(np, gpios[i].compatible) &&
201 !strcmp(propname, gpios[i].propname)) {
202 of_gpio_quirk_polarity(np, gpios[i].active_high, flags);
218 } gpios[] = {
221 { "fsl,imx25-fec", "phy-reset-gpios", "phy-reset-active-high" },
222 { "fsl,imx27-fec", "phy-reset-gpios", "phy-reset-active-high" },
223 { "fsl,imx28-fec", "phy-reset-gpios", "phy-reset-active-high" },
224 { "fsl,imx6q-fec", "phy-reset-gpios", "phy-reset-active-high" },
225 { "fsl,mvf600-fec", "phy-reset-gpios", "phy-reset-active-high" },
226 { "fsl,imx6sx-fec", "phy-reset-gpios", "phy-reset-active-high" },
227 { "fsl,imx6ul-fec", "phy-reset-gpios", "phy-reset-active-high" },
228 { "fsl,imx8mq-fec", "phy-reset-gpios", "phy-reset-active-high" },
229 { "fsl,imx8qm-fec", "phy-reset-gpios", "phy-reset-active-high" },
230 { "fsl,s32v234-fec", "phy-reset-gpios", "phy-reset-active-high" },
249 { "regulator-fixed", "gpios", "enable-active-high" },
251 { "reg-fixed-voltage", "gpios", "enable-active-high" },
256 { "regulator-gpio", "enable-gpios", "enable-active-high" },
259 { "atmel,hsmci", "cd-gpios", "cd-inverted" },
276 for (i = 0; i < ARRAY_SIZE(gpios); i++) {
277 if (of_device_is_compatible(np_compat, gpios[i].compatible) &&
278 !strcmp(propname, gpios[i].gpio_propname)) {
280 gpios[i].polarity_propname);
308 * property named "cs-gpios" we need to inspect the child node
311 if (IS_ENABLED(CONFIG_SPI_MASTER) && !strcmp(propname, "cs-gpios") &&
312 of_property_read_bool(np, "cs-gpios")) {
470 } gpios[] = {
472 /* Himax LCD controllers used "gpios-reset" */
473 { "reset", "gpios-reset", "himax,hx8357" },
474 { "reset", "gpios-reset", "himax,hx8369" },
496 { "reset", "gpios-reset", "lantiq,pci-xway" },
502 * "foo-gpios" so we have this special kludge for them.
530 * "foo-gpios" so we have this special kludge for them.
538 * The old Freescale bindings use simply "gpios" as name
539 * for the chip select lines rather than "cs-gpios" like
544 { "cs", "gpios", "fsl,spi" },
545 { "cs", "gpios", "aeroflexgaisler,spictrl" },
548 { "cs", "gpios", "ibm,ppc4xx-spi" },
554 * property without the compulsory "-gpios" suffix.
566 for (i = 0; i < ARRAY_SIZE(gpios); i++) {
567 if (strcmp(con_id, gpios[i].con_id))
570 if (gpios[i].compatible &&
571 !of_device_is_compatible(np, gpios[i].compatible))
574 legacy_id = gpios[i].legacy_id ?: gpios[i].con_id;
577 pr_info("%s uses legacy gpio name '%s' instead of '%s-gpios'\n",
612 pr_info("%s is using legacy gpio name '%s' instead of '%s-gpios'\n",
637 /* Try GPIO property "foo-gpios" and "foo-gpio" */
707 ret = of_property_read_u32_index(np, "gpios", idx * tmp + i,