Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1639987imw; Tue, 5 Jul 2022 12:54:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttQ7iJFf59Y9FtX7sL3JPJpUlZVauav4GPhz+jRnp4agubMTpal+MyXlXiCyymcExhkOll X-Received: by 2002:a17:902:ed02:b0:16b:d5f6:2c17 with SMTP id b2-20020a170902ed0200b0016bd5f62c17mr18632800pld.85.1657050865267; Tue, 05 Jul 2022 12:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657050865; cv=none; d=google.com; s=arc-20160816; b=cazR6YggOOrEpYGyfOqHhpFr5TrmCf+N3LoIhcxww2Kw9gQ3mRuHGVWIA3B7KtYBzk NCwVS9Bm0OYQy7sNehOfhET5C0MvixHkOa5aEVE9L1egxYNim5/1OB/7OmctPrS/Dqb4 J70t3K/p8o+rBzHW/dk/VUlD2XqMM7cAAMRbcqKgANId4KiMZrP7wryIttUq/WglZjTb 3xF0cbiAM2JH0khfIYTrtOVcwSvXYrgj8ZpTEHSSRZQt2JY+FpnK6UKNZ+tEAbi7YbV5 C2pNo4QuMeqBr4FteksDkjZYtYnCXhTecu2KjJUVX9oslli/V5n6lrWkMaoW3K8nIUap SCiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RITSevX0Bl1HRItBqtnJRzcRK+rj+yxE1EZ6hSp76IU=; b=v8+IW0Z92lNkyHAFVYq47Yus1GBYW7bzJrLT9YT/UuYYBIi7/LUHlA0HFsk9GkJYh1 n2+Ijae3/G45/+Dr3Jx1RDyINjn9QoWfEM1Zop9mc17wcUhMEMfk/ia47DQizKCCsonV ZkC/1NvaM5+BCNW876tehP12iwDy+ApIB8iRd4+pzMOkbXfeOYIygkCxImsneQnHg9uD /tt5xmdh+9iLlerFaep7I5OCoDdHsSMiffyQ2r77F/xX4SyG9Uk1UdwzPbmSVaVQQWBX AMiCMs31k7Dl28yOol2zdXO6XAmzZ0lXIotP+q6yYOwCs8dxFGlM+KKYzImdOFUX5pEI z28Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XhdHon2q; 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 h70-20020a638349000000b004126e0611b0si4854472pge.313.2022.07.05.12.54.13; Tue, 05 Jul 2022 12:54:25 -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=XhdHon2q; 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 S233016AbiGES7Y (ORCPT + 99 others); Tue, 5 Jul 2022 14:59:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbiGES7W (ORCPT ); Tue, 5 Jul 2022 14:59:22 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B453EBC85; Tue, 5 Jul 2022 11:59:21 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id j7so17129419ybj.10; Tue, 05 Jul 2022 11:59:21 -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:content-transfer-encoding; bh=RITSevX0Bl1HRItBqtnJRzcRK+rj+yxE1EZ6hSp76IU=; b=XhdHon2qRC/c5f6jgtCgzJnI2hlfBgJP2hBCoEHomuDywL/HBEq7apevBQcEIwJg+z A4sdUYVYWEXnEhbDnRbRdAQ03lnH0BYN5jBKG/AhExMPKwb+OULIBuHrZ4Dvf5Mq+lEB g1CvvdTSqkgQIenPPCPnA42s//fWplTgBmNaSSw0QSh6fp5+Ek+Q8SmVVzzUXa9trjAh bIzhRhDWidlcGh3tAm++WPT7ooWg8RaOGoXUMz2MmYZ/nGSJcJUVsqhLAFTDn0u4wG9C DKlPLTwt9pFxK6gozpZaAUmtN9pj5pehhR9h0Fn/52MP8n2BN/crlZsltLVoO9mXzcHX dLvQ== 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:content-transfer-encoding; bh=RITSevX0Bl1HRItBqtnJRzcRK+rj+yxE1EZ6hSp76IU=; b=TGtZR7rvwEaXY6yHO912Kegt2f0Bmu4bJxCaxqeve1gBlSZU2Lvt5LRBsqU95snYbX OoZAjYQ5AGCBTgQTCWmqHFDnOtjPQejZ5kwZ/skSazn3kUnr6OgoQrpc/0Rop8aDf2cs wJyidsurYmaBWW6TZrOtSvNhYIZHKhMtNYBaECaRgDCWrOt55jy+i0Z9KLCvSt+LVwsc rigaY8PCdxpqllOrlfiFCu4SDcpKoMilubOVhvCBhfRUE0szNfJZbvgsTvb+HUUgrfcc VgOPAQc6RZQWn4Z31IwC+uhAk9qdYIyhaBWlkDKjMzeI/YcMxXbbK3ES3jVaIoz6x/Ig E3kQ== X-Gm-Message-State: AJIora9DLwqNliTZvmvnpqyp4dAaya7tHDQbghnbnUsJTQixk7U9fqUC o0qAFNun44zwaS4OwqMGpueUk0OKNam5GJLTvH8= X-Received: by 2002:a25:cbcf:0:b0:66e:8893:a02c with SMTP id b198-20020a25cbcf000000b0066e8893a02cmr2780234ybg.460.1657047560898; Tue, 05 Jul 2022 11:59:20 -0700 (PDT) MIME-Version: 1.0 References: <20220705000448.14337-1-pali@kernel.org> <20220705155929.25565-1-pali@kernel.org> <20220705155929.25565-2-pali@kernel.org> <20220705184657.us53ciamy2oygakt@pali> In-Reply-To: <20220705184657.us53ciamy2oygakt@pali> From: Andy Shevchenko Date: Tue, 5 Jul 2022 20:58:44 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] leds: Add support for Turris 1.x LEDs To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Pavel Machek , Rob Herring , Krzysztof Kozlowski , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Linux LED Subsystem , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 8:47 PM Pali Roh=C3=A1r wrote: > > On Tuesday 05 July 2022 20:40:26 Andy Shevchenko wrote: > > On Tue, Jul 5, 2022 at 6:11 PM Pali Roh=C3=A1r wrote: > > > > > > This adds support for the RGB LEDs found on the front panel of the > > > Turris 1.x routers. There are 8 RGB LEDs that are controlled by > > > CZ.NIC CPLD firmware running on Lattice FPGA. > > > > > > CPLD firmware provides HW triggering mode for all LEDs except WiFi LE= D > > > which is automatically enabled after power on reset. LAN LEDs share H= W > > > registers for RGB colors settings, so it is not possible to set diffe= rent > > > colors for individual LAN LEDs. > > > > > > CZ.NIC CPLD firmware is open source and available at: > > > https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Rout= er_CPLD.v > > > > > > This driver uses the multicolor LED framework and HW led triggers. > > > > Pardon me, but this driver seems like 3 years old by the APIs it's > > using... I have to say this, because I was surprised a lot to see some > > calls. > > I wrote it just recently according to other omnia multicolor driver. I see. I hope you will find my review useful then. --=20 With Best Regards, Andy Shevchenko