Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp162709rdb; Tue, 16 Jan 2024 19:51:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9H076KhSqsoLoDZuLEVndc/3paZTlkCoIGRVUVQZLGZQH/jMA0PgYk2rEpYoRkekTBg8d X-Received: by 2002:a05:6512:3b0e:b0:50e:e90f:8cd6 with SMTP id f14-20020a0565123b0e00b0050ee90f8cd6mr4363178lfv.121.1705463471963; Tue, 16 Jan 2024 19:51:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705463471; cv=pass; d=google.com; s=arc-20160816; b=L2nLYt6Cs+VzhnzFRHGRQuIb4FyfAYtNv574rRhCZktCUP0yAPRBzRFlbt9XNBLL1v g5wdsX3mgyEWsGyoWValDadUYUv9XKakLntdDjBwiHTSgIbczOLXki14jx+reP0PHj48 /xypCwdU2FqHNiaZ6Y5g1MOjzN0S2AX8UGgBK425Pe8llaCCIOR65zW0eR8G+saY7wpg e1iY3NpwmQNNsH9c2rh6jE08PChT0klsCi31k0G3P/J0t63XA8EfHtCvWIyx004PqTFS 9zLJpApJkuETCII0EnFPzeXy6cD/K4sXbmzpOrJSGFkovE6idi4RHcYZFzZLK7c2JaoK jaeg== 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=phBopZIe8FQ8TfC3rGLxMMXiYtQqVnQSRAWiIxrbEjM=; fh=a4xW7m8TbWQzZ0vM6+KGssxCg3D2Dirm0EhIliIsevk=; b=Qm4nQA+DvfoWH3EFGSgO21p98CkzxdLiNbZLI/Ldww6ZJin0ZrTUIkQUHKcksJH5W7 NEpDw+71XN2nihba9wY7dEuXYxsMcas1NBBvzPnDQ8SG1rqrDsGzPnp7ImTPvdsuHFRg +kIUcFQYRdf3dHXuXIvwArd9ZmspEe1tRs0A/rMvw+09Hp2VMGdQ49U1W4eWnbTdQJqm qmkrckqhb8A0APuMWr89IobfNj77jKdbjD/FH29Uizn3ehzeI03+Y5HFcXAzhEJ5JO7B 5dlU9ABfWgBRGd+qgJasdKh7scRiPw609tWbgEXwpOxIDlwI0welCsiZ4Ura4zkwOhAI IUDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bv6p26MZ; 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-28506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f24-20020a170906085800b00a2357549fc9si5216527ejd.548.2024.01.16.19.51.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 19:51:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28506-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=@linaro.org header.s=google header.b=bv6p26MZ; 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-28506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28506-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4D3C61F26A7E for ; Wed, 17 Jan 2024 03:41:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C21857498; Wed, 17 Jan 2024 03:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bv6p26MZ" 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 8B1935CB0 for ; Wed, 17 Jan 2024 03:41:18 +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=1705462880; cv=none; b=sitb7dT/XrpzIm6rMUxWQOHDrJX24Ih7wKnCoFjQIKG6btC+2ltDkco7EyjN+CAVZc6FYTdymyNI+d9MCvQyXoSETK/9QxvrdVDjVgFFV7KyCuJlmFLWxfEGhKqmtCs10MPcNMNPOyqJZNQZSmipb5HWhGQxpYEmHJd4qD/N/Sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705462880; c=relaxed/simple; bh=EEId0MKcmgt9JlwyzpnkONCbMwG4GyRqNccGKHgGcYM=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version: References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: Content-Type; b=Yc/ZCCtIc0yAFqSBMTGlkPIuxockusEVVaSRA35R1AETUwexUzMlAa7IXoAPMAzKp1LYOPiD37jKmdAGblHM4Z+ojZgoVZljky0bKzLz618poQWC+0e3hINB+7VCtriqCcHVNriMO3taky0r+kQtGFnU5mmWBqhG2Ks1txQ9XVc= 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=bv6p26MZ; 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-5ff5be20308so8633117b3.1 for ; Tue, 16 Jan 2024 19:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705462877; x=1706067677; 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=phBopZIe8FQ8TfC3rGLxMMXiYtQqVnQSRAWiIxrbEjM=; b=bv6p26MZqLAl/5R/0Y29Rbkgsh48keAAVS4W1Jl0aKWGdzVjyz32pArIO8m16HnQSH wHR7QoJABLDXClabDfiLlhlLHmF9DWUFvENXRWCDI9F1ps9Yw3JBzfJUf0NkRWCctva9 AnfS9IZeO9YNrPa7+W5BmeOgCnhqp4jVGCg+pEAqJyuD00gsgqCaDpIJBcDfiS7GZ3E0 trN941vl9v8tovIeBHdp3SpIB78Mitp8fYtXVUuxQfJPCUll6InBNXaBPZPz3Uzyn4ye JrTh353fHBVyDR7Z7xszUmkBjLLfp4YkODdQ8bca9Hgomkg6QGshh9gh7Zw37bK8yDNX uMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705462877; x=1706067677; 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=phBopZIe8FQ8TfC3rGLxMMXiYtQqVnQSRAWiIxrbEjM=; b=ackCTd0QwYjTAKqaHKSQDThvgKHxLDLoHxkctCuM5oVxNiDgpkbl9xgvlYJLikfMwf pkZZpuakhGLcDm3HVTHVqR3Cw2MSkSDFhJl9N2Gln/8pHF+BQMQ7i+1jsA6YEfGe7Cbv WxdO5aNdIxzDOFkI0Dz5y9KWj+9QEx1dFX2W+n2UfLit7N05/ovQZwocZkS3htd4zAKA XLwm113Tnch9Hn/5oG7ARm2gzOc2zk23K7MmNbVjHbICo69EwsNSM2yFjqVSC+gB1ae4 6fDAER+jTFpdR+LZqjJJMXOSFl/APs3iThDbHHu3rFKqfDxAzM35dxKfKgqc4fftxgrF Surw== X-Gm-Message-State: AOJu0YwGPI9S/3NI4u3wSuzevlIJXQUhkTTOlT1+zCGqOcXmsNcvFgk7 BEIv3idVBn7R5QIcO3yX9KlFcqEXJGNWcdjROpEsRY44iZ+sBA== X-Received: by 2002:a81:af66:0:b0:5fc:17ab:2f0a with SMTP id x38-20020a81af66000000b005fc17ab2f0amr91991ywj.13.1705462877532; Tue, 16 Jan 2024 19:41:17 -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> In-Reply-To: <44ab50c4-c63b-436c-af46-9b4543181446@quicinc.com> From: Dmitry Baryshkov Date: Wed, 17 Jan 2024 05:41:06 +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 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? > > +&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