Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp492877pxf; Thu, 18 Mar 2021 05:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTzo3rKIx0WXJ5ZQDt+BPIN9szKCZTtB+5YCftp7kBUMg6icVFARBbeFM0/Jb7mK2v1Ycf X-Received: by 2002:aa7:d0c2:: with SMTP id u2mr3409952edo.158.1616071505209; Thu, 18 Mar 2021 05:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616071505; cv=none; d=google.com; s=arc-20160816; b=d6u81fUsrfC+UsuCNPadfRWQ8Qy3o4NfWOmi2A1eYxq/5jIEy4gWVEC6H++C6mNXZD CyBucO0IP0T9yLn/3xIpB65EsE0agI4ax7IrkOgc1cu3ULCMKkc993PdpfiLnfWg89jc OwMlYFeVY97NpJLY5zHP/0yeRKiOL/Twj+X+uvrin9VCZiwHuzjqhyVbtxZ0YNsW8EaE oCTz+T8JrGMsLUzaPwsSvBkLJ7zS+vmtow9ucQzjhuNT+VbhMlmOcNcN73Odcl1x0q0s 0EyprKx3Jmywv4A3dFOumO8l53bS+3EuqLi/5AKij6A3P+twIFTi+RjIliqnJVgpVmIN wpGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:importance:content-transfer-encoding:subject :references:in-reply-to:message-id:cc:to:from:date; bh=Lysl50CClwEy+ze5dhJv1PlRy7yVBXYRx50zSLy0nQs=; b=sQxJJ+dNfX35u7nklNOOtxhumw10eLH9mO3XvHQbbb66EzjXfs7mVIwc6MtymV1mOe jkVk1FipxUwNSOUvEx8TzUUK8H1A0+g/ta1sRm1Isn/GBBH4xgq5LpwsFXeaE7r7nUW5 m+3WQ8oHlGhhEcibWBhMM/Kdq2bCqzBYgDsKzZ2PwLzflWExMFnxkS6TtViR5t0wca5Y XWoA+eheaSZbi1Ub356l4PG7Wl60rpizRXYGCMOZgMYikVNCTktrPUS1hF5GdXyC3qsa iP7PWnVQmVBg/OLkRRf8ddNUtkftCp3ERBR1MvweAxwtiIv//pn6SovJIU3O6JGCvwbR XMxA== 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 j5si1455160edh.218.2021.03.18.05.44.42; Thu, 18 Mar 2021 05:45:05 -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 S231305AbhCRMlM (ORCPT + 99 others); Thu, 18 Mar 2021 08:41:12 -0400 Received: from mail.thorsis.com ([92.198.35.195]:59046 "EHLO mail.thorsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbhCRMlJ (ORCPT ); Thu, 18 Mar 2021 08:41:09 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id DD7991C61; Thu, 18 Mar 2021 13:41:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WqZl_3cqu2bQ; Thu, 18 Mar 2021 13:41:07 +0100 (CET) Received: by mail.thorsis.com (Postfix, from userid 109) id AFA98282A; Thu, 18 Mar 2021 13:41:07 +0100 (CET) X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Date: Thu, 18 Mar 2021 13:40:58 +0100 (CET) From: Alexander Dahl To: "Enrico Weigelt, metux IT consult" , Andy Shevchenko , Henning Schild Cc: Linux Kernel Mailing List , Linux LED Subsystem , Platform Driver , linux-watchdog@vger.kernel.org, Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Hans de Goede , Pavel Machek Message-ID: <1819093001.11427.1616071258857@seven.thorsis.com> In-Reply-To: References: <20210315095710.7140-1-henning.schild@siemens.com> <20210315095710.7140-3-henning.schild@siemens.com> Subject: Re: [PATCH v2 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Originating-Client: open-xchange-appsuite Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hei hei, > Enrico Weigelt, metux IT consult hat am 18.03.2021 11:27 geschrieben: > > > On 15.03.21 11:48, Andy Shevchenko wrote: > > Hi, > > > I have a question, why we can't provide a GPIO driver which is already > > in the kernel and, with use of the patch series I sent, to convert > > this all magic to GPIO LEDs as it's done for all normal cases? > > Do we alread have a generic led driver that for cases that just > set/clear bits in some mem/io location ? If not, that would be really > great to have. Yes, there is. Look out for compatible "register-bit-led" in device tree. That's from driver in drivers/leds/leds-syscon.c and you can use it inside a syscon node in dts. It assumes one bit per LED. Greets Alex