Message ID | 20230727095432.82591-1-okan.sahin@analog.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1005110vqo; Thu, 27 Jul 2023 03:43:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIPZV/ldhcl0E9bf0rWS7j5F/7p17aQR5mMQwX1Lgw0PiFSbavm2TexR0/bxCzvBARzTYk X-Received: by 2002:a17:90a:2ec7:b0:267:f2b4:8ac4 with SMTP id h7-20020a17090a2ec700b00267f2b48ac4mr4589372pjs.31.1690454629491; Thu, 27 Jul 2023 03:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690454629; cv=none; d=google.com; s=arc-20160816; b=vHHAqhj73Uk9m3v2HZcoozoy7Sb5CfPuEfBcTMD/RFl3otm5LZEqpN4LYpElRDErJn s7TSh5ulbPSCQJBZ9L7JWw27jCFF/V7yRfnx1UcRABe4kPh2l2+31hRgb/50g+R9QykG TzjV7nVEy0OAXp1WnglioUf10PC6jS9R3iBIKtxGIKaD/J28KrSl2tQMcGMRye9CpBIa iTM0ha52PcWskanob1/hZXoGPOjm/by9+H0lXFTJyrnHWW/ausi8aZHe0UGp+qcX31uC jmEZVXyjxnjRorQDYTyRByGWzTmw2r9Khsu0yPJaI2Jwa0o2QK2xfd8fcmqYXLNhehCY r0pQ== 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=UHrZENFNIDgBO32B7B6qEKWEnNdMAFuDoln3gsNxTMc=; fh=P00EuBDF4XpJQsjM4AE1z3Sbx7B6QAr6ahKq5EmHWHA=; b=EQ1MxOfWdWGuXzSUgRnvlHmNOliJ0325+qCFZpes/SH0DRPCsilWwT3liCPzIjLrnB 6q0ESekI+e/5Ih4kECWpKdiHilW1/5UWZu+XGNm5/J5qkIztiLbDJLQBX3gkNHNgKBrS kb+vU5L1vyds1nR22rbmsJoRr0h8kmGhEucXJlLvoKhRPm6Fp69agDKt+CnPzsbsNTYT 2X0Odbs4w4p6C3avxsCr5OLkDQTgBTU/wpGFpyq4jaQo0Y31VHCWV4hn8XxjpOmOSH1h cGiHO6p+dFEpiBK+Jdcm8FMj9N/Dhm0flw1vizQfLfnIqAlNOQ68H7+0lOq1iW7OMtWq tHsw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a17090a9a8f00b002682b173a2fsi2725334pjp.148.2023.07.27.03.43.36; Thu, 27 Jul 2023 03:43:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbjG0JzM (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Thu, 27 Jul 2023 05:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbjG0JzJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Jul 2023 05:55:09 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C6EE9C; Thu, 27 Jul 2023 02:55:08 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36R738MP027025; Thu, 27 Jul 2023 05:55:04 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3s36ahwhff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 05:55:04 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 36R9t3PB029468 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Jul 2023 05:55:03 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 27 Jul 2023 05:55:02 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 27 Jul 2023 05:55:02 -0400 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 36R9snRR029827; Thu, 27 Jul 2023 05:54:52 -0400 From: Okan Sahin <okan.sahin@analog.com> To: <okan.sahin@analog.com> CC: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, <linux-gpio@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v5 0/2] Add DS4520 GPIO Expander Support Date: Thu, 27 Jul 2023 12:54:28 +0300 Message-ID: <20230727095432.82591-1-okan.sahin@analog.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: dPG_XhavAyZtxxUwEiszrbw0x_KGlZB- X-Proofpoint-GUID: dPG_XhavAyZtxxUwEiszrbw0x_KGlZB- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=670 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270088 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772565156647340477 X-GMAIL-MSGID: 1772570153540066824 |
Series |
Add DS4520 GPIO Expander Support
|
|
Message
Sahin, Okan
July 27, 2023, 9:54 a.m. UTC
GPIO expander driver and bindings for DS4520. The patches are required to be applied in sequence. Changes in v5: * Patch 1: "dt-bindings: gpio: ds4520: Add ADI DS4520" * No change * Patch 2: "gpio: ds4520: Add ADI DS4520 GPIO Expander Support" * Remove unnecessary new lines. * Use probe(..) instead of probe_new(..) Changes in v4: * Patch 1: "dt-bindings: gpio: ds4520: Add ADI DS4520" * No change * Patch 2: "gpio: ds4520: Add ADI DS4520 GPIO Expander Support" * Add, remove unnecessary new lines. Changes in v3: * Patch 1: "dt-bindings: gpio: ds4520: Add ADI DS4520" * Add ngpios property. * Patch 2: "gpio: ds4520: Add ADI DS4520 GPIO Expander Support" * Add namespace for MACROS * Read ngpios from dt * Add missing header file Changes in v2: * Patch 1: "dt-bindings: gpio: ds4520: Add ADI DS4520" * Drop label for gpio node * Use consistent quotes * Fix filename matching compatible. * Patch 2: "gpio: ds4520: Add ADI DS4520 GPIO Expander Support" * Use regmap_gpio framework * Fix typo in Kconfig * Fix commit message Okan Sahin (2): dt-bindings: gpio: ds4520: Add ADI DS4520 gpio: ds4520: Add ADI DS4520 GPIO Expander Support .../bindings/gpio/adi,ds4520-gpio.yaml | 51 ++++++++++++ drivers/gpio/Kconfig | 11 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-ds4520.c | 80 +++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/adi,ds4520-gpio.yaml create mode 100644 drivers/gpio/gpio-ds4520.c