Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2714337pxb; Mon, 6 Sep 2021 03:49:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvVZDvv95UDpGQ7bnzm4azrb9BLRfN5oq8mQ5k+8LjFjGUZOH0j+n1Y+4ZOyoLiugVWH+f X-Received: by 2002:a17:906:49ce:: with SMTP id w14mr13395813ejv.273.1630925347460; Mon, 06 Sep 2021 03:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630925347; cv=none; d=google.com; s=arc-20160816; b=Tm8eT8RseMgv8qgN0lWYFqSqxHIoOSeTmorbj5W4RRY+w7lF62M2Xapz7lAO6RlIWY 5rXNSMhGpSBY6pwySGEaVryaK9oBZZKBopUTJRl0E/L+knIDjHSeRcpMLjFHs0XAbcFQ UQmoCLHX+bvqkSgmpoMBZ+rQgUtwlJLl8WSJfkbMlAwWNXS+36tCWjdCXwfIq3ESFJSV WkqSH5+++2m7BznuRXKoXnM5x9/MNjI5TvKD29xX04EVpV0OP/IL+BIEDq1K5T2xRrf5 L2eGkplRsfhyWv+2lngHb6uHuXz13qRri07hKE41QJjzEFr+mmzjcqXw0jYj20eVh0OA 4nzw== 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=C8YF4SrfabF5iPc6DeznlnQ1a1aoywaM+Rb3ZzWrPpQ=; b=anNydaJENUrheNIOR1rE0eVQHK18jSd1qKrg3quE+Gr9WyMrx8H8eSxOPH3P45AeiV icJxCix/hFVgP3+wp1Xshl545EmE+NsPvyTVmpErRimweBIqp73lqVASMCY1THBYzd2/ ABZXO1m7QCFPxo5LiSHno8L+vUDMRlKGneCBaS5bMKSdUyW1+L/lOQJ46wiyO/jyehoc 70rE1sLwrUOfMx1PiyKQ5BALx7UO/dAidOGwqP43o5WzZ2LSNNMNymw+8W+5qPkgz1Vr OTDZR+ZrSY1hPfsa+4WySIeIzXLlSm+j5YN1del/1U0CyUgbIp3+NIE4zoljvXFbj0Ef YSNw== 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 cz16si7565843edb.154.2021.09.06.03.48.44; Mon, 06 Sep 2021 03:49:07 -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 S242014AbhIFKnA (ORCPT + 99 others); Mon, 6 Sep 2021 06:43:00 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:39413 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbhIFKm5 (ORCPT ); Mon, 6 Sep 2021 06:42:57 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 06 Sep 2021 03:41:52 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Sep 2021 03:41:50 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 06 Sep 2021 16:11:33 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 554B729DF; Mon, 6 Sep 2021 16:11:32 +0530 (IST) From: satya priya To: Pavel Machek , Rob Herring , Andy Gross , Bjorn Andersson Cc: swboyd@chromium.org, mka@chromium.org, kgunda@codeaurora.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 2/3] leds: Add pm8350c support to Qualcomm LPG driver Date: Mon, 6 Sep 2021 16:11:06 +0530 Message-Id: <1630924867-4663-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1630924867-4663-1-git-send-email-skakit@codeaurora.org> References: <1630924867-4663-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pm8350c compatible and lpg_data to the driver. Signed-off-by: satya priya --- 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 327e81a..6ee80d6 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 = (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