Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp893069pxb; Wed, 27 Oct 2021 14:36:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF/9BJdBv8nR85uQSLyUDUUITcI0VzmVcxCprXn/QxOgWrhjtU7pfQiTDQcqsxEy4/xTmw X-Received: by 2002:a05:6a00:1995:b0:47c:1f59:a27a with SMTP id d21-20020a056a00199500b0047c1f59a27amr122799pfl.36.1635370592761; Wed, 27 Oct 2021 14:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370592; cv=none; d=google.com; s=arc-20160816; b=w3mzZWhelf+2adKGNHeQYbT7gQfLxIFfwdjRQtsAduUZ9tcWtZRDsmxQqvUWYM4C+m gn8vdmsB1Zc05MxxvAUxi3ZKWhZ0QKsQIgakXilLvR0usdgXngGdYfTRRGhZzTrx4yYn mrmQ2Brfh5vVpw6/U+XhEBdwZFpIaF8pQsrFEY9iJdhUXY6Vk/9xCmHB8KNsK3b4Br4U n1VklYiVbTPHoPLbD8OxKVVaNsraFdkcHd3rRme/DOzbi6w1Bp6pwn3gvpo9N9pUWWK3 qH66mMyx01tRrzVMSvoJfV7wdPiMsUl3mEKq6OBB+KpvXbI8H8TIgFbb79IjKpfOnAM/ g1Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W2sg5CiIwr3Mn4ohnOi19U5BrZzVpCdmJ96/5oV7G3A=; b=s1ytvZzIV9b1E/0yNLkPSGCyMnAn3LiXpw5F+7TZJdHCcwG1BB7qKAXIrb4LQkAwlC nXLo6mlcyxbn3XglOCgTpH23X+VgXAQJI5tcIPMdkOy6gJvl3CBgfS9si9KP98ourOC2 EgARY1xEa0iPiL5ZHLUYMuFZ+JF2FmdMCfgth88df+DTLI/5LCAjfhs8c5WLw9W/F8d0 FGIolyRUJHogDbKXbHCU0+BUNVNnLV4VkTf2OPG1lw+KH4KJH3JA5DADAsv2p/YUKYWl FAroqeTQhGeO4mEW6iSffLriI0j30jaV6N2nIt0zkaDRzNpoS+NIqJB2Rd4Ivb0AtHoI 8ShQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si1183635pls.167.2021.10.27.14.36.19; Wed, 27 Oct 2021 14:36:32 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234649AbhJ0V3M (ORCPT + 99 others); Wed, 27 Oct 2021 17:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241831AbhJ0V22 (ORCPT ); Wed, 27 Oct 2021 17:28:28 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B62CC061234; Wed, 27 Oct 2021 14:19:34 -0700 (PDT) Received: from SoMainline.org (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 810521F673; Wed, 27 Oct 2021 23:19:29 +0200 (CEST) Date: Wed, 27 Oct 2021 23:19:28 +0200 From: Marijn Suijten To: Bjorn Andersson Cc: Pavel Machek , Rob Herring , Andy Gross , Thierry Reding , Uwe Kleine-K?nig , Lee Jones , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org, Yassine Oudjana , Luca Weiss , Subbaraman Narayanamurthy Subject: Re: [PATCH v10 2/2] leds: Add driver for Qualcomm LPG Message-ID: <20211027211928.tjybwy2lokj6eoun@SoMainline.org> References: <20211010043912.136640-1-bjorn.andersson@linaro.org> <20211010043912.136640-2-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 2021-10-22 10:25:35, Bjorn Andersson wrote: > On Sat 09 Oct 21:39 PDT 2021, Bjorn Andersson wrote: > > > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > > PMICs from Qualcomm. These PMICs typically comes with 1-8 LPG instances, > > with their output being routed to various other components, such as > > current sinks or GPIOs. > > > > Each LPG instance can operate on fixed parameters or based on a shared > > lookup-table, altering the duty cycle over time. This provides the means > > for hardware assisted transitions of LED brightness. > > > > A typical use case for the fixed parameter mode is to drive a PWM > > backlight control signal, the driver therefor allows each LPG instance > > to be exposed to the kernel either through the LED framework or the PWM > > framework. > > > > A typical use case for the LED configuration is to drive RGB LEDs in > > smartphones etc, for which the driver support multiple channels to be > > ganged up to a MULTICOLOR LED. In this configuration the pattern > > generators will be synchronized, to allow for multi-color patterns. > > > > Signed-off-by: Bjorn Andersson > > --- > > Any feedback on this? I asked in #linux-msm whether anything is wrong with the patterns, since my Sony Discovery (sdm630 with a pm660l) blinks way quicker on a pattern that's supposed to stay on for 1s and off for 1s: echo "0 1000 255 1000" > /sys/class/leds/rgb\:status/hw_pattern It however seems to be broken in the same way on an older version now (this might be v9 or v8) which I don't remember to be the case. Can you double-check if this is all working fine on your side? If so, I'll have to find some time to debug it on my end. Thanks! - Marijn