Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2047781rdd; Thu, 11 Jan 2024 19:01:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IERZ7V0bcPrF8olBb4mEQi3L0cBiBCTKJfMmaqkwARaKK/OCPnvbSDJEM4pa+EFfVxl2Coh X-Received: by 2002:a17:906:1797:b0:a2c:1789:f7a3 with SMTP id t23-20020a170906179700b00a2c1789f7a3mr185873eje.79.1705028503892; Thu, 11 Jan 2024 19:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705028503; cv=none; d=google.com; s=arc-20160816; b=CVj1SUOQu/n9Lf5Ia0jsINabE3O+/olO+EUOpZeiwQ0M+25BajK8++jbbrL1+txMBc 12ZyEQR/LrPBwkGIwzYEcgdY1rTqrZia71XBgSnEVYfVZeLrl2GxoMoNdXJ1mVscBecX DhZ2NL1g8WkfqNjUtqafZYgRIuGlAYGwnbPYOO3RbLcXfuVVl27wbBaQJfiVtmhgO3I8 eHEBXbrhFaxqYxLHnF4taZmKO5HAFZ4BbCpHN9QfBWILK+4euoq4ONyhgBpLtPMnNqTo 5JDo5RAbmECkmaKpy9beesezDe4GjYtYrC8puJoIm4JbZE6vnzKImJNz8N4wtMwUhmor 4M3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=rJ0WjpcBZ6LxL7MiG1G9uZoN9W68Z8hvPs3039ksjCY=; fh=HoiDPY2H2QS2J5duj3+hU5nCZ35IjJBQ/FVk7vR2eH4=; b=qabiIKlCsSjGVKZIVtt4LLVlxLs3QrC5NA81N9R2yZ1GkalsKYI60BIQT2a0WXtXLP PpMYmE/VYW/3+7EiWevmAbptcQeX/nBdHePUKW1ZOXnAYbUfU1e9fU2+Vnt6G/gFPd89 dGath/+SrHfZvruBAj8AG9wr7CyS2lZ6TU/KqUGkIM/RXQjLU12svI0qryPHX4F5xg/l DDxL5XjCeAMOcJCHof3bnqUuU9gVG0v1pg5s+rA1gfLG6woHJsbLyh0gSIno39Qgtdvy hfKLTXvV+WGCBmkyv635BDaV/BKqntHhN7QCp98wpU6+AyfTdZM9ulud9PRm+TuJwbSv FaGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AptbD9SP; spf=pass (google.com: domain of linux-kernel+bounces-24256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w13-20020a17090633cd00b00a2bb419f8c4si1025529eja.974.2024.01.11.19.01.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 19:01:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AptbD9SP; spf=pass (google.com: domain of linux-kernel+bounces-24256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 07C861F272DA for ; Fri, 12 Jan 2024 03:01:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30AFC12E5E; Fri, 12 Jan 2024 03:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="AptbD9SP" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61CF310958; Fri, 12 Jan 2024 03:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40C0VPai026367; Fri, 12 Jan 2024 03:00:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=rJ0WjpcBZ6LxL7MiG1G9uZoN9W68Z8hvPs3039ksjCY=; b=Ap tbD9SPLb6fkDokSV1+O5IClGvHa1FJny8/Nhm3P9Uttvo/ywxJkiurec6juUBaU8 ESJQZp9cXXt4Q/Ms/FLWtQuwaBW8M4A2I8ZUQX6l5XF2P6ilGNeENFZs29UeuF8o EaVSnWoStinVg2X6D+1Y8L2uAbWE6cMlT2DxHD7ZJMdhijHEULFnfvklvJqKmTsW R45/9SqsL1d5kdYNCm+T9z3hNUEC5WsGhWOKnwpLOLW1HRGFxT2gH2Nn/+b/pNKI RZMeLGgRHNTGuAI1pNAAKCJVFivWtc23TI2+IVnElTLi3l7ExBU3msTxXbr270Yx mCBPWsetOJlDLoIBLlrg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjcvjt9x3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 03:00:46 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40C30j5p011847 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 03:00:45 GMT Received: from [10.238.139.231] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 11 Jan 2024 19:00:42 -0800 Message-ID: Date: Fri, 12 Jan 2024 11:00:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND v3] arm64: dts: qcom: qcs6490-idp: Add definition for three LEDs. To: Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , References: <20240111-lpg-v3-1-811c9e82dae4@quicinc.com> From: hui liu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: q4DIxSTEky-Nc4K5VkcM77Og8onHBdDC X-Proofpoint-ORIG-GUID: q4DIxSTEky-Nc4K5VkcM77Og8onHBdDC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=891 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401120020 On 1/11/2024 4:47 PM, Luca Weiss wrote: > On Thu Jan 11, 2024 at 3:52 AM CET, Hui Liu via B4 Relay wrote: >> From: Hui Liu >> >> Add definition for three LEDs to make sure they can >> be enabled base on QCOM LPG LED driver. >> >> Signed-off-by: Hui Liu >> --- >> Changes in v3: >> - Rephrased commit text and updated the nodes to qcm6490-idp board file. >> - Link to v2: https://lore.kernel.org/all/20231110-qcom_leds-v2-1-3cad1fbbc65a@quicinc.com/ >> >> Changes in v2: >> - Rephrased commit text and updated the nodes to board file. >> - Link to v1: https://lore.kernel.org/r/20231108-qcom_leds-v1-1-c3e1c8572cb0@quicinc.com >> --- >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 25 +++++++++++++++++++++++++ >> 1 file changed, 25 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> index 37c91fdf3ab9..f801144a1556 100644 >> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> @@ -5,6 +5,7 @@ >> >> /dts-v1/; >> >> +#include >> #include >> #include "sc7280.dtsi" >> #include "pm7325.dtsi" >> @@ -414,6 +415,30 @@ vreg_bob_3p296: bob { >> }; >> }; >> >> +&pm8350c_pwm { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + status = "okay"; >> + >> + led@1 { >> + reg = <1>; > > Hi Hui Liu, > >> + color = ; >> + label = "red"; > > Please remove the deprecated "label" property. Since you already have > "color" set you only need to add "function". On phones for the > notification LED we usually use "function = LED_FUNCTION_STATUS;" > I will remove it at next version, thanks! > Also depends on what your hardware looks like, if it's 3 separate LEDs > then with label replaced it would be okay. > If the 3 LEDs are in one spot (so you can mix the colors with it), then > please make it a RGB multi-led like e.g. in sm8550-qrd.dts The 3 LEDs are separate. > Regards > Luca > >> + }; >> + >> + led@2 { >> + reg = <2>; >> + color = ; >> + label = "green"; >> + }; >> + >> + led@3 { >> + reg = <3>; >> + color = ; >> + label = "blue"; >> + }; >> +}; >> + >> &qupv3_id_0 { >> status = "okay"; >> }; >> >> --- >> base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240 >> change-id: 20231215-lpg-4aadd374811a >> >> Best regards, >