Re: DT on s3c24xx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 18, 2014 at 9:34 AM, Vasily Khoruzhick <anarsoul@xxxxxxxxx> wrote:

> Can I change pin function after gpio was requested? In low-power state
> (i.e. when display is disabled) it's gpio driving some level,
> and in active state it's some LCD controller pin (don't remember which
> one exactly)

Please read the section named "GPIO mode pitfalls" in
Documentation/pinctrl.txt very closely.

Two ways:

- You can use the GPIO and pin control interface to the same
  hardware in parallel. There is no blocking this since there
  is hardware out that that actually allow this. NOT
  RECOMMENDED.

- If the "GPIO mode" mentioned is only about e.g. grounding
  the pins in a low power state and then not really about using
  them as GPIO, extend the pin controller to be able to e.g.
  ground the pins with PIN_CONFIG_OUTPUT or
  PIN_CONFIG_LOW_POWER_MODE if you use
  generic bindings.

If the usecase is low power, the latter approach is recommended.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux