From ba856488828a6c2f26901b8bac4031bc046dae5d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 28 Mar 2022 10:05:25 +0800 Subject: [PATCH] arm/dt: miami: add aw2033 leds configs arm/dt: Add aw2033 leds initial configs, create red/green/blue for upper layer indication, and charging for tcmd. Change-Id: Id8777dac22078775dc7302f166159d29a43f720d Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2227091 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yiqiang Feng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 32c5fdade382..29c8db7a2659 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -595,3 +595,58 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + aw2033@45 { + compatible = "awinic,aw2033_led"; + reg = <0x45>; + + aw2033,red { + aw2033,name = "red"; + aw2033,id = <0>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + + aw2033,charging { + aw2033,name = "charging"; + aw2033,id = <0>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + + aw2033,green { + aw2033,name = "green"; + aw2033,id = <1>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + aw2033,blue { + aw2033,name = "blue"; + aw2033,id = <2>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + }; +}; +