From patchwork Thu May 25 15:47:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686246 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86B40C7EE39 for ; Thu, 25 May 2023 15:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241117AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241739AbjEYPrq (ORCPT ); Thu, 25 May 2023 11:47:46 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E61E199 for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-30a892c45c4so1549697f8f.3 for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685029664; x=1687621664; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6W6z3yseUW0ZEUXSC4TnDkmT5+0hex5HR1TgWJvB5Vg=; b=dXc0/xfrpw6K8JIFSoad4GyekZbfACRBdkSEGOM+MP5KMQKFmORNuGRUFQg31Imt0j hFSRDAPE+IngrkaD2GgLt1XuRSV200E/Zob8cYPDZYaXoPUs0Y0uM55PFBjsYoKzx6dD 8AEl6EwbjN0nMKwLlqnFZIJwaTYoEUyG5EnFq2eXmdcGPoXDLVl9xs46X+2aWvLbKUsC ihB7raXKBlLAWfdDFsgQc5i0S5YZDmvBxiC4tB/nloDiu1u4d9Aaz6BbpHMewb8BAB4g qr0AmLajIbQjEKcLJIHGYvqfg1rd+1KmQmSDSKMtXCArM+KF94SoleBpKea7bCeHb7Hu B32A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029664; x=1687621664; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6W6z3yseUW0ZEUXSC4TnDkmT5+0hex5HR1TgWJvB5Vg=; b=W10VZzqV3IaJ6q/RJUOzpk2Ri3rKidxJfpPu4NvcH6bMBEn2NdFvPtznr+JmbhBCFJ H25H6TdlZY0vN6ZvgffOpObySCavEsbM1HIWLL81XMMYWYIq/4phk8+LUuFx6rRvA0e8 I35lZmTGlymGEMgVFnyTo/5ZDCoPOcWfKTkxSPNLHFr6A+2ldTHtyGjkGXbDUxbvNuCL PZqbRuG/cAtsuXq+z24nk9Sz1g3XJVr9ShIMJA383BT7B83s2KE5OSOYDvrVgnyxE3MW lq3ZC0+FokGz3X7ocDNjRoyKrR0R9/4Ez8TiGdRs031gTqH2LiqCLwrqqhG1SoPZE1+a mkDA== X-Gm-Message-State: AC+VfDzFOWZPPi+5JM+5ecxN5gxCr3J4+iiB0820U7uljiUnDudVn4/h y1Jo5TfY8R2XMfHBEtdqh6jKt+DiXJjwYgGUrIhGGg== X-Google-Smtp-Source: ACHHUZ79BqD6Z2l7IjTTPg7mydbmaAYbxh1JlyDrA3g7lfkSN0/gJQdmvvl5XF4FnCERQ0VMVi0XuQ== X-Received: by 2002:a05:6000:10cf:b0:309:4f23:e52d with SMTP id b15-20020a05600010cf00b003094f23e52dmr3053481wrx.43.1685029663893; Thu, 25 May 2023 08:47:43 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id b3-20020a5d5503000000b002ca864b807csm2275873wrv.0.2023.05.25.08.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:47:43 -0700 (PDT) From: Neil Armstrong Date: Thu, 25 May 2023 17:47:36 +0200 Subject: [PATCH 2/4] arm64: dts: qcom: sm8550-qrd: add notification RGB LED MIME-Version: 1.0 Message-Id: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-2-4d5d7602f290@linaro.org> References: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> In-Reply-To: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1094; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=VN0b6yYDeCqIJw88Yxteguvzp1g40067w/aqfqr4Wb4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkb4MbzmE/LZCBiUmXoX5AEsmQgizJBa0B1WTsuR8k zYEusuCJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZG+DGwAKCRB33NvayMhJ0R0ZD/ 9jB3pJtPJzH35clvFkBoH2QptMDQ/E/T2NPHrCT0RAMn0siMkKyovzjCwiYNIQN88j9O6/lK5/65LF /ZE/zItTV4k1Pzcylam3DTsdO6rBn/EFXLTxPCzlLN5W1ri2y1np13V5oeleFX7dJJzjbljmlWhVrj JRpOyvnYH+v7CCQ2/GUv+/L2zpqy0j/VSnz2HDZTFhDRmgmlvbbM9HHA4I147I999FAVdv/1M5yBcf DCGMgXP0uKPbE86g5s9pNn9BscuNXqML79e6sldDhXMetTB08nyHVGwoKy88V7AyWxI9GhullcV1pz h/uUKNeUdDtSINjmuhgKpgFQMwj2azNgCeDsyH1C95Bvb3Ofyc+yyVgtbkyTQlKVnTE4H2h9DGBB69 +PVhCtlxSJo+ci45ST7k8tWTOFEMgHFaUR5WZd9jfShunJcLPA5fTyZuH/exprXXOeBIzPo/Udx8Db mRz1YSJE3+pYcHjAzDdZQu5EzmBqHZTRycAyp22VBU7+OG+vFlUm5weO1UN4Y25qGzl7vyHXvBj8Bj tR+BlWL62Aqy+3byF9Bj5G/romm873gPxTPzfPCSE70Axfhs9IbCTLyYmUzbSf4eujEYjJSTQUWdt5 wSaJn00mI+CGv0O6uipOZnDL/zACQHoY+1u6rwdv3cjcyiL/TcDpYByhjKpg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The QRD features a notification LED connected to the pm8550. Configure the RGB led controlled by the PMIC PWM controller. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index ff61b8b36853..4a8177f99523 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -450,6 +450,33 @@ led-1 { }; }; +&pm8550_pwm { + 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 = ; + }; + }; +}; + &pm8550b_eusb2_repeater { vdd18-supply = <&vreg_l15b_1p8>; vdd3-supply = <&vreg_l5b_3p1>;