From patchwork Fri Nov 26 09:11:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Satya Priya Kakitapalli \(Temp\)" X-Patchwork-Id: 518467 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C76D3C433F5 for ; Fri, 26 Nov 2021 09:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353219AbhKZJRv (ORCPT ); Fri, 26 Nov 2021 04:17:51 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:27569 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376260AbhKZJPu (ORCPT ); Fri, 26 Nov 2021 04:15:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637917957; x=1669453957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=tasWJGzGYqyHJi2061m9WkcsOZsCnYAK8vRbSExbLGY=; b=HjVBaBeR6eypd6AN5PFhSX2pYEyRBk30OWFPFz52inMJgwYQvvmAke8I lPafItkp+z5Ds9kqsATlxWMu6ujb1imghEjtLU2ic9FfWHvsZyaNrlGxT nNFnuKZRmryu8cOwxNE0v93qaAHTXJKGEuO43/SM5QE8XMlzKhLa8MtPi Y=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 26 Nov 2021 01:12:37 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 01:12:36 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:35 -0800 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:31 -0800 From: Satya Priya To: Pavel Machek , Rob Herring , "Bjorn Andersson" CC: Stephen Boyd , Matthias Kaehlcke , , , , , , Satya Priya Subject: [RESEND PATCH V3 1/4] dt-bindings: leds: Add pm8350c pmic support Date: Fri, 26 Nov 2021 14:41:57 +0530 Message-ID: <1637917920-22041-2-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> References: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add pm8350c pmic pwm support. Signed-off-by: Satya Priya Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Changes in V2: - No changes. Changes in V3: - No changes. Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 336bd8e..409a4c7 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -19,6 +19,7 @@ properties: enum: - qcom,pm8150b-lpg - qcom,pm8150l-lpg + - qcom,pm8350c-pwm - qcom,pm8916-pwm - qcom,pm8941-lpg - qcom,pm8994-lpg From patchwork Fri Nov 26 09:11:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Satya Priya Kakitapalli \(Temp\)" X-Patchwork-Id: 517300 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F214C43217 for ; Fri, 26 Nov 2021 09:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359644AbhKZJRx (ORCPT ); Fri, 26 Nov 2021 04:17:53 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:27580 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbhKZJPw (ORCPT ); Fri, 26 Nov 2021 04:15:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637917959; x=1669453959; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=lyBzCTD3Sp+JtqsNz/bUwdq+Thog8RwB3gmYXNdNlqc=; b=nsxFB4rN3yts7Q7XqHkGb/cLYbaaKkdNqRQczQ0N2l6936+wf4CNZTGT XEUcqONcl888znFGQEttHXkTVKn3sjDnbF5lFrg78FKS0CWhxhzYlm8RU C7NlsTk2omTQmrhABb0bh/r0d+c9e+p4lRpyAaSm/Uiriojf6kygjAfOm o=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 26 Nov 2021 01:12:39 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 01:12:39 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:39 -0800 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:35 -0800 From: Satya Priya To: Pavel Machek , Rob Herring , "Bjorn Andersson" CC: Stephen Boyd , Matthias Kaehlcke , , , , , , Satya Priya Subject: [RESEND PATCH V3 2/4] leds: Add pm8350c support to Qualcomm LPG driver Date: Fri, 26 Nov 2021 14:41:58 +0530 Message-ID: <1637917920-22041-3-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> References: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add pm8350c compatible and lpg_data to the driver. Signed-off-by: Satya Priya Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- Changes in V2: - Added const for lpg_channel_data[] struct. Changes in V3: - Correct the num_channels and add respective base addresses. drivers/leds/rgb/leds-qcom-lpg.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 45ef4ec..ad99a9b 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1275,9 +1275,22 @@ static const struct lpg_data pm8150l_lpg_data = { }, }; +static const struct lpg_data pm8350c_pwm_data = { + .pwm_9bit_mask = BIT(2), + + .num_channels = 4, + .channels = (const struct lpg_channel_data[]) { + { .base = 0xe800 }, + { .base = 0xe900 }, + { .base = 0xea00 }, + { .base = 0xeb00 }, + }, +}; + static const struct of_device_id lpg_of_table[] = { { .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data }, { .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data }, + { .compatible = "qcom,pm8350c-pwm", .data = &pm8350c_pwm_data }, { .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data }, { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data }, From patchwork Fri Nov 26 09:11:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Satya Priya Kakitapalli \(Temp\)" X-Patchwork-Id: 518466 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C441C433EF for ; Fri, 26 Nov 2021 09:14:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359806AbhKZJR4 (ORCPT ); Fri, 26 Nov 2021 04:17:56 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:54025 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376264AbhKZJP4 (ORCPT ); Fri, 26 Nov 2021 04:15:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637917963; x=1669453963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=n02R8J5V+BGfJ3PEtmKdHU9NtSsqTzWCr0licA03nak=; b=i1MpQc4r5w+2+8I4jWIxfKmKNF7WW9Dxl3MwMO0vC0uvcV+jZOfl8FSu g/r4N0cDHn9e570Gs94eKj+0x35wcONay6cQN3hMfx+mjuoWmPqTM0GfE p4l12sBzi4HFGzTZhQw3eJb97Qy7cf0vk3Gp/T42lPm7BB9aSM5G2HYSz o=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Nov 2021 01:12:43 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 01:12:43 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:42 -0800 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:39 -0800 From: Satya Priya To: Pavel Machek , Rob Herring , "Bjorn Andersson" CC: Stephen Boyd , Matthias Kaehlcke , , , , , , Satya Priya Subject: [RESEND PATCH V3 3/4] arm64: dts: qcom: pm8350c: Add pwm support Date: Fri, 26 Nov 2021 14:41:59 +0530 Message-ID: <1637917920-22041-4-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> References: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add pwm support for PM8350C pmic. Signed-off-by: Satya Priya Reviewed-by: Stephen Boyd --- Changes in V2: - Dropped suffix '4' from pwm phandle and removed "status=ok". Changes in V3: - Add reg property. arch/arm64/boot/dts/qcom/pm8350c.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index e1b75ae..1ba6318 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -29,6 +29,13 @@ interrupt-controller; #interrupt-cells = <2>; }; + + pm8350c_pwm: pwm@e800 { + compatible = "qcom,pm8350c-pwm"; + reg = <0xe800>; + #pwm-cells = <2>; + status = "disabled"; + }; }; }; From patchwork Fri Nov 26 09:12:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Satya Priya Kakitapalli \(Temp\)" X-Patchwork-Id: 517299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFEA2C433EF for ; Fri, 26 Nov 2021 09:14:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376258AbhKZJR7 (ORCPT ); Fri, 26 Nov 2021 04:17:59 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:27617 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376266AbhKZJP7 (ORCPT ); Fri, 26 Nov 2021 04:15:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637917967; x=1669453967; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=NKEL6oeXlSb03z5C/6SFh048XbvDf9GKjlJDwtbjnv0=; b=D5iH8aenDQF4Pymf8ekn7okvPmNAh3frsTS30qRVJ9BetVrYJxg04Ji6 gsDbUH84H3DmfzqETvJ9OKByi5Hxdami2jPTELivhRrNGf7d3NPYlnwSm 34yqq/lApnxGDKbpaZ+/e5ait66NRBEN6V+fShhQ/WdGoUW9EqUjWo+XD 4=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 26 Nov 2021 01:12:46 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 01:12:46 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:46 -0800 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 26 Nov 2021 01:12:42 -0800 From: Satya Priya To: Pavel Machek , Rob Herring , "Bjorn Andersson" CC: Stephen Boyd , Matthias Kaehlcke , , , , , , Satya Priya Subject: [RESEND PATCH V3 4/4] arm64: dts: qcom: Enable pm8350c pwm for sc7280-idp2 Date: Fri, 26 Nov 2021 14:42:00 +0530 Message-ID: <1637917920-22041-5-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> References: <1637917920-22041-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Enable pm8350c pmic pwm support for backlight on sc7280-idp2. Signed-off-by: Satya Priya Reviewed-by: Stephen Boyd --- Changes in V3: - New patch added in V3, to enable pwm support on sc7280-idp2 board. arch/arm64/boot/dts/qcom/sc7280-idp2.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp2.dts b/arch/arm64/boot/dts/qcom/sc7280-idp2.dts index 3ae9969..07ca295 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp2.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-idp2.dts @@ -29,3 +29,7 @@ &nvme_3v3_regulator { gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>; }; + +&pm8350c_pwm { + status = "okay"; +};