From patchwork Mon Mar 13 11:33:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 663175 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 698D6C74A4B for ; Mon, 13 Mar 2023 11:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbjCMLe3 (ORCPT ); Mon, 13 Mar 2023 07:34:29 -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 ); 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 To: linux-gpio@vger.kernel.org Cc: Francesco Dolcini , Linus Walleij , Bartosz Golaszewski , 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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Francesco Dolcini 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: and * 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