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: 685697 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 7A321C7EE32 for ; Thu, 25 May 2023 15:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241822AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241731AbjEYPrq (ORCPT ); Thu, 25 May 2023 11:47:46 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6198119C for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-307d20548adso1559890f8f.0 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=ImjSlyFpvuy4EScWja9hAWCcY5j/nNuDYzVPUjt7hpvkRzNYQ5zIm4CLyz4ZEHsBeT +uFL/E2StZlbb996c/t2kh+rNDFwGkkx+kJiL2UNAu7o5HTmVSQyDuNc9deISSHWf0h5 HVlLvjBR18t1FtnQqynbq/wSjiSMQULrEzCxg5Ve+rAJj50ZVYHTsfqb2bVBmQOkYZLE 18dOPJzgvFgOeFMi61vPcapYvZT82qWhnZ2SxcPtUDRbAOwevLqei3x15OYDqFnlR2iB X33JyhrjiidvNNmQo/BqyU+jBQO24LRvAbal2X0H0refCR+FDbTVFrES0fypZVXRt3fR CtFQ== X-Gm-Message-State: AC+VfDxmdyrmYDMBcluqoAmKz9TtBHoZHS36X0ZuSrW8Rm4N9Xlfmqsg mgmSxcmU4DpjtQwNVe7NX/G4iw== 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: linux-arm-msm@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 Reviewed-by: Konrad Dybcio --- 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>;