Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2138902rwb; Thu, 27 Jul 2023 02:41:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFOoObS77cA89Q/PDKuxsWRYS/oWZAQlRc/rg1M4NYuYCY/LwwoUETPg/xvLu24/gtddMJC X-Received: by 2002:a17:907:72d4:b0:99b:ce01:457 with SMTP id du20-20020a17090772d400b0099bce010457mr2072892ejc.34.1690450894732; Thu, 27 Jul 2023 02:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690450894; cv=none; d=google.com; s=arc-20160816; b=TUXKehAlX6rROPR3wn4NhbKwdE4zV6ONhU3zy01oDbtJxXMtZt+IcWsb7crucSPkRX HFQo6GkHC8a9DKOmB2aixqQCkil7xj8pMvQpZeFuORxryCrQ0nFRgtMa2DtzsoezniMi m1rnS44iqk9PnEx4b+ZfLFcLERR4s3CVXO17IG6E5NvvCYG2YVJ19n3CP0isqjinkNq7 ISPHil3OKMHTLXY7104F/gAdZxRbWq0iT+S+Fjl5YMQy1yIiy3tXeKkrNwe/HOMhJtmg QCOz0sMicL4jtB7h0cgKtpgm5TG0Jeqn35BHBvvmIxTlE33g+yPslDD17Hs2C60NAXYk 87tQ== 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=rK3e4q9FQjEmEBm6rtiKkvzgpMjQcxVXwogd0HUhBvk=; fh=P00EuBDF4XpJQsjM4AE1z3Sbx7B6QAr6ahKq5EmHWHA=; b=K0/kQGGO+Kzw3YH0GdlrNaiTGVfhN05oUyVzZ89nrd/pHED5eyhQ+CYYhHd6+4B5b9 60HEvVmjNo6KL3Rqh/D8L4ywZ1fkttPnqLIVzlHc+5zFOF9a9gx+PklFXwdyiJU65rmu tVNNAZ7REZTYvheLr0wsogRvxYfk6uQ1glY5MsHaAkKauH4fsLQSN7ihT609PbIMSuZb nEQAHuzy/4WWYHVRl+h/b4Q/CcyI+A9KuXzE+otws6zuDiJq0dkhhqYQu2Eimp9Jlz85 r0IlDYke0a6JuRUMzhllvUYcjXNHV8wqw05T2D1QzR0pkLbtTBbq9Nvveu3wNgWBg62j swKQ== 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 a8-20020aa7d908000000b0051de30de0c4si679457edr.595.2023.07.27.02.41.11; Thu, 27 Jul 2023 02:41:34 -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 S231777AbjG0JJ6 (ORCPT + 99 others); Thu, 27 Jul 2023 05:09:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232783AbjG0JJU (ORCPT ); Thu, 27 Jul 2023 05:09:20 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45A7C5BBE; Thu, 27 Jul 2023 01:53:13 -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 36R7384k027025; Thu, 27 Jul 2023 04:53:09 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3s36ahw6e2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 04:53:09 -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 36R8r7kg025586 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Jul 2023 04:53:07 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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 04:53:06 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) 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 04:53:06 -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 04:53:06 -0400 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 36R8qn6q026993; Thu, 27 Jul 2023 04:52:52 -0400 From: Okan Sahin To: CC: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , , , Subject: [PATCH v4 0/2] Add DS4520 GPIO Expander Support Date: Thu, 27 Jul 2023 11:52:36 +0300 Message-ID: <20230727085239.4326-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: Bb5uAowpODCL9bfVrVlzsbz1nwXQW-qt X-Proofpoint-GUID: Bb5uAowpODCL9bfVrVlzsbz1nwXQW-qt 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=705 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270078 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 v3: * 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 | 89 +++++++++++++++++++ 4 files changed, 152 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/adi,ds4520-gpio.yaml create mode 100644 drivers/gpio/gpio-ds4520.c -- 2.30.2