Message ID | 20230313170950.256964-1-francesco@dolcini.it |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1308920wrd; Mon, 13 Mar 2023 10:21:16 -0700 (PDT) X-Google-Smtp-Source: AK7set+LZOhfSQy4xoG8O4jum/TFd8ArCaAnkP3b3oIAepfy9Lpm9fYiw7oz4LBMedb3OlrM2Yon X-Received: by 2002:a05:6a20:b299:b0:d4:e980:11cc with SMTP id ei25-20020a056a20b29900b000d4e98011ccmr1028619pzb.14.1678728075926; Mon, 13 Mar 2023 10:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678728075; cv=none; d=google.com; s=arc-20160816; b=uTLAXVKsV1NwGOscEb5gAOOWfetYR9G7x4P+RlvZEv8gvVxFGJ8E+OH4vTX6ynUoXx v86jf8BQU30sw/o0adSeNRFgaQMJXTyToCTrTwpSgYpltSu1kfqJB9hNaort8/fHQ8K+ b4+O8o/pkexHdIkX3SZ/rIfNj9/ZwiY/tqz0yHuNmPKi4l083UIXqnhowwIFWOxTR+QL elV5+RQxalPc2iLR/XTvgEmLJ/rWWZZUUuSjU0ZTzEjzdDCdsi4J5w7ByLduFrlaWh6n EBKr9UIrT0oVjsdQ+isAbpdov7jDhnWANSfQzvlwNjxzzwtduedjBv4z1zdzkj1Uw5rD FjxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=T6btA2hz7hFPWhb0lFeD0u0eYn+2jfsbbGXJqYc+Ptw=; b=vJuH2G6WN2m4enzqJ9PB2KoTc9jfY6ltD9W0/R93de8Theoy3hyKcPh9mdpMS/XfHa d1n8XuGe9+TaBc+p0v3RGvN+8R/1JB8BF7Wtnp8zRJq1f0xZJub1ovyIjklppPp6WA6g rdiIHgYZEG4tLvqkMqT8kQ9hR1YZSu/xhuV78JM5SbkCI0gKen5m2jtc5yoBqIbHr8ZD l8oOiujoRHE5Q4PiBc6llM7SqRthfWHL9L2Z0COx0cJ5AN6SZJ94fvWn4HOEiuMBcW2u Ex0NEiY9tkPBkpxsXQQ7UPvUDnCMtnm/dWL7x3umkBi8PIgUbtfuKjh9AytPFlFKuhXt fgfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a625204000000b00602eaac6646si20940pfb.26.2023.03.13.10.21.03; Mon, 13 Mar 2023 10:21:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjCMRL2 (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 13:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjCMRLX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 13:11:23 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ACE77DD0F; Mon, 13 Mar 2023 10:10:48 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 1674A20765; Mon, 13 Mar 2023 18:09:54 +0100 (CET) From: Francesco Dolcini <francesco@dolcini.it> To: linux-gpio@vger.kernel.org Cc: Francesco Dolcini <francesco.dolcini@toradex.com>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] gpio: fxl6408: add I2C GPIO expander driver Date: Mon, 13 Mar 2023 18:09:48 +0100 Message-Id: <20230313170950.256964-1-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760273760095310938?= X-GMAIL-MSGID: =?utf-8?q?1760273971221178383?= |
Series |
gpio: fxl6408: add I2C GPIO expander driver
|
|
Message
Francesco Dolcini
March 13, 2023, 5:09 p.m. UTC
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Add support for Fairchild (now ON Semiconductor) fxl6408 8-bit I2C-controlled
GPIO expander, see data-sheet [0].
[0] https://www.onsemi.com/download/data-sheet/pdf/fxl6408-d.pdf
v3:
* dt schema
* add Reviewed-by: Krzysztof Kozlowski krzysztof.kozlowski@linaro.org
* driver
* add include files: kernel.h and err.h
* refactor of fxl6408_identify and used dev_err_probe instead of dev_err
v2:
* improved commit messages and titles
* dt schema:
* remove "driver" word from yaml
* simplify gpio-hog property definition
* rename fcs,fxl6408-gpio.yaml to fcs,fxl6408.yaml
* add missing SoB
* driver:
* remove includes: <linux/gpio.h> and <linux/of_platform.h>
* add missing and required select REGMAP_I2C in KConfig
* use dev_err_probe()
* add "Datasheet:" tag in commit message
* improve KConfig help section
* fix newlines, multi-line comments and trailing commas
Emanuele Ghidoli (2):
dt-bindings: gpio: add fcs,fxl6408
gpio: fxl6408: add I2C GPIO expander driver
.../devicetree/bindings/gpio/fcs,fxl6408.yaml | 58 +++++++
drivers/gpio/Kconfig | 10 ++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-fxl6408.c | 158 ++++++++++++++++++
4 files changed, 227 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml
create mode 100644 drivers/gpio/gpio-fxl6408.c