Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp76324rdb; Wed, 17 Jan 2024 18:07:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgtmyWvqB49ubRzAny/cO7yGcLifA/apXKyneFzbBuX+zjNGeZQSZzruo/o/ZkmfWsTpti X-Received: by 2002:a05:600c:ada:b0:40e:6357:5ff9 with SMTP id c26-20020a05600c0ada00b0040e63575ff9mr49417wmr.183.1705543638811; Wed, 17 Jan 2024 18:07:18 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g15-20020aa7d1cf000000b0054cfd045e4esi6542191edp.363.2024.01.17.18.07.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 18:07:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fy96bxi5; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-29646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29646-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 68D0C1F228AF for ; Thu, 18 Jan 2024 02:07:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D08904699; Thu, 18 Jan 2024 02:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fy96bxi5" 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 5F21323D9; Thu, 18 Jan 2024 02:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705543627; cv=none; b=osMuQhtrk7ydj6tukVgKqYE9oQFYnslTivHD+mq6oMqhavrENpRJQ3jnsXq4252O0nVYJw88uwMHA/Zmpz4TvOxiTVldzH5eWhNBtKApqo+5tShV5DxxY7BnLDyDp41GBSb0jDcvnaxmAqUlxnK5gbJzpKXDZKGX7lhBHRBJBUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705543627; c=relaxed/simple; bh=eNa6RnBmD6nBUUK+JlWTYmea+WAEaaTuBXMWGIdloyw=; h=Received:DKIM-Signature:Received:Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:CC:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Originating-IP:X-ClientProxiedBy:X-QCInternal: X-Proofpoint-Virus-Version:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; b=TJA0xWMYSWufZ8XXxnETSNjSY3F/Sc+jT40JohwFcdpuwrkT8xS197Wees8NG8Vjm7ijq1WfOnzVSCroLMNmLFG9XBy9mHaIAdf6iW6Ved2hCE0lIoAlaXr0DHu9veYFTPVRFyDvphTxVbqmGKCKfYhPvJj+y09Vb/agEMSxG9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fy96bxi5; arc=none smtp.client-ip=205.220.180.131 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40I1CTKw032163; Thu, 18 Jan 2024 02:07:00 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=eJ775hQQr50RGfFRrsXBtSjR/Rhx1p4HhwQ06OFvHNM=; b=fy 96bxi5SlQXZ4d0gGhzvAjYTLZIFbUvUCcvo7tRwlCYjeLckToxG3XvHlUXlAvamu AxJ+KUVBjpsiZpBeIuLaChYUyDzH4avYWzcjnTcRYx4esT9rAuYqkCm3P05Ztq8/ d2tr1cFUR1LrUGKMHW6+cwpYL2al2ncm7Kf+veyOoXezLrlbohMdQ9bN/j7losH+ umSG5YluBlxfmSJQdcWz6DjuwJaZ39BY5Nlf18c0SOavUnunQ69Tb2WbdJMU1MLn 34S7R+PFcQ0xP9caoZ7/C4zOX29/YuSEzvLTi5m9T0tYY2J4pKnsxcvN4AIYLAIN XqsCHopfDJQVoNgLc80A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vpejp1rg7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jan 2024 02:06:59 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40I26wOc004919 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jan 2024 02:06:58 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; Wed, 17 Jan 2024 18:06:54 -0800 Message-ID: <4c82f1f0-1c5a-498f-9845-b5b26cd76468@quicinc.com> Date: Thu, 18 Jan 2024 10:06:46 +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 v5] arm64: dts: qcom: qcm6490-idp: Add definition for three LEDs To: Dmitry Baryshkov CC: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , , , References: <20240115-lpg-v5-1-3c56f77f9cec@quicinc.com> <6c29ce72-e303-406a-bb75-5b36b0cd8ee4@linaro.org> <44ab50c4-c63b-436c-af46-9b4543181446@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-ORIG-GUID: MX9vm9BR0clH7AOyHGumzPF0KEVobwiq X-Proofpoint-GUID: MX9vm9BR0clH7AOyHGumzPF0KEVobwiq 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=2024-01-17_14,2024-01-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 impostorscore=0 adultscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=944 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401180012 On 1/17/2024 11:41 AM, Dmitry Baryshkov wrote: > On Wed, 17 Jan 2024 at 05:02, hui liu wrote: >> >> >> >> On 1/15/2024 6:26 PM, Krzysztof Kozlowski wrote: >>> On 15/01/2024 11:18, hui liu wrote: >>>> >>>> >>>> On 1/15/2024 5:56 PM, Dmitry Baryshkov wrote: >>>>> On Mon, 15 Jan 2024 at 11:48, 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. >>>>> >>>>> The "function" property is still placed incorrectly. Posting the next >>>>> iteration before concluding the discussion on the previous one is not >>>>> the best idea. >>>> Do you mean I should update it as below? Seems there is no consumer to >>>> use the function config, do we need to add now? >>> >>> Paste the output of dtbs_check for your board (or CHECK_DTBS=y for your >>> Makefile target). >> I checked the dt-binding file of LPG LED, I will update the dts as >> below, if you think it's correct, I will push v6. > > Is there any reason why you are defining three different LEDs instead > of multi-led with three components? In the HW design, they are three seprete LEDs, there are three LEDs on device. why do we need to add for multi-led? Thanks, Hui > >> >> +&pm8350c_pwm { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + status = "okay"; >> + >> + led@1 { >> + reg = <1>; >> + color = ; >> + function = LED_FUNCTION_STATUS; >> + }; >> + >> + led@2 { >> + reg = <2>; >> + color = ; >> + function = LED_FUNCTION_STATUS; >> + }; >> + >> + led@3 { >> + reg = <3>; >> + color = ; >> + function = LED_FUNCTION_STATUS; >> + }; >> +}; > > >