From patchwork Mon Feb 26 10:57:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206561 Return-Path: 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 (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 ; 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 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: 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: References: 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: 1791955335349721681 X-GMAIL-MSGID: 1791958890488164768 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 Mon Feb 26 10:57:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1996349dyb; Mon, 26 Feb 2024 03:05:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV9XDOgQVo3y6CD2Gpvgyi4Gd6Y4rWWecSPOGNGrPO846co8/55kB/GxeqdrNFNLt1AHw0eVBJRUPwJ7vBsxiU0/jMFGg== X-Google-Smtp-Source: AGHT+IFdY2NnbpYqlQ0qeF2uTSJidvIj52BziBu2OS2S5aCdR3p2lRBIsx0a/5X2FflcvN9R9BWJ X-Received: by 2002:aa7:850f:0:b0:6e5:a8c:1669 with SMTP id v15-20020aa7850f000000b006e50a8c1669mr2838097pfn.5.1708945517999; Mon, 26 Feb 2024 03:05:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945517; cv=pass; d=google.com; s=arc-20160816; b=I74o7vkmi9z+m1fQHWx3vRx+jx9gUyZjK2xZlJV0E5gLcdwCQa+7/4uKyt93P/CHLe 6JS3e7/wNzfoYd/nBsDwKqgLcvNgkcCVKUYyrlGui8siMM28hgj5jsgxKfE9zmy69KQ3 /IfZu3HZhHKo/NSuwe2e3FSwGVKvTAX3qQyGNhSn+iXlQQ+ZLXKPppPiyGJcLo0qG5CN AgJYilI/22fZIbneqeCmA+RNmsvN73Ye7ucUd7+m8m0las1+5vMblsP0TqaXVQsgDhVL Jik7vbOOqXf0nsWv7f1T7aYY9J0qImPjkiNXfSM/qmpESwnfQrejYd4HcvOdaGbnHe3B 6dXA== 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=Td0oEg/JTDtaWbJgwpmP0b646D5so3tLMQdWOaWdwgA=; b=gxpaOYttW596H0O2KZS7yIgYyx6kcME2N/R8+cDY2taBbspAOPP5eLn9YT78skXnYZ Evwrg+OWHEpx0fRbCuLkaR8CLA/y+aD6NyLy70tUOhbeVzmVlWf4Bpl8XabV7iuPYQBe 3P4N18ompOqWSK/R/R1Z7RH/GjKBnEzsoykSmDqbUIVjYhKpBFibjV1YmQA/R/H9PIj+ +gLHcfISp/97JRIvb95UegEfIgMQbd0QdE0+lXf6/7nGAyyRjZkEWBWv/sKYU4TvyG4U g502wyxbiKMbS+DE4UyfBwgClhiSDvwzrVoTjKVoyzE6zFcaE2lbCA+0jtDA1JXpo6bE wcTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZVJ7rE4m; 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-81235-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81235-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b1-20020a63cf41000000b005cd88161d2fsi3559208pgj.694.2024.02.26.03.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:05:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81235-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZVJ7rE4m; 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-81235-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81235-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 A1D6128FA39 for ; Mon, 26 Feb 2024 10:59:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 451751D545; Mon, 26 Feb 2024 10:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZVJ7rE4m" 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 E90901CD08; Mon, 26 Feb 2024 10:58:20 +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=1708945102; cv=none; b=ZuXTAgj8UsqU483tb9oOOWFNSnafSEyU+YqYo6Ne/5FrmcTbvGEhkTEHjHRFS1UJJMigKRwKa9cE/jRlt2887gzR1gVZlfDUtyuWjWcu80+5n2g7gdWcNurSbZXgh/PSmxTEVDZ3XiJmhtIsJ1N0B9ddZwD870mIDfnp97YlfwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945102; c=relaxed/simple; bh=31a5GEP8D1PpwdN5PyjwuEtq748f/aUOFXdtpk75vgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YgLNh2IeiWHPtKpOKjGFLMaUK7d9ztTXEDdfyxmqFa7ppqd7M8Ca6T9HrG85sYdGZ8hQQGTiQ2DlXIxY7jEQb0Ygsz1XyTXCtUltfrSboChnbZAjXpzk8/lJK2xOhyzdDPc0oARpikce7B3VUhPn89eS/DhoN0xUUkKHEHlinEM= 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=ZVJ7rE4m; 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-563c0f13cabso3691154a12.3; Mon, 26 Feb 2024 02:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708945099; x=1709549899; 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=ZVJ7rE4mNVo6NjFAJ9mUqSSeDTKwjDKhZFwMleepIFJ0wqwpVA6mAe/72zRtpU5vI2 SEtgl6yA/PcTcO7Sj3FwwjtHwq/BLDoxVI8kju9sULKYfdxtC1mlpSYKaEBoDVq/fKu9 OvD8gVFXqqBgsl6iG9XSCtimRfPX1AvjKDbKkS2FLvvIhrQbRsq8b4HhsSuXRVxl270U GOtPSI3yirmcurj3nVtuAg6D/IEsRZk+EoHiWpDKYl6PHA+DwUSsRMG/iftH/37O2iUv mGUD8b3rQbWpR1diLZbE75g1tyDiiKLI7+rlzgPRgI31Kx+Mjw15XeQOqTW2rxUMFHsZ ut7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708945099; x=1709549899; 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=TCicjiXfgT8bR8UpoOxkY+XV4d0Biztr7XD4spBT3U3qcJe+qg1jgK1DiimLI7jHi2 xS5F35TDu3zOO/sd6hccYTwPtfW+p1nROrmZg+AU8VSl8gpZZPRm7o1k9TeQH1l04RTO QqNUVdhRp7Wa/apg+I0q7CaRm7zgOevPrRm9Uzqd30nq2R1iDQI1QDRU/hJ7HXqyo+F2 7uVrTELJuho9vSY9j/cABmfOsQnN4IT5tvbwALK/Up78VGtGUuKAzVXH9/9q6Z7KjUow dcglvYPgLZGWzI9yfuztyMSme315pUCzhcwdLRP2O+cXklaiTSdoSnMWUEY21x2wOMyE KRog== X-Forwarded-Encrypted: i=1; AJvYcCX7434+wfmFqRUF42R9Zr3E/KwjokmRqxmKXOlnakPcY6Xsw5MiOskSk8LRvp6Z5FvodmHkmEEV7y4eU18OfazOf17xkZ/0Kf0QKHemvOhYUNfQxIEipDXrn5lH79LcqMAAodEnVPHf9cyHjI01oPKTi3Qels/d/pleUUPdLgUAZkgwSkSmJacWZ0x2y2SGyUPiKc43VLYlMtcre1iDjnOY/4Pi X-Gm-Message-State: AOJu0YzhlD9sAs8ge2CLoAwQtK1dWrx8LF+f8JZEVj6gXXNlT2y+Bw7A 8X9achQAVC4j7zeIdfvEjIJxoE/1LrgKwz1/H8QvRyOSaSzTwPA7 X-Received: by 2002:a17:906:3cd:b0:a43:68b:6a3a with SMTP id c13-20020a17090603cd00b00a43068b6a3amr2822093eja.65.1708945099057; Mon, 26 Feb 2024 02:58:19 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:58:18 -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] arm64: dts: qcom: pmi8950: add pwm node Date: Mon, 26 Feb 2024 11:57:46 +0100 Message-ID: <20240226105747.3547856-2-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240226105747.3547856-1-morf3089@gmail.com> References: <20240226105747.3547856-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: 1791955325865117171 X-GMAIL-MSGID: 1791959255296494628 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>; From patchwork Mon Feb 26 10:57:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1997441dyb; Mon, 26 Feb 2024 03:06:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqgPHPX8qf3epz7gVV87mEcxzJHklLUyud8fRu8OgtA6FJgXjh/OZ+r1N6vjm/nYA/BPnz+8SRnv2d7aOjWA0RpV6+oQ== X-Google-Smtp-Source: AGHT+IFL9utOZz3hrnDGmSCCFxjjXZ5opmBwgku0kaHu95bOtqb8wk+eRdCb/4HdINzwjQo83jxp X-Received: by 2002:aa7:df93:0:b0:565:e294:5119 with SMTP id b19-20020aa7df93000000b00565e2945119mr1807320edy.18.1708945614881; Mon, 26 Feb 2024 03:06:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945614; cv=pass; d=google.com; s=arc-20160816; b=JS7VQyUuEwuQNRwIFBpxwKJVTL/apk+qEKhdXokjLZPaV9c1QRew3YRE2vP/dX6DyS iwK98Qd+u5Dc21+SVJPJTVF35AeVwCExzHZybaFPtap2/bNKUtMJyl4/80oletgFt7Hs ZC0ob0dmm+e96XD8S0zrpPepK+8oPwFb5AKd+Ot5PMw+IfoOOKX11yiRiCUbQuDmbFli P5ISafdqmXMBkvCILAb1/Kp5Smf2skfJK6JlLOKeq25fOVul40i3tWg7JbPFDc04wKY9 Id/Xl4zJSdUsNMu5FgpsrEHGGIPuIltBpepAfF/B/yYQWsDsGPLZmIxUijj9SbjpIrtP 2eAQ== 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=XBDj39VHM+FDO/ilMiBO91UzViz/2NlYW/IEBlun9BA=; fh=tjrOGXAzYBIMox4XdlVWp9yncgpnq55MQM1cFwkAsyI=; b=slDsMUTxQbKPHRqF+gdPoTYXvKoFBuF+zK1Uu7pZPj/yu07h+3z3lS/ggk/UeMqlzD QjTzMuHFrB0q25NVVwMd/xT6wZAZlMDKPYmDTNygeuoXInasxP2m3AE9tt13gjMN04Z7 VqKbBgku6eaVVn51nPkrnxjz5Cjb4hY4+qX838fk9HYVgsu0yibokI0eUZQeQ/lwqCaP tfOTXo0FCDzlPY0grCNRjsQfEqgU9XDLeZshzfxMNPAInYzbpKc/c4ooGdAia1ZIsOZo wbNCpMZNUexxkRr/X+9pU9xG0QPWxYIgInwzOsq0Q7Y75a/V9LJCfj7JHa/p8I/WQMCn tRIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W2x3oXBw; 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-81236-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81236-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 r10-20020a05640251ca00b00565b50b75f1si1783360edd.431.2024.02.26.03.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:06:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81236-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=W2x3oXBw; 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-81236-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81236-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 F10AE1F2E688 for ; Mon, 26 Feb 2024 11:00:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D64383B1; Mon, 26 Feb 2024 10:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W2x3oXBw" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 A94D71F95F; Mon, 26 Feb 2024 10:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945105; cv=none; b=kdz1MVQjDFAEIsGY9N6BArP/YZhbGzv1H8VXhscQgeqc5xTc9/1HPjpN44JOa53jVclbvkjxhO4qPbxV7kmfEBP/gX7VteBjoKsT5TUrvzDzDNP8XXnDE1SfFUuKWZFqzpm6ai/Krgv16mMeXClC/XQzaujHWGwWuUOnbCG1x8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945105; c=relaxed/simple; bh=syIKjrq+WfVbdCOG9H5+mA0Dtw4SFgTRKx0qyz1gHOY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i7zl0Z93+DqZjIJmVmfXEktmUuVQOWq7AfRWvKxNg4Qgo1tsOl832uSGVCdeZUhQLzSSqyTxgf4OsRdX1l5fF4NzQU7cBQLUtLjivGJSvsayi7rnp9jA1CNouAqt1qqp+Kt2N1DAR2Ysl0jX1qhQ8WUHAjM52SzdRi++ef04y08= 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=W2x3oXBw; arc=none smtp.client-ip=209.85.208.52 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-f52.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso2823622a12.3; Mon, 26 Feb 2024 02:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708945102; x=1709549902; 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=XBDj39VHM+FDO/ilMiBO91UzViz/2NlYW/IEBlun9BA=; b=W2x3oXBw6hESK6Kr9e6eHbhd7/tVYYYVLV0O00LBUY7hL5nA7PONDX7fQMJ1S1t6Dk MKd/htzWOy2QkvIK+2T5g33jJzPl2OBBMrJi7UWMj76o7W0XKpcyyKc5UsJpkINuFXz1 GaUTJa4LsICIldNYFM36sEOrSeujZ0LX7KQF0JN8X4a90XnxIeE5gyimCyhurm0NqHMF 1WmW5EprmTFbPfK0Uqu86ZQ1XubTcb2SbA+oSQE41WMQDLZysP7CKRzGHPFhjxXsFdVx Ml7svCmJ6cr7GBzttFRXzlmMzUfHWewNIIny2Y0gB5+qF8kV0+yQYajZLb01Xy4pFkVc duGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708945102; x=1709549902; 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=XBDj39VHM+FDO/ilMiBO91UzViz/2NlYW/IEBlun9BA=; b=RfqlGEIScqooqoUSzqsd1LxbTfYrhF0Z4wsN+J6i5O6SvfELmgXZCUI0cArzda3V5h Grl9SFH5Ghk1C9DFVc8+JXWZXBrSTNI3d0Zp1NjLClwSf/FeY44+WlCUGCsTlYEAfdLB s9g0jnzioBkPse3Z6qi01SeseddUolbxha7C3W+QBKrG9hy50S8HF24Y1F74aHRWWm1Y hqz1EDriaXC/mQoI8u1FdceB2pWq5zSA7d1RNvgQWEzdmG5iH/0KurTeRbztmvBojVlH KjjRD/dUj/Ww+ldwihBA5bbHejU4jO+VhEGEwRvC78M/DijzekW/Kqw6TfE4c2cUrCbX m3WA== X-Forwarded-Encrypted: i=1; AJvYcCViQn6fCcLCGQ2Gkj5G51+jtfdztSGqAt8wfhG/akkDubP0zHqHAoSjmNP1LrFYP4i20XhmeXUrLJMMlsAyTo6bWuxb/v7qD2qhHCydWy+Q/uvb/l0CwyqIRRgk9mwofEaRMR2Mvz0e0JQmRKOLUnZ4PFOvPQNya3yHJcnsafy/aebep+pLElT2mhE7b0QWb32G4iUSUZBTbNjvQkoiv/ZDuxMs X-Gm-Message-State: AOJu0Yzj1y/igwSqbhCiwsWX7OqUFrp+OxfvcCR8KzhOpmEQBFlpL9s0 D8NE3MWnWO3YwUl3gXSFjlYUpNN3tg8pS3sX5C1VibMUW5hZC5xM X-Received: by 2002:a17:906:150b:b0:a3f:d742:f353 with SMTP id b11-20020a170906150b00b00a3fd742f353mr4359261ejd.57.1708945102074; Mon, 26 Feb 2024 02:58:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:58:21 -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] dt-bindings: leds: leds-qcom-lpg: Add support for PMI8950 PWM Date: Mon, 26 Feb 2024 11:57:47 +0100 Message-ID: <20240226105747.3547856-3-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240226105747.3547856-1-morf3089@gmail.com> References: <20240226105747.3547856-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: 1791959357165781043 Update leds-qcom-lpg binding to support PMI8950 PWM. Signed-off-by: Gianluca Boiano --- Changes: - Add missing entry for if - Rebase on top of https://lore.kernel.org/linux-devicetree/20240226073713.19045-1-krzysztof.kozlowski@linaro.org/T/#t --- Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 6649ca2ec805..e93e9b30660b 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 @@ -148,6 +149,7 @@ allOf: enum: - qcom,pm8350c-pwm - qcom,pm8550-pwm + - qcom,pmi8950-pwm then: properties: nvmem: