Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2166160rwb; Thu, 27 Jul 2023 03:12:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcUuz39tjqOnfmWA9LknubQZNWMmdflgcCNoXVLy9zu0FAcaDYGgyUjbQR/JgNnneGfapZ X-Received: by 2002:a17:902:dac7:b0:1b8:76ce:9d91 with SMTP id q7-20020a170902dac700b001b876ce9d91mr5938809plx.1.1690452776749; Thu, 27 Jul 2023 03:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690452776; cv=none; d=google.com; s=arc-20160816; b=na0VHC10sVHzdisArCTopVOLJMUVdjih/TmHJ1ml2LZf/Tqed1JwIXLevrhVWIIEAZ wIkudyQzhtUpd2QC+jHzKf2SersTZuRG+fxu4aHhh/mjmrayzR/RtbicZ8sMRcsi6rgH mALxA4ie7LxPJbSTJCbW2/CrIPT5Tgr1EYnRSZQtfKe4sVBhI0SQE6TjIQ7hF6L3AZp1 F4mozUvthnvT5+t17oJ2fNfpl5lioOLp1TU90bQkdGfyFQfRsBKZyhyhzKHYsqNpa/O5 bOl9UVGC6tHW+zaZaKVaarYlWwtCIFR3YZU7+F88+YuwXHNj37Ake3vIMH5kSZvSrl/2 0pJg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a170902db0400b001b89b7aea8fsi1138741plx.493.2023.07.27.03.12.41; Thu, 27 Jul 2023 03:12:56 -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 S230331AbjG0JzL (ORCPT + 99 others); Thu, 27 Jul 2023 05:55:11 -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 ); 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 To: CC: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , , , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.30.2