Message ID | 20240226105747.3547856-1-morf3089@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-81234-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1992948dyb; Mon, 26 Feb 2024 02:59:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUyHcyflh66UqdqgP1FOgBup8gwV1Fwr0gpnj9ycSXBiJRcdSQiUhVbgH+gLnWlNak8Zz0CVaeIa+9KhTT8oykj1z1u8Q== X-Google-Smtp-Source: AGHT+IEbWXNkYyQogSi/h7odFXceoSUGwup0OrZV7FTnRrAu4qOjSIIn8MLLQdh6VMFihzA/Ibmb X-Received: by 2002:a05:622a:d3:b0:42e:79eb:d9c7 with SMTP id p19-20020a05622a00d300b0042e79ebd9c7mr6851662qtw.15.1708945169830; Mon, 26 Feb 2024 02:59:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945169; cv=pass; d=google.com; s=arc-20160816; b=qiViitA8F1/grwYD+XJZd4xns8QUIBNQY9pk63Inh1CvohJg86tUeKU4A+uY6XQpLN 8eQw69Z95zOvzHPt3sOAvhGmkknBkFtSraPVjswIzmt62wAqe8lm6LYzEILtuJm0UQ9X hOTJ4L0V86FapDnqRnX0HxOtekhgQPIDYMM5mvWUFnCFV0ZJn/ZQJYrXixPbOsRBCSwB WrE6dwQeWO8fs0KvMgv9A9G9/uK57UtaZHBtEeclWvvzNdCBAI0+VmTMrWyae/yyPZt2 7TL0/AqaqYD7UgdC7D84Q7bHsTB9jAJ1MUYO8U3mz0P84nvZ6xVWSVLQ+svoaZtiCdpE I26w== 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=IvhKpbDdulGxgP+IwFgSDnLRnOt43Nca6QD/Gk6ZNSU=; b=GIUtS9yAdtWZnZGV0qfEh/KbvLXUj+2xtWhiOVPoj3KOQMJz4b7nkpYLtq/H7YbFPW Z0ktUUmpuiPJFX/uWEjKLJ20NSZHzZBC+2E28ESimbJlsZv9UsUxw/TZLVr0vzG9sAAL gKeZEwI3g5l0dDe3Yj1chWksKsxcZ0rbvu72XFZ7Gzs0It9eQBNJS+nkIA5Z5EIPvJZ6 AahC5IBF4YYkRli9VCCAgGI0c26iEST382ykON235jCQVSsUYcErWYwZJkLtIyYkTHR8 cWVIZNE/qsKFKMYWIzNgD2CnDi8rGVukIYmgaPBweoSUJtKeL4nTqtyJKNq8R0TWIw5H Dx+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nb2rg0g4; 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-81234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81234-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay32-20020a05622a22a000b0042dae87d1e6si5186070qtb.450.2024.02.26.02.59.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:59:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nb2rg0g4; 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-81234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81234-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 781221C27D37 for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 10:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 316E61DA23; Mon, 26 Feb 2024 10:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Nb2rg0g4" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 E25DC1CD0C; Mon, 26 Feb 2024 10:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945093; cv=none; b=iVU0ExR2VuZbfHqI0o/GiYEAIdALk+8L8FgyKzMS1P6Dy/QoPFG+WV9+SgzkmMbRAZyVIkfPnUce/muyf93rhDs8dyCnS7ff6CKfXu3WtEs3D55J1YG4GRTDfVtqkWwk0o+Za3A3Mb726cVRVvEX28Fd7XDu6XQRwLJdHkdI8Uc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945093; c=relaxed/simple; bh=+M/IcrkC4KiqVSgKEfF4MEPWWH07B+P/vlCcnh7YeNg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pcnWxYICDM4YTAbS0S7JvIjkPo1+fKegRixFEo5WqxVzv/Sj+3c7bWJKjvXPy//NVK7iMNtfkfCqE6v1+iGAyc6SfNX7luSFZ2nS2tKVH+WDyhc+CpVxBHQoMRehcPYHXXEcfCfqynGxsX1DS8rFsf96U8MpFIMw37+zI8OR3YM= 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=Nb2rg0g4; arc=none smtp.client-ip=209.85.208.46 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-f46.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso2823397a12.3; Mon, 26 Feb 2024 02:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708945090; x=1709549890; 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=Nb2rg0g47TxtWTRp+xwiGcZChBALbmlu6u9bSrhXbkb7gAVW2ZlL5O/3V0IOJm8OHR 4dvi3cxrO6v2wPdkFODBd2VOBqS1++JsMyKHApeBCD5628dsIdxEalZSclEwiIlj0pIk vZDM9AKmLM9YKSJFrTdrwZGSNTzXwV04yAjQaXEq9ALE2CdquiNZs/Fgvl/nOP0QR22p EtVKIpYowHzpYhKhZtZoySh8sT4Xnxy3d72sAE+Il+FTXa0vnYmblPsN2D+OxNKfSeel AfYYeVPbl7XuSzygDNYdd4Lh3YjWOaeYmgPKia/B5jnvSvrNF7Z4lWbPp/5dtdII5PuO VDwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708945090; x=1709549890; 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=u72Uv+C7NRW1/R+dzdQbW3sEiivOOm5HirzSgdJ7AizKXhXwGD6DfcPxoiTQMMD1Y3 kjLl79HpP6sqr8945cw9Bt+XdZnmE+ahFFMy01KF4lddseNv2iYLayUFSVFYi4oIrkV5 h5r0v6SZ/CabwbpUCkFmk40Xt1jThfDGAVekpi6910dagpNC9TfvTsys2goc+o2jb7q6 4RqUA6aFF428I5b1+fnmVLAoeuTk0hAO4P3DBMIMAnQRrvEkTVED5os0Gj/vvc3MnHwM bY6Z7lFz2XgPSFf+YLHuotdQn8RGk85UEvrmmuHTZGLOM7q2DtW3zC18f7mzxK0J3HmD i0DQ== X-Forwarded-Encrypted: i=1; AJvYcCWiA+ovq2zxcSlUGNGxYZY8Ho715VdxmIC++EpIoxZPStUr03X2ABAgm9nALBG8AIlAeoq102kzo9XEgxU8Wo2RwdlaRzmlGByZzWXYju8oy6/TzYALFLX/3WOgct4nonX21s6hSQioTIURlsJ3zBPIouVUSsZcTuqQ2qLKfnhc1AyRjX90aMAkWP8NyLV8pF3kOO8GUXeozlUK1tK/61SO1r2p X-Gm-Message-State: AOJu0Yx1pl7mfuWk0It7jMJw/yLfPU78evgV1T0pzb6xCi4nGlWxwoC+ kbtU3+Hrn78cbMClOU25p8LPsoJEkiDq3z3aXoA9C7OF8szRFpLOPH5WW69CaW0= X-Received: by 2002:a17:906:ce5b:b0:a3e:cb18:d4f with SMTP id se27-20020a170906ce5b00b00a3ecb180d4fmr3911722ejb.30.1708945090018; Mon, 26 Feb 2024 02:58:10 -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 f19-20020a170906085300b00a3fce8c0f99sm2315769ejd.191.2024.02.26.02.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:58:09 -0800 (PST) From: Gianluca Boiano <morf3089@gmail.com> To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Gianluca Boiano <morf3089@gmail.com> Subject: [PATCH 1/3] leds: qcom-lpg: Add support for PMI8950 PWM Date: Mon, 26 Feb 2024 11:57:45 +0100 Message-ID: <20240226105747.3547856-1-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <d17121a0-ca14-41fd-9802-bb4118629e34@linaro.org> References: <d17121a0-ca14-41fd-9802-bb4118629e34@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791955335349721681 X-GMAIL-MSGID: 1791958890488164768 |
Series |
[1/3] leds: qcom-lpg: Add support for PMI8950 PWM
|
|
Commit Message
Gianluca Boiano
Feb. 26, 2024, 10:57 a.m. UTC
The PMI8950 PMIC contains 1 PWM channel
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
---
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 },