title: Named GPIOs in DeviceTree
body: <p>I am trying to create a device tree for an embedded system, and would like to expose a few GPIOs to userspace.  These are not and should not be used by kernel drivers.  For instance, there is a USB device soldered to the board that is controlled by a user-space driver.  It has a GPIO reset line, which the userspace library needs to access.</p>
  
  <p>I would like these to be exposed by name in sysfs somewhere so that userspace can access <code>/sys/class/gpio/usbreset</code> instead of needing to know the magic gpio number and needing to specifically "export" it.  I have tried setting it up as a GPIO hog, which initializes the GPIO, but its name does not appear in sysfs, and the gpio cannot be exported when it is hogged.  I know that I can pick another kernel driver type such as LED, but it is not an LED, and this does not seem very clean to me.</p>
  
  <p>What is the right way to export a named GPIO in sysfs?</p>