From patchwork Mon Feb 26 09:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1971300dyb; Mon, 26 Feb 2024 02:02:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU1glZhkmFyGQlcg1GIVePaToMCyGEBfyiUUXL8VqdVpFGu8B1QO5L7azgITpQwLPil1A+rhPulr2IWuetNvQdKzmGf2A== X-Google-Smtp-Source: AGHT+IF+acB99NT4tVJLchPWO820dwjfro5wpQa0I1NEbuBR+fzYbKxAbUSWhIPBTOW/R1d0m5O1 X-Received: by 2002:a17:906:f44:b0:a3e:fd1b:3fb5 with SMTP id h4-20020a1709060f4400b00a3efd1b3fb5mr4613360ejj.1.1708941779521; Mon, 26 Feb 2024 02:02:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941779; cv=pass; d=google.com; s=arc-20160816; b=Do/YIJJsrwVbwK3bcwhdJSl811IQoGgaESFLeGd2fpvNFQLKiDRvorl26HzIwENGrQ yORH0fn9LlqYeTM+LYilfwxlC5jyoq9IH7q3LMsa/Zg1QhNPacDketu/X8De1vbH9PBi lK26i+9nJzcSfX3wWeJnL6GN3vRoViT7fUnW2N48Ty1ZBNxTf8YRcbY+n7J52LDRaFpX TDVsGK2yaRoetTYYYSMjqnrCGxI1OS4qbMkyD1XyEfva5ybeIHoYihD5YLVynPLBxCAG lzjUqX4vjJ3AKVYhtRsMPWILnw6ujLrNGp+DMfFraPnsgPBtxzELoyZ9kKLKyk/Xb3nx AzNQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81064-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 kf27-20020a17090776db00b00a3e7467cc63si1994665ejc.592.2024.02.26.02.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81064-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=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81064-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 8F6491F27A42 for ; Mon, 26 Feb 2024 10:01:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 375335B5DC; Mon, 26 Feb 2024 09:37:56 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791955335349721681 X-GMAIL-MSGID: 1791955335349721681 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 09:37:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1971229dyb; Mon, 26 Feb 2024 02:02:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGyLPsdvkoyUA8FEZ/3uyoYiztJKXlmC4JdPd6jZbCzKEqE2SmJR3HhQHZwbfw0ZcPHACI4uC8HrsxpFyRZSk5iDzsaQ== X-Google-Smtp-Source: AGHT+IEeXjkqwdiBu7sMAzmDXzmkuW9EelKz5aY6pDq+cWEA0iuXbO28jWvv4vHkU2bInvaAKUhU X-Received: by 2002:a17:902:d4c6:b0:1dc:af71:4d46 with SMTP id o6-20020a170902d4c600b001dcaf714d46mr447020plg.13.1708941770749; Mon, 26 Feb 2024 02:02:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941770; cv=pass; d=google.com; s=arc-20160816; b=tdnQo54yQuNUaH6Hotku5m9YJ8/00/1Dk73G0okDAtsZ+qjeKAa2jIM0JsvFxvmKyW 5iTgvM5tR3/9Rp8MblZcWZ/bDNeDHTtqfcuNeo/tYLZdLcDY53wjKFqwZyq8jMQswCHh r863Oeu8KbYrEThKqoLSHAX7ZQXXpnjWfzIKRMbYRzX4E1rYgZUkrAn8ATWnE/MW1mta cp2zi6cXXF11JA31UCjLYc9O5oJhHiKGww3bpevRj5q8m0K7yOZMk2ZKKZR8OaV7qazh C1wKcROhAPXQeXx0IV+mk2Hvps/mPLSSqgNUNewrGxuix1uB8ZbxlW5FQ+qrUMqozYY8 OHeg== 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=XH8KvDdMlfuYLJ5rOK/DVj8e435rOuZCHznP+HIRTMg=; b=EcO61733JIG6IVDNgFTwthMrS2H3dViJ8nSLRV3QlYU43MpZcyfzv1+n137BBPYd3E sTlMI6Gg4yP8WwwXcLE+7eOnwoagWJowN79wUZwAIlqvC20Ml41JMQ2hiVR7+6zqsQeV dv0QYIata/r/jO0ZgvzXmh8nM5ieY03Yy15lsKgT6ypvMWxnCBuGj5utQTQadOgupF0x VRym3NLEW7vTraWTqPmx3ez/aceVlepC6Kn6CrXp9bv75jy8XFxlvnf9xO4iQe0X5mDo qQgi54xyYoRTvG9fjwTSVGfcOgTzHytOPNR1jBVanMIUeQ69iqcsAUE8YC8KW7RDTEXs uHCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="fBXLb9s/"; 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-81065-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81065-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 s14-20020a170902ea0e00b001da0ebf84b1si3518800plg.270.2024.02.26.02.02.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:02:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81065-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="fBXLb9s/"; 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-81065-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81065-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 69B8B288D61 for ; Mon, 26 Feb 2024 10:02:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F5555B691; Mon, 26 Feb 2024 09:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fBXLb9s/" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 F10AE5B5D6; Mon, 26 Feb 2024 09:37:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940277; cv=none; b=hu+EN4mM8z7paNXReksp25EYUFYf/qhMdoyj7LJST506rPB9VKpqv79NeQSr0KbyjennxZbnxghfQYnNW4cc6GOoUGwEGGmoaJxIk8qjIVRrkT7HiLQXT26HoNJdRpK09cm4IQ1Ww7KfXnDBOPxyJrfQeEzZHvxMY7lT9rU/OKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940277; c=relaxed/simple; bh=31a5GEP8D1PpwdN5PyjwuEtq748f/aUOFXdtpk75vgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DNvzjUigW+4hCS/LBNsDWqYAjcFS0CvhvuwQmGL/FiLEl2lgjKBfcapCaKKfFnzg8jPXGOf4S2WtzdOaIViPmdfdWTR1vqh4+fr9I47+SrqD6ormUm8veyhAePu6kq//xdyfmqco2i5pY+MhtjCgZ3xRF8kYxwBfAhz6G07qEFY= 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=fBXLb9s/; arc=none smtp.client-ip=209.85.208.42 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-f42.google.com with SMTP id 4fb4d7f45d1cf-565a3910f86so2428406a12.3; Mon, 26 Feb 2024 01:37:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708940274; x=1709545074; 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=fBXLb9s/fCzDlz4nLwp9Z496SOhk5r0xR8E3vzH9mApUluPelJKyumo3hgq2v4J8j9 oxTmyqE6pgRF1U2ba+psWAO+CWFq8OUCqXcJ+QgC2jnzSH5TcvDuzpGvhmnyP+VyNxMg MtN76Qxnc6ZA8ap61IZS8QkUulWxoqdr5On+lFyNB26xT7U7HKXWJpVl3iUyS8Z8enMO PneuKWEIz4ZwLkQld+eCXgnjH3Ck6NizufN+ZjM3j6VvTS3RAGaFpK80ecOAElP6Fghf bcAQedrAav5y2k+NCKxjGQMsW7iBqlfCeJB1wxL0IlWo/QZFnQFd/hJGknc0STlMBBhD FZvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708940274; x=1709545074; 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=UxLVO+VinENRg47iG8zG6T4Y/XSPyDpD3IadH7FlROgOahfk3g9rGn8MFUdoKwFaB6 9iUrm+qJZ4mXROefcQw514+gF1PHUQ0QpOcKMk+/p83oEhw4jIVWKuX5RMRSI/Hls8/S X7fxwaRbiwoEN8TBDHV/HoaWqinQtR6ihcNX5SDvTPURg+ghCmaiu31Zb85dggcRfG6/ cgFYz7WBTTkCWM+iVRis8nh1WOtm9HY4HiWkkUjmnlkgj8/6PuvUOcFZspBlfbdxBB2j IwMRoxguxkoHWz8CJI0pyu24m7lh66gMBdLZApYJEJYZWB0Rg6lMZqA6+mk4apIKCHj0 xF6w== X-Forwarded-Encrypted: i=1; AJvYcCVYZJ9caOy9PWHaS/I0wZwTDr0aSUq+qw+4J6CvJryTjigmUWNSktuE9atf9jKKgd4BWsmzaj/sM5iGRbc4dPCTmSxJxenprFYJFb4Ex/ZRPqxfk6YBQiPOLGDcIU9aczOs5YCDB9qlxamqWj6D9QmsWYQeY72zHYU1WLmrpAjJCOy84kOfCVpu3ude8SM0ZEfdCOuASGXX42LRR3UCGx9lndjr X-Gm-Message-State: AOJu0YyZEnbjw6atZTOzAW1xz4om5jFJYBTKWOn6vNUP1+fWyJE8NtA/ at2y/6vW7BJGlraOah9ifICLPsYelIw1wJWfirUoxeUhFs03ULHm X-Received: by 2002:aa7:df93:0:b0:565:e294:5124 with SMTP id b19-20020aa7df93000000b00565e2945124mr1717988edy.42.1708940274312; Mon, 26 Feb 2024 01:37:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:37:53 -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 2/3] arm64: dts: qcom: pmi8950: add pwm node Date: Mon, 26 Feb 2024 10:37:31 +0100 Message-ID: <20240226093732.3478845-2-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240226093732.3478845-1-morf3089@gmail.com> References: <20240226093732.3478845-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: 1791955325865117171 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 09:37:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Boiano X-Patchwork-Id: 206534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1971515dyb; Mon, 26 Feb 2024 02:03:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVN4TEcPB3F9Y3bvQrYb3O1pLWvZFTcT6rz7rtHlu8xvdawcBhRIDu2fODElcunwd7OoM6Buj8AN8LR6IF7SlFdw0AFhQ== X-Google-Smtp-Source: AGHT+IGSfNQJDeWaDihEzCyQLbmkyIR55L1NxugyruLqyFBZgC6j4CN1o3WdhSRQdsIKpKmBfvgE X-Received: by 2002:a05:622a:2a8e:b0:42e:6ee7:95d2 with SMTP id kf14-20020a05622a2a8e00b0042e6ee795d2mr8599516qtb.22.1708941808663; Mon, 26 Feb 2024 02:03:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941808; cv=pass; d=google.com; s=arc-20160816; b=dLLQ+rRD4MuCvEEdpihwd5c835TwmbrP69pR9UAui6Rg8rkqwKoWLX4cj43DBTPslp 8CqzpcySMeDfX9F1Cu2tcOm+R3FGe/0JFPOoCUOgBbzPgoz1GpPxrd27UY5Hn0xmfgy8 ZBz1veMGSUlfOOc7jmnLkveitlTe+uOZjFq+zhDmZd8tePhmB0JTP8gLsvh/A70blXE9 EXVJep4W7/pyL7iXbOYsrGeu7sjtZAkDhRncpxDHNiJtjXvg5eimWg15XMpKM7KyOmmb d0rVp/3OqD0gsZXKURYO0FW7AqBMGAaZZeY/Sgoi/7hi7AyOWQoCPgU/hfDdRGEXWPjt Xweg== 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=CEeXKLGrEyf0RjKWbIJdXt/9KeyZPE5HzwT6aiVEQEU=; fh=1Xy87mzctZ1gYYUeBR6b5G2/ywJsMR8ALgsajarNnOk=; b=wtCeKwK/pRezOx/UKoa0Yz+xUhao9J2+9W62o6mr4TtNsZ6sTGDnBhD4RsMZHCoT5K nclYgkilAEwA4a8xfT7IfMxqHeR1TmNtRlBQbDQPFnCOwbROwnNnEtLoeAnUhS/SeajP Q5PpN5E9D/hxtwAE9iUsfsUCmEy7zt1C01fd9l1hBXjk72AQS0KFYN4ZKc5W5t0+8Xzy wlExHBeEL9P7fHakw5p768xChKV/wnPfzOCOt8ppjJtjc5oX71UdrBwTkFGz9weZY6aF /4DVJzfvsf+pfYNLDwxCAoVs3BLEB1uuVvANTxu1gs6pFbi05LqnW1QegyIycQ2MTZWt fF/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JuZGqgGV; 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-81067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81067-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. [147.75.199.223]) by mx.google.com with ESMTPS id b15-20020ac8540f000000b0042e06b0d118si4397473qtq.157.2024.02.26.02.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:03:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JuZGqgGV; 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-81067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81067-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 7A6F21C25A1A for ; Mon, 26 Feb 2024 10:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1133E5D470; Mon, 26 Feb 2024 09:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JuZGqgGV" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 C94A25B5D6; Mon, 26 Feb 2024 09:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940308; cv=none; b=otKLZojnNtzkojozxLIC1MyyYZQHYJsYKtXiinhftWd6KlEad0tDMb05nBQKmwVebJrKWrreXXwkm4lswggmGiP7lOJ94WKR81AJMO8aU7+NBM9Gzrdf9/3SRmVWI3PZEn9/yOqtGVJthNDadki2SRq/fYSOl045kITSiqeInD4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940308; c=relaxed/simple; bh=SMs1Y+hialITWBjfQsUdDr8qHdCEWZ6zXD7jHaki0/U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WGOrWpn4wBO5BGPcTkpJynqQEfBiQo3MkFA1MrDMaDuN9bNEJej2cEgAglGXvGNqCzkTflLqr6tOigLnHfVSBeviZc34RDAS2QNnEeEnl3wiCt03K1wasF7mXuOqmUgkB62nDjDPkEWdWf7ZU26Q5SVfpmvAixZmOOCiX2W1dYY= 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=JuZGqgGV; arc=none smtp.client-ip=209.85.218.45 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-f45.google.com with SMTP id a640c23a62f3a-a3ed9cae56fso443999766b.1; Mon, 26 Feb 2024 01:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708940305; x=1709545105; 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=CEeXKLGrEyf0RjKWbIJdXt/9KeyZPE5HzwT6aiVEQEU=; b=JuZGqgGVn1zHJ5W3uQ0ciZGaYt08+o4qHD+Hj/sCUfXdF1xoxlPRez3cPwuWkWYcp9 NPRg7pyVHqvl8tHNj+8Ou83BLhhyCtqrFt2BMDb5y5YPICYYBUQ9bp3woM6w5J73+ONJ yxV4rkb3MyvBActOuaPFgPDnzT36ZmBIeBm0D9flyd+bDZFqhV3B+6pZjTbm6ZGqkFiF CN0X04x/YlPJhfowBukwKRL2d0a/C6isdf1rz/m4lqxBmzwDaK/wCkA35b5i8WBuf78d i5cciTLNUEbArsw6Uc0vfC8NhzbOdLv8k4SPCMJ820UU08MGF9AoF+Ef18ZYg5gPYaPn Vq0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708940305; x=1709545105; 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=CEeXKLGrEyf0RjKWbIJdXt/9KeyZPE5HzwT6aiVEQEU=; b=Trm5ClSVEcV2mSsUWcLDpckFhnmAfxmo29VfzATVSOEkXYA7+T2YpYBpi2hFkbtUrD GARuKNY/S2mCMRNJsyOta6HCqOF9BtYCKJQOhkrfXHQ6H3TuoPedj9c1Hxgku3AHrkSV GfONqdh4+EPH/U/jbTgLtgZXS6wlPD0jFOD0HloSQ0nb3vK01/tv9Zkvin+mKG6wYWR1 1J0Z7orHANWAuOvpKqyK+qnJ5uJppVHn/g1oa7o5zTffSE1YoTd5dpU/wNOYNwqXIVyn gLx+UtFUnQ61gD1SkI5GV/YC3lTsCebeFHlsLpJzMNaJZ4ZUzyYyTxjCKZIPD2QS0rUy JVrA== X-Forwarded-Encrypted: i=1; AJvYcCXwpgXL0b0HK8cvcc7D88nCQkA07t0cSLLSYDTvxGpwjaPzK2QpCZbRo1ulSYv2jyizuZSRaaVXzoHIkpEbTy+J0rjyGrYtqQBtIEmDKgjBrQO91/5CVlEvoeyYmmECNA61z0Mm6zFlRMWzFHuP4KTukVAs81tos10NrxophQbLCaKV0p65NM3zRAAleNVXal8uFNBtzzT0j9pcPNIM2rXMPpPL X-Gm-Message-State: AOJu0YyYOFCVc52AUFb9ooB6JZLrrtQflKJC2MTmPdAHsyw3R9FEtmUy S0wJIfCB0uWZcC/UECEyejYUIkgSa6N6FMwuGTmE0AV4sIuMFNBAYoeNI2d1xmU= X-Received: by 2002:a17:906:408d:b0:a3c:5e17:1635 with SMTP id u13-20020a170906408d00b00a3c5e171635mr5435997ejj.30.1708940304895; Mon, 26 Feb 2024 01:38:24 -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.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:38:24 -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 3/3] dt-bindings: leds: leds-qcom-lpg: Add support for PMI8950 PWM Date: Mon, 26 Feb 2024 10:37:32 +0100 Message-ID: <20240226093732.3478845-3-morf3089@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240226093732.3478845-1-morf3089@gmail.com> References: <20240226093732.3478845-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: 1791955366034681822 Update leds-qcom-lpg binding to support PMI8950 PWM. Signed-off-by: Gianluca Boiano --- Changes in v2: - Add missing entry for if - Rebase on top of https://lore.kernel.org/linux-devicetree/20240226073713.19045-1-krzysztof.kozlowski@linaro.org/T/#t - Link to v1: https://lore.kernel.org/all/20240224224951.1357644-2-morf3089@gmail.com/ --- 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: