Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2112503pxj; Sun, 16 May 2021 15:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxjNRMl/cA750p5GpmKm0bLxo8UuCS4vmTh6ftr9vFKwPBfb6Y3Y5wL6uikZFNGcf0Wwpd X-Received: by 2002:a17:906:a84e:: with SMTP id dx14mr20737141ejb.220.1621202577681; Sun, 16 May 2021 15:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621202577; cv=none; d=google.com; s=arc-20160816; b=FbCIRW+WxF89yJBRt+D5tKEzMPP5trFTQ7M6RnYjBi/HJPWMdvGuuH8zgN6TePrJng i3Az4Q/CzOjQp3sVPLBb0jCA5lYzLbs1de2k1M+Hd4gu3cnwTaRYwX6aFLTZadSMe9SE MRi8q1sX/7NafG5dA2yZDfcR13AJQoWm6OY4yttNB5WC1EazOwXiBGpaEEtvlccmQX0d ak9vikzXZDyqh3LnnyRHkGoWW5hpsY+NAc0jV/zQdiaEAWRkcBi7+luDEGO9b2+Paxzu D8MPsmpqKsISOkext1/wieE4KrW7ltFUl/FIpQg48VwA5nlWfM4QLO3alq1oLu1tqgOL idMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gyO3EHKe3a8PREgi4pgprdbN02JI6gqVWn3z143t2Ck=; b=oj7k/erQI6uicstcL1tdSEf/DR4YT0W7BbB5RwnASLkusDKeWo6H2qz18psMoMWGA0 fZzusJRW409s2rVGXHfrIiE/9FM117Itdf1iMUUSYmmsx+QHZNhr7FGWT082s8YI7bB6 LO5y6qyMivFE+zU6bvre+7TgWLc7ZfKSqaOCDuEEPCt8BRShsN/BEHF6KwPz9ZWC0fMG uY/PuJQi7acEZw1JmN9bPVeFdleCAyGb3Y0u0zjYUK58juyf1dznlkwdpHjA4ElV0Upm GX53pZVFkEnrgoUGPKoSok7aXSFIBc6sDZ5pVMz8uzzeGc27RXRVP0uJGQ/TeuwB3JJW OKYQ== 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 ay13si7733273edb.577.2021.05.16.15.02.34; Sun, 16 May 2021 15:02:57 -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 S230144AbhEPScw (ORCPT + 99 others); Sun, 16 May 2021 14:32:52 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45032 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhEPScv (ORCPT ); Sun, 16 May 2021 14:32:51 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E65E81C0B76; Sun, 16 May 2021 20:31:35 +0200 (CEST) Date: Sun, 16 May 2021 20:31:35 +0200 From: Pavel Machek To: Doug Zobel Cc: Rob Herring , Jacek Anaszewski , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dt: bindings: lp55xx: Add predefined LED pattern Message-ID: <20210516183135.GA26985@duo.ucw.cz> References: <20210511204834.2675271-1-dougdev334@gmail.com> <20210511204834.2675271-3-dougdev334@gmail.com> <20210513022036.GA890569@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > I don't know that this belongs in DT though. Won't a user want to create > > their own patterns? That means there should be a sysfs interface (which > > we either already have or has been attempted IIRC). >=20 > Yes, there is a sysfs interface for running patterns via the firmware > loading interface. The firmware loading interface doesn't seem well > suited for constantly changing the pattern that the LED driver runs. > I found it to be slow and unreliable when quickly changing the LED > pattern. The existing predef pattern functionality works much better. > Unfortunately the only way to define the patterns for it is via the > platform data structure. Adding the predef patterns to the device > tree seemed like a good way to make use of the existing functionality > in the driver. Take a look at the pattern trigger. That's the way to change patterns at runtime, no need for firmware loading. I may even have compiler from that interface to the bytecode lp55xx uses. Some assembly will be required. Doing so with the RGB LED will be even more fun.=20 We'll want to deprecate the firmware loading interface at some point. Forget the device tree, that will not help you. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYKFlBwAKCRAw5/Bqldv6 8tFDAKC3YhzAdQ9LYeg4X9Jiyl0bNQ25JACfU6OnhTTZpWfegLboUmGSg30vnMc= =nF5x -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--