From patchwork Thu May 18 06:13:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 95664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp273078vqo; Wed, 17 May 2023 23:17:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4j5yYqZLKyY78U3o7q3Gv/evagjAXMM/QF7d9FhCEwUU2u7C/HanBtSSxRzkI3/0TJf+5r X-Received: by 2002:a05:6a00:2d08:b0:640:defd:a6d5 with SMTP id fa8-20020a056a002d0800b00640defda6d5mr4013596pfb.12.1684390645172; Wed, 17 May 2023 23:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684390645; cv=none; d=google.com; s=arc-20160816; b=U+JYqmetUvYsSo53M6PXhYKhaseSh1QmKGZ/mYv8EI0LpaVi7NL1QJLE7Npzvh3xl6 mlNsZLmZ3N/Sya5C4UkiEy7DUCPzgYdUEu5R8Zbb3XgfFeqx1hE3iYBMc6QOfVpSV+wm KfHEAoYYGHi62meg79ZDbzu8nrn95dUu/559Xq3Cr+HyUWSkwAUdftbP2LDs+rwppbQR rYGfDlBC/25ktXUqfIrnlYgZdC+CxvXnPtI16lp66GYoRvFpAySDmjmfJBwEJzWiAt5O EW14pzzxgU8q8b6Zjj9ExTUa7WxY+hG5Czelvf0ABn3eRcrkpthAi12OSOXMwgbrSC1F 7kRw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/GLWNRVwIzHLKzbNZAD0zTmp1+3VutrdGm7bHWn/E6g=; b=eCpHZUvqaJanGqKgckpupSbkwbNz4d1VLGcqlVRGwyxMRyEWIT8WtYS884HgxU92pO HJiGhi0sh3NLp4kjU9dqj/4fCvkTWxjeVox1MZZUIKyp6wF71BEtroBBC6UF8ZN2bz2Q cfqpLQgWYwGVTDmLzpMkG5xVsbFavZxx8yqlHOrLAU0cqLcW6dCKccMY8YD9Bl0RWe0b fyrcNH3TUBa+Bqi8XTMMCHVMJrfbVlih5kKHckK7pvCN10B/LWUOD/IS9xPsNs/6H4e6 iMC4hcmkAFHnml9eQ/SWWXFo58v+4Gk7KZmlkgdRtjjTAz9LsfBw//jpZc6qdZy9CWGd ZL8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b="W/wwB22m"; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020aa7998f000000b006430bec8238si872589pfh.328.2023.05.17.23.17.10; Wed, 17 May 2023 23:17:25 -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=@dylanvanassche.be header.s=MBO0001 header.b="W/wwB22m"; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjERGOP (ORCPT + 99 others); Thu, 18 May 2023 02:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjERGOM (ORCPT ); Thu, 18 May 2023 02:14:12 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189D410C1; Wed, 17 May 2023 23:14:10 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QMKRy51Jqz9sTD; Thu, 18 May 2023 08:14:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684390446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/GLWNRVwIzHLKzbNZAD0zTmp1+3VutrdGm7bHWn/E6g=; b=W/wwB22mrS6VEJTbP+54NyJIZcIF+Zv3v4iwKaPn2xFlJMXJ1TSgVe/joHI712b9UwQSaz XPS27Fe+JcI1Bv3uOfLvNIlj9kYS1Z9V7w/GsVI4zyL6XwSQ6Gdm4V8JAnlxJl8z9/xM4O dzbqoAgS+aBFCxZDRjbFzAQ2Yqb49cxr0z8SgbTHkwjVp7/44qdxu8lEPqPt14OHSggDz0 pzKhSyqWeTtS7MYTUZ9PvCnqCApURxPrY12hXkU5CYb+2UgYh7S9cUuxj9Zp8jbBA+C2uu v93hG4TLIUdq4XH/DjVmYmRxbKF2aoCLwhyZbs4AYASZSBWgIG8lD5T97i3ZcQ== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, amartinz@shiftphones.com, Dylan Van Assche Subject: [PATCH v2 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PMI8998 Date: Thu, 18 May 2023 08:13:26 +0200 Message-Id: <20230518061328.146847-2-me@dylanvanassche.be> In-Reply-To: <20230518061328.146847-1-me@dylanvanassche.be> References: <20230518061328.146847-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4QMKRy51Jqz9sTD X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766211604976844501?= X-GMAIL-MSGID: =?utf-8?q?1766211604976844501?= Document compatible for PMI8998 Torch and Flash LED controller. Signed-off-by: Dylan Van Assche Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml index ffacf703d9f9..4b42b6950c88 100644 --- a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml +++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml @@ -26,6 +26,7 @@ properties: - qcom,pm8150c-flash-led - qcom,pm8150l-flash-led - qcom,pm8350c-flash-led + - qcom,pmi8998-flash-led - const: qcom,spmi-flash-led reg: From patchwork Thu May 18 06:13:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 95665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp273636vqo; Wed, 17 May 2023 23:18:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5v5VsvPY6X9/TCy6/vrNf4VZFi/bMJpL3pVKX16aqqJE+oV48Dmawr4skL8owylc28Qx6s X-Received: by 2002:a05:6a20:9189:b0:101:4348:3e44 with SMTP id v9-20020a056a20918900b0010143483e44mr1133755pzd.12.1684390737458; Wed, 17 May 2023 23:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684390737; cv=none; d=google.com; s=arc-20160816; b=ub17QdQKo2ynO5R3PE1Lp/d3RN3lWrLZQQmG8vrccThVsTM2mkxnE3g5zhLYezsOR7 SbViIoprv56LrXYTLU/Ph5NHB59BjiPATwPaJwRY0L3Yaorg8w14w5xAdTqaLebSxEbk QW1UW+Vu5CENxxeWxE0I7fVL/HUWcpvLD5mojD5ZFhnkW4fd4OzPRS0wmgmGDtpXXMqa K7AVdexRi+OtnsLtx0VDaXvYL/G04MTWMEEz/Rlka6/Y2+8LHLokbiECgX06pZVTvuQ+ pI6zEnldM6c+KHSWakZ28rB1MgSiapGHn3P3N/T7N9j8/dyS4i3OysqzINIY7atMkpjf uJFQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9j5G4gKyrwFGbE/WdOFHjE3lA3m+LfSpd+C5Pcu9YkM=; b=O/v7JsBbxFnyud9gzPCUTRZ24F1L3Vw+PxkurEz3vclRHCGYiNU86t9BlM680w4bk8 /0TfkxQUyOcXL9xf3mHDY/fq9q7CqGRHTj5M0tAUf5aEBC/z4qsqiXJmbcekVK6GJdTI 3jcXFT6egLL/OCB9fQUvyWYrpizHfVtpaUZmiqAbgk10qsTulgj0DyQ6bUm1YMqRWTha 1qBmcEqPIbPoeaK5aI9lzssSwMVZcWF/X75055hOBb6bFoSyDCXUMqsRxIJ8E8WBnFhJ LJKcrR7/Pvh1rPpCUOft/mJkmGc4jGl1uYlmfHwiJAVjaFewES9L4/rfisr2t6H86hca sEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=GqEoeAJD; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y184-20020a638ac1000000b0052c40a97d97si740089pgd.5.2023.05.17.23.18.40; Wed, 17 May 2023 23:18:57 -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=@dylanvanassche.be header.s=MBO0001 header.b=GqEoeAJD; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjERGOT (ORCPT + 99 others); Thu, 18 May 2023 02:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjERGON (ORCPT ); Thu, 18 May 2023 02:14:13 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17045E7D; Wed, 17 May 2023 23:14:12 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4QMKS068Hfz9sjD; Thu, 18 May 2023 08:14:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684390448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9j5G4gKyrwFGbE/WdOFHjE3lA3m+LfSpd+C5Pcu9YkM=; b=GqEoeAJDs1nKJE8po+66gsojnRDTVrt1VsDFKnHW4fZ1Yyv1tuWtj4LA9YHY3O92ZfitcR lMOv3Mx0e73PWmxtbxqLXm+gKlYc7DWfkj68frM1c5wwY96MYTgg7kCFznYB5XFtgPTy3+ AQK8vDC9WvntTm6E5k5Vu/gNJZT4uOyxV/9sMLps/gsFgGOi30u7O0PfUoycqm/qrEWvSi Il/an35BVL0bsWIord1rscgiqDGQqe1PF4+Ns1LQpnneGFVAPmS9vgUhgpsU/QoXIjlYZz oKaaeiOX2bUhagTSptuHEUu5ssgomdpY0Ke4zrzwDRGb+XYhm1u9Gs1RFzPpbw== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, amartinz@shiftphones.com, Dylan Van Assche Subject: [PATCH v2 2/3] arm64: dts: qcom: pmi8998: add flash LED controller Date: Thu, 18 May 2023 08:13:27 +0200 Message-Id: <20230518061328.146847-3-me@dylanvanassche.be> In-Reply-To: <20230518061328.146847-1-me@dylanvanassche.be> References: <20230518061328.146847-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4QMKS068Hfz9sjD X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766211702389147123?= X-GMAIL-MSGID: =?utf-8?q?1766211702389147123?= Qualcomm PMIC PMI8998 has a 3 channel flash LED driver which is used by many phones for 1 or 2 flash LEDs. Each LED can be used in flash mode or torch mode. Add the flash LED controller node to PMI8998 DTS. Signed-off-by: Dylan Van Assche Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index ffe587f281d8..08e00819b39d 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -60,6 +60,12 @@ pmi8998_lpg: pwm { status = "disabled"; }; + pmi8998_flash: led-controller@d300 { + compatible = "qcom,pmi8998-flash-led", "qcom,spmi-flash-led"; + reg = <0xd300>; + status = "disabled"; + }; + pmi8998_wled: leds@d800 { compatible = "qcom,pmi8998-wled"; reg = <0xd800>, <0xd900>; From patchwork Thu May 18 06:13:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 95666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp273637vqo; Wed, 17 May 2023 23:18:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OZmZ2pUS2o4DKNqGzDRMlFYXzlM7zVuX+0u1D7XIVxRGsS6dhXDiGS6IKYJUo8SwG71fs X-Received: by 2002:a05:6a00:ad5:b0:64d:22db:1018 with SMTP id c21-20020a056a000ad500b0064d22db1018mr304983pfl.25.1684390737450; Wed, 17 May 2023 23:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684390737; cv=none; d=google.com; s=arc-20160816; b=x6OVqtOTP7J17EeECWnvwYxKCcz//ukrqRE9S9T+gHkoJnmdFO8lgq24XRcNbdNfcR LfVRAv6nXKBYb3/4VDJWqd8TWUFWuTHIjgu+OXiIwV3L6bs8qOXdcuHci7xFOKGq1xOT VtqElxZJ1F3ZkhSNOO6r0xSN8PjB8+FlxUiA6USvGIfwtFhA2A/HBQO6huI+TQiuyf0e /FAatpSR8ENp2RfQMC+Th+BTe6zhwgf2eYA06SOQjwOpMmu5sDg/yQN7iDmHMDjJAIEY Tvbsay5bQzpy7eSV4JQ8bHZBCaEUu4FJ0WNuC7/0wKAETiIPZB7oSXQrUG0hW0Cr6i7p bBlQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7UTIS1r8RA76N/fvS6oV352acOi4bH5w5zs0dBCk1c4=; b=Mj7yR4Vu/5VvOEvn07uz2gGnVyPRB+vAZHqEVVBlVJzA6vOaF/i99k3SZu+hSIM/qm f6b2fIp43P6F+jJlNQ8y9WCBOXs9kvYg6SY+lFCfKr0dBhBzpLVANlN69UYYVxy1OOm1 6OSmi61PV2Ae7tXQVm+MfYWM6vG0luSTZmLxe587t/frIr4W4KW2274fdYjlPmNWHXAG JhSQ/9ZYv2MruOrQ9eeZ7a4vsk3+P4NlbQQu6VTjEsyYnTkOw2DiejWfDPd2mfe0nNUB I4poYcMSX0yVTIkUbvADEsnbqxigC1NocMRiCWzF3iKGu+69klPfEVk6PsSg3GVkED1z T0kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=XQU0DGjx; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a63b50a000000b005346d98e741si703981pge.50.2023.05.17.23.18.42; Wed, 17 May 2023 23:18:57 -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=@dylanvanassche.be header.s=MBO0001 header.b=XQU0DGjx; 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=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbjERGOW (ORCPT + 99 others); Thu, 18 May 2023 02:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjERGOP (ORCPT ); Thu, 18 May 2023 02:14:15 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41611E7D; Wed, 17 May 2023 23:14:14 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4QMKS306JJz9spF; Thu, 18 May 2023 08:14:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684390451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7UTIS1r8RA76N/fvS6oV352acOi4bH5w5zs0dBCk1c4=; b=XQU0DGjxg8uPoFnjWpGfA7zCAWCEJ2mqL72TJZZG9gwXCHTEcX9U5MUF+FiLmQ1/MABiUe n4ge3TCfdx54uDosqZCRMZ3tQ+gM9B61lIt+OuJDxv4MrmiSB4SHT29PWvDdUtDEjW+xYI apUkGJNt1UUfRfQ7MLKRM8vNEY6AqBj5VmoPR2jZxd3Tp92DTtyAMjZZaNLphwqvGyZMyX OGjRq3v7v9S0PxxWhUNeZCAqQ3zabgZqY5o3Mm27EFUfdrzeaKE9bVoXGPHHX2sc3ySXR1 J3Hs4mzDCXDMwfWyab9dKnDkEZKrJYR0T2SR5wLmnHzh/JNJ6mDY2tLWKJiyZQ== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, amartinz@shiftphones.com, Dylan Van Assche Subject: [PATCH v2 3/3] arm64: dts: qcom: sdm845-shift-axolotl: enable flash LEDs Date: Thu, 18 May 2023 08:13:28 +0200 Message-Id: <20230518061328.146847-4-me@dylanvanassche.be> In-Reply-To: <20230518061328.146847-1-me@dylanvanassche.be> References: <20230518061328.146847-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766211702334144829?= X-GMAIL-MSGID: =?utf-8?q?1766211702334144829?= The SHIFT6mq (axolotl) is an SDM845-based smartphone with 2 flash LEDs. One LED is white, the other one is yellow. Define both LEDs in the DTS so they can be used as flash or torch and enable the flash LED controller to control them in PMI8998. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/sdm845-shift-axolotl.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 0ad891348e0c..e7fc0c3cae58 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -554,6 +554,28 @@ led@5 { }; }; +&pmi8998_flash { + status = "okay"; + + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>; + led-max-microamp = <180000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + }; + + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <180000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + }; +}; + &qup_uart9_rx { drive-strength = <2>; bias-pull-up;