Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4035cc15 authored by Mika Westerberg's avatar Mika Westerberg Committed by Linus Walleij
Browse files

ACPI / gpio: Add support for naming GPIOs



Now that we have the new helper function that sets nice names for GPIO
lines based on "gpio-line-names" device property, we can take advantage of
this in acpi_gpiochip_add().

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9427ecbe
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -98,6 +98,18 @@ Example:
      }
  })

- gpio-line-names

Example:

  Package () {
      "gpio-line-names",
      Package () {
          "SPI0_CS_N", "EXP2_INT", "MUX6_IO", "UART0_RXD", "MUX7_IO",
          "LVL_C_A1", "MUX0_IO", "SPI1_MISO"
      }
  }

See Documentation/devicetree/bindings/gpio/gpio.txt for more information
about these properties.

+3 −0
Original line number Diff line number Diff line
@@ -957,6 +957,9 @@ void acpi_gpiochip_add(struct gpio_chip *chip)
		return;
	}

	if (!chip->names)
		devprop_gpiochip_set_names(chip);

	acpi_gpiochip_request_regions(acpi_gpio);
	acpi_gpiochip_scan_gpios(acpi_gpio);
	acpi_walk_dep_device_list(handle);