From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E48D7C433E6 for ; Fri, 17 Jul 2020 08:36:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE90B20691 for ; Fri, 17 Jul 2020 08:36:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbgGQIgR (ORCPT ); Fri, 17 Jul 2020 04:36:17 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:56612 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgGQIgQ (ORCPT ); Fri, 17 Jul 2020 04:36:16 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 2E8971C0BEB; Fri, 17 Jul 2020 10:36:11 +0200 (CEST) Date: Fri, 17 Jul 2020 10:36:10 +0200 From: Pavel Machek To: Michael Walle Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-pwm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Bartosz Golaszewski , Rob Herring , Jean Delvare , Guenter Roeck , Lee Jones , Thierry Reding , Uwe Kleine-K??nig , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko Subject: Re: [PATCH v5 12/13] arm64: dts: freescale: sl28: enable LED support Message-ID: <20200717083610.GC1027@bug> References: <20200706175353.16404-1-michael@walle.cc> <20200706175353.16404-13-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200706175353.16404-13-michael@walle.cc> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Hi! > Now that we have support for GPIO lines of the SMARC connector, enable > LED support on the KBox A-230-LS. There are two LEDs without fixed > functions, one is yellow and one is green. Unfortunately, it is just one > multi-color LED, thus while it is possible to enable both at the same > time it is hard to tell the difference between "yellow only" and "yellow > and green". > + user_yellow { > + label = "s1914:yellow:user"; > + gpios = <&sl28cpld_gpio0 0 0>; > + }; > + > + user_green { > + label = "s1914:green:user"; > + gpios = <&sl28cpld_gpio1 3 0>; > + }; This is not suitable label for such LEDs... there's zero chance userland will know what to do with these. Do they have some kind of "usual" function? Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html