Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp766590rdg; Thu, 12 Oct 2023 23:36:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE94NXw4bfTERXf6vCK7e1u0kk/XMDwS9vyhy45HmFbbL9jC10lbCX+IBbZcCvHZzEebxk7 X-Received: by 2002:a05:6a00:1409:b0:68f:dd50:aef8 with SMTP id l9-20020a056a00140900b0068fdd50aef8mr27057151pfu.4.1697179018043; Thu, 12 Oct 2023 23:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697179018; cv=none; d=google.com; s=arc-20160816; b=MJPc0Qna4usadv3hQ9eBljisS5ZzUAWixg2yAI6lA/n26B+QFn9tvsSpuEouRJFjxv ni/IaCBQPWhWleoEBVEXkGmjAIrX4o6A9s5twkNtsw3CSep86g9p8bNs8P8TXkxPFU3v F3YOIEFbs4+Q3KQ3bOSAY/IdV3q6ZRG6ThynJ0/CSizFXmrH9DeLfYDdOELRPy/PVPCG /6VZzbA3CDjR9vr4yUREOY8joeHQDY58PlFlD3rI5eXLQQgppIKLzYLzUVF6EN1k/W8Q aoiijZcbZqFBpghICRYGVVbqTiJ2KobS+e0Z3QBS6J5TU9rOFdFSUnnz574nG5QLnGGA wvVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=mw7d2rWqkx84mECPA0MX5FELEn+q0S5ND1l7U6MlW1M=; fh=+y3D6fdgxq4sGBAv9PjIwtuK1VPIMCUfzddKukl2/Mo=; b=ngL8mmBasH3D5/LmfKKkx0KqjVVvDdBp11aLFG/Z7+AzK9sb0YhNDCbyDY5qhpB8d1 uRMn2qkpUpDHfRj2bw8PweylC4+iKh5/nF/s6VJcbMl+rm1SSOEB+OhmAWMVTXpPi9Nx giPjSy7zQSD4fHuO2rlqmD1AZ8UEhRfQ7ghYBtGQh2vVawz0BarcShBS7Za6OqAHaU5Y yMzbKXtx1ftmCkyuq8RnPJvzOMUE96d0C9GT/pz7+phzbvyKhK+uN6DE18gZI5ZWItsa DSyvzOgfM9lv4doPeu3YJkKj8sJ9HJ503LCEBjX+FzvjLcRZdAEVhS5q55/V1xZB/qDp cpbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="fm4Dbls/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u22-20020a63ef16000000b00585a4fc83fbsi3837890pgh.255.2023.10.12.23.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 23:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="fm4Dbls/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2B56C80D158F; Thu, 12 Oct 2023 23:36:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjJMGfk (ORCPT + 99 others); Fri, 13 Oct 2023 02:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjJMGfi (ORCPT ); Fri, 13 Oct 2023 02:35:38 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA17ABC for ; Thu, 12 Oct 2023 23:35:33 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99357737980so285770866b.2 for ; Thu, 12 Oct 2023 23:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1697178932; x=1697783732; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mw7d2rWqkx84mECPA0MX5FELEn+q0S5ND1l7U6MlW1M=; b=fm4Dbls/0njpq32LVctJfLhPqWi0yJ2J3EF7WOVckfgZlax20krmmVv5gg2VZIZt8H NhlzC3+gxZ2F6XK/5uapNx04onfXTOVBbcfWS0WW+lINoVpDBp+TI3u7ug5XFIKcbB+a UKvJinKavIL30e8Os1gt2Bav1/RsUt6iMBb6p1zUx+w5bEYJmBu/LsSgW7HzEQBceEpp odky8UsJHB1frVNKCUg8W9NBNp55gWD6j/JsaZt8dHP/qzvK6CqzdyeiGZk0D3cBBYPq h5vwJWeCb/PR/u0o9aRa2ZQZ0Yqg68m774t9QkukPBLVRqBv8mRQ2v6HLJA2YRmUOfvW 4nkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697178932; x=1697783732; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mw7d2rWqkx84mECPA0MX5FELEn+q0S5ND1l7U6MlW1M=; b=C0jGNvQCDOrK5TNzQZHEwS65kT31uAT30boiDWcutz6nwuDOVdHxCzCq6124dV2JkS N9mjtkb9f9GpE3D69CUcc3an+r2mYrXzB4Yr3aluEUsyhhtxI6r4XmQb1nt1JNDO0lfX Y2gOdfnjdcrJ5nuclJaPo5kKhfRL6uLn/GvNe7D+vSVtJAqqagZ8S2CQGEgY5rRi0puJ gHae0VrhzzklFGsfhf8kfJQHrBDsbT1dJe8Eg2rXHLwno38Jvi37zqsfGzZHH24xap85 5AefvinGdIs673l9cCQi9HD36HNhk6a8pK7SQ2QeaXWpY/6gKTdI+ccijb5ugH1Kq8EC Qm6w== X-Gm-Message-State: AOJu0YzRNqwQwAhC5o5dsgDTStZoVJtOmXrNcJhRx2ZaBkLzZpWAaNiQ 5YdPy/1nImzKMpbn+JmcnnGnNg== X-Received: by 2002:a17:906:20d8:b0:9b9:f990:c701 with SMTP id c24-20020a17090620d800b009b9f990c701mr17557436ejc.52.1697178932152; Thu, 12 Oct 2023 23:35:32 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id u13-20020a1709060b0d00b009ad87d1be17sm11920164ejg.22.2023.10.12.23.35.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 23:35:31 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 13 Oct 2023 08:35:31 +0200 Message-Id: Subject: Re: [PATCH v5 0/7] Add support for LUT PPG From: "Luca Weiss" To: "Anjelique Melendez" , , , , , , , , Cc: , , , , , , , , , X-Mailer: aerc 0.15.2 References: <20230929003901.15086-1-quic_amelende@quicinc.com> In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 12 Oct 2023 23:36:22 -0700 (PDT) On Thu Oct 12, 2023 at 11:50 PM CEST, Anjelique Melendez wrote: > > > On 10/1/2023 7:15 AM, Luca Weiss wrote: > > On Fri Sep 29, 2023 at 2:38 AM CEST, Anjelique Melendez wrote: > >> In certain PMICs, LUT pattern and LPG configuration is stored in SDAM > >> modules instead of LUT peripheral. This feature is called PPG. > >> > >> This change series adds support for PPG. Thanks! > [..] > >> > >> Tested-by: Luca Weiss # sdm632-fairphone-fp= 3 (pmi632) > >=20 > > Hi Anjelique, > >=20 > > Actually I've retested this now on PMI632 (and also realized that my > > previous tests weren't correct and wasn't actually using hw_pattern). > >=20 > > Using the following commands (after boot) I'm expecting to get a > > 500ms on 500ms off blinking pattern between white (255 255 255) and off > > (0 0 0). > >=20 > > echo pattern > /sys/class/leds/rgb:status/trigger > > echo -1 > /sys/class/leds/rgb:status/repeat > >=20 > > echo "255 255 255" > /sys/class/leds/rgb:status/multi_intensity > > echo "255 500 255 0 0 500 0 0" > /sys/class/leds/rgb:status/hw_patter= n > >=20 > > What I actually see is it blinking between cyan (0 255 255) and red (25= 5 > > 0 0). > > At some point after playing with many patterns I got it to actually > > cycle between white and off, but I couldn't reproduce this again (or I > > didn't try hard enough). > >=20 > >=20 > > But with this example it correctly blinks red on-off. > >=20 > > echo "255 0 0" > /sys/class/leds/rgb:status/multi_intensity > > echo "255 500 255 0 0 500 0 0" > /sys/class/leds/rgb:status/hw_patter= n > >=20 > > With "0 255 0" and "0 0 255" the other colors also work fine, it's just > > the combinations that seem somewhat broken. > >=20 > > Regards > > Luca > >=20 > >=20 > Hi Luca, > > Thanks for testing again and the feedback! > Looks like for multicolor devices there is a small concurrency issue with > enabling pattern at the same time for all the led channels. This could be > why you observed your device blinking between red (255 0 0) and cyan (0 2= 55 255), > instead of seeing all channels (255 255 255) blink. > The fix I'm planing to include in the next series is is to disable the mu= lticolor led > channels first, then configure all channels, and finally re-enable channe= ls > so that pattern is triggered at the same time for each all of the channel= s. Sounds reasonable I think! > > I am currently testing with pm8350c device so if you are able to test nex= t series > on pmi632 it would be very appreciated! Will do, thanks for fixing it up! Regards Luca > > Thanks, > Anjelique