From patchwork Fri Apr 21 21:56:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 86504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1364572vqo; Fri, 21 Apr 2023 15:03:13 -0700 (PDT) X-Google-Smtp-Source: AKy350YhaNnY29YWcGKAOsHvwpjbukrRDLdzIcqOfp9G7N38qaHXX2LHB+2XzzAMOZqgefLV+ExH X-Received: by 2002:a17:903:18f:b0:1a6:a988:b873 with SMTP id z15-20020a170903018f00b001a6a988b873mr7848094plg.69.1682114593236; Fri, 21 Apr 2023 15:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682114593; cv=none; d=google.com; s=arc-20160816; b=QivU0odH9JccUmltEdXUGfcnhHTdTPmgBsDp1Fa2U2keKzagrZJ4C60E4gNwH4KgfB Usc+BBbPdSHkogaPDjgvdYY41n4+8iR8CyEITIaIBRNR61Oc9B8Jz/VeBOMEI0zXEVeG vymr4U/KPASREqIGjsx/KEcIrb5WZc1V39dHu+oX59B/FwYiC6i+7uDpHh6lwtzijtCz NHlbE5SXNx6nSRCLFMkIO5q9E3hzlXulzker33mK3cJHuf/tFETgQoGZVEHfha7Ljj0U sfl1h36goPIHM47J01NHKuNru9a3FAp4xuWnfXqBovyD+1/FQ0PABXyMvkPIz01aoIe8 YipA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=iSrm5m0p/KwtVROt5XhQ6nBqIQdsLUfdmMjkiAu6sEg=; b=g2wTxOoa8/bQVIu5O/Sl8Z8OZYbTa9iZg/Zts1BT9W9bu/oyN9IV7mimurtI2SzeuB ux6/r5tf8ibwpNb8HgZ7r3VUaAlwF3xYvbLPgZVwt3bv/YTiVmKxmnpUk7N+B90mPfs4 GbZ4PaT2IF9cdBP9/ohyWcnPmHNG9VsSPjStZHZu7s6mKoKBDlnyUMLve5le7VT/1e7B Ac4MZOcYYYFTgPpL7GaRFcc1/zjbQXupVsrgAG+kRMSZm5YFqLGr+HpzD4iMMNR8XE4N /QPNaL+lCpDEK39XxfgSDSLndXO6p6Smq0iD/x0qfzivwh+Dzgh+0JHPOVdOSE2BQcaC VDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=fW2f6aKQ; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a17090aeb9200b002474701edc0si5354992pjy.188.2023.04.21.15.02.58; Fri, 21 Apr 2023 15:03: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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=fW2f6aKQ; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233465AbjDUV5G (ORCPT + 99 others); Fri, 21 Apr 2023 17:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjDUV5D (ORCPT ); Fri, 21 Apr 2023 17:57:03 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359591728; Fri, 21 Apr 2023 14:57:01 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 62D75CCBF6; Fri, 21 Apr 2023 21:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1682114189; bh=UtNO0UCuGv/cFMdf46RJCKgPaFL2w8SqDFnXJ4NrvoY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fW2f6aKQXPfvNDCZmEeYyaTY8Vbn/TK6g6SGlulW0J1ssp6gUMW/jFBzhVw9A5JFL khOq+Zz805kptjzBISgoKGRpz8v+1gEGH726CMdoYQR2EoMfVQpTt0Qx/JBH3kwyLp JlGXBSPpl0T6CUJmaJSEvF2qROW9YerW37Ky0pdc= From: Luca Weiss Date: Fri, 21 Apr 2023 23:56:20 +0200 Subject: [PATCH 1/3] dt-bindings: pinctrl: qcom,pmic-gpio: add PM8953 MIME-Version: 1.0 Message-Id: <20230421-pm8953-gpio-v1-1-3d33e2de47e3@z3ntu.xyz> References: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> In-Reply-To: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1403; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UtNO0UCuGv/cFMdf46RJCKgPaFL2w8SqDFnXJ4NrvoY=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkQwaKKb3/UXN3aLhZti8Q65N/+zRFhnl7C0hqt OwyQpMCFSmJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZEMGigAKCRBy2EO4nU3X VlDxD/4tVOUKafpkAlAfNK3n/pT+rewFet0tVxYzbzwj5Qba2jhTsLQ5w2ObaRwiktxob8XQPjj GQQ0g0OqhE5yGUkxQ/DxRWyv0gsYsGW5zPsPrJZcZks05VEzDnlffPWsmq1ieDsLakYI2KOUDl1 DfxUfcK1tF2ZlagppKER9eAl7PTQpagXf2e/Jn+nVKmxpCwmddlek6RPDcELAJMyUejrKuxR/nb bWffIhesMdywdkolfXPyAYrllmD9/g12Ss/snLvOBDQooGenNBTJxaQe8OWqgbZIr6nu4upMKps PuffQhT03eTldM+eqpUpq8w51LV2EhIsWT+L4I0WcwK6teF1fHCZciM6JSjrBw+RJeDVou6imz0 NXtWwbPG0nXOPtFn5srI+fVE4SNEOZLL1iV5P68Jx3hLGgf/FIf+QvZZqZVLsbziFtM2ll63k4w oc/mTTMi6fguDaiRHGKX8FV6mXfJ5DSkDhZjaMU76/6A/+YEj/ZWvE2s+xsSbIwSCCrUbEaR24s nHddxJ2S8n6PHyR20CnO48EZRMfacHmubYbvUJOHdbZidZa73Mi+1bPiDlsXJpeI1L0dazcFXii RZdTdeFEqMbzIZi12Fmni2MKQ6PEuMCIDJejk4VO3wCB9Qw9tQegRv9MSxt28h6MQGA1R5nhI4N /qZA9fFWYijcuQg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763824991242533914?= X-GMAIL-MSGID: =?utf-8?q?1763824991242533914?= Document the 8 GPIOs found on PM8953. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index eaadd5a9a445..8aaf50181cef 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -49,6 +49,7 @@ properties: - qcom,pm8921-gpio - qcom,pm8941-gpio - qcom,pm8950-gpio + - qcom,pm8953-gpio - qcom,pm8994-gpio - qcom,pm8998-gpio - qcom,pma8084-gpio @@ -175,6 +176,7 @@ allOf: - qcom,pm8350b-gpio - qcom,pm8550ve-gpio - qcom,pm8950-gpio + - qcom,pm8953-gpio - qcom,pmi632-gpio then: properties: @@ -434,6 +436,7 @@ $defs: - gpio1-gpio44 for pm8921 - gpio1-gpio36 for pm8941 - gpio1-gpio8 for pm8950 (hole on gpio3) + - gpio1-gpio8 for pm8953 (hole on gpio3 and gpio6) - gpio1-gpio22 for pm8994 - gpio1-gpio26 for pm8998 - gpio1-gpio22 for pma8084 From patchwork Fri Apr 21 21:56:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 86506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1369872vqo; Fri, 21 Apr 2023 15:14:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YlXnl9dsGh7oAXhgnRNQx73QUBeiF9EAIN91mVfUry8ZXO7xkDQtwWN/CzJiq9tDCxUQsM X-Received: by 2002:a17:90b:228c:b0:247:90ea:1a7f with SMTP id kx12-20020a17090b228c00b0024790ea1a7fmr6618855pjb.37.1682115242290; Fri, 21 Apr 2023 15:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682115242; cv=none; d=google.com; s=arc-20160816; b=hgTFjhQO95kASFd3e4pmBcYm3Jw7lRx8N+3ml3dj9NMAdeqb97iJFjyFqxbCZZovqc I12rGEqE/F05paJxkRat+yEjnqzwMgMzPg2+fRVOYYjwGMXkfSJU7BhN1XRJX9oL2LT+ MXFLG5BuiH6S6PPzd6JNNUW2LqgHc3A0gTxbdPh1zPPoothm1rw2ix1N+TPFh7s5HxGv 3yFRNm2HMSyFR2pFMXJePeIcbUp1KNTnTNOb+jq9ky8fOsz04u2IKHMyoV0zSphH9rcC 8Xfaj8V63JyoUkVWM9JK5iZ0UtMyKdM9SwHobZCytTg6/N6En9HqAkodYiKVD/o5ThX3 DvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=RZ6NRZ81fhybAxEJn6lgWOuPUI9OvBF9YAGNWiiF00g=; b=hvMyISNbJ+ZMgpQCIu/c0IfjV9+4l4uzfFVrMeqwhz8hf8ExEsnrKfkz0m9/vEPRKU u21JBBlgesS/F3CmwT4nB62bYrirD/DZBc3z3Cxz4YlY04xJX0ZDcNdJh+nIYa2p/0KY oA0rcfhjJIC1nN/alT01A+hkH0oht7XVN3F+2l3P63vH2B/aNVOh65uco+2XlcFh1owz hLqxJaDJt+pBBWNycTFYZXnUyl/ozbUsXG3Qm+UiRBwruTVcT0geyljq0PENXvDvEaxR FNSPtK800C57fWqKU7cCozuEbYOhLAr5/HDGQUenwnln4XnM21zWEl7d48cAQfKGasap QkHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=Gsk0VQqE; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a170902b49000b0019f359c651esi2295158plr.556.2023.04.21.15.13.49; Fri, 21 Apr 2023 15:14:02 -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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=Gsk0VQqE; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbjDUV5P (ORCPT + 99 others); Fri, 21 Apr 2023 17:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232058AbjDUV5D (ORCPT ); Fri, 21 Apr 2023 17:57:03 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A941BD6; Fri, 21 Apr 2023 14:57:01 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 9775BCEB77; Fri, 21 Apr 2023 21:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1682114189; bh=kARpF42x0a3Ol3hkdLTct9brZ7ygU/8j2A4lKB9TSv4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Gsk0VQqEgTTb50ebWdPGEEAnq2KtAd8E+kURS9XcDYhQx+omvAP8aKyuUmglVVhII iLCoLII1J/C8+FAbSznMXIam4O5PixyHa71srhXQNmyK9tRbWhkXJna+hez/3+XI7O gdGTNPbVDwhZ4kpwBzEdhP4fZg/jF+F96qDZVmYk= From: Luca Weiss Date: Fri, 21 Apr 2023 23:56:21 +0200 Subject: [PATCH 2/3] pinctrl: qcom: spmi-gpio: Add PM8953 support MIME-Version: 1.0 Message-Id: <20230421-pm8953-gpio-v1-2-3d33e2de47e3@z3ntu.xyz> References: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> In-Reply-To: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=979; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=kARpF42x0a3Ol3hkdLTct9brZ7ygU/8j2A4lKB9TSv4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkQwaL9fLrouqWGfHrkJj525FY2yYIP4nAeMc2e tlqdtMX2X+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZEMGiwAKCRBy2EO4nU3X VsLOEACBoR5dtbAeSqEemXnxA3tGdW0pt0dBKJn+xCfEhurE4UE7eZDy7JgdeTSZxBb4sUvfIKK f589BNs1QCO8ozEXcz025JoZ6T4TA9aFqTqp15qw245+jG8WxPpQMOJsLJ3mBcl13bcuggWxpTy gpyC4euSNcEP9apz6yzA/nIvvjFDx5ohuz0eXvDAv53vE+8CvRUf82ce+bzmMESmfiQyjPa7dgJ YT20kKzdXkSyeAcl9Xbp9UxVc5qcCFf8IbmPo135VT8X4kOiOeuGqrmVcoVYL2PUa29Q3W345ot 2OGl6783szwokGTYA5vCFlzdf0e8GXwW6FuwaVexcTabcjT7aUT+xe9sm4FRvDTfCDnUy9Zorpo 6P+uWJ13YKrXFbWwtaDObWYXHf6E7vvUQ6ul7+4yjF+9pO4Mhu5+GPicQDhtMIq4WDuGDX7hy3L c/hL8bwiK5+m6KWT0/RbWYo+sMld9arCJ0bwEZ6hpD92jDfkdHS2gQRypS+A2EPPQwlx9nKsddV RFnxZOYCOXjZ/JCqHLXkmfrCg/48p403rlV6Df03EV9cRIZ4491Tq+3KUMASZ3E5s0YLvN1DDuW s3w42YqEs9rmhqgNP7i7AoIFaagKBUbqGkLYzvQj+1DbHDcLIKV6B8gpDLJMN3VT5rUp6myMJwb JE/hTpcf4oIeMwQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763825672198178763?= X-GMAIL-MSGID: =?utf-8?q?1763825672198178763?= Add support for the 8 GPIOs found on PM8953. Signed-off-by: Luca Weiss --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 43c7857c06a5..b4cd66886f29 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1229,6 +1229,8 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8941-gpio", .data = (void *) 36 }, /* pm8950 has 8 GPIOs with holes on 3 */ { .compatible = "qcom,pm8950-gpio", .data = (void *) 8 }, + /* pm8953 has 8 GPIOs with holes on 3 and 6 */ + { .compatible = "qcom,pm8953-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8994-gpio", .data = (void *) 22 }, { .compatible = "qcom,pm8998-gpio", .data = (void *) 26 }, { .compatible = "qcom,pma8084-gpio", .data = (void *) 22 }, From patchwork Fri Apr 21 21:56:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 86503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1362463vqo; Fri, 21 Apr 2023 15:00:08 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLqZziIAMtzQOkw8XbCggoCnfhDPGAPqutxa7w+iYRV+GcaZj1gtwNY3ThsOXQJd/zMVLw X-Received: by 2002:a17:902:f906:b0:1a0:7156:f8d1 with SMTP id kw6-20020a170902f90600b001a07156f8d1mr5751025plb.19.1682114407822; Fri, 21 Apr 2023 15:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682114407; cv=none; d=google.com; s=arc-20160816; b=S5lhM3oKTs7MBzMf2aZ6wdgVnJ+lum0tuVkMu+Q1qpfqZjEbV/3FV6roApNH5CsJ7C 09xvwYBOrh+rKmXMwPieh0BpBlMH6oll9YVaozvAHgK+q1/9yBmjgHF55917NBdz0g8D muQB3lBhnFNSlYrYl2+OII1C8sPtRnX474bs7GDHZBwHvkFd1ZR5wGrtrII9fQAGBIDt MZt7xYO8fs27ITVoVyd498v4VwQ6/yoFDEG3DeI+WG+O3LRnMM+YG9o2dTIqgoZbS9sZ xDjgdhYlLdR1veaPSF/w1cfLglc3MTHfkgH6dyHc55EcyIQp5R63jchqjo+ze+FfyOTZ zvyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=PPEvF8+3Ze4qg4LBbGOEEUcg62FMGW3ZP4kIreUNaVU=; b=yvB8LoQul5o6ngbl5CWCavDRRC+1q9dKKXyQwXvX5n0YMr6MftnHke9EKj6DpW9UE8 Q1n8HnK4vJoHyP6a/W6oLt5ShiNP/0hifAFyoHBsblQ95UDCKK39eAw8kKV6saZHouTu rO7Q+6T8vSwSgLPYeWOVSEXU0rCsE2EhtGPaKILi4B05JSOXt9Tk29LP7DElTXtCMDyE SUAb/HLApMqe74JoDdvQ5yBfehHAP28mKDQBHCQqJ0cvIfiikQGMabhxyn2wgOlactmy 7/3UKXASiAXXA3aADkt3YvGx88LfU7OuIagQDdC34Hd88nIVuS4HP6p4FQhVETfkShmb OpQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=fGAv2QOH; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902f78a00b001a6e719421asi5383622pln.366.2023.04.21.14.59.55; Fri, 21 Apr 2023 15:00:07 -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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=fGAv2QOH; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbjDUV5M (ORCPT + 99 others); Fri, 21 Apr 2023 17:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbjDUV5D (ORCPT ); Fri, 21 Apr 2023 17:57:03 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987F01FCB; Fri, 21 Apr 2023 14:57:01 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id CAB2FCEB78; Fri, 21 Apr 2023 21:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1682114189; bh=fk4m8YwqRaRJJmWRy3zDyiyWOrKUWffj2G1xoANhfek=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fGAv2QOHd6hWFBl6xJfawnWE/UPOKCpuKX5gcfwScI+Yz/AFufTJ305XiDHTgGiay riHftwBU+KBomqLSn+/BrErwgJBdxbmrhzNx9+bdjG8zDroD+AwMiCwth0KPUErAV1 ZllLtr1FOYwXrdr2Fy/pw2XDKwmqnGjwEEZTK7PQ= From: Luca Weiss Date: Fri, 21 Apr 2023 23:56:22 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: pm8953: add GPIOs MIME-Version: 1.0 Message-Id: <20230421-pm8953-gpio-v1-3-3d33e2de47e3@z3ntu.xyz> References: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> In-Reply-To: <20230421-pm8953-gpio-v1-0-3d33e2de47e3@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=832; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=fk4m8YwqRaRJJmWRy3zDyiyWOrKUWffj2G1xoANhfek=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkQwaMImZ+W584Oat8uesHpge4QKk05bqMg1HV/ z+ZSyaXgNuJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZEMGjAAKCRBy2EO4nU3X VklcD/9Jyz/pXTNAqmOjjsdKWA+5qsT5hUAerfmzpfKvCzI33ymSQXJ6aQE/9zbEMAHmGal0V/T sCfoMBK9PXW6KRAQavv29n3RLD/JoF3OZY5P9XBUFSKqjol6nA9mPuH2FpmCvRDdkN1V7SkIMEq F/p/D4kcXnOWcxvA0y8ZXqtMJNp3TZZTHD5cQ7500rDaM+fLEsanffxePZPe/Blo8qS2peqi3Wb ft+OsiuYnKv/6dsIkiK6V7JvVXCYwit8Mx3zb9VqOty8U0GNCny4+Sh5/gsyObC8CoRXB5r3QK4 Xvm3VZZM3VL1WmECqpv7SiyQbqKruvK2JiOFXWlLVP0IjMRCIfDo4cbN5gmDNpuHTO95ZlLWi7D p3vbuMgIAGaJY4i06CFhozKErg/R1kYRnUT6wivuB/THbjeo6abwj7K41GaeN/vuv4L6AM5tMQH DWvcl6/OaVWchRt3VrA5nAyjvW3Antk4oDsJcvkTzq1d/45MiKTG5uqDuhYleHUOYH9SjnEDIoP qWivYDo3hntsaihZulcsS8wZUwDZesCv6Y40uMbxf7JpZtgBLFfevkouFQSf6IROd6XeDy1FFvv TEJZGZ3JYBn9WJewaTKhMXjGcSf4CtDiiRPt/yi38ZNXMea7/H4Ym/Ypcg7pVwgMyVE91ZyxLmC 24vzPg+vNKxsrmA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763824797019534432?= X-GMAIL-MSGID: =?utf-8?q?1763824797019534432?= Add a node for the GPIOs found on the pm8953. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8953.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi b/arch/arm64/boot/dts/qcom/pm8953.dtsi index a1d36f9ebbd2..2268daf27fa7 100644 --- a/arch/arm64/boot/dts/qcom/pm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8953.dtsi @@ -79,6 +79,16 @@ rtc@6000 { reg-names = "rtc", "alarm"; interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; + + pm8953_gpios: gpio@c000 { + compatible = "qcom,pm8953-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pm8953_gpios 0 0 8>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmic@1 {