Commit Graph

4 Commits

Author SHA1 Message Date
Al Stone 6eb39a3588 gpio: Setup parent device and get rid of unnecessary of_node assignment
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  This set updates GPIO
 support.  It has been tested via simple boot tests and by using the
 kernel GPIO tools to verify pins are being identified and can be used.

commit 45a541a610af8156ee623b5906515796405ae9f5
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date:   Mon Dec 6 15:18:51 2021 +0200

    gpio: Setup parent device and get rid of unnecessary of_node assignment

    Some of the drivers do not set parent device. This may lead to obstacles
    during debugging or understanding the device relations from the Linux
    point of view. Assign parent device for GPIO chips created by these
    drivers.

    While at it, let GPIO library to assign of_node from the parent device.

    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    (cherry picked from commit 45a541a610af8156ee623b5906515796405ae9f5)

Signed-off-by: Al Stone <ahs3@redhat.com>
2022-08-24 13:31:00 -06:00
Sachin agarwal 0d311d8b93 gpio: aspeed-sgpio: fixed typos
This fixes some various typos.

Signed-off-by: Sachin Agarwal <asachin591@gmail.com>
Link: https://lore.kernel.org/r/20200118105319.68637-1-sachinagarwal@sachins-MacBook-2.local
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-01-23 16:16:05 +01:00
YueHaibing aba30f6f31 gpio: creg-snps: use devm_platform_ioremap_resource() to simplify code
Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190906131032.22148-1-yuehaibing@huawei.com
Acked-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-09-11 14:50:02 +01:00
Eugeniy Paltsev 2505c7b012 GPIO: add single-register GPIO via CREG driver
Add single-register MMIO GPIO driver for complex cases where
only several fields in register belong to GPIO lines and each GPIO
line owns a field with different length and on/off value.

Such CREG GPIOs are used in Synopsys AXS10x and HSDK boards.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-10-10 09:21:06 +02:00