From patchwork Thu May 18 13:31:11 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: 95899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp502908vqo; Thu, 18 May 2023 06:44:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40U96zAr0PmaUw7eYKDPSlZdUulL8IWv3ZeFIqDnq4FaCD/Rob/AyEc/1+CBdm7LcJb38e X-Received: by 2002:a05:6a20:440d:b0:104:2d89:8f75 with SMTP id ce13-20020a056a20440d00b001042d898f75mr2584846pzb.24.1684417442327; Thu, 18 May 2023 06:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684417442; cv=none; d=google.com; s=arc-20160816; b=wABkBpc6wgj10M8AK+celTEuyrlSLuTKgADPiwo1C11/DYMibMExvItBBglfVfw2bQ xJzK4GWmpOfMV1yRRZSSCg3jmYaE4zQU+qXOBd3l1blXXQ0NK2OBjmbMozcvR6kS+5bz k4oe4sLgthhijqWosMEdgTjsgwv0mnL4SMoihwUMVQiKe9f97leqpBuI6HZvhFfG2OcV pC4fcKgArpOf49JjI5OuUraTVWXZM0DR9m+8D11ZNdBXHG/Nat9o2ufo8f8J8NJkMdFG ISm3Y8UQUsRo4zUKFa8NC1r+1toj8vmC4pfO8NdWmUXxQI542bF56fvZfSx6B0bf/9VS 7SWw== 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=+1Oppa45nUWLs9ENS0aSBF7hNOgEFnr/plZZcqkRtXc=; b=C7xxPayvpEjG1N2LTouPo/7wDEjB9EqbYFuH9M+Kn95Eg8I3rIoT8XTNnaB9VjkZaY npbSqDTMSStYLSTnzgMXDmiXW4cEF2WbsC0lIZzPMcYTBtpF+M9QMv/4TrenxjJIBCZA vw/317wiFO44MpOPbHem0l2Y6rHG1EW9Sz0YPeYUFbsCKiPIqu473UwlHumApA2LgjWJ hUxAGpm5H9tF08kJLTsayVVWbGqQvrVeCKsiUm2lDqgOxebKxxUUN2ffcoYfumAWo6AR i8MxkEJi6bNOmAhUaRW4cgDrB2UT8zN9h/bj7l5X7QXbXPP0ufVgK8dwuFDMMbCqgBPP LC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=fjpJaTON; 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 l185-20020a6388c2000000b00534746c89a5si1270728pgd.749.2023.05.18.06.43.50; Thu, 18 May 2023 06:44: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=@dylanvanassche.be header.s=MBO0001 header.b=fjpJaTON; 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 S230377AbjERNbm (ORCPT + 99 others); Thu, 18 May 2023 09:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjERNbj (ORCPT ); Thu, 18 May 2023 09:31:39 -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 64587119; Thu, 18 May 2023 06:31:38 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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 4QMW8k6brxz9sPx; Thu, 18 May 2023 15:31:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684416694; 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=+1Oppa45nUWLs9ENS0aSBF7hNOgEFnr/plZZcqkRtXc=; b=fjpJaTONfnD6Cx2KD7al3mhf8aZ6e6uXXmRuORypzy3bHxZD7E5r6e5QQlimCNwOyX2kVV 43uYStTuz7WLgfUwry7Zc2KxZItQavG2YgMer90uPlQfVWHCoibDwKB757M4D9YggLkYua V7FG1W4+8GHaDHW3DrQBJDP9gwYGatm3GKXgObxfnHOkPoOBzz49Y8WM06iW5Q0BhGJZbh MQJmaZWiPLPSo2JV6szfnWdm5Y5z20JzgPvO8Rqr1xulj8F4VHNUhQRr/q69DTJ/1h14RZ oDVQe0BDeZsHD6m+3nJfxpRBb+ZtAKn/TMnwMZLA2xmN3de8SdhC/ulnybLOYg== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_fenglinw@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-leds@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 , Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PMI8998 Date: Thu, 18 May 2023 15:31:11 +0200 Message-Id: <20230518133113.273880-2-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-1-me@dylanvanassche.be> References: <20230518133113.273880-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4QMW8k6brxz9sPx 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?1766239704016499649?= X-GMAIL-MSGID: =?utf-8?q?1766239704016499649?= 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 13:31:12 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: 95903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp505582vqo; Thu, 18 May 2023 06:48:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66E1RLRQVBNMKXh3YsgO0F+r1lo28YzNgZbZ+FqRZqh6EZKIqBjziX//kteijeTD5/yYPC X-Received: by 2002:a17:90a:c287:b0:253:360a:f6b with SMTP id f7-20020a17090ac28700b00253360a0f6bmr2396347pjt.13.1684417683191; Thu, 18 May 2023 06:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684417683; cv=none; d=google.com; s=arc-20160816; b=VBtch+/6GAMUUtLtAfR2GlL4FNmM9SCmGbyjAcMQn4zkXYnhuCWihvDHT0r605eguy QEiexvuMb2M/5UIxTNM6dZS6X7OgZwBVHb+Ch1a7L+xLxPCKi0gRhtP4sWfRuEpLF3hy QZ16SzckSirycM3uDSa/wpk7ElX9Lt0M7eyD0j2drVfCDzYlM4qOOuZFZRwTHGx47BEL PsWM2wE4xa8u/+YewKxrv3GZOJIB7Kxcl9fgDTHL6RwdfzQ/ouj/HFAlDscDKHGFHSj5 zK/SVg+eEM6sSf613f8TOikkNMnPFhadIEw2BZn8QzxAUFBW2ZpCsmVMEAT7Frvzg0gD xDdg== 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=5Bf15UF6wzUaFEfbGD587CDG2X37fx7pxZEHgq3jWng=; b=IM0QOaW17YNoQRe0m3xnWwvRS1SzS8+bnYHOvpYLOUQLHvtJpwdWZ+eLhoJhRKyj4C 6yXkgN6B0ShPRDbgbiTsO/X+ZlDl72Du936VYL/mFUV6UduWs3GaVcLAL8VMuo/ozMyq zOs3fs7xqX02FguvsoJntiDZcQmvcAp1EthMQxM2LPZ3nYMtL8wkkzOxZV+jkni0QJ4l Cvg14WMbxEF8J3Nzke0FYy7Jr9dU+Gp9nCi3l2ybuhYRaonPcaoRxIUcab7zrUMzGzQb lzLqV7+OaBdTZcNQbmRJEB3Lm8RuIJrxqL/1zuUZnQfrdXbZdZkkuAli30CRxk0ZBqrB CUaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=foNd2LZC; 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 m26-20020a63711a000000b0052c9cacb70dsi1479848pgc.592.2023.05.18.06.47.50; Thu, 18 May 2023 06:48:03 -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=foNd2LZC; 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 S231234AbjERNbp (ORCPT + 99 others); Thu, 18 May 2023 09:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjERNbm (ORCPT ); Thu, 18 May 2023 09:31:42 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48BA1125; Thu, 18 May 2023 06:31:41 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-102.mailbox.org (Postfix) with ESMTPS id 4QMW8p0Rp4z9skj; Thu, 18 May 2023 15:31:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684416698; 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=5Bf15UF6wzUaFEfbGD587CDG2X37fx7pxZEHgq3jWng=; b=foNd2LZCjoFMcjUKq5Qv++XfRw+INCTlE8wsMNR9nSx3Ohfain0+CaSbXajowYz6NkQHBk 9lg9anXsaVe3KtQ78+F+YSpIrmIKDRwD+kgb/DVfLnKJUrvLarWjzsodTc5D1f7oSaPGUW mKGvN32nb99M9HonSsYuOzIBmQv3i13FgjUm/UdKspixxYbMBt2aHaz3B183jLoz2Uyqw3 MMl9QsprxVtLH8S1uhV4Dd3GxwN1JZnV+ui821WnnXJNGWS9/PXtG7aoxKUG9TtZBwN15b iUIK/UaUgS3/wIR5i9Kx0lAGX0OR2aQg5ZvDIYyVJD1H00z1fQrr1CT2dQbKcg== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_fenglinw@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-leds@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 , Krzysztof Kozlowski Subject: [PATCH v3 2/3] arm64: dts: qcom: pmi8998: add flash LED controller Date: Thu, 18 May 2023 15:31:12 +0200 Message-Id: <20230518133113.273880-3-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-1-me@dylanvanassche.be> References: <20230518133113.273880-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?1766239956546497008?= X-GMAIL-MSGID: =?utf-8?q?1766239956546497008?= 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 13:31:13 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: 95905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp506262vqo; Thu, 18 May 2023 06:49:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7at7A+rAxjfmv8ofEJY+dWpylAFNgW9HyO+rz7b0Mqg8m9M/cKddhUGBIXwH1aQALTvHt6 X-Received: by 2002:a05:6a20:3d0a:b0:105:66d3:8538 with SMTP id y10-20020a056a203d0a00b0010566d38538mr2746866pzi.8.1684417749627; Thu, 18 May 2023 06:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684417749; cv=none; d=google.com; s=arc-20160816; b=pJFUEmK4/+hLiuQjaK7VkEiv59xviaTiSgvV/g6iQ/NWx3J+JyAFPfRD2VEmdDpl6S DAHAw5lXVSXYZXSAJjuZKNc3cTcrZe4bGzBvdf21C31zedmkHBIfij6znUXkZqSxf5D8 ZAVn/D063xpb/KeUTy7G/7j7xY1iI50u+JEEPpwfLZ6dPjWu8FxkHy3WRVsd00SYLqbi wzybuYsMXTlE0FK5p588Ed/IWFknk4PrtpMqPOvvHuwuq+3pTDFlA8vHXSjqKzWuB6uH hVV99R5WurpXQ70NGfg36LoEZNvIQLrUABjROsUoUBbhVcQiDpZT0fO3i9lhRl2sW8I0 T8sw== 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=jqMwt/DZCklMg+3nHPyvT4HWki93CaLYFSuTlzM7b7k=; b=bglddnvGIcYx+TrdwQF6EFbZxxpzUm5Ua9Sv6sRnqH4hs1O/iK75SCQmAgrWOAbaUo mnTpU54CgYGmPVWxzrWX6MoATlbxN/RcQ9dbDwviaDw6H8YRi/JyE2PRyM0FMGSd5zlz 60SDEdQUujUn/adT/pFBru6qeqO+srf6uJOeAtptMUvgINhny6BbCCG+qbRbQEdGNC+i buElQrZi/x7kM0mWT2/MVPWmIgA4FODJUyq5+g9St4xDK0pnXpIjjU6+75KjJjb+bPOF VE7Sh3TWV5lCAHIwPTc+fOmW5UhGmRr9jqwDK2vOR3Hjd6XotRkLrnfFJuWfSBJoZ1Ud t71A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=NGg1+0sy; 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 o14-20020a17090aac0e00b0023a177c4951si1788025pjq.39.2023.05.18.06.48.55; Thu, 18 May 2023 06:49:09 -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=NGg1+0sy; 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 S231559AbjERNbz (ORCPT + 99 others); Thu, 18 May 2023 09:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjERNbp (ORCPT ); Thu, 18 May 2023 09:31:45 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 956D6125; Thu, 18 May 2023 06:31:43 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-102.mailbox.org (Postfix) with ESMTPS id 4QMW8r4Wwpz9sls; Thu, 18 May 2023 15:31:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684416700; 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=jqMwt/DZCklMg+3nHPyvT4HWki93CaLYFSuTlzM7b7k=; b=NGg1+0syX9nn5bw6Mn+b5XiMq22i0EH2SlXY1ivv76hD9CijdpyNbD5qaFUzTEuB9fWhk2 K3S6/e1HL5gjbBcsvzcGKruKLqqgDKRK9BHVL6iRi+R5B89gsoSrzH0aUnWZPKVhP1a18S +OCQRolFyghE5gPm066V+KeWOtkTOp7Ijg+GJwFFiddcdoS3n6m7OhnYFkkhTzH7s+YJz/ BDnP2TOhPSeSmHMZgQui2NarHKvkFhLr1t1RpdNZOYOUT7yJVK4z+FSrJq8gmG1myQRkOo rcywyj9sII1PQJGBXVz3MXyNzqa6071lTdfnlvKp0WBe97VsF8tMWO+8s5x6AA== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_fenglinw@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-leds@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 v3 3/3] arm64: dts: qcom: sdm845-shift-axolotl: enable flash LEDs Date: Thu, 18 May 2023 15:31:13 +0200 Message-Id: <20230518133113.273880-4-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-1-me@dylanvanassche.be> References: <20230518133113.273880-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?1766240026120646494?= X-GMAIL-MSGID: =?utf-8?q?1766240026120646494?= 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 Reviewed-by: Caleb Connolly --- .../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..1eaff964b202 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 = <100000>; + flash-max-microamp = <1100000>; + flash-max-timeout-us = <1280000>; + }; + + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <100000>; + flash-max-microamp = <1100000>; + flash-max-timeout-us = <1280000>; + }; +}; + &qup_uart9_rx { drive-strength = <2>; bias-pull-up;