From patchwork Sat Feb 24 22:49:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 205958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1346081dyb; Sat, 24 Feb 2024 14:50:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMEJEs/3oc5ZHnNi+879hXs8CB0sOvpjbaJmDQinkgi451KExTvVkoRpAzoXSyy1u72dq7tNzEqbsa2joeSjg5Co+r9A== X-Google-Smtp-Source: AGHT+IHiQ4mTZlHTd8P8gzyXzOpOnyYIlksUxocn5UpKwhaLMyonWL/TCnaW0//fsUOSEz7uVEuk X-Received: by 2002:a05:6402:f1b:b0:565:767c:ce37 with SMTP id i27-20020a0564020f1b00b00565767cce37mr3417059eda.3.1708815015381; Sat, 24 Feb 2024 14:50:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708815015; cv=pass; d=google.com; s=arc-20160816; b=QD0LwqGUXFjWEXoX8Mz5NIyJSRLNw0WjCtyJA2dqzQDUfMdp8/bBHKpvhfHb3QQYtF r/vj71PQiZq9Durcq/tp3R7gjgg99Z6uZ65kMGCchkR0x2kI3JgQ0UY0MU7JPXwYHnrC okurVKOBTgv0tSXa18jO65c6aAb6PzSZ7iJ0COdnsNfU2rCqa0Kdy2hG6KhFWI4jipqE Uy5ePLuH9+twOV4EqMo0z7pGfKKtHzE7e0nk2cKP52sYRmDHK3TlOF17n9V6eKdI+JiL ha3rn7i52Gs1GBHexvmuYIb9ndcGvvLfa2jVy7AJ0HWz7M8BoW0CiNFAtC9rd/cpDWwf dArw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=dpglvbug8B6rz9FHKHRWvwGpjAjoa19+rytvw+mL+G8=; fh=N6Yz0QUDe8mLDvT/SBBDwP/dR47c+PnMM9T4kAJeXuw=; b=g146f/kQBEz5yxBzhI6eCRlXAwLQ4iZF1omoj3zmRv72DB13s8vhEk/WBauPWRpzTu fcB8PtDOYKJ/IeZcw4YWPtbM5GYYj5OQD1vaqJzaD2n4ljLL15R9mJqx5uspnpE7q/5n i7efYXkAb9eXh9/45b5t9TLNeW5Wa+Tx4iO5fNg3e0a8ofbtTUm4Y/vQqAa3kgNtd+VI 8PuDsc1PqLzDmpiRpIA8u12VP36qb5fGuWRlZhbrVwi3a62oYepTrpWx3vDwcmk16SmP jj11KTAP537NrVXkM0ovnuURfO65QNsqDlCi4M8X72D6Bsxp10T8UnJBU4QBm73LFn4x HgUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z4n6wHvM; 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-79894-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79894-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m2-20020aa7c482000000b0056486d99760si756123edq.12.2024.02.24.14.50.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:50:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79894-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z4n6wHvM; 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-79894-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79894-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0549F1F21906 for ; Sat, 24 Feb 2024 22:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4025B4EB31; Sat, 24 Feb 2024 22:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z4n6wHvM" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 2C9B34C63D; Sat, 24 Feb 2024 22:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708814999; cv=none; b=t0EYWpFadJ+CAxMUJPKuP2QJoobke1SOFM1YBIpr9FWIfd56aGcuVg88RHd+/OGJxcBsVW+Ngh/p095UL502iQH7Rjxoj7QlGgqyf0ojD0SIpUrIbUxmkPAbS3XtNEJMtD1LbnBEpnWoCbw0tNUCHCA8e//6l+qoGxCjTXpoIh8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708814999; c=relaxed/simple; bh=+M/IcrkC4KiqVSgKEfF4MEPWWH07B+P/vlCcnh7YeNg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d/NJFUnPlAN+Tc5iV4vntKhCM8zqygqYQy1qiHv7+WGKXubNakfcRE1iVttw+46ArTUeSxCSqWUZi9q5aOA0KaMS1rgA5Q21CRvJcJFaBEpcfvCDnnSwIDtl5LcUkfMKVC0BSPg3UIqH6Cp9qbfzymYZ8wdV5UT2M2vs4SVguto= 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=Z4n6wHvM; arc=none smtp.client-ip=209.85.208.48 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-f48.google.com with SMTP id 4fb4d7f45d1cf-5655c7dd3b1so2870493a12.0; Sat, 24 Feb 2024 14:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708814996; x=1709419796; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dpglvbug8B6rz9FHKHRWvwGpjAjoa19+rytvw+mL+G8=; b=Z4n6wHvMA6d83CuYaa3qrH+S2RI/fVNdzo68PIFxPKSC2Z9x851cyO049Ovfjb3LIO AC/0YUHmMI1/A/b+oPNdU81Rm7yXiQzTJ8p0urhj2Zi6gkTOLljJWtn16RdUsw/0tjV9 79FJyGV48zh9NUf5qCixQ+3k9LOqNLXEJxNe2PTshySjf12PvrFhKjDavc/US25eJdkX QgKyFQK8c9lKDVW13mkyoXBIJ+dUwe80pOqahPxHxfhbKoV7PJSVulfXIfMupT4fI18M ynd+LNclizDyxhhB/grCAfZPdiTZH0YdS/uftuA9kcpirWQCY6sgGyJBEHVhS1W8YhyU Y87g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708814996; x=1709419796; h=content-transfer-encoding:mime-version: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=j1H5nkKQNOub8EpK/iJ6LrPYFrllvvUifmGk5xQUWy1kwgRf8ZgsMOIRegiksxXwNX 87Ms5RGAzRRTzzFS7RuDBqmzwbnUmTAOpa9Q/bsvl5e3sSYlkmfEz5rVAlfmXu2S8X2+ Hp75Yjz3ypTBgxeAX+UXEw5eNWb4rCQzG6357eCedzXCgYjt/w7EKWJhyoJ0wanqJHci 83SJ4rcORccxb4EcEgr8vXu3UZnP5VenHR98eglO1j6UIaE9QdIfb5xZWfpFML+xJgrP pX1D4khW8Z56PxYRk/NrYynkUeWw8IFL/RoxvBKQFk0UX4o62VHsjsN5kwTDXs1znHTe vV2A== X-Forwarded-Encrypted: i=1; AJvYcCXT4A+LP4y2gDm/+pak7blnjg4RluAJC+VEbFGUrZja7jdIRG55ztCGDM+WT2Ohdy4EPCH1r41PKnmwcs6JHPojtFtppaVo1+RWG89LgJs16ai6+aMv5QUf/a0yVS2aEPyfhFUmSPREH/Y1yG+2KDwuAfgapOudFHqcAMRSX34favy4UPFGQ57u2+3J6eXHGnKhhCoEUHYSL53o3PLAuQklnROf X-Gm-Message-State: AOJu0YwVC/aKXO/c3FYq3y3RthrIiaD54Cskzcp1eDEiahTdDe6v3A0A LBOu+WSVjzu+eV1XJTxOu+znB84dUE5hOlA53PMC4QYAsQPaCPoj X-Received: by 2002:a17:906:c9d3:b0:a3e:69ff:141f with SMTP id hk19-20020a170906c9d300b00a3e69ff141fmr2679500ejb.33.1708814996309; Sat, 24 Feb 2024 14:49:56 -0800 (PST) Received: from unknown.netbird.cloud ([37.161.229.181]) by smtp.googlemail.com with ESMTPSA id ti6-20020a170907c20600b00a431cc4bd3dsm145672ejc.182.2024.02.24.14.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:49:55 -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 1/3] leds: qcom-lpg: Add support for PMI8950 PWM Date: Sat, 24 Feb 2024 23:49:49 +0100 Message-ID: <20240224224951.1357644-1-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791822413406928362 X-GMAIL-MSGID: 1791822413406928362 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 }, From patchwork Sat Feb 24 22:49:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 205959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1346130dyb; Sat, 24 Feb 2024 14:50:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3Ne2ACN9jwVkp0atuwlnVzQBTLk61nSHAcbm13S8uMcUPvqp0airmSkVPF5frxxlykUNu0CjBu7eLXByfdzDNCJgOwA== X-Google-Smtp-Source: AGHT+IH2Iq2r82jNK3/Gz3+jIYAToa0zopfqT4tDWfvj5rk4/5h5vlCyBOasFssvvOPHB40g7TvX X-Received: by 2002:a05:6870:514f:b0:21f:828:7a7c with SMTP id z15-20020a056870514f00b0021f08287a7cmr4703517oak.6.1708815028468; Sat, 24 Feb 2024 14:50:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708815028; cv=pass; d=google.com; s=arc-20160816; b=IWUYhIZXCM9Rz5fCg0oulGuhv4zRzxlBijM51AOKL/Tler4E8t7i8LapCBJVORF97f MGOmxkxd31KSkmIZZ7dNXh+ltXPvwkkYaAZLJXLPrx4bSVJ63spsA2jNbZz9F+G4bUij lLHJLMqkYS9qv9Vo2kSGFPm9Ab45tmocxtMvFkpeUtom07VQ49iQqWKCyCNRQIPiKK9y 9fQnbI5UUk7/xwU2BoL0pa752Zlhprh5W2bIF2FLhcpUu7nAYrABip1+d+czwH9VCLxo nbAAArkoxT2/HqQ+bta7lImop7MRf3X0NLkQjHNfYUppVrxvEqGj+VLkMsSgUIMGkpd1 T+lg== 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=mgPRh2pCMQxvdaIAKISCXT6gieIymjX80GLulP6M7s8=; fh=ORFBgV5sKjxZhtXh9ZGosF/t/R2MFZNXZFaSTihbp7M=; b=xCzouRNJPBCbRhudu3qZqf6kcUnprOQ6YSi1aD45vwMKSheR1w8UxIXstxg+3JpQnw rgqM1V693isJJlWJ6QqhaB4akvsmuIvODmEnC5gHWweQu8+98hWIugITEn5dEz1WbA7K 0qaMtYQHtEsLgRCGyZAFUCli6BzkuK3S7HbxWpLhxvI+2OoSxIpH8bH6XqxFV5HPPGI6 Olo/+hMH13Xu8qEvb1CkBikwmna282d8s2grzsO8cl6CnvZdeOklwfuac+DDPGOg+6Hr vS6Sx5LDqVZurjZ9hcFwnwcItjc9qd5iqxPyN8UblT9RmekelAlRRTBEaPjVVIpIfXG7 Cd3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Lspgwe/O"; 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-79895-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79895-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o14-20020a17090ac70e00b002935f38dcf1si3207221pjt.181.2024.02.24.14.50.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:50:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79895-ouuuleilei=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="Lspgwe/O"; 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-79895-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79895-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 18113281D24 for ; Sat, 24 Feb 2024 22:50:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D3104E1C9; Sat, 24 Feb 2024 22:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lspgwe/O" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 34F554D11B; Sat, 24 Feb 2024 22:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708815005; cv=none; b=WMAwy1RKZ17nb2lQjD9b7m/6VEnAs5jGa5OqEqLNiOceQGPRX4gOqgqo1ScdEZIVqdyrpCKF1kQryKB7Li6UhbM1oLSJLtuXDhDlff9C1aG3I/gE0/V7VGXv8bOTmVMaTZks8+Vdeoz2+gZnuLWGd8RB/75oZ7fmuKmq6YA/IBM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708815005; c=relaxed/simple; bh=LqZLUJ4Kt9gL7yGBq5/WTF+5QKr1TTwkCx3SCqPdS1Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qpoabermQqmqApace75cMwlnByTlYHxeKjiBe86mRS5X0Eum1nU+Q4bcL5wb6h3xtQ/yXR0BysLUzSKeAcUWh+wG/fcSf9Hw1RYYZPyOOHniuPLQpsF6bjA2BL3aOjrjGRy/W/3uwobdPPBeZTXbcIeP127MwSAZChF2AxB+t1o= 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=Lspgwe/O; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a3e75e30d36so377942266b.1; Sat, 24 Feb 2024 14:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708815002; x=1709419802; 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=mgPRh2pCMQxvdaIAKISCXT6gieIymjX80GLulP6M7s8=; b=Lspgwe/O5nkpGzIgtCy6IcjHv2lb/zajgmCL33LYqokrhTW58jHbW+nyT8fa+whWkF 0QxMKBMnX2PirV6jU1yFF8zSVeskM/d5NPmdLmwn+Vz8tKy9uXygSqa4p4nznGoLJ1pf tlf3XnKqbOJVoubcTy0DEjHiCIXjcx1HKh8cRqFAXtx77PB+/XCZR3VeDn4VPPRKYSYA acG6zXXq4ejNkye2PeODpFqu+k8yf4gwCOe80FUstHmcZfO2mN0B0Lp7boZAK5YCz0Mc /5QuY4mzAsDJAEZSnfOphDO9yCIa/K0mfEy+QN7HTlix4QudHP23jgfyTtBcgCP+KN9l W35A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708815002; x=1709419802; 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=mgPRh2pCMQxvdaIAKISCXT6gieIymjX80GLulP6M7s8=; b=F6W/WHUxC1+Hl9LkRet9MgJtcR/usS6CB24NYjn3BEAMW37UpPIJ2SAQ6DNBsZ/RYs +PaRFrHk+s0tSennV1tD6vmptlWNDYBFxyoLrVgaK6PMNL4MNxebEo/t6zWUbPjhIywr n+GCGmMnEWSYLrADex6gImJ2k960ZSYs8uDxhANRsPXpXw2k4U8Um8XJ8fBgebBZQEr6 kU522R/FmHjCL4W6wAKOMoAJbk9wEpyHtFDzRBw6htnuO2vmhYS7gItrURMWqdUY+4UR Dd9LXJ6oWajJT3KpyJdw5SF8H7KcUOvFIPqdQ/aE6IGjj939XNQg63dN/RhFnCW3ttWG dodw== X-Forwarded-Encrypted: i=1; AJvYcCUaV1GO2t+wj/OWx//8pKiXMxbzRp8oPbhAe5pJdrDKV06aNKRggneXO6ZEq52vNDxa/qB0A0Td4rHkl8NTL7No0pQqdGmKdiwCb60IRmoRsG1P8a5LZ+rTZjYul0+1HK/m3+ey5wHQ5nWvkDvCR837w2Kgu+MV0D9aEJMMUG0ymR2CPfF9vBDYikSpVGgyd6VpYpUKYqNs8QCEJuZWzGo1c0bv X-Gm-Message-State: AOJu0Yx+v1qoD1QphX+0FRhcn6ryHW5rWdvoTRTLuUziw7uY/aDnr+TM 8BdGYv4vun/NuHUvrmL1jKGgzRDlFgR9sz5tSsebUwkilPeMh5YI X-Received: by 2002:a17:906:408d:b0:a3c:5e17:1635 with SMTP id u13-20020a170906408d00b00a3c5e171635mr2658520ejj.30.1708815002635; Sat, 24 Feb 2024 14:50:02 -0800 (PST) Received: from unknown.netbird.cloud ([37.161.229.181]) by smtp.googlemail.com with ESMTPSA id ti6-20020a170907c20600b00a431cc4bd3dsm145672ejc.182.2024.02.24.14.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:50:02 -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 2/3] dt-bindings: leds: leds-qcom-lpg: Add support for PMI8950 PWM Date: Sat, 24 Feb 2024 23:49:50 +0100 Message-ID: <20240224224951.1357644-2-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240224224951.1357644-1-morf3089@gmail.com> References: <20240224224951.1357644-1-morf3089@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791822427061205403 X-GMAIL-MSGID: 1791822427061205403 Update leds-qcom-lpg binding to support PMI8950 PWM. Signed-off-by: Gianluca Boiano --- 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 6649ca2ec805..ea617fad5a4e 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -27,6 +27,7 @@ properties: - qcom,pm8994-lpg - qcom,pmc8180c-lpg - qcom,pmi632-lpg + - qcom,pmi8950-pwm - qcom,pmi8994-lpg - qcom,pmi8998-lpg - qcom,pmk8550-pwm From patchwork Sat Feb 24 22:49:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 205960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1346190dyb; Sat, 24 Feb 2024 14:50:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV49+4AZra8owiYEjkiZgjNwcIuimLgKyKRiFMCtK33QcJ+U9zghwVu5kmDSssPS5fTlSFshjlEZVdzC+pGBkEM00RcKg== X-Google-Smtp-Source: AGHT+IH4wCaE8xkOjDqGq8R200GZvfE+Ntd88SmkOlotgAT4KjlwkHbELx/U7524Sonelr8b3D1E X-Received: by 2002:a17:906:34cb:b0:a3f:7e1:5166 with SMTP id h11-20020a17090634cb00b00a3f07e15166mr1865575ejb.10.1708815043865; Sat, 24 Feb 2024 14:50:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708815043; cv=pass; d=google.com; s=arc-20160816; b=BxIy8iDXbMfynMBGcI5vOa+6DkBJDFF5EzsPtikfrvQlVpQcxJptFmKoPA5WpwGsaG CHaPWYAWA9xlCm0ryXM95PkU/ygERHnAz5WSQrjwdz4Cb6lEJWieTa/G9wQCtz5XrQkA AUvvrH7X0UjsIKivtbx88xqSbVr4fcCd2LTbhIzzdBc9nghsWAI0iqzf7hkI+nRdhpgK EqI38zwdMkIA5AHQKHBZAuhydRIqsgMFZDsgCR7FuC+XKCSj7rYS2gkaKwSrjsJ5QcGo 9nCVIsM8gJlXlVlPNliEsnn6vbOMoCBUpoohMHqhkDSgojTghX4feDG9dltpMI+24HvB B5Wg== 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=CyUeNBz/6EL4JMqPMkzQBEjM7Nv00R+NzMPMSoNI1/U=; fh=msa+FGxw/Yly+u2U9v2A2X99O5TSjzDgwoEXQt1zzxE=; b=btemLQYh/3JP3cIjouFM0g4CSHI6GeuNicElwr7fYjEgMo1X3y6zRUv09mbmNToSG0 ReRs1CUtDXIms8H9dcyrvANssRX0cIZe5kvhaOhLE1DjiyhfuWoG77o+U6YtGIdCBezN bUgYrLOPCNdxISm4zvQpYFK1UcOBqG/W2xVmv9XWbjtQbl0MWCB84TuK5DaAfV88DBr5 0JxjjSfMVbj3xHVPhCDLNWZ4JZX/jfSCJ5McRGUY3ZaonajBu9Id5iGAx+Z+zCvvhzjh sNhJl5MX3RLvvgBnxDyT9kx3diXy+9XEE02ESZDYmGvilk2M9IkoIP6imLV8YmOlK+8m s5Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a87XncPO; 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-79896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79896-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hd17-20020a170907969100b00a43050521besi468971ejc.355.2024.02.24.14.50.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:50:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a87XncPO; 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-79896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79896-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 549F61F219D4 for ; Sat, 24 Feb 2024 22:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B13EE4F881; Sat, 24 Feb 2024 22:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a87XncPO" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.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 9E4C34D11B; Sat, 24 Feb 2024 22:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708815011; cv=none; b=mAo86svu2Plre85IRVR9Xz3l5pKMDDEdkYLRVTLanG3uq5WBQaGw1r3wXLoajskFurI7OfzhL8oj/P9ZuizL5kOhiGdid2aSIsU67ZnEmxewLs951/n0DovJH9nL6oHnIBo5TxrwTDLSzvAHkNwdR1VqkmIgrjtZNN8I2AVZBIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708815011; c=relaxed/simple; bh=31a5GEP8D1PpwdN5PyjwuEtq748f/aUOFXdtpk75vgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hVQeDHBjm3Ix8P4SmgOMwXR7jPNta7f5RYESRQb+hCG2uJGoz4dIoAPQo/LnV+ZBr3RUEEX0Do95wksrIOH+RnuAOGT0M3W38bRsaD3RhVMeywGfHZe1y9YOgPyTiHQ1ItFm+xg41o2pq0FOEvwGS7FrIx44s+2hGhbhYQERm7k= 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=a87XncPO; arc=none smtp.client-ip=209.85.167.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-lf1-f44.google.com with SMTP id 2adb3069b0e04-512ab55fde6so2124567e87.2; Sat, 24 Feb 2024 14:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708815008; x=1709419808; 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=CyUeNBz/6EL4JMqPMkzQBEjM7Nv00R+NzMPMSoNI1/U=; b=a87XncPOeIjS02wB1SfpkarJoHcWvJWzmLVBNaCFTwrjNLXbEAKsrJ3Udqrd4SBDov aMLC3cAkOjQkE62NxQjonMO1hRyIvV0o+yRqpANZ5Dg6kQVrFefQXG1OWVLHkjGXOr9D jg1H8IFOfy6n+wx/Z4mSgOV2h8qmxQu/EYbkgsPXlZ/ubDXlqC4SqHdILSFq/kPD4ncw W5dSWZzckEmP4rO/cJ/q2ZtwzLWZnT24NijVNva6+wmTkO6FrxgHVSX8sZDVPifxnbSI C2+gajytSLgn36mcJnC+lnYoIBeALHu98V8KkzQhZ4eT1cpv9BN7onDXCfHOi9TT3BGT PnjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708815008; x=1709419808; 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=CyUeNBz/6EL4JMqPMkzQBEjM7Nv00R+NzMPMSoNI1/U=; b=v3P1n5Yv2AnkmG2QBY5UVCq7eUklR8o1TMris58x7NjOdsXMyCqYmiPp7kLArCo+Nd XrVMDIGlo2NCXY/ZvQ49BugiksBc55y41srVwrsO7/SBNwI1SmMOivhXAflkjPo+dnAf GcGtPxQV0m/A50vfe0zl3HorttfzNGrCnPXGo7wBVdkzq/lwLzgFa9acErBvc19WQdUc nu1vDfoXhABFOKbaYp1p6fLHJ3kkbaCljOUU7ABeYOwrctlxsOsXtBTGeZbASyapCq/N dxXuDR7Vn3pWG9K7fkSiGZKddwijG81Oe1VEUVKjrlNjrult9keyEJTCtCprS2kOKXYh aKVw== X-Forwarded-Encrypted: i=1; AJvYcCUz/sWyle/YdrifmFHuqgsChcYcqJb9N7nQKOWiYSYtwYSlDAnhr1SELVM+oKeYOsIZNBweJlqbYYiPvSJYxERvvXyDP5irCgU+MRr8f9TwbS0o9UE0uMAOrxZMeIUd6cq2kXS05js/AiWsPzfIQVUuZ3LyKaJ7rb2xO2nGcbSz7PW3tHIyDZrYsy019aw6ue9iGrIBNsY3hd6SVn07+QptCThQ X-Gm-Message-State: AOJu0YyuWs395pK9M/9C64l2vNFN7IimUX0dqCrcoPbnU02XgUWkFhUc aYdpCSZvEpBv1s+McXuBpZqCTJ629QhRCHs8r1+7Vah5EeLhU093 X-Received: by 2002:a05:6512:2210:b0:512:d81f:c22e with SMTP id h16-20020a056512221000b00512d81fc22emr2323567lfu.59.1708815007566; Sat, 24 Feb 2024 14:50:07 -0800 (PST) Received: from unknown.netbird.cloud ([37.161.229.181]) by smtp.googlemail.com with ESMTPSA id ti6-20020a170907c20600b00a431cc4bd3dsm145672ejc.182.2024.02.24.14.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:50:07 -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 3/3] arm64: dts: qcom: pmi8950: add pwm node Date: Sat, 24 Feb 2024 23:49:51 +0100 Message-ID: <20240224224951.1357644-3-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240224224951.1357644-1-morf3089@gmail.com> References: <20240224224951.1357644-1-morf3089@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791822443558288182 X-GMAIL-MSGID: 1791822443558288182 This node is actually found on some msm8953 devices (xiaomi-mido) and allows irled enablement Signed-off-by: Gianluca Boiano --- arch/arm64/boot/dts/qcom/pmi8950.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8950.dtsi b/arch/arm64/boot/dts/qcom/pmi8950.dtsi index 1029f3b1bb9a..b4822cb17a37 100644 --- a/arch/arm64/boot/dts/qcom/pmi8950.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8950.dtsi @@ -84,6 +84,14 @@ pmic@3 { #address-cells = <1>; #size-cells = <0>; + pmi8950_pwm: pwm@b000 { + compatible = "qcom,pmi8950-pwm"; + reg = <0xb000 0x100>; + #pwm-cells = <2>; + + status = "disabled"; + }; + pmi8950_wled: leds@d800 { compatible = "qcom,pmi8950-wled"; reg = <0xd800>, <0xd900>;