From patchwork Tue Apr 18 16:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 84960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2989368vqo; Tue, 18 Apr 2023 09:45:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2b6PVXs6JjUglT+Fuvl3JFTIArGik+DYNO4laAuILaIwJfzugiobBw0LBtAsKmkIaxsvh X-Received: by 2002:a17:902:8d95:b0:1a1:e112:4607 with SMTP id v21-20020a1709028d9500b001a1e1124607mr2263762plo.50.1681836311510; Tue, 18 Apr 2023 09:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836311; cv=none; d=google.com; s=arc-20160816; b=xPvfaUOIcv7tWQgXRt5aV1E4LQyXNiTA9UGMjbqXoyi5c21LtaYadmzAeQOu4zNGok +5YLZRgijTDBXZ3Zep5sar1RMDRlgwAC19pUJyu7fNmM80Y5tH9v11Xn/5HOFxzkGyec 9OsgkiKNKxLte2Itxusgx6WbV3J4eetH2TDpiXMB4IFcYXu+ewkB1k9+kC6SGH3i7DRS 3nQRZSBxwPs79G5q1amcETNJKBqQ1nMEUfU1abNbWTMd1dRdTxLPbtToE3NeBmcrOwBM 5ntoa1ew0fIm7W3NDbNSniKdYt/wWturgOQHbmkxKaeTDXdHvFMLXawBpO7vWrDfwKVs HUkg== 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=qU8e1XXyAkM/cIYc3CwYzNrvBK5KY6UVwnyojWQr5WQ=; b=WiygIM8SG8isQTnUenV7NHM6u7bX80f+KAZzDFWedhUoivchv0sijKs3ss7Pc7xeFJ BycbiJeQgxhFBljE9VEWqGSholosTp900PzRupBFeR4niiuFy7meugYnpGvolOw+RkqI fzIVksSyzyEOmyoHxjn56A11SfqKhy16Hb4I9Vn24nvvanTx5vCEuMJldXK7mmFutS28 ukOhjYW4BOjPzT90yICiPKApE1YwN7jnu+O49OKfIct5t4+FHIlwjXX3iGbjb9UeO7Ux /w4HaOKWeYMRnK1KF51zt8SscKJCL6Gl/mpsxXGkjE+FnfxFL7g93GJUtqeU5VAnLTfv OUZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=YDpqgryy; 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 m9-20020a170902768900b001a69f1cea63si5645844pll.223.2023.04.18.09.44.55; Tue, 18 Apr 2023 09:45:11 -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=YDpqgryy; 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 S232624AbjDRQoS (ORCPT + 99 others); Tue, 18 Apr 2023 12:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjDRQoP (ORCPT ); Tue, 18 Apr 2023 12:44:15 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D2710F2; Tue, 18 Apr 2023 09:44:14 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 4ADABCA65D; Tue, 18 Apr 2023 16:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836222; bh=cf8LvtTKNrXgOVqnfPBTTBrobXcm7GixsxPTc9CbZI8=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=YDpqgryyebKOo21fnxTWC+nCRdpBuErzrEBraHI1qLBIYwfGauslOiJs4u8WoaSZC FvqEDtkNCOfC4+AiWDID9IIK/8XjnkDoZTIqUbd6krN/FY97nkr5lKVPA09pyIqQea 2SKm++LAM+o6YXk7GnM94YOxc9k7CmEE9i7PcmE0= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:17 +0200 Subject: [PATCH v2 1/8] dt-bindings: pinctrl: qcom,pmic-gpio: add PMI632 MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-1-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1358; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=cf8LvtTKNrXgOVqnfPBTTBrobXcm7GixsxPTc9CbZI8=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi3SNkpS8d/Eulaj4wZnh0Vn8qnQgZ954mj5 +KwnBfY12KJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7ItwAKCRBy2EO4nU3X VoovD/wLzln3jpbza/IVaQxcgbOH2+0Y3AFysC0yUZYVdkEePlQ1Qt236/z8G4cgwqB/qNBovtD /t6JNhmW+b8Oe7z1xG7ylpBwtXv7orb6l6D44xfmckJx1ifbQf57ybSaDUM7QLTBT752ceGPg+O GW1AP3skMPHSBpum9O5fhHtOS/u9B5g9N7dObLV6boE35XvExofQdFNvz5LX5MplZVGGWLQX9z9 fpsMJLaWg9XqBEUZAq+uJydwKfHb+ds1M9jGVK26S9w59BUizCNi4gA1+hCopJJhSELJeiwgbnM nwth7Z0/4GTdq90HvQIcipsh7nA2yEZgUjl5DQnbbplbxNMLIJzQCSWARcHPYO231YFOOCflc+A kig4tjUPSACivzVLBLVGICxe6rOkJHLZsaNcln6nwusl+N+0e4nMVtfTmerwOB1VW7uJxb03b4g 2iB21ANIG/xCjY+JdTQvrRbJXO3fqzmAlGYEwJMDg42Ag2M8NJc+C51KwcA6YZjoc3HMzAiLEaY K4BMQOFg4USWURIWyDjNnYrC7jNtFFEZsHJBTggwPHRqKIUQSe4EWKAt08BS3/B3yFDFmoF1uOZ nuBCfu+H5fX7eKwpQBZLt35HMHJSK+3VLzn5UqRH6jM8B0HHdaLhe4PNcue83shNiLTa7ACZPip bm97szTkULXMUqg== 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?1763533192126740299?= X-GMAIL-MSGID: =?utf-8?q?1763533192126740299?= Document the 8 GPIOs found on PMI632. 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 36c6435cfd0a..eaadd5a9a445 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -52,6 +52,7 @@ properties: - qcom,pm8994-gpio - qcom,pm8998-gpio - qcom,pma8084-gpio + - qcom,pmi632-gpio - qcom,pmi8950-gpio - qcom,pmi8994-gpio - qcom,pmi8998-gpio @@ -174,6 +175,7 @@ allOf: - qcom,pm8350b-gpio - qcom,pm8550ve-gpio - qcom,pm8950-gpio + - qcom,pmi632-gpio then: properties: gpio-line-names: @@ -435,6 +437,7 @@ $defs: - gpio1-gpio22 for pm8994 - gpio1-gpio26 for pm8998 - gpio1-gpio22 for pma8084 + - gpio1-gpio8 for pmi632 - gpio1-gpio2 for pmi8950 - gpio1-gpio10 for pmi8994 - gpio1-gpio4 for pmk8350 From patchwork Tue Apr 18 16:43:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 84963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2993790vqo; Tue, 18 Apr 2023 09:52:50 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMsGPOlyH+sGcM7e/miBbQQhDBybEUtUXbXoLZVh+D7rT8yMAiTOxWHUUV+qb8Z1TDm3pA X-Received: by 2002:a05:6a20:7348:b0:ec:a494:2115 with SMTP id v8-20020a056a20734800b000eca4942115mr495220pzc.12.1681836770000; Tue, 18 Apr 2023 09:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836769; cv=none; d=google.com; s=arc-20160816; b=kw8xKWX8QdcQowVnA6m3Um8nWbALNFsGMksLyLVCLXa+xmMkHqfov8Ws9rODRbMVhO tCr2fmlq6m1JgLOnrDBHUeTGS4RopSQlIiNBd5pHnXJm9AyoiIwLNvvBcMtrFaICjHue hEq9lcEOo/OtG+t4XpRtlDKeQSEyVApI/V6HK43qd9bVXXI/Sq/t+5nLjOa0jArdwCzb LuWSYG4bFhiayHKpmzLlSEh2APvV6xTR6YNLGDZT1udWuUWQKq6+o56glKRqiwqMCcAr KCuggXv8FYP+6zl1C1w4Z+1bLmfQJEtqXRhJ1l+JT8V9Vpre5/RHdGWWGwmzGjCYkDoh /RvA== 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=a6lOZhSGLiInHRxxIBWJ76lp/1+ENzPQt4nhhQ2LTJY=; b=w7BmaoBplz7iJ2u/KARUY1naU3ltcFK8Od338AXrwXQr1YGnThBknZDxNrYtGuMscF lFofrHBAgSHCi7gFNR+BM1Fb6JtEPIvxoaW4COjZL3yiaEDq1WOxETnZjBjEFKJNax7g tTN0S/rEs0RNg+x5uOqOQgic6CKc8YCoKkGGZHbDf3qkBqVU5KOJ9qw47dSE6uYnXB4o ziPfFLOrTt6Rwk8uMIZVftCkJCAAvGfEHf+yRrvLG3HtsRIvaSyFLhg0hlZgBbSopK7h ze6s4yASiDDObGWcwMhLIRLARMKTTXy22rUkiAqbS6bHtVvt8pPH6XOctHgeOlZ4WZmz WKhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=lYd3SNAO; 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 i30-20020a63585e000000b00513128cd495si14812478pgm.730.2023.04.18.09.52.35; Tue, 18 Apr 2023 09:52: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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=lYd3SNAO; 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 S232569AbjDRQnt (ORCPT + 99 others); Tue, 18 Apr 2023 12:43:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231296AbjDRQnp (ORCPT ); Tue, 18 Apr 2023 12:43:45 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716E861BA; Tue, 18 Apr 2023 09:43:44 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 90FE3CA680; Tue, 18 Apr 2023 16:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836222; bh=IoEHW2vYqFAvOyNYJ41zV5ypb+S+GJlspgvRVAfUAF4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=lYd3SNAOLT8PrOo8DLK7uRxoYn2XZZmiQUUrTg+cBJjqH26kSZtxKrU1yHu7Ui6yE agP/o9t7y4enm/CE2N1IzEpZopRvBvZWW4NUPjjb2hiYxYSaTYBFKjKk8HO3X4oHIO uqAew62Zh4m2OTgNQcrMm7eduzRino7lB0BA3gqc= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:18 +0200 Subject: [PATCH v2 2/8] pinctrl: qcom: spmi-gpio: Add PMI632 support MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-2-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=948; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=IoEHW2vYqFAvOyNYJ41zV5ypb+S+GJlspgvRVAfUAF4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi3ZwH0Grfw+endy5WJ3r/UqRHoJ8mLZfVi7 lN5Xi8uc96JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7ItwAKCRBy2EO4nU3X VjVHD/9HxZfcF8rVbPKhDaGSuN/MHmVxlIFGMumR7OGITEzxq/DYc/WXw4MbdlkpEq4c5+jSHjB PfCltOv0LseH3xNx9bSuxIS5ehhmyixVIUqwkiNjVhiDGEh55FOfotTyK5LNhYFM83Fnbue9fa3 ujxAOpClYsonNnxt/i32iq3UagojmEtV6rBix8ElGKLrnMuKxCIbznpotSE+Ko4csoIUREpfyWJ jeSRuj6auZF93gBJCbByXCTLjXiFNKbUzvxYtVMUpJl52Q3Pi5ekYymv8WTqknJ497uKri3egIc pATwppabwhe2qkrYU7yfrtA26AJkK/TytTCIjKBCYDe8UVXMU8PO1+BNbFBjAEgqF/TH9KO9deW E5QVoZOQQHYGMJo3DFJHuH9KmYHKqMA5w3I5E+GP1yXTnEAPsIEzJsfLDlPf5ABgUUEd310OQKd HMosCYGVgarYyEJENQ2XyIv2EjQk1wro7L/YFaun8srw4/DoL7P/TTbD49//+2+yLIwMGjjZWWP FXpbjgNAXtr6APS34Ne77Gkqp+KVHrZKsTrSzNz0i7AgdinweQLGm78YLGAyvMRWQScuEknBO0A ek66yjcU4SpZvjaMCLokeRJqRQuKjArc99gfXbyW7k0Hd/jNLIOM5CLOSfxqmOVZU7NPLsMXXc6 0IEv5ZOvc3Mvxwg== 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?1763533672759311555?= X-GMAIL-MSGID: =?utf-8?q?1763533672759311555?= Add support for the 8 GPIOs found on PMI632. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 0d94175b34f8..43c7857c06a5 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1232,6 +1232,7 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8994-gpio", .data = (void *) 22 }, { .compatible = "qcom,pm8998-gpio", .data = (void *) 26 }, { .compatible = "qcom,pma8084-gpio", .data = (void *) 22 }, + { .compatible = "qcom,pmi632-gpio", .data = (void *) 8 }, { .compatible = "qcom,pmi8950-gpio", .data = (void *) 2 }, { .compatible = "qcom,pmi8994-gpio", .data = (void *) 10 }, { .compatible = "qcom,pmi8998-gpio", .data = (void *) 14 }, From patchwork Tue Apr 18 16:43:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 84961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2989410vqo; Tue, 18 Apr 2023 09:45:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bXAHPn97JFrohjbSfbPp0YGvwnV3iupifDVZMDiS34BAzeauUb3qU3y8QuPZF4j5IcwOna X-Received: by 2002:a17:903:1c4:b0:19d:1834:92b9 with SMTP id e4-20020a17090301c400b0019d183492b9mr2971575plh.56.1681836315925; Tue, 18 Apr 2023 09:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836315; cv=none; d=google.com; s=arc-20160816; b=h5+1IgtgKVlfVruV9+bgW4Fj7YYJP+mhB8yPyRPmFmuHIGGSpkLsMHBycV1xnZsup7 lOKL2x3Ayq1M+WgU8jsQscCv8dw4bs+qOwhPvW+C6V7Xe5Tfce8e0Jy+CdVH5/vfZ0BW ynVcBZy8FLf8MiuwLoxEYkZ+mR0WMS88cyajEeiHjwbUXD7QKvYfP2BnIwAszIux1ijb vqQg4SBR4KijiD5KDh5UdgqndnU08HApuJvj7G9+37pSk2qKw798lqSx4IwLnCtMq0+8 TkXvWrEbj7CjCiRkwb2v/+BOnF7r+rUlX9uv1lPTUUsOZPXFTGnG5zmee9cG/hltz0rB Fe0Q== 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=as8w1tKdJo2qssZEBzcNoilzPXvnAn0pjZQTZu4Iw0k=; b=jeyzZEN9f0mgomd9RlfeaVWvz7VdnmGxIIwJ9BJWqd+JOWIQ5kg7U3TVS05Ajdg9/r ClgfIy3F+ITt9wH0ljilv9Jz732pQJSDIcRXqcs0giWTFnRx8+PxvkK5sGDhsLAJv3ZQ XVsUE9RDv0ExMfQ9CMBOQvcNuGXBKqsc/FG4xgnbKv+dlNQJEvcsLDnz8KYvKYhRHMNy 9pPgSklRrSNT2rQqTMwXNh4qYNKFz/ZiOW/K0bTcBQIsNH1G7jHepPhBPNIipXan7gwR WAud967NP7+Bi7KzE/hkc7Retn/mGkGHCC+KgUnjd8eY8boO/kAOtrdmSsvAYtFXWjKp 7z8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=jcHgu5Hr; 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 n8-20020a170903110800b001a52c82907bsi15247988plh.191.2023.04.18.09.45.00; Tue, 18 Apr 2023 09:45:15 -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=jcHgu5Hr; 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 S232602AbjDRQoV (ORCPT + 99 others); Tue, 18 Apr 2023 12:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjDRQoQ (ORCPT ); Tue, 18 Apr 2023 12:44:16 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD941726; Tue, 18 Apr 2023 09:44:15 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 0113DCA68E; Tue, 18 Apr 2023 16:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836223; bh=u1CBeB9oqqUFBQOBq+X+7/lai41Mv4Q6YL0vIaDk/lA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=jcHgu5Hrt0HE6b4Aj5/JAfYiqHx5O2b15i5QpJK8gV4/A+rbEgsWtDWz6JxdCdrJ9 F0W8b8FwifLoTpKbv9D4sb3N2A8leU4FoJjlCoK8Y/dK0UfjcfUEgsBVKNd0VXK9Xz SLtK6D3KQJQKrQmvkgE6nHcqCbKfl2ZMyVQgZZYw= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:19 +0200 Subject: [PATCH v2 3/8] dt-bindings: leds: qcom-lpg: Add compatible for PMI632 LPG block MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-3-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=846; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=u1CBeB9oqqUFBQOBq+X+7/lai41Mv4Q6YL0vIaDk/lA=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi4kAjUlTtFxKwJrfVRmOrub1QmOv1sjYvuO 6UdtvwzY/qJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IuAAKCRBy2EO4nU3X VnPzEACHYYswejDMm0bO7D5u0DNUD/yxIdqtQnb3/jNBe5zGUvaivZL1BoEbQBRGM/IlrbhEqaC d3CzlCgOwDUxfcnDlRMbCnyH+lBWraP0i6WLmsO/V4y5HbK1SuKXilK73+y1h820StMNel1mUKu ljR/CF/XNsfFUBTDAjOvh04zGBFSMxmttb5FF8OhMYRuahViJN6uQIcov5j9ffmiFxkM7USCb0f R/Yrcgb8syGhVQXDH80JIyEpIkjEVe0HbJGyxPP3vZU+fobaye2JvdzgboN22Dxu5sst+iC+0fu TTy8Pg1OWBhRTXnGgESgu8hGYt0VGtgp8isiTyPzyo7YEeRQF36viNepbBxqeRgXpfnuw5e7Z/1 TRcnmpZQMS3NSDf7xL2tNQwM1sILnNjrEPeq+UbEgnsYCvOgXCQNSQGOqJzCC1Uovj+ZoGHtJKB uAVeWKT+Od8nRvzuAL3gV3DEMtbGfEnEHJwek5KCWsuVhEl2VBPTXdVrdCK0MQvPD72XuW3r/AP WUSBhhomZlF6LDred2obnGTd3yndwRVrdmu5c4nn7YbRS+r58/TzP/SUO3OK0BNom1FJsY9p2Bi qKuLKmhefn20NhkOAtZvahewrP+gdGDY8zgZqOnpBPEZbZP+OZuBKcB3p9AU8AG+7cBflLkr04S AJoA15L3gy/gY7w== 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?1763533196907849287?= X-GMAIL-MSGID: =?utf-8?q?1763533196907849287?= Document the availability of an LPG configuration for the PMI632 PMIC in the Qualcomm Light Pulse Generator driver. Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 1df837798249..2e4426894bed 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -25,6 +25,7 @@ properties: - qcom,pm8941-lpg - qcom,pm8994-lpg - qcom,pmc8180c-lpg + - qcom,pmi632-lpg - qcom,pmi8994-lpg - qcom,pmi8998-lpg From patchwork Tue Apr 18 16:43: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: 84964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2993821vqo; Tue, 18 Apr 2023 09:52:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bJZQKUYjlryJMtalDlg8YPIXzEkFgNtH1VkWP+NgVCB6gZLUZKz3i6NDiZrlxpeptcQsk3 X-Received: by 2002:a05:6a00:1583:b0:63d:2990:e05 with SMTP id u3-20020a056a00158300b0063d29900e05mr414237pfk.20.1681836773820; Tue, 18 Apr 2023 09:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836773; cv=none; d=google.com; s=arc-20160816; b=qHhkljdTcuKcRY9YhjpUKAykW+AmPwxydDZpMH8n2bgWBLhDXjLczeoJWt5y0CUWwe ySjX8fSZtbSSYdOnjhw54u8zu9Q+tBzUhCv5KTwPtaoAfmCRaFNKVqw+44+AIxQK7wRK stmdGQgn4/b8NoTX4VtporXiea3zNSiTWKJ6OSbQ4BYfWnaUt0agQjTcT9cK5mEcZlSH 0fDLSc1fs/7DvrwALuqXBNtMahsmEuIaUf3yW7J3VJNbNYLZKosQxXkIrC4C3z21s80E Nw7rz67kq39nAoIP68RAzxBWS9gnmMTRfdTkrJnxGFDwJ8xYfWF3liQ/bA8Vm5+iIznn oW0Q== 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=O7pWoWfzEWW5yapiELdQQ3I3yWXNFvvynjND/ZJjvrw=; b=Kak2SJKh7i+AOsFIs4jcpe5VwPR2GpDO9s9fUoFJDJxrzKcfpwR6vs7D/vudpl1Yq/ mfByvhEuLSifPWxnFkDtDdD9b7VOkvuvVO8O0aBJ1y6ftL8hlW/rN7G0t8XPNJK0w/Cg EhGTLKD9YfF3msbKnLRyqHdvCNlLJ2IOCsuDkmxk7E5e3JvKj6nNvNQl6Lc49j1VAhMw 3fCEgfqFImWocF9bv7MpxTfHC7xiJWHUWREvvWJKVkBr/2a8eBHPnNo58Jqk7quipnPC bCLUJwmnRXrS6GteWqHtXTzynaUnTq12QibtCoc/YHAKyzuAMGrKWa7SOSoRUZ2Ls7rr L84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=x7CkWvNL; 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 d137-20020a621d8f000000b0062dd1d1c48csi13966069pfd.377.2023.04.18.09.52.38; Tue, 18 Apr 2023 09:52:53 -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=x7CkWvNL; 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 S232605AbjDRQoZ (ORCPT + 99 others); Tue, 18 Apr 2023 12:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232611AbjDRQoR (ORCPT ); Tue, 18 Apr 2023 12:44:17 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 885FB46B9; Tue, 18 Apr 2023 09:44:15 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id C2B92CA700; Tue, 18 Apr 2023 16:43:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836224; bh=EZNvsJaGqI15hVmiKHgA/+7Bi1oXLhHkx00K1B0Jbu0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=x7CkWvNLVXqQP/qw7aGXRR6b5DyDgEIMGnw3chQf9kh2PBNObaGg6WwPfdTbuNNDQ DqwfyjR3JawYPHmu2WfV3qxRKF+QzvA8IHWzA6Xa11vNCkJdJA3uyKxJ4gYlJOvZRC 8vVXMBgKmOCU6hBrdkDFEU61Jk9VSiICDJzZ+a7o= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:20 +0200 Subject: [PATCH v2 4/8] leds: qcom-lpg: Add support for PMI632 LPG MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-4-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1865; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=EZNvsJaGqI15hVmiKHgA/+7Bi1oXLhHkx00K1B0Jbu0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi5PovavgvOe36uGVHJ9jKT8cH/ZKTKo1/kQ pVLfgx/5H2JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IuQAKCRBy2EO4nU3X Vvn4EADV1UQr1t6ADhJU+xkF790x06twg+ISisFYA5kPrZRT+cArRKWl80LMlxLpYJurJ6ZqmN0 bZ82Ej7RgNGhdQPCxzHrnQkMo1GCAnUuxfjPJOnf+AkHeQyRR/yThzvOLkW2btT3KEGPkihhvVA yvl6VmSGpkNiwLKAnws5Niqnq1I1wL7jGo+QRuOhSk7FlCgUAckdP4aeFqX3u3qx3zNj7BAkqp/ DcjgJx0cu/m3emNy+JKrZbZNuVwOZ5EIsYpy0niCtcjho5kyoiYIqCQfWR11K1Wm+urPbGSm9G2 tq/TrNJSgUUK3fawqte11AQWUqBpKWocITGCofrOS15kxwVnniMWYPZ45cNTd5M8o1SBaR+KqV/ wJ7WdfgABIRpqco6zTMr5yLzQW4Ka7S/ywNKoOjIv962gZv6YZC4JohqO0b06LjyEuCeHkYiLWd s0fMmvXY7CyafClWWmKltPnrJlpbBwMLd/HBpmgdag2+OYN8iDtu3cOjQ27ubMeeHCIUgbqr4ia HqdVbb6ANHlIysbGik39Qr2kP0aVUlYbEcG9/ChLV4SHe2bbq5l/RMQnjZnTKHS7+nYVXesqDQc L1r7pVT0CdmgVL7YEheQdm9L9c8AecXHL+YMvkjFCGfWe2+hvmfShf3ZiYdqQVPWb+FqXbUTHX7 ZaFEBx5Wg/UIetg== 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?1763533676538599039?= X-GMAIL-MSGID: =?utf-8?q?1763533676538599039?= The PMI632 PMIC contains 5 PWM channels, 3 of which can be used for LEDs. For the LED pattern it doesn't have LUT like other PMICs but uses SDAM instead. This is not currently implemented in the driver but since LPG works fine without it, add support for the PMIC now. Acked-by: Pavel Machek Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- drivers/leds/rgb/leds-qcom-lpg.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 67f48f222109..51763ecb8c1e 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1353,6 +1353,20 @@ static const struct lpg_data pm8994_lpg_data = { }, }; +/* PMI632 uses SDAM instead of LUT for pattern */ +static const struct lpg_data pmi632_lpg_data = { + .triled_base = 0xd000, + + .num_channels = 5, + .channels = (const struct lpg_channel_data[]) { + { .base = 0xb300, .triled_mask = BIT(7) }, + { .base = 0xb400, .triled_mask = BIT(6) }, + { .base = 0xb500, .triled_mask = BIT(5) }, + { .base = 0xb600 }, + { .base = 0xb700 }, + }, +}; + static const struct lpg_data pmi8994_lpg_data = { .lut_base = 0xb000, .lut_size = 24, @@ -1436,6 +1450,7 @@ static const struct of_device_id lpg_of_table[] = { { .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data }, { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data }, + { .compatible = "qcom,pmi632-lpg", .data = &pmi632_lpg_data }, { .compatible = "qcom,pmi8994-lpg", .data = &pmi8994_lpg_data }, { .compatible = "qcom,pmi8998-lpg", .data = &pmi8998_lpg_data }, { .compatible = "qcom,pmc8180c-lpg", .data = &pm8150l_lpg_data }, From patchwork Tue Apr 18 16:43: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: 84969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2995326vqo; Tue, 18 Apr 2023 09:55:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bFKRGZtiFIvbe017H89Xnm0LTL3JZ8z7pOrzUuByfnUvHrNjgta3zUFnUmn1K7AtqMTTcN X-Received: by 2002:a17:902:d492:b0:1a6:68fe:2ea2 with SMTP id c18-20020a170902d49200b001a668fe2ea2mr3184547plg.2.1681836949999; Tue, 18 Apr 2023 09:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836949; cv=none; d=google.com; s=arc-20160816; b=E5nJkF3ChmmXQ/nKbTDQxt83grRJFIpAF0Ajo+PHLRY41scqhs8Vyej0vndDtzzrA/ ss2rNHJRLlUq44KSFUXrWy0b6wzLzDHJ8tNF6DcT08NWkkRovBSwxrnDWurpCa48P0Lb mzFUvoLhWdSBtykPtR8ZsuikT3lVH0Pvp/p8MbmIMK3vPbrz2WLymujTQjNunZ7UFzg2 izcygPkIh75/dxO/PkeRVoZt1sPXrKSw4Oyyp56TUkBs7vE+sEUVbFpFhIqDHF/2iJot KmMqoxL7Dj4jyZzs+GWvfM7sfejkw8XhW824F5o1pZKZ5r9LwaIR0ltKwJq1u8MfanO9 5cJg== 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=+1eGJ5Aywj32nGPhPm113QVLiVcBkFy21GAplSMgbRE=; b=SiETj7bPB3xgf61ePfzXAi1+JnJ55S7RJrRRZr0arAbyfrjABb85HapgKgn5PZPh4k yMJd1OCA1OWN1cvgzvSMosltONTUXiXd0AiXkQgVx5yFDDujralAgjvd7Mw/76H7i5cS YSDonP7VPpCKOkWJYpa40Jr6B6pScFUNXfUfIN/QOqM8NDRlzMWGXskkPSm+y4grEa4o oCiqIvc4yjekoupYf/Esu2Lr2OLChq3jIaZAylDmfVphOugYHLL0NZgquu85D0nsjBaD aypkq6u+vNQ3mKYAxugkE9FIrBSfpPsQJOiOF2hj8knZCdEyjmqKFyVe3BAYNHj7o3Js fQ1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=PJqMvZiw; 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 iz1-20020a170902ef8100b001a6e58380f6si4081055plb.523.2023.04.18.09.55.34; Tue, 18 Apr 2023 09:55: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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=PJqMvZiw; 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 S232661AbjDRQob (ORCPT + 99 others); Tue, 18 Apr 2023 12:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbjDRQoS (ORCPT ); Tue, 18 Apr 2023 12:44:18 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9210061BA; Tue, 18 Apr 2023 09:44:16 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 1796FCAB0E; Tue, 18 Apr 2023 16:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836224; bh=XV03liIFdzm84RLgEGuEQsAaPXKV3OiKBtrrr/U4Fxs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=PJqMvZiw2T15SsZgBT6ZQuOAb0jXCbhM8lZwipXMjHnUT992YnCreGU852wTZK1Zx oKMf1hxmV8SCr+D/1V9436PeCP2GtXQg7AQgurMYvs0FBP2bZ7Js23T7Z+SlhnClNG /z5jtxjoUP8Ys+iS+4dkcVXcrEMeo/MjS0j0WG8c= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:21 +0200 Subject: [PATCH v2 5/8] dt-bindings: mfd: qcom-spmi-pmic: Add PMI632 compatible MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-5-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=858; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=XV03liIFdzm84RLgEGuEQsAaPXKV3OiKBtrrr/U4Fxs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi61IDWXg7B/k3RdNQJUEt9k5IZsJ6QSILTI HIUJ9eAAeCJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IugAKCRBy2EO4nU3X VkjKEACJ7n6LVGtIzMkS5SM6uS2zZgTVbhzsNcQdiIbgWQh2EJjXeg+ZMbTghPxC4ekW+hLjDkO MiUrjqt1AdmxE/YAhllWZVYUm20a40dsfDjbGXPICo7wRC0O7fIhbWvfPaFkFtE3Frv5KoeJ+Ln D+4Du88rQSjhBvpVt7BN7hN5Q7+/DN9BZyhmYyVVXs9uqCSL99e4po/WLePo/L9bThK1pgUUnLk t5KFUxGGuhkcVF580gdAOdmiMCPPfJP9ghKFueQXq6rVqyk7lkCRmnZ+46TVEWIPGDy30I/GFHG jcV00tIb3Jvw73yZL/PpKCXHN0FQHkorMEKKiIkK3xYKuj+/EZ6Em3IziebFzTW6CxgK0uaGClO OWRM6tWVNa6l8MNQUWrww9iWZQSNVtgbGGGkQO9cGrD1pQwhg51UrHgqPliq0/nEhQ5PasSH8Bg M3NchvBVxdEM+8RatP20pibgw97Jr81pgNJ/fi4yyrQQlQu0gO0qlw8RxFMtzLyDxGVFdKTSBI/ DiKiPpeBOhAWWKgNJuLBisSXGWJbqt5ht7mMkQSPtbwPIpGpriLRf5VWdEBecz7bmJab6zkOIQ1 py61suEzWDmJeoywLL2Wxe/yPRZA7+N+DR8VNb8v7JzD3iO/g8XD3jfYdUPD+vemJzkQGMW2ihp h9iaMsCugLeyVCw== 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?1763533861287652256?= X-GMAIL-MSGID: =?utf-8?q?1763533861287652256?= Document support for the pmi632, often found with the sdm632 SoC. Acked-by: Pavel Machek Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 84620ebc1efe..09e7195c622b 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -71,6 +71,7 @@ properties: - qcom,pm8998 - qcom,pma8084 - qcom,pmd9635 + - qcom,pmi632 - qcom,pmi8950 - qcom,pmi8962 - qcom,pmi8994 From patchwork Tue Apr 18 16:43: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: 84968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2995275vqo; Tue, 18 Apr 2023 09:55:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2St9Df1G9LbK71Bax65Q20qeVvFPCerg899cf9S7heWJ/GAkCwRu5XuehutYaFTdWvmnw X-Received: by 2002:a05:6a20:54a8:b0:ee:f5a4:c072 with SMTP id i40-20020a056a2054a800b000eef5a4c072mr355637pzk.46.1681836944100; Tue, 18 Apr 2023 09:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836944; cv=none; d=google.com; s=arc-20160816; b=Ys2QeuCy3LODo6NJi3vzx00tdeUpEe7K4+zsfnZblAEYVibi5Ca7wINz5fwpJI0i4P l9Zmw5dqu3P53FCxgw7gjXdK+DiNQs0GvDIzi+5pxOCEMChSUln4OhXALgsBMotJG6yK ZSbOZZz2bfaBJHmKfSD6gQPDdTybPEBR6tV/8rhaaBonCbaQBhYpsJ2uW6Are5w8MwZG U4fNV8CW2Ec9JBjyaVPGLu0dIAyBgUDQcoxp0VmG0r1fdTGdNrhO7R/fTR2bMty9Zhxm 7z2ru66/xoTYUF7TapXqK61k5w9IzgTzXdMXR9L17aQopeilRO68e1Y3Twu7Do5QX4BS gtTQ== 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=C2Lcndscqwvp+oxnfSLChPUjFXcs674cKpEIOtAlGvo=; b=UdFsCnLT1HTSkaylVXjegCjqKPMCkMuPzVcg8AbpQ0yF2m6zXC2HtEgRkpZIWL0xp/ Z1SWzwR2nESkPQeduReFiBuUyEMASeI6Zk4sI/9+X21lOipFg1VM4kOXzAhYNZE+1/Wf +sUFuJrIX5AFX2WqR/EjNrktSzGrr7F3oT3So3+LYsSOu5B1BGa69Fv7nCKtOXgl9Cev nNKDU45UIuU3zXQIcXdHcHrkLHq4CQVtMwEr0pEeVzW/Y0CdTHbfP6cXW7n1VcDMe2BT qu2Kdj+MSmcbXXOy+VR0t9aGklZZt0nOCvaH9nY9nV9zpVm+cz3wwwnNTpfUC2PW81WA 0n4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=iexmz1ti; 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 q4-20020a6557c4000000b00513f15fed4fsi14317572pgr.590.2023.04.18.09.55.28; Tue, 18 Apr 2023 09:55:44 -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=iexmz1ti; 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 S232647AbjDRQo3 (ORCPT + 99 others); Tue, 18 Apr 2023 12:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbjDRQoS (ORCPT ); Tue, 18 Apr 2023 12:44:18 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9361576A5; Tue, 18 Apr 2023 09:44:16 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 5F7A2CABF0; Tue, 18 Apr 2023 16:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836224; bh=7RMg8Ln4xlJYycH7FzafrbQEIQWc5NsSasFf9SDAdbY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=iexmz1ti7KiMXibcdUpC/wNp0lkXgjASLevrKJYRLCuvpjZ7QaaE3p4LvszUVVZQh fnZyKzwy3o2m5uUf6bOMmdosn4XBvY6Vk+XALQwipCOZ2/1ITyrkpTAvoW0qhoxQRZ 034c+02vyr5HX/Kf58dDdHAf63CIZbjNqaqeV2A4= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:22 +0200 Subject: [PATCH v2 6/8] arm64: dts: qcom: Add PMI632 PMIC MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-6-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4010; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=7RMg8Ln4xlJYycH7FzafrbQEIQWc5NsSasFf9SDAdbY=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi7RiH+EY/NY7YFNyVd9jqt7mYEFz7n3r2yy v6m6z64vE6JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IuwAKCRBy2EO4nU3X Vs56D/4sILDGmfuHChQKSlj0ZLJTkl7e/79xXBfysznwQXYYUzGn+gLJL2L6g/7Wj6eFcaa40bg FsHNx99aCngepOd3aNTErfEyAz7fosay+1NfOa+vmb5BtyojlIdHyRwGF8ulYwFSF/7XPPx154m SdXrKaRk4BjqYUsui5XAvNXpd6EGzfGqZ7KU14TLjtlQNy9c5LiYNegFuTSgFWIBB+td+bmtHK4 NkM755oQx0TvY59LK7/crf7Bli2wYWY0+ayT/NZU/u0svD0vrZ2OZzkSIcKrShYhEBdd9cVsuIo vbnkYPhSPygjR8OqrL3ZQAwdazMvabDR1avG7rGNEYUhEHmgEMysXZ/Y+D0GwiGgUcNleq/Neuc YurPlXzqqZs7EB6RbMJo9aP9uk6Jr1WjexRw6fGWfMz/qwQajApHWGxsseItWJzz/+/+tAQjVXg NFJZO8fH7Vof1qtfI4JerermyYwGY2nRrObFwUOmNwNfuWQbZdzp9aQqbThSG+V6fdJrQW1b7Hq ll9ZqujYYiXjBNAIiiRypWVmfygJcFRL4/aef37vD9RW1e9sE1o6BXOAuov4iAyhEyFKJQPJwI2 aDb7EDp+l7LNedevFXSuBkxdFPLZ/60M9YK5kxf4rh8bpFPEUCRad/XWIy36NoyJ2auMLwHsrbz 33gJQ9HuR27+pkg== 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?1763533855302172443?= X-GMAIL-MSGID: =?utf-8?q?1763533855302172443?= The PMI632, commonly found on SoCs with SDM632 has various standard functions like ADC, GPIOs, LPG and more. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmi632.dtsi | 165 +++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi632.dtsi b/arch/arm64/boot/dts/qcom/pmi632.dtsi new file mode 100644 index 000000000000..4eb79e0ce40a --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmi632.dtsi @@ -0,0 +1,165 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (C) 2023 Luca Weiss + */ + +#include +#include +#include + +/ { + thermal-zones { + pmi632-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmi632_temp>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + + trip2 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + +&spmi_bus { + pmic@2 { + compatible = "qcom,pmi632", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmi632_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pmi632_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + + channel@0 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "ref_gnd"; + }; + + channel@1 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "vref_1p25"; + }; + + channel@6 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "die_temp"; + }; + + channel@7 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "usb_in_i_uv"; + }; + + channel@8 { + reg = ; + qcom,pre-scaling = <1 16>; + label = "usb_in_v_div_16"; + }; + + channel@9 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "chg_temp"; + }; + + channel@4b { + reg = ; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + qcom,ratiometric; + label = "bat_id"; + }; + + channel@83 { + reg = ; + qcom,pre-scaling = <1 3>; + label = "vph_pwr"; + }; + + channel@84 { + reg = ; + qcom,pre-scaling = <1 3>; + label = "vbat_sns"; + }; + }; + + pmi632_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + pmi632_sdam_7: nvram@b600 { + compatible = "qcom,spmi-sdam"; + reg = <0xb600>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xb600 0x100>; + }; + + pmi632_gpios: gpio@c000 { + compatible = "qcom,pmi632-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pmi632_gpios 0 0 8>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@3 { + compatible = "qcom,pmi632", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmi632_lpg: pwm { + compatible = "qcom,pmi632-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + }; +}; From patchwork Tue Apr 18 16:43:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 84959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2989324vqo; Tue, 18 Apr 2023 09:45:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZliDL2KkidO7+pfCwjAyc0MuxNVfRGqHEz3yePCnU89sMXzcA6U3Z3IdA+aAf2mri3aml3 X-Received: by 2002:a05:6a20:1590:b0:f0:1b0b:acf7 with SMTP id h16-20020a056a20159000b000f01b0bacf7mr554847pzj.2.1681836307419; Tue, 18 Apr 2023 09:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836307; cv=none; d=google.com; s=arc-20160816; b=XYerdJ2tPbFLgl52WaR6xJOLaUt+YL5lGVUgRan7RzSL2sap7JA/9Un6ljh0CfSU9d qadGwn+zf+M8NC9A1GiXfnBw1TJZIkj6suZyKeHB0PYdFaPSwbOtmw5DLYCQoGgCFjwp /l4lIdG6Y6zVoBCBJhONSG0brh1M+aLkiS4H/9qg182tLgAFXWSAfe+6/v0+C107ijn6 6PGZS17R4ulsy0FRAQUkP6Bd/hutSzBYBC+914SzM3J/RiYo9Y2PgW03lkXae6/ye2Bm ygxuOlSJHxEeO93DduYMZC+gQjhsgXJHrHOKtLJxCWtyJyAv0JpDnJMgEgyxKE8Lbf/x nN/A== 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=UEdmha3uSo9Ftj2x1vbRaMyUjT+dbYweOUlZGyMqaqo=; b=itW/maLT5FrVqIm7l5JxlKb5+2XjzjUQAHRJWjQ9REBjuXZ5nKQQrC2c1ZpIrEP9FA 67+KeGfSx+Q1+v0tNBOVAsYsg7ORns2iQsXIczt/YtcYuYJtj1WSn4KeHYUp0tbb11sV p4+Xjbl65FtiABad92Yizv8CArmgneoh4aBKxgQghDur/Z0ywuFGCqoi5HzAasN2/fVR MkIMtobTZznPxIqtiAKeEljo5chQBvcrGIFs0MQWqwAqv4DSVjjF4Qb4+hV3FZLSN7DP 0nI46kCVIUMjvDyPZxjxkncxvfloyLcoFIejFd1qd8ErfXqxI/JTxc0z6gusPEtY/B0z gElg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=ZnDSLBBF; 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 e8-20020a630f08000000b00502f4fd0c16si14207630pgl.653.2023.04.18.09.44.51; Tue, 18 Apr 2023 09:45: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=ZnDSLBBF; 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 S232603AbjDRQn4 (ORCPT + 99 others); Tue, 18 Apr 2023 12:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232566AbjDRQnt (ORCPT ); Tue, 18 Apr 2023 12:43:49 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0129173F; Tue, 18 Apr 2023 09:43:46 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id AAF81CB3AD; Tue, 18 Apr 2023 16:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836224; bh=w9CMcpt8FL5D9w8gvtXVGIn+tTYwLetgcp8M0Diuyuc=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ZnDSLBBFeLdQ0Gm7dpIBk2y1Bt1WIOZsPvLP3SvHAMWXzOfgOhR/iUJxVdqrnUoWv omVXdNbDtxBqnS8Dray8d+uh4KOSWP6cc9A1BETDpEMVFe38meEhwwxa6sbcOF36KN 9v8ILuCt60xYjHmNNQ7T+V3vfNLUFJPhR0fMwa/A= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:23 +0200 Subject: [PATCH v2 7/8] arm64: dts: qcom: sdm632-fairphone-fp3: Add notification LED MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-7-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1288; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=w9CMcpt8FL5D9w8gvtXVGIn+tTYwLetgcp8M0Diuyuc=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi8vYlpY7wKs390Rhf/aagKnfQMiUzXfdHHy 7gQbQcBUF6JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IvAAKCRBy2EO4nU3X VhIOD/9iI3TQwsiXjbb7iG6g7WlZ5/5asS7XXLBR4yCppvJErjPP6Rt84vrpk95AvNthJlf4mM0 BshKczxyS7Fl5mJY/IYwVtvglJcdpiXhKhQFoOTlz1gR2qJCmyJrf0N1Ijlc1urgG2HdH4g+OLl zW4p7rfrfXxo9n8oWMUlpUmCf2dkbw6hq+1KqY92WGIkVzZlrSsoq8Uy38VUNrStzW2ZY3qAmQp dKd4omuTGDd58I2jVA1zfsGEPa8VrwRGaX/BpmxNmrNLtVMBi1wH+T53wiZ/dEnhMB/3EuMhDT7 HpbnNeL6JARNTl9uNvJuz7DtTPY2CG0jW6skgUioeClH7Rfyccryh+HWjKAtnoWkgeATPGu5Xbj ZaE8s2DUurjnhgGbJk/KurFSVSnI3AekqP0TzNYhFOSwyjSyfhRhsEFz71nnpksFjVBCr5E5z+R 1wwHKu+sLJroOZw+RM96RTRG18UAi8Q8ophnPYLni1+jeQWK9VNdGIEoo2+8uiJBaidpkz2svjY fk0LTzPnFcKRaBqO7phSPF976KSq4Dh9vVc1/tOIw4w+0T9qglWC5wiSbLBSsTyuW0H3V8IOw2q 1K8Wmym+/7nJTjyWeQPWL25bjyEZmiimMM/h2wZAqObk0O6bcjYpAFe8sFly4j9zIomspgt3N6d /TM9W1RDCD3OhxA== 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?1763533187793319956?= X-GMAIL-MSGID: =?utf-8?q?1763533187793319956?= The phone features a notification LED connected to the pmi632. Configure the RGB led found on it. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts index 70e683b7e4fc..301eca9a4f31 100644 --- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts +++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts @@ -4,8 +4,10 @@ */ /dts-v1/; +#include #include "sdm632.dtsi" #include "pm8953.dtsi" +#include "pmi632.dtsi" / { model = "Fairphone 3"; @@ -83,6 +85,33 @@ &pm8953_resin { linux,code = ; }; +&pmi632_lpg { + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + &sdhc_1 { status = "okay"; vmmc-supply = <&pm8953_l8>; From patchwork Tue Apr 18 16:43:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 84958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2989320vqo; Tue, 18 Apr 2023 09:45:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZeqmHFUNns6s4ElgqpxPfB87EHX/TW3e+WpVz+dO5/vpcDgS4eJ/Fct215l0m1j59zO1FN X-Received: by 2002:a17:902:b7c4:b0:1a6:d763:3736 with SMTP id v4-20020a170902b7c400b001a6d7633736mr2169803plz.58.1681836306926; Tue, 18 Apr 2023 09:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836306; cv=none; d=google.com; s=arc-20160816; b=TeWfdQmZmbZDP5p8d68NpfDhHTJH8XLl84JkIOZN/lGAndAAemA4hbP28OB85zslZY N1vsP82lcRxK0yNK3nVrFJtADYJ6XB58VUuvMzTq7oETP+KTns9ZfUxgpfbDKT8jbvAS yrdjleS23swwdpIpGyz64fZATgwLiCSYdaKQsFzSPPb8uYJcd4k9VGjc4OKP1bJMeWPn d/1zMj5YiGFSwGdRmHoAIoxmhtM7AdnHqfGiyqyq+nk62ddRLRTHZV1WYTtOyAPFXUEr L5EyiKosOshFppEVR7g50A2mZGbjPMyEoiNDWjQ3IUsz9oyn8R0rDhRL3yWOtCvv2bXH TXxw== 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=ZyE3fi1DCH2FziW10FNjPnhBgYLZK8uaSEAwz7i2TI8=; b=xkVShrGmAzkoAXjnHuZAug7XKnInSQO21oYMJlRpRIOj6SDei0CqBh41WkupgIzBdM 2GwxWvvvKK6BaajiKpaXr/AnjGgDYnftbtN+Hpgu9OxUTDfoaSyaIRSvhGnQ0h+psnWj H4wd8GBRjm/SxzodI3ur1LkXgMug60uqf7vIfK/6yFdmNmEeSO0TXYKn5JYWNnYE9qGD 76scu5PGeXEOZM25LjdGyt30DdfO9zuijb5dDvK18f7ZTKhZSZ1eS16Y2OvnjH4WtQTZ No5f37AqePieUPrXkdd1HJvEGiSDwHIWalSL8ijiGQ+WQOdXSZ/CQ3eiVKgWl/pUTWcj QZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=ItGVjgWc; 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 b18-20020a170902d51200b001a60e787d36si1086742plg.266.2023.04.18.09.44.51; Tue, 18 Apr 2023 09:45:06 -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=ItGVjgWc; 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 S232597AbjDRQny (ORCPT + 99 others); Tue, 18 Apr 2023 12:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbjDRQnt (ORCPT ); Tue, 18 Apr 2023 12:43:49 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C414740EE; Tue, 18 Apr 2023 09:43:46 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id F202ECB3CB; Tue, 18 Apr 2023 16:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681836225; bh=vIuKvsLduKbdJuLqS3gE6yL7XCUiBq1e88KkTbfWTJA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ItGVjgWcNdo/Uswib8zZNt18Zfz4kbVzUdCqBxQ5VGD5vchb9bo68cvDKGviLBb3u H2BX/Z6zBC524zyumfeDRa9e7Roqht+9iRXI8zfkmXi9FCBI0QYf4E83Usn0G6hO/d zu5FkfnhmbS+6mjGkAG92V1oCjiqJWI/4CjASH/s= From: Luca Weiss Date: Tue, 18 Apr 2023 18:43:24 +0200 Subject: [PATCH v2 8/8] Documentation: leds: Add "rgb:status" path MIME-Version: 1.0 Message-Id: <20230414-pmi632-v2-8-98bafa909c36@z3ntu.xyz> References: <20230414-pmi632-v2-0-98bafa909c36@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v2-0-98bafa909c36@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 , Pavel Machek , Lee Jones , Jonathan Cameron , Lars-Peter Clausen , Stephen Boyd , Jonathan Corbet Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=728; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=vIuKvsLduKbdJuLqS3gE6yL7XCUiBq1e88KkTbfWTJA=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkPsi9m5afxit5T1vzibsBn+zy17heWoOlFzh0L dsKpRleV7eJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZD7IvQAKCRBy2EO4nU3X Vr2qD/9mYq9OTIzbUKwzqEA/BbJJX5bd0Oe7VKDxIfeNJ40qCYV//lXBjQIJamulELHCBuS0HtO jHDFmjksMA3gg1I+A7QmpTLn9TQY5AdnR5Oo+1XRd5O6135LfzAe/AGUaNdTOnzFK/opBAjyXH8 EY3tBL3M9Rb1nHaa/i4AGL0Md1iEaUs58Z5euTzf1Rp4XNy/VcOtoNRkSKOvDz+JGKn4RSVT/rh 2PkgVswxeQVsp5jLe/hha1BdKdsuzn13RwkRt8i8IjIFCVdtNODlo2dVc+KqafCIWBBf1QsW0dP gPtDlMVAdUX9KFUy8HbIkFxqwMHspc+fRtbg5G1Oxlo1cx/qCjiraYXLw2E8NSznd41ICyglBYa S8rRRLIQyys/1IgsF8o8qNtB/5BcZV4TVCNo5DjMkXSuDNZ/QfyDIcI5W8Lh5HMSn3wrBDPsfAE 1dz3tS8V5pgXgXiq0t0x7ZFMAqZUKXWLqZt/uGAnORnSDRzhzciiCm6QYqLq+AbKy7bxVhagyBu /Mt4FH78hED1WjSTe2tbCQRSeQ5fUqJB2pWhbC6uenH6PaI6XMMib/ev5cLVaR+cZPskqYBQRc8 e5wpPamgx7kwA3bP+NJ6Uw82+dC00rCSXhMB0nGzCSeNgc4FNKE3Us4DFdMdQjErFr6C8zj9+WD tn5NejdQLbgjE1w== 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?1763533187267556220?= X-GMAIL-MSGID: =?utf-8?q?1763533187267556220?= The path /sys/class/leds/rgb:status is already widely used with the qcom-lpg driver and others. Document it. Signed-off-by: Luca Weiss --- Documentation/leds/well-known-leds.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/leds/well-known-leds.txt b/Documentation/leds/well-known-leds.txt index 2160382c86be..439d4dac4472 100644 --- a/Documentation/leds/well-known-leds.txt +++ b/Documentation/leds/well-known-leds.txt @@ -58,6 +58,7 @@ LEDs on notebook body, indicating that sound input / output is muted. * System notification +Good: "rgb:status" Legacy: "status-led:{red,green,blue}" (Motorola Droid 4) Legacy: "lp5523:{r,g,b}" (Nokia N900)