Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1506609rdd; Thu, 11 Jan 2024 00:54:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKWsJxLdmZbPn9SM5sNplpdRA5ZqYIIgkeASVJjv6JdrM8YtuS4SWMx0BeZj8Qm7vxdRTN X-Received: by 2002:a05:6214:246d:b0:67f:cb76:b34e with SMTP id im13-20020a056214246d00b0067fcb76b34emr858908qvb.70.1704963291857; Thu, 11 Jan 2024 00:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704963291; cv=none; d=google.com; s=arc-20160816; b=oyVJoIIBmKinDhIX5njma+S11WvbeDQxilfg3I7FDZonlYCE2ywQeKfJEbJNgSuA8n dnaCU2L360u8jQWGY4HjYHRDRCrQr5I5zp0p31FCklA8O3mM5e7ijC2BQtNBf12cIYa3 pmfNQnoBJrMIhnUXuYcYq6bnx5Fe+goJ0WKjsBC2FI0o6RFOTKjSm175ymTnSU8b6Mq2 ggx/6avtBjsEBWa73PnxZRIMFdeiBvg01DKSZR3W0WVAOobarxg0+d3EooecpgFjtqnh xVLc56kx9q9aHcAN4QUCjt7MkTUbrjGvAxmcVwAvV1UzUjxEQqPIY1HHT+oXxrVu2PUt 7nRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=8fdzAkRigLOJSs0p8z2FKeIqZxw3OTVE9TPYi8cJXf8=; fh=6JTgQUpY/feUgGjfJT5wJHhePz/QnyRs73NaProQKg8=; b=fQGSAHPaB47qzYOW8OdncxXZIAkDK+3RMi6f1xEXxckef1WTf10G1kEtSU3e7BFc5C sHyI3Raj5Lu+IkYd2QP+kjHoq64FOBGVFzhv5qGk/Zo4guWqfoMFInqwCkD01ntvVH7x rC01XnS4rfDpld7uAe2NHCr+eyOSP/yMYTQgQ9AZN3XAAP4iN5OZmre/FeYPMfK4ChP9 b5QbY3c5DpbpHTVo60d3oYjGRd9VZ9y7+YLqVpjxduBbASEjhczkfMLH2gt51fCjd1y1 v/a6T/pR8fGyWUcJBH84KvTT5rDL7v9K1YmFQdZUv3NhW0Jcqkr20+jw092o/zRgcWts 6CLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=Ww8auN30; spf=pass (google.com: domain of linux-kernel+bounces-23250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v5-20020a0ce1c5000000b0067f95d02028si379069qvl.248.2024.01.11.00.54.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 00:54:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23250-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=@fairphone.com header.s=fair header.b=Ww8auN30; spf=pass (google.com: domain of linux-kernel+bounces-23250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9B3EC1C240AA for ; Thu, 11 Jan 2024 08:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD193FC05; Thu, 11 Jan 2024 08:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="Ww8auN30" Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) (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 20132D52E for ; Thu, 11 Jan 2024 08:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f68.google.com with SMTP id a640c23a62f3a-a2c375d2430so70334566b.1 for ; Thu, 11 Jan 2024 00:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1704963282; x=1705568082; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8fdzAkRigLOJSs0p8z2FKeIqZxw3OTVE9TPYi8cJXf8=; b=Ww8auN30yMp8d0qUl6xxGNzHMHoKPxbrXBAHPgfcT16BZLssWZDTRx7lwa/iKPPl5g DCTP2v6fX+NXur10Fq5rI1dfDIZnPAZx41G2qVEGYDPiNNr9cm1SwS9WcKJJuyHDDFqK evSMVb+kPtr7Ozx4TyGQ1WwRCSkuGcH7EGF8ySUk/knhZG2guDzwh3/F8FpvxcvEkMBo rprJPtUC97NtgcGjkPLgYEl0fGzTT4IqUVprVdvRBXYd5HRinESKJFq3j/zkxKV0izZg 76Rh0TKqScuqA5tS5qI18mygdkDt03QecfyLo+2J3P7/GHBWidMdkhlOeko4dyVAEND0 A6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704963282; x=1705568082; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8fdzAkRigLOJSs0p8z2FKeIqZxw3OTVE9TPYi8cJXf8=; b=QpplTHeKnxYmriwp1XZO2cOa95DcTBZNYxqTq/GYEwW1PmZkhhhCyB1/0+hv8V4lbw lJMRLnNFwiuivFpRQvxGp5yFm3F8veP2iDtRxsEsmtuQzWRL/YMskwwD5FJ5de+PSyA+ rQtfDd10/RBQoKPBMA5Mtk0fUJYnS2NR9q1g8bsXXwC+/w/uaiDLrsei0+LIysPs34fO uaOkOdlZCaQuTNtXUcM53WqtvAsuLyTKAXXhSqWmWhPJe8LbYPY/hj0IkZHUUNvmupXi s85skobswefqkreOzP7Z4SqOLYC5ehFOWU0At+fvLHIOnEHogx1l/lCp+FdqC+Ott0fW EJ0g== X-Gm-Message-State: AOJu0YzfOK6wY/pA4lXJV9DCbddUcGGpMh3dIg+/sQwQ7CcMMC7QjsSU 9QXr9Lzg0o+H7n4sE/W18sI2Fsy9bylqUX9qFdcT+EA3IqpnZeCH X-Received: by 2002:a17:906:17c4:b0:a28:d427:3959 with SMTP id u4-20020a17090617c400b00a28d4273959mr397730eje.62.1704962870935; Thu, 11 Jan 2024 00:47:50 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id rv4-20020a17090710c400b00a26e490e3f2sm305391ejb.181.2024.01.11.00.47.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 00:47:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 11 Jan 2024 09:47:49 +0100 Message-Id: Cc: , , Subject: Re: [PATCH RESEND v3] arm64: dts: qcom: qcs6490-idp: Add definition for three LEDs. From: "Luca Weiss" To: , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" X-Mailer: aerc 0.15.2 References: <20240111-lpg-v3-1-811c9e82dae4@quicinc.com> In-Reply-To: <20240111-lpg-v3-1-811c9e82dae4@quicinc.com> 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-3cad1fb= bc65a@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-c3e1c8572= cb0@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/d= ts/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 @@ > =20 > /dts-v1/; > =20 > +#include > #include > #include "sc7280.dtsi" > #include "pm7325.dtsi" > @@ -414,6 +415,30 @@ vreg_bob_3p296: bob { > }; > }; > =20 > +&pm8350c_pwm { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + status =3D "okay"; > + > + led@1 { > + reg =3D <1>; Hi Hui Liu, > + color =3D ; > + label =3D "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 =3D LED_FUNCTION_STATUS;" 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. Regards Luca > + }; > + > + led@2 { > + reg =3D <2>; > + color =3D ; > + label =3D "green"; > + }; > + > + led@3 { > + reg =3D <3>; > + color =3D ; > + label =3D "blue"; > + }; > +}; > + > &qupv3_id_0 { > status =3D "okay"; > }; > > --- > base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240 > change-id: 20231215-lpg-4aadd374811a > > Best regards,