Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp723278rdb; Fri, 8 Sep 2023 14:27:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwkLfmRQK0pOhCTnDtkxpMlKkGKBVIzxtNvPmdLRtqnU+HhB41KZKZfcZ66vrnRKbjxMCF X-Received: by 2002:a17:903:234f:b0:1c0:ee60:470a with SMTP id c15-20020a170903234f00b001c0ee60470amr4425770plh.66.1694208464908; Fri, 08 Sep 2023 14:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694208464; cv=none; d=google.com; s=arc-20160816; b=eMsEjt9Bte4RyuxAPJnDlnN6w4DiEfnN4bThkonH2labHkNrLExdUhC+pOFnOYI9Na UyitWRc5GixoR1rlhg5RTfuO5V4YtudW4Oqti2uyeCqA38V/+rcFBy1KK5AFJehYBcEl kbOaUjgod9ehdgP+u7I2gWSlFsSMMiY/zYYU+3N/h5X7jjLVvnl8r+0dYRtIx5/9whco i+TSeG1ZUgmjhl6pbq9ZKgEItoQBrrnzYFSl5zX4n4zUuY4seNUcOQt3D8PV7C4HhuS4 lNyM8IrhdDqRiH9qGEz06RQzYYTzRGVgQW6vzei+RJ9NWlnWZR2G6SCswVqYiDuz0lMQ qpLA== 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=gV5DTrKAkf1zvZGFOjL0U/m/Hh0Fn223GiP3vwR4zJA=; fh=UHiv0F11DXrLsc5NukNwxfbuSArX75Mv5S7sCklpIaY=; b=yth0zuPTl8fPBr12gzcqIlhSmSQ6SfYa8EJ1LpnQmrcg/wV0x9DJ4SPpygUWRpIa5M sjHymGvdxRqzlBoPBb7xwz67gHMXDPmxKlzgeY7uYUik2DDGtPW7WV6iQFCN6F70OPsN bnJ1M/Zhz4+bjnzucotpQxeDqV7UBgKA9/3WtwGPBUmdvndyRHqasHcp6E866ivMktTz vDJYtoMsW2n/iflTKtyHavqZ4HWyiU55fkUxL2z/uQd47x7h1gayo7UiGBVDQlHmHOeB 0vutZzfXFetFq9cGbR8IZHZ7rezKyhZ7UHdRJD1Oh1wBD0C8343OTjgFWIlbXp8TI652 hL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LoWdCdnr; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170902f68500b001bdca6456c3si2179332plg.46.2023.09.08.14.27.30; Fri, 08 Sep 2023 14:27: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=@kernel.org header.s=k20201202 header.b=LoWdCdnr; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344907AbjIHTcz (ORCPT + 99 others); Fri, 8 Sep 2023 15:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344883AbjIHTcv (ORCPT ); Fri, 8 Sep 2023 15:32:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D97E6CF2; Fri, 8 Sep 2023 12:32:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27D62C433B6; Fri, 8 Sep 2023 19:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694201496; bh=MeJBmanSzRQXQdCXdRWMUe75M2AepYvwjwJik8VLxsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LoWdCdnr+C0AmhK5BjrzcrRiUZ6ehbN4g/8N0aukxybRFZ5XqzmZKHA+Qoy5iEPMd D39b96J1t8J3tzN2Ws1SGXGG5epKjreWyfiFGMjoIxswlMNpvgcsrfh4J6qzgGpsJi Z74vASae0p1a442BHuBbooHhevN7PkPo7/BvXwZxelq2/LcNWEuFz/MSzQPOo2495t MF1ddjd5W3KSnLJNl88oBQPisnOrbSBSsVGfRGrPpJmoFag2l4VJoOUSzJrfznfgX6 7PWs/VowJXRscOK8JCzq/S1E2bksjk8bfE53j97zVyNN1HhFGI7GNPTJop2tllwZNU ajLVcW8+O3FaQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Konrad Dybcio , Bjorn Andersson , Sasha Levin , agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 6.5 30/36] arm64: dts: qcom: sc8280xp-x13s: Add camera activity LED Date: Fri, 8 Sep 2023 15:28:41 -0400 Message-Id: <20230908192848.3462476-30-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230908192848.3462476-1-sashal@kernel.org> References: <20230908192848.3462476-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.2 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 From: Konrad Dybcio [ Upstream commit 1c63dd1c5fdafa8854526d7d60d2b741c813678d ] Disappointigly, the camera activity LED is implemented in software. Hook it up as a gpio-led and (until we have camera *and* a "camera on" LED trigger) configure it as a panic indicator. Signed-off-by: Konrad Dybcio Link: https://lore.kernel.org/r/20230805-topic-x13s_cam_led-v1-1-443d752158c4@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 7cc3028440b64..92f1d6d13435c 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -12,6 +12,7 @@ #include #include #include +#include #include #include "sc8280xp.dtsi" @@ -78,6 +79,21 @@ switch-lid { }; }; + leds { + compatible = "gpio-leds"; + + led-camera-indicator { + label = "white:camera-indicator"; + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + /* Reuse as a panic indicator until we get a "camera on" trigger */ + panic-indicator; + }; + }; + pmic-glink { compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; -- 2.40.1