From patchwork Fri Nov 17 10:18:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tengfei Fan X-Patchwork-Id: 745015 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="PNgJe6cP" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E448310E0; Fri, 17 Nov 2023 02:19:25 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH9KS9B002591; Fri, 17 Nov 2023 10:19:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=G7fLN67cGxpJVCr6W2AnaeRfKmD52uh3mEADxNHhkJg=; b=PNgJe6cPIn64M4dO0LAulCzab6OwLBJR2Iijv/LWlIyM8PM8bDmMNL/olnaJ5qdCBo6F 0Gsqf48RZeibgZ8pmAOnIDFwFN+CfM71+Gt1lWwT7cHtttBaPVJyjATT/o2z5sXUrNYY t6yFrya6VnsHlkjec9TyH7HztW5vjiMh/Wc7NEPDfBG2h82dnBaNvRGXS9JVieSruKTk xbEkzX7iqPHPFrOHB7lXJhHIJZ9VdRypGXx1m3RwW3rGwoy0ov/GYru3fFKBhvRyfgw6 y5tf9qC+H4DQa479J5cp4QO+vi2adpdXqm+MpRrTco7hG4lJXZLvnCYZqjH3ukLTrBu3 Fw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue5exr3t6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:20 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJJH3007651 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:19 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 17 Nov 2023 02:19:16 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 11/16] arm64: dts: qcom: sm8550-aim300: add notification RGB LED Date: Fri, 17 Nov 2023 18:18:12 +0800 Message-ID: <20231117101817.4401-12-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231117101817.4401-1-quic_tengfan@quicinc.com> References: <20231117101817.4401-1-quic_tengfan@quicinc.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: OFAPo5pXCnAvtB0iNOWQZKmJsTPylUO6 X-Proofpoint-ORIG-GUID: OFAPo5pXCnAvtB0iNOWQZKmJsTPylUO6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_08,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 impostorscore=0 bulkscore=0 phishscore=0 malwarescore=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 spamscore=0 mlxlogscore=604 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170075 The QRD features a notification LED connected to the pm8550. Configure the RGB led controlled by the PMIC PWM controller. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts index 9b568ae9581e..40132073038d 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts @@ -517,6 +517,33 @@ }; }; +&pm8550_pwm { + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + &pm8550b_eusb2_repeater { vdd18-supply = <&vreg_l15b_1p8>; vdd3-supply = <&vreg_l5b_3p1>;