Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3651604pxk; Mon, 21 Sep 2020 21:38:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoZtp6nRX3IzEprf7N6z8l5FPuGTrpqiY4HSbTbNFHRorGCFhPk26S2EbkYLBuuZzbFw8U X-Received: by 2002:a05:6402:3076:: with SMTP id bs22mr2174047edb.17.1600749539491; Mon, 21 Sep 2020 21:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600749539; cv=none; d=google.com; s=arc-20160816; b=kpHmZPEFgSxr5947Gd5jFA8xinzP9JDtE8aDFVpBrIcyxn7u6cdRHKbVGLBDEgSZ0l kDrJOnmXe4k2GgpN3Un1ShRu/ILkakUzLigcXVP/uvk7w3XeJF6SLJ7hDHkIMYJ4GB6d OvxRbSj4SNnYF09habESj/kHkJrRpXvYiZ9Xi8TS1RIq1HDK8nUGxnzLLavpfcxEm1Rk AWe+v/UqMs0S1GhUtdfm7mLUwIbQvUG2M3zurQgSBOKEg8YW0Ej9mH5RfrllxloY71jj GVMNJHuZCbqtXhJTeO80LtkRq32s9wnAnv2gwdoQ+a59R+eejz6K0pyrjnRX+WXXHD+G w8Tg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+6BxJCHlYMMA7ySIKnIyp/WCI54jzkIG1xXXGWbWP8k=; b=SJFQ/zDIQdMYeD8Wjh03QJQYqts87pO3ew1bfp8/Re0qHX9C2agXZ3U82utBeI54H8 GZzgAug/vJ0Ydh/2LyWWjF715btLLQ257ET49sLjqOm/zDlRjlKCzSvyqDYogkX9CPEn uhb0Qh4d61ub0+jodNpE+zArI7ZIEZQAao6FOhQzVIcgpVZshZQHl9a5+HeCMt1HBVK4 iAh+VbP4aMkOqfgG4TVuYVAQ7Sf1EbCsPjk355MRw7r0VILPfwvvZqX9O6v3bXpW8TWR 3OFN60osmGDm0b0Iz2ycMnu0dkHn21RT4g4qXSfiUeYqoAqO0fN3Wv34AEQSgpt2FyEw 5EwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tkH+HRlJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si9280925ejr.206.2020.09.21.21.38.35; Mon, 21 Sep 2020 21:38:59 -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; dkim=pass header.i=@kernel.org header.s=default header.b=tkH+HRlJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729114AbgIVC7P (ORCPT + 99 others); Mon, 21 Sep 2020 22:59:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:59904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728991AbgIVC7O (ORCPT ); Mon, 21 Sep 2020 22:59:14 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A63F239A1; Tue, 22 Sep 2020 02:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600743554; bh=b2qwnEFh+ba+rThRPVC7+mIXVik4Np6wC8ogIy5np/E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tkH+HRlJL6TKGegQlflvBRnj+TIfWuAQPjXVI8pWBtpZOXwhNMefqNKGTU0bpuMVw DD6Ga0B1wscRBHHGKEVoH5uyZqzR4yY2wu+W2k4UwMKfHbrxS9AtdUUgF6f1ZMGon/ YGWy+3a3BE7LVRfsD2XXyK7tnl3j5p/XgI+sKie8= Date: Tue, 22 Sep 2020 10:59:05 +0800 From: Shawn Guo 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 =?iso-8859-1?Q?Kleine-K=F6nig?= , Wim Van Sebroeck , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko , Catalin Marinas , Will Deacon , Pavel Machek Subject: Re: [PATCH v10 11/13] arm64: dts: freescale: sl28: enable LED support Message-ID: <20200922025904.GX25109@dragon> References: <20200914214341.14268-1-michael@walle.cc> <20200914214341.14268-12-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200914214341.14268-12-michael@walle.cc> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 11:43:39PM +0200, Michael Walle wrote: > 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". > > Signed-off-by: Michael Walle > Acked-by: Pavel Machek > --- > Changes since v9: > - none > > Changes since v8: > - none > > Changes since v7: > - use new "function" and "color" properties instead of a label > - added default-on trigger for the power-led > > Changes since v6: > - none > > Changes since v5: > - changed the label, suggested by Pavel Machek > > Changes since v4: > - none > > Changes since v3: > - see cover letter > > .../fsl-ls1028a-kontron-kbox-a-230-ls.dts | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts > index 4b4cc6a1573d..dd516c0efd8b 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts > @@ -11,11 +11,29 @@ > > /dts-v1/; > #include "fsl-ls1028a-kontron-sl28-var4.dts" > +#include > > / { > model = "Kontron KBox A-230-LS"; > compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4", > "kontron,sl28", "fsl,ls1028a"; > + > + leds { > + compatible = "gpio-leds"; > + > + alarm-led { > + function = LED_FUNCTION_ALARM; > + color = ; > + gpios = <&sl28cpld_gpio0 0 0>; > + }; > + > + power-led { > + linux,default-trigger = "default-on"; > + function = LED_FUNCTION_POWER; > + color = ; > + gpios = <&sl28cpld_gpio1 3 0>; Use GPIO_ACTIVE_HIGH for polarity to improve the readability. I fixed them up and applied patch #9 ~ #13. Shawn > + }; > + }; > }; > > &enetc_mdio_pf3 { > -- > 2.20.1 >