Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1579197imw; Tue, 5 Jul 2022 11:53:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/GfZXP4QyA5sSDG5NRNBEPpPPg6ZNmdECjF1tiebmCZSI6Hip5i9UnLny2SbaTlY8h/8j X-Received: by 2002:a17:907:7f09:b0:726:2ba7:21c2 with SMTP id qf9-20020a1709077f0900b007262ba721c2mr35493882ejc.744.1657047231437; Tue, 05 Jul 2022 11:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657047231; cv=none; d=google.com; s=arc-20160816; b=VemFW5nipUIlRLpgBKadG8m/rPFMfplHMHTSXhbc4grol+OFvu5IMm/nsCN3We24J+ BG3BuOn/J9pxsVWiIt4UcBiGVFSWyi4SDBwN6IJcXc505nH03cjrvzR9IZC6I/EGkfQX jFIFsaOsAnUkmRd22gchnvumuXwDimNsMgDc6htSYtN3Cq1hqkY6YECxcL2uNy2LyW/H qR99WrA6ymKPYGjFQ9mC3j67K82De4FBCjsjkgB7fWQO9PIQsAtGq3EIyZP3ocnxOhhR R/7YZ4/RfFPdhujWE3gwkqe1yT/pkwBECiK1KZ1vKCVZ3L+opeGFdFjb0IVDSfP4rdNp 55lw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0lY80uANGfhYxCe94Fu9aUdM9wk52fuNOXOQz10dc5w=; b=XR9sWpyWIasbwtdZXsJBxzVzeHheLnJFZoSGlvqLvXFU/DJp3RDmn+khQO5ZPF/m8H R+bCJtgCVMWPI8sndpnaxPjuTk0rikiU+txSFxkhFNRRH6fjz6iGQwIpMSiTcr7Fgd2D Ne4Pmkv1/bHzh8QARj3paTKqwfuaUSN4ew7h+IJeEo/u1DoEBx64Hr+GUkSyauMShb1D vELOZDnpQ/tqb0GRcPLaqKqE5JUmwomEQnDjwmz9USZT9FVVwLr35bXXh+YvNyZ8lERE zPwQ/fpXyzMHvzVJBiiPJ3vog3w15Y4g+i5KXvEYhBggr1cPs0s2FOWzPIBkIb9n9OyG IFTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xi9htHFM; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my7-20020a1709065a4700b0071256de3c6bsi13151116ejc.299.2022.07.05.11.53.24; Tue, 05 Jul 2022 11:53:51 -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=@kernel.org header.s=k20201202 header.b=Xi9htHFM; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbiGESrE (ORCPT + 99 others); Tue, 5 Jul 2022 14:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiGESrD (ORCPT ); Tue, 5 Jul 2022 14:47:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C89913F01; Tue, 5 Jul 2022 11:47:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EEB3A61A14; Tue, 5 Jul 2022 18:47:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20DE2C341C7; Tue, 5 Jul 2022 18:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657046821; bh=OMCkKQ2ErnACEC3cqw+eGqkRWkRpQ5UJB1VdSBShfJg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xi9htHFMumyIPi759zbbwp1LPIqzzaj8O4agd6tP7p7YRz9ZRQ4/E6WV0SFmdxTLP eJSYCEwe3eLJZyLdYmXeqEZPFktBSi80F4BKkk8wCT+PtsYA0TrtSImMAZJXErbJyz fFNeNKpz56wq1/XPE7l7Y/b2pDqgFhqf4r/8UE/2ahgImA7zNZADXAPvSB72W0+hoq l1e3xldm4ELPfXH9b+vGSn+cl6L8jgiPJtatK/nLMu95/+7DWbEqSQEAVyHKQGaig+ OThzCyxKC1tEWH9tHDPi+fCIb94GYtMgTZnygjj8sh7QBWE+amCuKLBAp49vebNAME EVmdfg2aoYn/g== Received: by pali.im (Postfix) id 05B38CBF; Tue, 5 Jul 2022 20:46:57 +0200 (CEST) Date: Tue, 5 Jul 2022 20:46:57 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko Cc: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Marek =?utf-8?B?QmVow7pu?= , Linux LED Subsystem , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v2 2/2] leds: Add support for Turris 1.x LEDs Message-ID: <20220705184657.us53ciamy2oygakt@pali> References: <20220705000448.14337-1-pali@kernel.org> <20220705155929.25565-1-pali@kernel.org> <20220705155929.25565-2-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tuesday 05 July 2022 20:40:26 Andy Shevchenko wrote: > On Tue, Jul 5, 2022 at 6:11 PM Pali Rohár 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 LED > > which is automatically enabled after power on reset. LAN LEDs share HW > > registers for RGB colors settings, so it is not possible to set different > > 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_Router_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.