Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2667577pxb; Sun, 8 Nov 2020 08:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3ZitFee1ANXNdxn6gSNd9697UY+0deJbXOucdiUk8wFLJZnu5TZv0qlzklFn/O8jxhzfv X-Received: by 2002:a17:906:4e99:: with SMTP id v25mr11241602eju.242.1604854496086; Sun, 08 Nov 2020 08:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604854496; cv=none; d=google.com; s=arc-20160816; b=g3rZUnkEZ7wZEukFinMr1k8/mWOUDBCdG72YOdRevkhEGVTSbDoCdWRZyNBSqqYveF kQsRV1tGyoT7yn46rtkIEZYINT56NaSgPn4/28Y3gxVgKHc+eK6EJkr6QJ5kHOf2n8Wj 8bV+8rmhFWcL2S9T0XhOgZWXVwRq6uFlu1+ZDyVvfOXnb+dcnS08OaEeBZsL8SPGu49U 5EyHgcSGRQyEknpR9pl6ya/tOapl1JwIzn0ZAttLbL0gt6zS/zHmZmxu8ghzHpPDa+ye 11NPwcv0wEhhuDwAvqscwy4gNs4UdmhbT3sdazEek3MVQLQ3rquSOUappwXfD/cS1xTm mt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Rikl1cMUQrKKRfEty9vlE0bbTP/gldAUaSt6ZFA6Ac4=; b=QPw8TWqTggWn91VQCKhduM1iT4S09pfldK5rNDJylMqzTUupRB9NeS49TTV+zBj0iS wPkQY8rvwLikCO6GBgVWH2B1Z1N/OvQJRgFGlzpCOGoSy8j04htikK0cYTUyhficUYln ISZyZ3eJVwFseVWBFKJWFW+zaqN8fyYPLLtUYocSTPvGbk45JGaDE4SkVvNcjxV5QRtA s1uXybKYloUBXyo3gvGhFfHLUMnvhAO6Mr3j/ess+Tcnzn/y8mCBrhFqvy6awapIzuSr nz3dTYh/22JFEGPwOM7ThP5b9sO3WZx1jeYYsLkUSKC75ciuxs8R5vhxJUCgkyxKv6dP 4cMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O7ZSLo3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb26si5109705ejb.603.2020.11.08.08.54.33; Sun, 08 Nov 2020 08:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O7ZSLo3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728770AbgKHQxC (ORCPT + 99 others); Sun, 8 Nov 2020 11:53:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbgKHQxB (ORCPT ); Sun, 8 Nov 2020 11:53:01 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925C9C0613CF; Sun, 8 Nov 2020 08:53:01 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id 7so8884153ejm.0; Sun, 08 Nov 2020 08:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Rikl1cMUQrKKRfEty9vlE0bbTP/gldAUaSt6ZFA6Ac4=; b=O7ZSLo3dzGjafmpqqFnclreHOVe9FkJWqozL3Ixox4tRNR66EfsvsldQX1ywpxfjsN RxLCV/t8rwjqoS0VNyMR9fAvqEPMRCKifgbUkEpBu4oXxgck+aKQ9vQfihDe31SW7T2+ HF9wV5lavJbBkjFH6CL5mrwyIfFsF5B8Q+Sm4Rp5j0ti2oDzuuNc71na6PoL1/31jGTf WYBg/D3Dz3clJFZmKqg7M+Xukf6JxXQKulyUYLP7osdyFrPVBXlNXIg/gRSMcBLLA9sq TOzmPfq0y0Nv4So+3kAdpzo7RU/NUEXay5V1Wl9GmjFupYnCUkQFXnl91YAv/lerJSCq 6Z7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Rikl1cMUQrKKRfEty9vlE0bbTP/gldAUaSt6ZFA6Ac4=; b=OlUrt2vLc3eKwbna8ayh0DL28QpmRWo6RwKDO2aQy7Ug1yPYzgov5XpPykNmBgj0TX Z2qsBZMEgMX0JyNCdUfGRob1NQyRTUVHyndehJ47Zg/5uW0sO/Ge5azcKhiIoDwvD61x dT9A8MJDTfaqExYigKolEUGw5zqJX1p81afJNfKXBsKNFQVrBu/vDzJ9EYs9fnnGv2pj //LNspaF+1PY9iO2ASbmqZNMr8HIIWXG0LZAX96gY6OXO1I/fKyAX/H7StJKdqVFEvOZ Rgv4rbPZ+VlpL/rhNOOeLvzMwa7UVDa+vBjcudbuMZxc71P14XM99xDY3nkGjHvuKnSZ xrbA== X-Gm-Message-State: AOAM533OIUr44fedt6CyX7zjBBq7QSUvrn/wF6eSB8ycVR7FWu+od19U PtmFH6usjydv+Yp0gPGflFc= X-Received: by 2002:a17:906:74c6:: with SMTP id z6mr11832276ejl.448.1604854380356; Sun, 08 Nov 2020 08:53:00 -0800 (PST) Received: from ?IPv6:2a01:110f:b59:fd00:a483:75f7:76d4:f590? ([2a01:110f:b59:fd00:a483:75f7:76d4:f590]) by smtp.gmail.com with ESMTPSA id b6sm6684948edu.21.2020.11.08.08.52.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Nov 2020 08:52:59 -0800 (PST) Subject: Re: [RFC PATCH 1/3] leds: Add driver for QPNP flash led To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Pavel Machek , Dan Murphy , Bjorn Andersson , Andy Gross , Rob Herring Cc: linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Brian Masney , Luca Weiss , Russell King , Georgi Djakov , linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com References: <20201106165737.1029106-1-nfraprado@protonmail.com> <20201106165737.1029106-2-nfraprado@protonmail.com> From: Jacek Anaszewski Message-ID: Date: Sun, 8 Nov 2020 17:52:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201106165737.1029106-2-nfraprado@protonmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, We have LED flash class framework since 2015. Please refer to the following files: Documentation/leds/leds-class-flash.rst Documentation/ABI/testing/sysfs-class-led-flash Documentation/devicetree/bindings/leds/common.yaml drivers/leds/led-class-flash.c Thare are also few LED flash drivers in the tree. Since there seems to be boost feature present on the the device then you might want to compare drivers/leds/leds-max77693.c with its bindings Documentation/devicetree/bindings/mfd/max77693.txt (refer to LED part). Please also remember to include DT bindings patch to your series. On 11/6/20 5:58 PM, NĂ­colas F. R. A. Prado wrote: > Add driver for the QPNP flash LED. It works over SPMI and is part of the > PM8941 PMIC. > > Signed-off-by: NĂ­colas F. R. A. Prado > --- > drivers/leds/Kconfig | 9 + > drivers/leds/Makefile | 1 + > drivers/leds/leds-qpnp.c | 1351 ++++++++++++++++++++++++++++++++++++++ > 3 files changed, 1361 insertions(+) > create mode 100644 drivers/leds/leds-qpnp.c > -- Best regards, Jacek Anaszewski