Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp419886rwe; Thu, 25 Aug 2022 02:53:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WSonuJPbxK1rjjqaaMWyXOr6BgngXAYtgQPTNT8ylHjRRJ9uIemgM8GwZcF0R52Mw0Yig X-Received: by 2002:a17:902:be02:b0:172:d409:e057 with SMTP id r2-20020a170902be0200b00172d409e057mr3199551pls.90.1661421193070; Thu, 25 Aug 2022 02:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661421193; cv=none; d=google.com; s=arc-20160816; b=zwQMrX2COM34VqT1p3OJ61uwT+BSs4ArGtcd6cCpWo3pfxTxja6rguL0riVypq+OIt QuJrGDSfccYnBQm7JjuK5MRmAqzXXJeoAJrL5PQuqyDYN2x7YnhV62W44kSqRbvtvn+h zSfxzsyZtBdgtvAlndi5GjLC4sOA44NoHJRGQaRgTqZWxZ6G6GkagKJ+vZGZVKw5qlXJ L49FXQmoub6j13XfpqCgQKeWnOMDtyIy38TnKwPJU4J4ijYvn0qEviRUZpuEpBnnI5hE zy4zM6153zwXLm02j7xs3p0cNkNv6/Uomd7BYx6E5jrFFGpXyalm6nc8AzmA+mEio1Vo PXaQ== 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=QlG0G/sw9WynZ9K8dWI3Omxyuqz2MEXQ4GSMO4VJzGc=; b=MhY7xv5SA/+c5xlGTCRBVBW+kZEPsJxJo/temoBWpO89vt2DY2uyfotUV/qwTJHYYz I1PbWcgOQygNctOazS7j9uOu3bJSlHq87PAQv/0VJkRIvDAD2TpDJgl2GrpwGdA9R8T9 hU9N6hRIHGz+FlEAShxU0c4yVayNbR8mofgI6KF72/EfusBPBdu3LpqwYvWmMEVAyHjU H9yaMSEBpcyARnsLsiCIXpNCRldij0PRRAXflQO17aHxlBJ8SKVandczxkx37TEJ8sod vHq/pexipmkSAHIJ0Ouav12+WVBCogjpf4qB3woD+nazJC9otPd0s9nvAlHkpR2UyATd jjAg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a170902da9000b00172d9f6e248si15821089plx.29.2022.08.25.02.53.01; Thu, 25 Aug 2022 02:53:13 -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 S240640AbiHYJlm (ORCPT + 99 others); Thu, 25 Aug 2022 05:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239041AbiHYJli (ORCPT ); Thu, 25 Aug 2022 05:41:38 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2CAC9E8B5 for ; Thu, 25 Aug 2022 02:41:37 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR9Mm-0006Vo-2F; Thu, 25 Aug 2022 11:41:36 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oR9Mk-001rxc-It; Thu, 25 Aug 2022 11:41:34 +0200 Received: from sha by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oR9Mj-006IWR-Q5; Thu, 25 Aug 2022 11:41:33 +0200 From: Sascha Hauer To: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , kernel@pengutronix.de, Sascha Hauer Subject: [PATCH 0/2] gpio: Add gpio-latch driver Date: Thu, 25 Aug 2022 11:41:30 +0200 Message-Id: <20220825094132.1268174-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org This adds a gpio-driver which multiplexes existing GPIOs using latches. Uwe asked [1] if that would be accectable as a new gpio driver, and here is the result. For a better description what this is all about have a look at the drawings in the patches. The driver is pretty much straight forward. The only thing I wasn't sure about is in which category in Kconfig the driver should be sorted in. I decided for "Virtual GPIO drivers" which is not an exact match, but the best I could find in the existing categories. Sascha [1] https://lore.kernel.org/all/CACRpkdaBO=JzokGUF6uXZc7ASVD7LjqBxTLGwX-FShM=A9gw9A@mail.gmail.com/t/ Sascha Hauer (2): gpio: Add gpio latch driver dt-bindings: gpio: Add gpio-latch binding document .../devicetree/bindings/gpio/gpio-latch.yaml | 83 ++++++++ drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-latch.c | 188 ++++++++++++++++++ 4 files changed, 278 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-latch.yaml create mode 100644 drivers/gpio/gpio-latch.c -- 2.30.2