Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2480640pxk; Mon, 14 Sep 2020 14:48:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc8yZv+UZpBTvK88OHQDhr+jdAKReHWOm/oewLDWUfHDeU1hNpIshPQRzKt7p1ZZsKNLFT X-Received: by 2002:a17:906:a153:: with SMTP id bu19mr16560448ejb.142.1600120098192; Mon, 14 Sep 2020 14:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600120098; cv=none; d=google.com; s=arc-20160816; b=yrQKX8AqTgIqR/Yn6IDOnByteZVa1qrXXgasxDJ91kQRGWGnu2c4vQDFFsLfGtJtuH u7tULIMefcC9uVYv9wYS5b+o0q23iUvXEqyw7fYpJ/XbK3UwHlVHZTVSSACxEuHguoTj GPKiIuF5I357pjA2N9RvaDGAWNS6GpsrRs+/wri5zafxCJkGQ8MeXIluI4VNY8snQMjG MiZ1DYpyYpyUI9wFvbCe34BEz2XGgpHY+B+9IJtCdGiw657whUzvSyvNigFOQr2U+ZC6 pW75GYrtU2Cm8X6aprY50zenarKudufe7ZlKtViYLFKB7OBwNoFDWtGjwgMNqsoZIvpW CG3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R8b1z+iGFiRGQhOIFM3diNO1SOWmPlbWlOSVAJR1ANI=; b=DL13J7ciNpYXOOVmwr9W6OwTVcQz0bb9fly4UrnQI/1KyMA+BRX7AMlrNgdbwI0oPh 9NR/+bCG+OkPF2tZzDjskVPkdKXBcl/3RrU0e4xjaQcx8Itq+tlG742pRfh387Vi6BI4 BU5usNCeEPa3iE1s9U31qzvAMbd26FwIwX0rimUPtl07uKPagGaTaACaIC6LqginaWlN Z9cga5dcQHYwk4eP7YvZiWlvhcqtM1sisypXzD6XYRQWHaCvuF+QrcRbm9sPdGxFgsZt JcJ/3k+r3UZ9EtLTsqw/QfR/UbM4Gp2vaiEGSQgjUjQkEy+cjjXmpgQg/upPYrtC+/XL SRnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=E9U+o0UW; 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 m7si8176194eds.286.2020.09.14.14.47.56; Mon, 14 Sep 2020 14:48:18 -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=@walle.cc header.s=mail2016061301 header.b=E9U+o0UW; 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 S1726199AbgINVpE (ORCPT + 99 others); Mon, 14 Sep 2020 17:45:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgINVoR (ORCPT ); Mon, 14 Sep 2020 17:44:17 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53E3C061797; Mon, 14 Sep 2020 14:44:09 -0700 (PDT) Received: from apollo.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:6257:18ff:fec4:ca34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 5444723E4A; Mon, 14 Sep 2020 23:44:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1600119847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R8b1z+iGFiRGQhOIFM3diNO1SOWmPlbWlOSVAJR1ANI=; b=E9U+o0UWfl6a5fOImDoxr/uVfKVXQKLTX2clptY/xn/AHBPEUSW7cJLp09xdp7Pk3/BcQK EG4jlwPlmePHPccQmCKVlg0ruZv/0gAubjBy6OvOzRwET4rk1hzqA3y3OoaBQaxxg/lSWP CdcDybfvjsVmatJdBXCd03CvB2rEofY= From: Michael Walle To: 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 Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Jean Delvare , Guenter Roeck , Lee Jones , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko , Catalin Marinas , Will Deacon , Pavel Machek , Michael Walle Subject: [PATCH v10 11/13] arm64: dts: freescale: sl28: enable LED support Date: Mon, 14 Sep 2020 23:43:39 +0200 Message-Id: <20200914214341.14268-12-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200914214341.14268-1-michael@walle.cc> References: <20200914214341.14268-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + }; }; &enetc_mdio_pf3 { -- 2.20.1