Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1594668imw; Tue, 5 Jul 2022 12:06:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJ7EtrRu25K0g4aygzhhMek8oJU5IbQj8FVtZdACgbqox2X699Unw+L28fQ83MHqH7UKBu X-Received: by 2002:a17:90b:1e02:b0:1ec:d979:4a8e with SMTP id pg2-20020a17090b1e0200b001ecd9794a8emr42491128pjb.181.1657047960133; Tue, 05 Jul 2022 12:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657047960; cv=none; d=google.com; s=arc-20160816; b=gTzVkTmdWK8N064NkUCh5pfSsoJSnHUHrkXodvBrygWhEqJtuJ6Dnd2fAbpOuepPPg 69kvJes1brMgkK/53jNRUlPlI1D4+xVqiVy4jY4Rm/7RyBYVSw1sg08zBfpCmhHoA8rd EoTW/Ip/8gg0uUcLAE2td6pIPKkcY5x1+slx6Vn0+mGSAvnhVXDI8a5K5CfWWlG67nwh fz5BCK0zQZGZTCLQJIWIFPtaOCkRpO5qmV4q3eAjYM8LhBeIElvQRu92WaLhyDjAKFDX C/iQRGlASKFiVhNDB3uIWK0jHgH4pJ+Pya8e1V/LDnc1objwDaTbYJC34HD2Wei8Poa7 pBmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2GgOTK8JPl4Gc9sCsTpBhVS+r5KJG/3rc61mViR4SCY=; b=Cew/siKGcCTjNmOrHcZivKJ72U1KMi5Aj/Tc1dIWnxYZ/3J9CX8gCPN0Fql2C3w3h4 t41rIKei5Id6ZPdGUfohavYt/+JAU/BZtcDpMGk+nSi3NIdBTx1gqkJq9kaYGo3PJscM uwx5Lo9i0Z3gdfU5XxZpht1ohxziUHO7wFHY2aMoiODNyayljYXPo2EkSbSVOAvyDTCf wdPmdjH0eYcUpJTKYLDEf1X8ISnH0tTo+8QXY5N+bWYkyBs/E5WxOnf0EIaw4ijA3Gdl irmstiE2FlGFhMJrbjbSsk8qb2bZiJikxL5/JdMXt9YhGlwK4B+JlCkcTTymG+yp+yyB bkaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MMBQyxSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a631113000000b0040d62e9fc93si43707835pgl.439.2022.07.05.12.05.47; Tue, 05 Jul 2022 12:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MMBQyxSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233135AbiGES6W (ORCPT + 99 others); Tue, 5 Jul 2022 14:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233061AbiGES6O (ORCPT ); Tue, 5 Jul 2022 14:58:14 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB6C1FCCD; Tue, 5 Jul 2022 11:58:13 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id l11so23434204ybu.13; Tue, 05 Jul 2022 11:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2GgOTK8JPl4Gc9sCsTpBhVS+r5KJG/3rc61mViR4SCY=; b=MMBQyxSHX4Hxb968KOOM79u1NGS/FygOZnk3IwDlmFzwVxIbwPZglyX64WjKL/JEhj daWjYGrpyqd7lLZy5p4NtDi1Gi88uZgnV6+Sf2LlKZrg2KWjdkCmTdbiKbRwbwDzaYH5 X8u9ObSIdrEHi6S6xzofO5tieOVASSn2W4NKHDEeAMvtB/ZFi9V0YDJpfh4lhhKF/l9O TXTEao1eoIk2f2ooQ2K2pTuFUkv7gIXq3itkJXZQljedzEtm3NAEa19ORi30FaV519PE KHBlKBQIdqJIgiiTz5HsQ3jf7PQeNaXMBZoYoCpwMwIgm2b5AKA/OYpgCHlu9UdZLz1D t+aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2GgOTK8JPl4Gc9sCsTpBhVS+r5KJG/3rc61mViR4SCY=; b=PjAS9oiRit9Gg5x2ot9hZxolln+eE6j0RYohhu3n2K63RVhdRAZQzK0mbb/V9vNXZ3 rHh0mJ5ZPO1Tab2xUGM9Ix/xiEkby+XMQlWYWMTzzWB1ag2I9VnJ0t1cJ2z9F67NRn4E /u8rMtECRBuEVwVyCiqzuJ7VBOrJi5dBzobP0EOi6NItUXq0YO+oyadXNmUp7SUqytfq 3DpHQdbmbBL6hfGjtrGR7ips0SwX2t2h9YlGKo/OQF/FNMY6bNmZnaNZ+lXW2zIW5mnt 8FKwgdwV0UecZU1ambILLNde/m1leRSzQpO89A2d31YY7SGTm2VOaYsOz1x50lndKYya alEQ== X-Gm-Message-State: AJIora9izqVCr3M3e3y0zweBS3ZxEC055IiMdtLiA/kVImW1bWETrd0x gnXeBpXr5QqoTpRQ1o3VZpW07XY+Rp2fAYk8sygPoAcFh8NOEA== X-Received: by 2002:a05:6902:c4:b0:64b:4677:331b with SMTP id i4-20020a05690200c400b0064b4677331bmr39379530ybs.93.1657047492856; Tue, 05 Jul 2022 11:58:12 -0700 (PDT) MIME-Version: 1.0 References: <20220705163136.2278662-1-vincent.knecht@mailoo.org> In-Reply-To: <20220705163136.2278662-1-vincent.knecht@mailoo.org> From: Andy Shevchenko Date: Tue, 5 Jul 2022 20:57:36 +0200 Message-ID: Subject: Re: [PATCH v3 0/6] leds: Fix/Add is31fl319{0,1,3} support To: Vincent Knecht Cc: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Linux LED Subsystem , devicetree , Linux Kernel Mailing List , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, "H. Nikolaus Schaller" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 5, 2022 at 6:32 PM Vincent Knecht wrote: > > v3: > - pick up Rob's R-b for patches 1 and 2 > - reinstate bindings docs license and maintainer > changes with Nikolaus agreement > - took Andy's comments on patch 4 into account Thanks for the update. Nothing serious, but a few comments. Also a question here. Do you have plans to convert it to use device properties? > The is31fl3190, is31fl3191 and is31fl3193 chips (1 or 3 PWM channels) > cannot be handled the same as is31fl3196 and is31fl3199, > if only because the register map is different. > Also: > - the software shutdown bit is reversed > - and additional field needs to be set to enable all channels > - the led-max-microamp current values and setting are not the same > > Datasheets: > https://lumissil.com/assets/pdf/core/IS31FL3190_DS.pdf > https://lumissil.com/assets/pdf/core/IS31FL3191_DS.pdf > https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf > https://lumissil.com/assets/pdf/core/IS31FL3196_DS.pdf > https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf > > This series: > > - converts dt-bindings to dtschema, adding all si-en compatibles > for convenience and consistency, and adding constraints on > supported values for eg. reg address and led-max-microamp > > - changes vars, structs and defines to not use 319X suffix > but 3190 for 319{0,1,3} and 3196 for 319{6,9} > > - adds fields in chipdef struct for chip-specific values > > - only in the last patch, adds is31fl319{0,1,3} specific values > so those chips can work. > > Tested on msm8916-alcatel-idol347, which probably has an > si-en,sn3190 or si-en,sn3191 (only one white led indicator). -- With Best Regards, Andy Shevchenko