Message ID | 20230727085239.4326-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 t5csp968664vqo; Thu, 27 Jul 2023 02:24:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFR5zjgxFc5e13nzmwyzlgLr0wOATrfm8QP5i38UIag6dRQCxCklv0QMSfUzwj1GFQop2/6 X-Received: by 2002:a17:906:8a79:b0:993:da0b:8783 with SMTP id hy25-20020a1709068a7900b00993da0b8783mr1516912ejc.3.1690449864173; Thu, 27 Jul 2023 02:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690449864; cv=none; d=google.com; s=arc-20160816; b=VsD8cXIHe5A8sC0ap9i6iwLCkz2+loJIZndQQp3Q0saiE+1kSrT8K2rteD9x7QXTzf Cp6uc9azKohrcwmhAynhTggGvysp0UCvgoyJ8NVltUGgo80Mbqij72T1ajFw1lVjI285 p4A3cgQj0ZgWtLER854eVWwf9x2xD/X+o5/qm0kEyX+hZQ7FbnwXakr9inr1C4XQaYrF L0X8DK+Fyg0zW7bFhKkRhblt9U0K22rqQECi9t7MAh5/TCq9dA2iZpm47IztbT7Tx8Xz 9gybiYM0WTNptsMZFJoFzllZ6mZ588qVwmpfrruNfGGcHapk/gCtwx1FhAsDKjBiZVvE sSRw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rs26-20020a170907037a00b0098f34870d82si755393ejb.159.2023.07.27.02.24.00; Thu, 27 Jul 2023 02:24:24 -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 S232949AbjG0JJ7 (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Thu, 27 Jul 2023 05:09:59 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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: <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: 1772565156647340477 |
Series |
Add DS4520 GPIO Expander Support
|
|
Message
Sahin, Okan
July 27, 2023, 8:52 a.m. UTC
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