Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp328343pxb; Tue, 19 Oct 2021 03:52:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwirkHVG4r3r7Gcb65lFWHPxya61vEvSJMMV8QjFfqypQDot3Mhc5cjE5sgEyu87+6lCOyy X-Received: by 2002:a17:906:58cd:: with SMTP id e13mr19634595ejs.471.1634640772199; Tue, 19 Oct 2021 03:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634640772; cv=none; d=google.com; s=arc-20160816; b=p/E5fXiSLwaQWq5PGalxwOaUJK4A4RnWrcvIlCTlFp7meZ9tm+lqLgyXol8CVFuKKD tEvgt86tfONbZgObK66jqq0r7fAiYBEXQr3B91mPHVGqzuc4HpSommaFsFE8rBwKnrV7 xnO9B9/mD7ut8h3w763mR9IuxLtQSkz3cAEiW89L4RVNMW81OkLW3EVZF4lBvXAGdZIB uwLtgWtfqEjis8DcDW1v1kOPjI9wZwQ+N+q8k+UcH9DpcmkjJGzi2rrb+Z8cyOvZhJA+ YrQSWofpQg3SWrTObLnjMXufMNBBV3K5SvzbrLdMFAiR83SyUitC2FvL/Vq0K8hqlmy2 8wVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=+A93eiN+hqnQfahj59wCiYQfialZvbNfZUQaWyQT/is=; b=pCGlEAxMh/HLeQAid8xSaX4/3D2YP3tAgJRB+DVSHyQuDr7fOeiSTcNgqS2od9Gs8F JoLtrEjLLFbF/l4m/GNXjR2V2tKWFjxX35zrE7yfY9UBCDNX0a+mWEJaXwO1fTxx53vV sTeHIctess38hvrvnQ7Xv/NgjAgX7m81GmQFcjWIDIutigUqgbjJEn8FeLshM2vnAE/F X6tBzpzQJAvgoC22VH2b/ei69RWhD+VElIbf5rWXka1lIJ4hXo2C/AdPVYiZssOxD9Ju e5M12DKUCfQL4sL8QroJDYcPantxJEi2p4O9TshxkvEImcruWmW/7h14ipeVseVzyZTr hv5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si23758435ejq.409.2021.10.19.03.52.29; Tue, 19 Oct 2021 03:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235293AbhJSKvp (ORCPT + 99 others); Tue, 19 Oct 2021 06:51:45 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:24050 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235307AbhJSKvk (ORCPT ); Tue, 19 Oct 2021 06:51:40 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 19 Oct 2021 03:49:28 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 19 Oct 2021 03:49:26 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 19 Oct 2021 16:19:09 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 5681C5514; Tue, 19 Oct 2021 16:19:08 +0530 (IST) From: Satya Priya To: Pavel Machek , Rob Herring , Bjorn Andersson , Andy Gross Cc: Matthias Kaehlcke , swboyd@chromium.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, satya priya Subject: [PATCH V2 2/3] leds: Add pm8350c support to Qualcomm LPG driver Date: Tue, 19 Oct 2021 16:18:50 +0530 Message-Id: <1634640531-15813-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1634640531-15813-1-git-send-email-skakit@codeaurora.org> References: <1634640531-15813-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: satya priya Add pm8350c compatible and lpg_data to the driver. Signed-off-by: satya priya Reviewed-by: Matthias Kaehlcke --- Changes in V2: - Added const for lpg_channel_data[] struct. drivers/leds/rgb/leds-qcom-lpg.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 45ef4ec..99235af 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1275,9 +1275,19 @@ static const struct lpg_data pm8150l_lpg_data = { }, }; +static const struct lpg_data pm8350c_pwm_data = { + .pwm_9bit_mask = BIT(2), + + .num_channels = 1, + .channels = (const struct lpg_channel_data[]) { + { .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 }, -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation