Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1206225rbb; Mon, 26 Feb 2024 02:02:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbtcGIuQh/MeLTsbLirCdbeEMDDFOqjId2rHlElO4pmRSPKsfAVU+lGNtzBbkavqsFGRithQEg9w4yv9DTsb/T2MPXEazmwiwBKm33jg== X-Google-Smtp-Source: AGHT+IGEb7UGYWNQcdXOlXe3/VdUn8kettBeN4rgINCZUBYGIs+G9aRRUCsMYWZHg7/9yCTKEpdu X-Received: by 2002:a17:903:2409:b0:1db:875b:efb2 with SMTP id e9-20020a170903240900b001db875befb2mr5955344plo.10.1708941753861; Mon, 26 Feb 2024 02:02:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941753; cv=pass; d=google.com; s=arc-20160816; b=ulEcI/Ll3jxfB94NXeqbzG/9fR2nUnfHEKubfy8beLDf1vmL4a3fd5rObq8fuw59Oy oPQHyNcLGuPSR/BNtvGqNuEfTeJBXn+tsEu4yC3Z20/KAparzJ9V+vt204YApyeb8bh+ 3ZmPM8iYjgstIv394hIbaLuu9mkLZqDSe/SttsD46aV5LSL7p9n6LOOf1XzpDVVSYL5Y amml2EW3Z85AHq737erNI/KRXDRRvP/LwEB7xFeVvRfSL4WHA5IUiH/DZvIs/wUyr0dZ 5Mv0SNKBdjc8QWQX77P4wSSu6cbEdBIq7UtBkOL313rISaIu6gU2E8It5nEtTjR+qkiY y59g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dpglvbug8B6rz9FHKHRWvwGpjAjoa19+rytvw+mL+G8=; fh=U/zs5StxzFvpagVYIeaJmCrYGPCdrg/jtwyEQaXHBjk=; b=tIP6e1CYVvSo6/qFPCHn8tOgOuowtkg50mVoAj1iO+Y3I+vJEQzIOB38vCOVKZDuhg HctaAonoXIrh4a4cC+UtadF9J3Tc8oKmKdTacgmdHuuSASwr6O1W/yFNjYshNmzfzTh4 V6SHdPFZUcn7I3QNmJ2wiEdbdgFfECZZGoe2axabOQTIn5CSta1HeJIFZNazL48256N2 xJh1YegTALceklMfeGn1980g26kxKh54E/M8yAv3nLAkLWTxbgzKzy/+f9q5VfU0ZF4s zIW7qtQa+ICSVqu6VYGTKHnUr/wq3rmoIidvXVtX2cdEk3lebkgrypv+B5uJEsDGP8Ec V8sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f1Lwlc1n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o9-20020a170902d4c900b001d8ecf3d0fbsi3471014plg.511.2024.02.26.02.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f1Lwlc1n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E934D287CE4 for ; Mon, 26 Feb 2024 10:01:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 630615B5AC; Mon, 26 Feb 2024 09:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f1Lwlc1n" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F35411EF1C; Mon, 26 Feb 2024 09:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940273; cv=none; b=nZMUU2vFMjYMnjix9pRqCBZaOaAnRjejzlRAQqbx+28aAHbA7PdGx/+G5tp0wTSoFxBpwBlf0HbE2gfjDmALW8oWh/GOjmulTbnI7whUmE+pUmCkIZhkqcdUcxIMx9DUo2x2mBKCLMXMIG5DbrTHlxb86vySJJNtxQxScXbM4eI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940273; c=relaxed/simple; bh=+M/IcrkC4KiqVSgKEfF4MEPWWH07B+P/vlCcnh7YeNg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rgPyfyTUrf4PDlUtoR/y2lJ1K05SZX9xPjyrTV6dLDgQabvjKgPB+uA4saiPJa6itwXB+ABRg5vttBeBN7jRinTEMUcNkb4UgaCZdyrkn+B7hV1+vZUrSzz1AGb6VGDR5LYF0rNwF+8sNcg60OXAGgA4MzT0IjuBoqZB3jssJ8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=f1Lwlc1n; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso2720838a12.3; Mon, 26 Feb 2024 01:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708940270; x=1709545070; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dpglvbug8B6rz9FHKHRWvwGpjAjoa19+rytvw+mL+G8=; b=f1Lwlc1nJ23KoFpVKfKTBefiJxDqBhxJLy3yztn2bHXbQcz6AA4Lr1/8EZykTn8d51 omSe/nkP4SAUj+5q+0EnKHOnkM1FUk19dWnm+SANNb2gnOPuD1uWgFlmIvB+zhu5yCwC VaR/IBca1owsr15UV9uNZr9XH66ZcDb3vedWfYhuSV/nFSfsBfazgXtFpwJGVw+ts4ZH MplEZyDDHsic35Yi4NILEi1nW8bFWi8WogbKs/1l/juLmYc4Oz2cbn6jelf1TNE7Fhk5 vXgLdLe5vQJq3GL340H5h7FqVvFOYKFacyk94U/X0C6qtwjxfWhQIvgTHLU1fNJadfEy ZlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708940270; x=1709545070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dpglvbug8B6rz9FHKHRWvwGpjAjoa19+rytvw+mL+G8=; b=JliV5GyzGuinQbX3clhgUl5ToQ2M0N/C3GFkUJy2eaD2h6uEHLx01izaOni/8YfbMj Xh95eO8n/yygbk+wxz+7qhYBkLPJH9TBxScICrTr4bh4ewI1rXZwlAFl+efoxe+BSL8V jLqWloJflqoinHsqCFcbd+24sFXiXHFJIEfDuIQJNcBTl/3wi6BaHnwcIIAiCXgFNZlh tFCjA5Gn6epNB1X+1xHrkTQepHkNJLW14gaukMnPu9yedumasx/7uVLpl6YFl1EH7FBv j+P/eB3KS8P+yA6E6YNE+YVGTsqNvFjUWuLs4EA9U1Ungo5PLvUQd6VzirtPvlDGgdyD /+8A== X-Forwarded-Encrypted: i=1; AJvYcCUwv7JZPP5xu+QXwIGte+Gi0cR3qI5GJDRtPuveomu2PPfJ9CDlV5S8EUduJRiz3Edp5MUa7XI1688Qtbbntra2UVsN/hOCoYvq764wpGRR5Gro3IMCd7pHlnaD+7XXNo9zrVXl+V0MjpujxWqfVFCIgqC+cRuk3uoXnpBe7fXHzuoBVZ/xHdgyHzstZiC2u0UHbeomFv3XISMlOrdhKcs5Er9+ X-Gm-Message-State: AOJu0YzObl3bpeVFUMDjtCFQfUudij0I+iSs9EDzuxEk7hTaCuDrTb1D aNW2hRimsJWw3w5voLLsdreg8mjCWNAXUut5Vsfn8fPWeP+UJ/Jv X-Received: by 2002:aa7:d9c8:0:b0:565:ebf3:e28a with SMTP id v8-20020aa7d9c8000000b00565ebf3e28amr1603276eds.31.1708940270082; Mon, 26 Feb 2024 01:37:50 -0800 (PST) Received: from unknown.netbird.cloud (net-93-65-126-20.cust.vodafonedsl.it. [93.65.126.20]) by smtp.googlemail.com with ESMTPSA id fd13-20020a056402388d00b00562d908daf4sm2158595edb.84.2024.02.26.01.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:37:49 -0800 (PST) From: Gianluca Boiano To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Gianluca Boiano Subject: [PATCH v2 1/3] leds: qcom-lpg: Add support for PMI8950 PWM Date: Mon, 26 Feb 2024 10:37:30 +0100 Message-ID: <20240226093732.3478845-1-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The PMI8950 PMIC contains 1 PWM channel Signed-off-by: Gianluca Boiano --- drivers/leds/rgb/leds-qcom-lpg.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 6bdc5b923f98..9467c796bd04 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1693,6 +1693,13 @@ static const struct lpg_data pm8941_lpg_data = { }, }; +static const struct lpg_data pmi8950_pwm_data = { + .num_channels = 1, + .channels = (const struct lpg_channel_data[]) { + { .base = 0xb000 }, + }, +}; + static const struct lpg_data pm8994_lpg_data = { .lut_base = 0xb000, .lut_size = 64, @@ -1819,6 +1826,7 @@ static const struct of_device_id lpg_of_table[] = { { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data }, { .compatible = "qcom,pmi632-lpg", .data = &pmi632_lpg_data }, + { .compatible = "qcom,pmi8950-pwm", .data = &pmi8950_pwm_data }, { .compatible = "qcom,pmi8994-lpg", .data = &pmi8994_lpg_data }, { .compatible = "qcom,pmi8998-lpg", .data = &pmi8998_lpg_data }, { .compatible = "qcom,pmc8180c-lpg", .data = &pm8150l_lpg_data }, -- 2.44.0