Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp326144rdb; Mon, 22 Jan 2024 05:37:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGk7XyjEcfY3iH6JOY4SLaGXwRJpj8AbUVEpDLqRCvTZFhTaz0sTViYgmNhwrd2R53dSQ+ X-Received: by 2002:a0d:e24d:0:b0:5ff:8466:20f0 with SMTP id l74-20020a0de24d000000b005ff846620f0mr3556993ywe.63.1705930646815; Mon, 22 Jan 2024 05:37:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705930646; cv=pass; d=google.com; s=arc-20160816; b=Cyh62Ha98N2uZjJUdP3lG7Vo5bpAGc0OOqr85FFNm4GXyFWoaRI8j9JP0A1sYyphRL Tf0mIptfKV5A8S+YBo7Bkx4zIpbtyVIFEzGf18bUr/9UvmPrwnnqhk5Ajr31bINCDr+/ A7qukJPI8Fo8jDANDt1BWZUc5P3M96MbdHVTUXxVvPesPz+LNOeXMXjTw4inZWlhyNhU b3JVeHTsIhc1bFIwcce9BV9c9LaZEFBDXNSXIhVkIBgu+vXiVu4VQL8wYRels+VWMetn Gbhwpc8UlunX5GoU8altyb1ZTHuM5XDL0YOktdo76KKit9js9snNE3U6BfAszIEAWi2X Udsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Z7oGSHsIqEAvLZa5ynsGHrZxRD+OARNhlTzhS0egCCQ=; fh=a4xW7m8TbWQzZ0vM6+KGssxCg3D2Dirm0EhIliIsevk=; b=aNk8EBqUM6lNSKJlk6myAgIy/YbmbhqlYKkwQQNV5Jc4DwLXhogrlNFndY5kEXQG1Q yqIvPsCxTS0yOVz2N4b6PW1lDsJ4yDXzlSGezZnSANQes+2mMDZ8vv9v6VVQdWlqngnA UMPjy3vK/Na+OVDjuIyS9cKLtDBye7dJIgCvJe08DqlFKtcN+DcvasSV7qVaLmIuSJNk TNpTNgVnZ0DG7uC26hWTTMIH7XjYv9dV4LxUbeuN+rvn64AUk861GyaPocWydlZ2Auvf 8KBAPE4OfEKE/vzqkBS1rakY3pwCkKxXqhpK+OxYwak1JfXX1lHeTSYT9rsYC9K8Ch+7 rEOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pruDGg1N; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f18-20020a0ccc92000000b006817944441csi5451334qvl.296.2024.01.22.05.37.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 05:37:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pruDGg1N; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F72A1C227FA for ; Mon, 22 Jan 2024 13:37:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26FB13D0AF; Mon, 22 Jan 2024 13:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pruDGg1N" Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF7D03986C for ; Mon, 22 Jan 2024 13:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705930636; cv=none; b=Y6ZOlvL/HPDyTvbYJi9nlGgwk20MYgFg4tC9dTZ5K9PxSihTM8Nd0Q0zZ42suqaNu5OffOHBMVZ0smPRiIXw18UVLBuqm2pw/BZ+D+XO5fWFUf496KUFhFUzmi6ozKIj644HjpkIZgDmWfLCDH1KHwSlPeGPquTzYwizSerI4Kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705930636; c=relaxed/simple; bh=wVWuq0gawOGl8KiWuRy3jGbacbix2tLimet/jRZRsJw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Cn0RgOX4LpV/nx3GQD7n+R1OIpskJHoJy3SF0ufS+pfJhMuFAPhU/2oq1LlPlTnIsT+++e4heEGD7bgaSzUhco/MyS4O2NIaGl88yrrGywKegWX3pXbJAyUngRsT+e9/q9kRehwKT1OeGhX+EEisbd+d2tBslkc82c2uAkJzCSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pruDGg1N; arc=none smtp.client-ip=209.85.128.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-600273605a9so1620347b3.1 for ; Mon, 22 Jan 2024 05:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705930634; x=1706535434; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Z7oGSHsIqEAvLZa5ynsGHrZxRD+OARNhlTzhS0egCCQ=; b=pruDGg1NZA+GFWey9SqXYWP+OwxwrARafzmHGL9RSFXQ0esvnS+fxmUzqPD43oNF9N Be27qwzPGJh6q3lIzUGvlul2D2fz08VVpl8Vy5l3sa5GFv/uRUAihwSYrlwK4K2wizNd 9SDSvsTMuZ9kMf1P4yEe1cecSo28iuf7EOu9RrVuYrcDLHyg1Rq1ANHWIdhQgWoqJiuL LG8bF5+QuTgyotRB+mwl1LsJTYfFaDT5PEh09oQz4aJ76xqKIKfvwDf7B299U5Q802vF PuGwUlXGPNyZvpELT6u/IgdrWMKLkD2/hvEDZbx/z0ppXovCAvNqhe3x8qMD61w6J2eF vvRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705930634; x=1706535434; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z7oGSHsIqEAvLZa5ynsGHrZxRD+OARNhlTzhS0egCCQ=; b=ZXjWsbw10r/LE3nnzuCToZeiSUI0yf697upqYemMedRicHIU9ySqnRYIZ/kyXtSxIv 1qQsKYw6Oo+KVpif4LQtcTSb8AeyTwnrWvhW6aVeR5kIczQ7ROK6G9r0FP8OrlPe7QTv xiVdf2PSfIKFGVZrTZu479AxlLqv2doZzXppQGRV084jLZcqexpgBESTfDjGmKXmPwL7 SToLDVzI97gLo0Jmdxyoon9OYMTGjJmT1cisrISQayOfV09SAnjwr58Qr+IgqJIXKU+/ sIgR2w6niQ3jAoeR8ib/TmAxuEy1S/sZKWzNpy97WZUhlhAmbk9p/SSBhHraFgXVy2sc Mykw== X-Gm-Message-State: AOJu0Yz458WRlw7K5gEJWq4t5k/XYnXZRBWeMp9SMDgTuaxrCDXeQp9J RtoaNYKF/EkTpayMteAUzkb35PyQ9FYAYcxlmcuP2SOe4k7cUOiHAOHOu0m5DBLaXrqNSm3gQUs z/WYXS7NcUbA96zLHWtMuoRQih10q01q98SRJiA== X-Received: by 2002:a81:5344:0:b0:5f5:9898:ca3a with SMTP id h65-20020a815344000000b005f59898ca3amr3418967ywb.87.1705930633919; Mon, 22 Jan 2024 05:37:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240115-lpg-v5-1-3c56f77f9cec@quicinc.com> <6c29ce72-e303-406a-bb75-5b36b0cd8ee4@linaro.org> <44ab50c4-c63b-436c-af46-9b4543181446@quicinc.com> <4c82f1f0-1c5a-498f-9845-b5b26cd76468@quicinc.com> <5f6c2be1-faf9-4e64-ab3a-88046d75e2cf@quicinc.com> <1d948daf-1495-4208-a85f-6bd798091d82@quicinc.com> In-Reply-To: <1d948daf-1495-4208-a85f-6bd798091d82@quicinc.com> From: Dmitry Baryshkov Date: Mon, 22 Jan 2024 15:37:02 +0200 Message-ID: Subject: Re: [PATCH v5] arm64: dts: qcom: qcm6490-idp: Add definition for three LEDs To: hui liu Cc: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_fenglinw@quicinc.com Content-Type: text/plain; charset="UTF-8" On Mon, 22 Jan 2024 at 08:26, hui liu wrote: > > > > On 1/22/2024 1:42 PM, hui liu wrote: > > > > > > On 1/18/2024 10:06 AM, hui liu wrote: > >> > >> > >> 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 > > I double confirmed the HW design, for IDP devcie, we should set it to > multi led, for another similar device(RB3-GEN2, I will push LED change > for this device later), it should be set to seperate LED. > They are different, so I will push V6 to set it for multi-led for > QCM6490-IDP device. Thanks for your review. Ack, thank you. > > >>> > >>>> > >>>> +&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; > >>>> + }; > >>>> +}; > >>> > >>> > >>> -- With best wishes Dmitry