Stephen Boyd 726cb3ba49 gpiolib: Support 'gpio-reserved-ranges' property
Some qcom platforms make some GPIOs or pins unavailable for use by
non-secure operating systems, and thus reading or writing the registers
for those pins will cause access control issues. Add support for a DT
property to describe the set of GPIOs that are available for use so that
higher level OSes are able to know what pins to avoid reading/writing.
Non-DT platforms can add support by directly updating the
chip->valid_mask.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-03-27 15:34:20 +02:00
..
2016-03-30 10:38:51 +02:00
2017-10-25 11:25:10 +02:00
2016-02-16 00:19:53 +01:00
2016-12-30 09:18:10 +01:00
2017-10-07 00:01:08 +02:00
2017-12-22 15:24:31 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2018-01-09 14:51:00 +01:00
2017-08-23 09:21:54 +02:00