Message ID | 20230313113308.157930-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 v21csp1136834wrd; Mon, 13 Mar 2023 04:55:42 -0700 (PDT) X-Google-Smtp-Source: AK7set/4YKql4FD3tJdWGB4X8FxvlGPSzb1356mpuZreonRhWWckn73e2MEFKS5JpfnahYRAEKTi X-Received: by 2002:a17:90b:19c6:b0:23b:bd09:7f0b with SMTP id nm6-20020a17090b19c600b0023bbd097f0bmr4220285pjb.30.1678708541990; Mon, 13 Mar 2023 04:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678708541; cv=none; d=google.com; s=arc-20160816; b=gBf/7RVRVDKLsvjFml+vNp+flp+QhlG0U7NCypgHWdv6FZ8Bk8Y4uOFGkq0CWmy+jC trAzyVawo0PLaktUVIBSpjVzBM260Yy5iRLKSu213z04u/0hvFBT+Kgy6/clJQ7RTizV +TbJ0afqjegSuoQbJARbAo5SUIJo8ndMfWmcTb5BM07EjywI9ENn1JE1isvGegokE1ic Xz2HJaqAbS55RNLghRYOJ14zUqpCAwfB9dc5VURp6XTcn/nleKkBFcHtfJ7kZTvFkbtb /mcl9sfUbDWXOhr5l+cSf+6VYVoz5Peb2dVHtpruGa2yO1X59Von5RBgb+9apkW1wXI7 r5Jw== 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=l8DebOBzDrVlp1rLPnNi4m0UVjrpXyS70bVAgY7dsew=; b=LK0HGTtafyHgUjBxxLC7m/dg3GhCUedXXZSK2vcUablMKHcxyCZwT68q41xN5+yOig P93AiML3/Nsz8c9thIRJcAQaRcHwr4uSBk48uh/kAgS8yTxAWJ7+kRTt8EzfEJ4CcE+P lfwjUB8H8mSz30vf2Fqjo/bXG5dQYBHKPIsaQw9ndgS+DZzJA6l/8sUDplQZC4io+tDs RJl1aL+GFXwbOB32kyh1eNxN4gnyvMlcaOobEkEDTjDa2goiZUpkmwmakXsLl6CLVQSj 5NRigTAU4PdtTZxgeIbo0sDDS2jeA8FnBdYOTFyKe0R9rcpUCt6SFiAAXYpLAmI74zv0 fPoQ== 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 z3-20020a170902ccc300b0019cd5aec725si6894169ple.555.2023.03.13.04.55.29; Mon, 13 Mar 2023 04:55:41 -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 S230227AbjCMLeb (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 07:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjCMLe1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 07:34:27 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D78717146; Mon, 13 Mar 2023 04:34:01 -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 70C6D20B16; Mon, 13 Mar 2023 12:33:14 +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 v2 0/2] gpio: fxl6408: add I2C GPIO expander driver Date: Mon, 13 Mar 2023 12:33:06 +0100 Message-Id: <20230313113308.157930-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?1760253360264881076?= X-GMAIL-MSGID: =?utf-8?q?1760253488466596861?= |
Series |
gpio: fxl6408: add I2C GPIO expander driver
|
|
Message
Francesco Dolcini
March 13, 2023, 11:33 a.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
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 | 152 ++++++++++++++++++
4 files changed, 221 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml
create mode 100644 drivers/gpio/gpio-fxl6408.c