Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp893873pxb; Wed, 27 Oct 2021 14:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY4SkKKflk9iw4JruL7jWqdCe7DfGhlcN4dIWwczIVfFuSY9JKm62kX/EAN4Wu8Rxqxdzm X-Received: by 2002:a17:907:72cc:: with SMTP id du12mr106921ejc.421.1635370661815; Wed, 27 Oct 2021 14:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370661; cv=none; d=google.com; s=arc-20160816; b=O/AcSMJyGGfhwwv9TfeQ2zcHsE6EcWZWh2J3oX+1xYW5pPRVTiHczPFCJUlHp4/Dre 0zV9i0YyXA8b2gjrBkI6zxgXxB26d4Le4pRnwrv7ZzL2EssZHaLBGV1PBaPRS+ERdziT GdtosHCCZOQLORyhn2On88Ft7Llz1zXYH2+Z///2zOERHf3XcdNfj4C7WwI84UFXXxHh 5wYd7MtEwgcufqpDIuUxPiYSX4FyiAfiYoROrDIoFNi8wmT6SAWDy3PcroN9D2gp0jav DYWhE7dt83mVjDSTYvhtPMs7c8tDQU1AXJBAf6GJHwvwGTKQHudF4c8xMl8PnfPLM5IE IC3Q== 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=H9DVE12GdGqwfoIzjNdJQRtrFjwyCNjQf2zS8rhuyX0=; b=ijTdf/n7LtvXMPP+AFLRl1RT3rKQ/gZQ3GIyyvoD0O7k9/dZ9pWu7pa6Eput0lv20a hR2jocNlQET0Z1Fv2SHLnt8N/0sGyUsCXBWmyYMiW1+oMkUu4Ev3COaLKepFuE+Mid0Q 5VDNfNxpiIgZlNHCh+uZfgDAEVC4zkokRanGjmZkwy48Io3SaKR4DOfRShIEiutizcUp 325dsthtdDwj64nrbK9JdyvHbXwgfA3RI0vEyANs6YQjUlL1sdL62GOdP4MDVq7Aq1UZ jReLtcxyrd7NpJ8wixQdRR8U+k0gbUzQkaksPhV0sjIPGiLJyD1FwwSMgAXcpHRUs3Ms 6hBQ== 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 l7si1621630edk.367.2021.10.27.14.37.17; Wed, 27 Oct 2021 14:37:41 -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 S235758AbhJ0VaL (ORCPT + 99 others); Wed, 27 Oct 2021 17:30:11 -0400 Received: from relay02.th.seeweb.it ([5.144.164.163]:38229 "EHLO relay02.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbhJ0V3p (ORCPT ); Wed, 27 Oct 2021 17:29:45 -0400 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 6A0F2200B4; Wed, 27 Oct 2021 23:27:10 +0200 (CEST) Date: Wed, 27 Oct 2021 23:27:09 +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: <20211027212709.4ma5uzy5titmgzqv@SoMainline.org> References: <20211010043912.136640-1-bjorn.andersson@linaro.org> <20211010043912.136640-2-bjorn.andersson@linaro.org> <20211027211928.tjybwy2lokj6eoun@SoMainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211027211928.tjybwy2lokj6eoun@SoMainline.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-10-27 23:19:30, Marijn Suijten wrote: > 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 Another thing I just ran into: on both patch revisions the colors are flipped. multi_index reports "red green glue", but the values written to multi_intensity correspond to "blue green red" instead. Is it the same on your side? - Marijn