From: Harish Jenny K N <harish_kandiga@mentor.com> To: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <bgolaszewski@baylibre.com> Cc: <linux-gpio@vger.kernel.org>, Harish Jenny K N <harish_kandiga@mentor.com>, Balasubramani Vivekanandan <balasubramani_vivekanandan@mentor.com> Subject: [PATCH V4 0/2] Add Inverter controller for gpio configuration Date: Fri, 28 Jun 2019 10:50:34 +0530 Message-ID: <1561699236-18620-1-git-send-email-harish_kandiga@mentor.com> (raw) The purpose of this patchset is to provide a new inverter gpio controller to configure the polarity of the gpio pins. This driver enables the consumers to directly use the gpio pin without worrying about the hardware level polarity configuration. Polarity configuration will be done by the inverter gpio controller based on device tree information. This is created after the discussion in the thread "gpio: set active-state of GPIO lines using device tree" https://www.spinics.net/lists/linux-gpio/msg38829.html to model inverters in the device tree to describe the hardware. Thanks, Harish. --- Changes in V4: - Addressed further review findings from Linus Walleij. Changes in V3: - Addressed review findings from Linus Walleij to not use GPIO_ACTIVE_LOW. Changes in V2: - Addressed review findings from Linus Walleij, Phil Reid, Geert Uytterhoeven and Enrico Weigelt - Implement can_sleep changes - Changes not included Wrap some functions like .set_multiple/.get_multiple/.set_config. Reason: Not completely certain of the necessity in this driver especially given gpio_chip_set_multiple and gpio_chip_get_multiple functions in gpiolib handles when the callbacks are not set. Also not sure of using gpiochip_generic_config as a callback function or with some other implementation. Please let me know if they need to be implemented. Harish Jenny K N (2): gpio: inverter: Add Inverter controller for gpio configuration gpio: inverter: document the inverter bindings .../devicetree/bindings/gpio/gpio-inverter.txt | 29 +++++ drivers/gpio/Kconfig | 9 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-inverter.c | 128 +++++++++++++++++++++ 4 files changed, 167 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-inverter.txt create mode 100644 drivers/gpio/gpio-inverter.c -- 2.7.4
next reply index Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-28 5:20 Harish Jenny K N [this message] 2019-06-28 5:20 ` [PATCH V4 1/2] gpio: inverter: " Harish Jenny K N 2019-06-28 8:55 ` Linus Walleij 2019-06-28 9:15 ` Harish Jenny K N 2019-06-28 9:22 ` Linus Walleij 2019-06-28 5:20 ` [PATCH V4 2/2] gpio: inverter: document the inverter bindings Harish Jenny K N
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1561699236-18620-1-git-send-email-harish_kandiga@mentor.com \ --to=harish_kandiga@mentor.com \ --cc=balasubramani_vivekanandan@mentor.com \ --cc=bgolaszewski@baylibre.com \ --cc=linus.walleij@linaro.org \ --cc=linux-gpio@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux-GPIO Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-gpio/0 linux-gpio/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-gpio linux-gpio/ https://lore.kernel.org/linux-gpio \ linux-gpio@vger.kernel.org public-inbox-index linux-gpio Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-gpio AGPL code for this site: git clone https://public-inbox.org/public-inbox.git